feat: adapt test runner for gcm aes and add test cases

This commit is contained in:
0xalivecow 2024-11-03 11:20:09 +01:00
parent e33a26adab
commit 6bef350301
No known key found for this signature in database
5 changed files with 88 additions and 6 deletions

View file

@ -285,10 +285,16 @@ mod tests {
BASE64_STANDARD.encode(&auth_key_h)
);
assert_eq!(BASE64_STANDARD.encode(ciphertext), "");
assert_eq!(BASE64_STANDARD.encode(auth_tag), "");
assert_eq!(BASE64_STANDARD.encode(l_field), "");
assert_eq!(BASE64_STANDARD.encode(auth_key_h), "");
assert_eq!(
BASE64_STANDARD.encode(ciphertext),
"ET3RmvH/Hbuxba63EuPRrw=="
);
assert_eq!(BASE64_STANDARD.encode(auth_tag), "Mp0APJb/ZIURRwQlMgNN/w==");
assert_eq!(BASE64_STANDARD.encode(l_field), "AAAAAAAAAEAAAAAAAAAAgA==");
assert_eq!(
BASE64_STANDARD.encode(auth_key_h),
"Bu6ywbsUKlpmZXMQyuGAng=="
);
Ok(())
}