Skip to content

Commit

Permalink
bench_ecdh: fix call to secp256k1_context_create
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Apr 27, 2016
1 parent 7b549b1 commit f36f9c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bench_ecdh.c
Expand Up @@ -28,7 +28,8 @@ static void bench_ecdh_setup(void* arg) {
0xa2, 0xba, 0xd1, 0x84, 0xf8, 0x83, 0xc6, 0x9f
};

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

0 comments on commit f36f9c6

Please sign in to comment.