summaryrefslogtreecommitdiffstats
path: root/src/aes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/aes.rs')
-rw-r--r--src/aes.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/aes.rs b/src/aes.rs
index 82b000c..d86246f 100644
--- a/src/aes.rs
+++ b/src/aes.rs
@@ -100,8 +100,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!(ciphertext_ecb, ciphertext2_ecb);
- assert_eq!(ciphertext_cbc, ciphertext2_cbc);
+ assert_eq!(&plaintext[..], &plaintext2_ecb[..]);
+ assert_eq!(&plaintext[..], &plaintext2_cbc[..]);
+ assert_eq!(&ciphertext_ecb[..], &ciphertext2_ecb[..]);
+ assert_eq!(&ciphertext_cbc[..], &ciphertext2_cbc[..]);
}