Skip to content

Commit

Permalink
final test for ntt and products
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmucb committed Apr 27, 2024
1 parent 113db5a commit 6660d7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions v2/kyber/kyber.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1590,9 +1590,6 @@ bool kyber_decrypt(int g, kyber_parameters& p, int dk_len, byte* dk,
printf("compressed w:\n");
print_coefficient_vector(compressed_w);
printf("\n");
printf("m:\n");
print_bytes(32, m);
printf("\n");
#endif
return true;
}
Expand Down
4 changes: 4 additions & 0 deletions v2/kyber/test_kyber.cc
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,10 @@ bool test_kyber_support() {
}

// product and transformed_product_ntt should be the same
if (!coefficient_equal(product, transformed_product_ntt)) {
printf("f x h != ntt_inv(f_ntt x h_ntt\n");
return false;
}

return true;
}
Expand Down

0 comments on commit 6660d7f

Please sign in to comment.