[ECDH API change] Support custom hash function

This commit is contained in:
Kirill Fomichev
2015-11-12 11:43:06 +03:00
parent 452d8e4d2a
commit b00be65056
5 changed files with 93 additions and 35 deletions

View File

@@ -42,7 +42,7 @@ static void bench_ecdh(void* arg) {
bench_ecdh_data *data = (bench_ecdh_data*)arg;
for (i = 0; i < 20000; i++) {
CHECK(secp256k1_ecdh(data->ctx, res, &data->point, data->scalar) == 1);
CHECK(secp256k1_ecdh(data->ctx, res, &data->point, data->scalar, NULL) == 1);
}
}