File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -219,9 +219,9 @@ SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_recover_compact(
219
219
220
220
/** Compute an EC Diffie-Hellman secret in constant time
221
221
* 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
225
225
* In: scalar: a 32-byte scalar with which to multiply the point
226
226
* point: pointer to 33 or 65 byte array containing an EC point
227
227
* pointlen: length of the point array
Original file line number Diff line number Diff line change @@ -2503,6 +2503,7 @@ int main(int argc, char **argv) {
2503
2503
2504
2504
/* ecdh tests */
2505
2505
run_ecdh_tests ();
2506
+ run_ecdh_api_tests ();
2506
2507
2507
2508
/* ecdsa tests */
2508
2509
run_random_pubkeys ();
You can’t perform that action at this time.
0 commit comments