Skip to content

Commit 67d307c

Browse files
committed
Merge branch 'ecdh-mult' of https://github.com/apoelstra/secp256k1 into ecdh-mult
2 parents 48dc8e3 + 0436dfc commit 67d307c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

include/secp256k1.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_recover_compact(
219219

220220
/** Compute an EC Diffie-Hellman secret in constant time
221221
* Returns: 1: exponentiation was successful
222-
* 0: scalar was zero (cannot serialize output point)
223-
* -1: scalar overflow
224-
* -2: invalid input point
222+
* -1: scalar was zero
223+
* -2: scalar overflow
224+
* -3: invalid input point
225225
* In: scalar: a 32-byte scalar with which to multiply the point
226226
* point: pointer to 33 or 65 byte array containing an EC point
227227
* pointlen: length of the point array

src/tests.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,6 +2503,7 @@ int main(int argc, char **argv) {
25032503

25042504
/* ecdh tests */
25052505
run_ecdh_tests();
2506+
run_ecdh_api_tests();
25062507

25072508
/* ecdsa tests */
25082509
run_random_pubkeys();

0 commit comments

Comments
 (0)