Skip to content

Commit 0b8c0fb

Browse files
committed
add tests
1 parent 46956d6 commit 0b8c0fb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

crates/libcrux/src/mlkem.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,16 @@ make_mlkem!(
168168
(MlKem1024EncapsulationKey, MlKem1024PublicKey, 1568),
169169
(MlKem1024DecapsulationKey, MlKem1024PrivateKey, 3168)
170170
);
171+
172+
#[cfg(test)]
173+
mod tests {
174+
use super::*;
175+
use cosmian_crypto_core::traits::tests::test_kem;
176+
177+
#[test]
178+
fn test_mlkem() {
179+
test_kem::<32, mlkem512::MlKem512>();
180+
test_kem::<32, mlkem768::MlKem768>();
181+
test_kem::<32, mlkem1024::MlKem1024>();
182+
}
183+
}

0 commit comments

Comments
 (0)