diff options
author | Jesse Luehrs <doy@tozt.net> | 2015-03-22 23:16:35 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2015-03-22 23:16:35 -0400 |
commit | afc451615ea4c1713b4b101294dbd71ab1987193 (patch) | |
tree | 8a2c3500694fd0d010f6899313b54c86e3a6522b /src/aes.rs | |
parent | 72efc26b14875c9c99578ca7a2bfd26ad1dfbbf0 (diff) | |
download | matasano-afc451615ea4c1713b4b101294dbd71ab1987193.tar.gz matasano-afc451615ea4c1713b4b101294dbd71ab1987193.zip |
a few more explicit slices necessary for new rust
Diffstat (limited to 'src/aes.rs')
-rw-r--r-- | src/aes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -281,8 +281,8 @@ fn test_encrypt_decrypt () { let ciphertext2_ecb = encrypt_aes_128_ecb(&plaintext2_ecb[..], &key[..]); let ciphertext2_cbc = encrypt_aes_128_cbc(&plaintext2_cbc[..], &key[..], &iv[..]); - assert_eq!(plaintext, plaintext2_ecb); - assert_eq!(plaintext, plaintext2_cbc); + assert_eq!(&plaintext[..], plaintext2_ecb); + assert_eq!(&plaintext[..], plaintext2_cbc); assert_eq!(ciphertext_ecb, ciphertext2_ecb); assert_eq!(ciphertext_cbc, ciphertext2_cbc); } |