Comment and check a parameter for inf in secp256k1_ecmult_const.

This commit is contained in:
Russell O'Connor
2021-12-03 13:57:38 -05:00
parent 6c0be857f8
commit 099bad945e
2 changed files with 2 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
* Multiply: R = q*A (in constant-time)
* Here `bits` should be set to the maximum bitlength of the _absolute value_ of `q`, plus
* one because we internally sometimes add 2 to the number during the WNAF conversion.
* A must not be infinity.
*/
static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q, int bits);