Skip to content

Commit

Permalink
ML-KEM NIST tests, fix order of d and z (#1854)
Browse files Browse the repository at this point in the history
* ML-KEM NIST tests, fix order of d and z

---------

Signed-off-by: Basil Hess <[email protected]>
  • Loading branch information
bhess authored Jul 24, 2024
1 parent 0f83759 commit 476f835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_kem_vectors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ keygen_sk=$(grep "keygen_dk: " "$file")
encaps_c=$(grep "encaps_c: " "$file")
encaps_K=$(grep "encaps_K: " "$file")

output=$($build_dir/tests/vectors_kem $1 "$keygen_z$keygen_d$encaps_m" "$encaps_ek" "$encaps_k" "$decaps_dk" "$decaps_c" "$decaps_kprime")
output=$($build_dir/tests/vectors_kem $1 "$keygen_d$keygen_z$encaps_m" "$encaps_ek" "$encaps_k" "$decaps_dk" "$decaps_c" "$decaps_kprime")
if [ $? != 0 ]; then
echo "$output"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion tests/vectors_kem.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int main(int argc, char **argv) {
}

char *alg_name = argv[1];
char *prng_output_stream = argv[2]; // z || d || m
char *prng_output_stream = argv[2]; // d || z || m

char *encaps_pk = argv[3];
char *encaps_K = argv[4];
Expand Down

0 comments on commit 476f835

Please sign in to comment.