Skip to content

Commit f36f9c6

Browse files
committed
bench_ecdh: fix call to secp256k1_context_create
1 parent 7b549b1 commit f36f9c6

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)