test/cipher_test.rb in symmetric-encryption-2.0.0 vs test/cipher_test.rb in symmetric-encryption-2.0.1
- old
+ new
@@ -96,10 +96,10 @@
context "magic header" do
should "create and parse magic header" do
random_cipher = SymmetricEncryption::Cipher.new(SymmetricEncryption::Cipher.random_key_pair)
header = SymmetricEncryption::Cipher.magic_header(1, compressed=true, random_cipher.send(:iv), random_cipher.send(:key), random_cipher.cipher_name)
- compressed, iv, key, cipher_name, decryption_cipher = SymmetricEncryption::Cipher.parse_magic_header!(header)
+ compressed, iv, key, cipher_name, version, decryption_cipher = SymmetricEncryption::Cipher.parse_magic_header!(header)
assert_equal true, compressed
assert_equal random_cipher.cipher_name, cipher_name, "Ciphers differ"
assert_equal random_cipher.send(:key), key, "Keys differ"
assert_equal random_cipher.send(:iv), iv, "IVs differ"
\ No newline at end of file