secp256k1_gej_double_nonzero supports infinity

This commit is contained in:
Pieter Wuille
2020-07-28 18:12:14 -07:00
parent 214cb3c321
commit 18d36327fd
5 changed files with 11 additions and 11 deletions

View File

@@ -2218,6 +2218,9 @@ void test_ge(void) {
/* Normal doubling. */
secp256k1_gej_double_var(&resj, &gej[i2], NULL);
ge_equals_gej(&ref, &resj);
/* Constant-time doubling. */
secp256k1_gej_double(&resj, &gej[i2]);
ge_equals_gej(&ref, &resj);
}
/* Test adding opposites. */