Skip to content

Commit

Permalink
PR feedback: add more wycheproof ECDH test cases
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Andersen <6730974+andozw@users.noreply.github.com>
  • Loading branch information
RandomLattice and andozw committed Oct 17, 2024
1 parent f26c323 commit 4ccf267
Show file tree
Hide file tree
Showing 3 changed files with 583 additions and 490 deletions.
3 changes: 1 addition & 2 deletions src/modules/ecdh/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ static void test_ecdh_wycheproof(void) {

expected_result = testvectors[t].expected_result;

/* fail if public key is valid, but doesn't parse */
CHECK(parsed_ok || expected_result == 0);
CHECK(parsed_ok == expected_result);

if (!parsed_ok && expected_result == 0) {
continue;
Expand Down
Loading

0 comments on commit 4ccf267

Please sign in to comment.