Skip to content

Commit

Permalink
test cov2
Browse files Browse the repository at this point in the history
  • Loading branch information
eschorn1 committed Feb 16, 2024
1 parent 2a21030 commit de86193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/k_pke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ mod tests {
use crate::k_pke::{k_pke_decrypt, k_pke_encrypt, k_pke_key_gen};

#[test]
#[allow(clippy::similar_names)]
fn test_result_errs() {
let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(123);
const ETA1: u32 = 3;
const ETA2: u32 = 2;
const DU: u32 = 10;
Expand All @@ -310,8 +310,8 @@ mod tests {
const EK_LEN: usize = 800;
const DK_LEN: usize = 1632;
const CT_LEN: usize = 768;
//const J_LEN: usize = 32 + 32 * (DU as usize * K + DV as usize);

let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(123);
let mut ek = [0u8; EK_LEN];
let mut dk = [0u8; DK_LEN];
let mut ct = [0u8; CT_LEN];
Expand Down
3 changes: 2 additions & 1 deletion src/ml_kem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ mod tests {
use crate::ml_kem::{ml_kem_decaps, ml_kem_encaps, ml_kem_key_gen};

#[test]
#[allow(clippy::similar_names)]
fn test_result_errs() {
let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(123);
const ETA1: u32 = 3;
const ETA2: u32 = 2;
const DU: u32 = 10;
Expand All @@ -167,6 +167,7 @@ mod tests {
const CT_LEN: usize = 768;
const J_LEN: usize = 32 + 32 * (DU as usize * K + DV as usize);

let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(123);
let mut ek = [0u8; EK_LEN];
let mut dk = [0u8; DK_LEN];
let mut ct = [0u8; CT_LEN];
Expand Down

0 comments on commit de86193

Please sign in to comment.