Skip to content

Commit 4ccf267

Browse files
RandomLatticeandozw
andcommitted
PR feedback: add more wycheproof ECDH test cases
Co-authored-by: Sean Andersen <6730974+andozw@users.noreply.github.com>
1 parent f26c323 commit 4ccf267

File tree

3 files changed

+583
-490
lines changed

3 files changed

+583
-490
lines changed

src/modules/ecdh/tests_impl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ static void test_ecdh_wycheproof(void) {
170170

171171
expected_result = testvectors[t].expected_result;
172172

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

176175
if (!parsed_ok && expected_result == 0) {
177176
continue;

0 commit comments

Comments
 (0)