lib/symmetric_encryption/cipher.rb in symmetric-encryption-3.0.1 vs lib/symmetric_encryption/cipher.rb in symmetric-encryption-3.0.2
- old
+ new
@@ -390,10 +390,10 @@
# Random iv and compress both add the magic header
iv = random_iv ? openssl_cipher.random_iv : @iv
openssl_cipher.iv = iv if iv
# Set the binary indicator on the header if string is Binary Encoded
binary = (string.encoding == SymmetricEncryption::BINARY_ENCODING)
- self.class.build_header(version, compress, random_iv ? iv : nil, binary) +
+ self.class.build_header(version, compress, random_iv ? iv : nil, nil, nil, binary) +
openssl_cipher.update(compress ? Zlib::Deflate.deflate(string) : string)
else
openssl_cipher.iv = @iv if @iv
openssl_cipher.update(string)
end