lib/submodules/ably-ruby/lib/ably/util/crypto.rb in ably-rest-1.1.8 vs lib/submodules/ably-ruby/lib/ably/util/crypto.rb in ably-rest-1.2.0

- old
+ new

@@ -28,10 +28,10 @@ # crypto = Ably::Util::Crypto.new(key: key) # encrypted = crypto.encrypt('secret text') # crypto.decrypt(decrypted) # => 'secret text' # def initialize(params) - @fixed_iv = params.delete(:fixed_iv) if params.kind_of?(Hash) + @fixed_iv = params[:fixed_iv] @cipher_params = Ably::Models::CipherParams(params) end # Obtain a default {Ably::Models::CipherParams}. This uses default algorithm, mode and # padding and key length. An IV is generated using the default