lib/aes/aes.rb in aes-g-1.0.2 vs lib/aes/aes.rb in aes-g-1.0.3

- old
+ new

@@ -146,10 +146,10 @@ @options[:padding] = @options[:padding] ? 1 : 0 end # Create a new cipher using the cipher type specified def _setup(action) - @cipher ||= OpenSSL::Cipher::Cipher.new(@options[:cipher]) + @cipher ||= OpenSSL::Cipher.new(@options[:cipher]) # Toggles encryption mode @cipher.send(action) @cipher.padding = @options[:padding] @cipher.key = @key.unpack('a2'*32).map{|x| x.hex}.pack('c'*32) end