fix: Fix shared_secret length in Kyber encaps fuzz test

This commit is contained in:
Katherine Watson
2024-06-26 00:24:45 -07:00
committed by kat watson
parent 19293471e8
commit 40377dce1f

View File

@@ -14,7 +14,7 @@ pub struct Input {
fuzz_target!(|input: Input| {
let mut ciphertext = [0u8; EphemeralKem::CT_LEN];
let mut shared_secret = [0u8; EphemeralKem::SK_LEN];
let mut shared_secret = [0u8; EphemeralKem::SHK_LEN];
EphemeralKem::encaps(&mut shared_secret, &mut ciphertext, &input.pk).unwrap();
});