lib/symmetric_encryption/writer.rb in symmetric-encryption-2.2.0 vs lib/symmetric_encryption/writer.rb in symmetric-encryption-3.0.0

- old
+ new

@@ -142,10 +142,10 @@ @stream_cipher.key = key @stream_cipher.iv = iv if iv # Write the Encryption header including the random iv, key, and cipher if header - @ios.write(Cipher.magic_header( + @ios.write(Cipher.build_header( cipher.version, compress, random_iv ? iv : nil, random_key ? key : nil, cipher_name))