Skip to content

Commit

Permalink
ecdh: Make generator_basepoint test depend on global iteration count
Browse files Browse the repository at this point in the history
Co-authored-by: Elliott Jin <[email protected]>
  • Loading branch information
real-or-random and robot-dreams committed Feb 11, 2022
1 parent c881dd4 commit 3531a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ecdh/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void test_ecdh_generator_basepoint(void) {

s_one[31] = 1;
/* Check against pubkey creation when the basepoint is the generator */
for (i = 0; i < 100; ++i) {
for (i = 0; i < 2 * count; ++i) {
secp256k1_sha256 sha;
unsigned char s_b32[32];
unsigned char output_ecdh[65];
Expand Down

0 comments on commit 3531a43

Please sign in to comment.