[ECDH API change] Allow pass arbitrary data to hash function

This commit is contained in:
Kirill Fomichev
2018-05-17 00:12:46 +03:00
parent b00be65056
commit c8fbc3c397
5 changed files with 27 additions and 19 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, NULL) == 1);
CHECK(secp256k1_ecdh(data->ctx, res, &data->point, data->scalar, NULL, NULL) == 1);
}
}