mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 06:23:08 -08:00
Update liboqs 0.9.1 (#292)
* deps,fuzz: update to liboqs 0.9.1 The release updates the Classic McEliece to NIST PQC Round 4 version Updates breaking fuzz tests as well Signed-off-by: Paul Spooren <mail@aparcar.org> Prabhpreet Dua <615318+prabhpreet@users.noreply.github.com> * Update secret key length for McEliece KEM update * Update to specifying key lengths of Kyber and McEliece through constants --------- Co-authored-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
@@ -9,12 +9,12 @@ use rosenpass_ciphers::kem::EphemeralKem;
|
||||
|
||||
#[derive(arbitrary::Arbitrary, Debug)]
|
||||
pub struct Input {
|
||||
pub pk: [u8; 800],
|
||||
pub pk: [u8; EphemeralKem::PK_LEN],
|
||||
}
|
||||
|
||||
fuzz_target!(|input: Input| {
|
||||
let mut ciphertext = [0u8; 768];
|
||||
let mut shared_secret = [0u8; 32];
|
||||
let mut ciphertext = [0u8; EphemeralKem::CT_LEN];
|
||||
let mut shared_secret = [0u8; EphemeralKem::SK_LEN];
|
||||
|
||||
EphemeralKem::encaps(&mut shared_secret, &mut ciphertext, &input.pk).unwrap();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user