[Pkg-bitcoin-commits] [libsecp256k1] 04/45: bench_ecdh: fix call to secp256k1_context_create
Jonas Smedegaard
dr at jones.dk
Sat Aug 27 12:00:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libsecp256k1.
commit f36f9c64bb1338846e7b23fc64bae883bcf06146
Author: Andrew Poelstra <apoelstra at wpsoftware.net>
Date: Wed Apr 27 10:16:18 2016 +0000
bench_ecdh: fix call to secp256k1_context_create
---
src/bench_ecdh.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/bench_ecdh.c b/src/bench_ecdh.c
index 5a7c637..cde5e2d 100644
--- a/src/bench_ecdh.c
+++ b/src/bench_ecdh.c
@@ -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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/libsecp256k1.git
More information about the Pkg-bitcoin-commits
mailing list