Skip to content

Commit d2ee340

Browse files
committed
Merge #388: bench_ecdh: fix call to secp256k1_context_create
f36f9c6 bench_ecdh: fix call to secp256k1_context_create (Andrew Poelstra)
2 parents 7b549b1 + f36f9c6 commit d2ee340

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bench_ecdh.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ static void bench_ecdh_setup(void* arg) {
2828
0xa2, 0xba, 0xd1, 0x84, 0xf8, 0x83, 0xc6, 0x9f
2929
};
3030

31-
data->ctx = secp256k1_context_create(0);
31+
/* create a context with no capabilities */
32+
data->ctx = secp256k1_context_create(SECP256K1_FLAGS_TYPE_CONTEXT);
3233
for (i = 0; i < 32; i++) {
3334
data->scalar[i] = i + 1;
3435
}

0 commit comments

Comments
 (0)