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

@@ -168,6 +168,7 @@ static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, cons
* that the Z coordinate was 1, use affine addition formulae, and correct
* the Z coordinate of the result once at the end.
*/
VERIFY_CHECK(!a->infinity);
secp256k1_gej_set_ge(r, a);
secp256k1_ecmult_odd_multiples_table_globalz_windowa(pre_a, &Z, r);
for (i = 0; i < ECMULT_TABLE_SIZE(WINDOW_A); i++) {