Skip to content

Commit

Permalink
test: argon2i proptest, increase outsize to avoid coincidental failed…
Browse files Browse the repository at this point in the history
… tests (out.len() in argon2i is always min 4 from the error-check anyways)
  • Loading branch information
brycx committed Nov 25, 2024
1 parent c5602d9 commit 04cfe8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/hazardous/kdf/argon2i.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,10 @@ mod private {
#[quickcheck]
#[cfg(feature = "safe_api")]
fn prop_test_same_result(input: Vec<u8>, out: Vec<u8>) -> bool {
if out.len() < 4 {
return true;
}

let mut first = out.clone();
let mut second = out.clone();

Expand All @@ -1379,6 +1383,10 @@ mod private {
#[quickcheck]
#[cfg(feature = "safe_api")]
fn prop_test_diff_result(input: Vec<u8>, out: Vec<u8>) -> bool {
if out.len() < 4 {
return true;
}

let mut first = out.clone();
let mut second = out.clone();

Expand Down

0 comments on commit 04cfe8f

Please sign in to comment.