fix ge_p3_is_point_at_infinity(), which is evaluating field elements that haven't been reduced by the field order

This commit is contained in:
koe 2021-11-08 18:14:17 -06:00
parent eec3a6014c
commit c36ea26e5c
7 changed files with 111 additions and 11 deletions

View file

@ -46,4 +46,6 @@ void random_scalar(crypto::ec_scalar &res);
void hash_to_scalar(const void *data, std::size_t length, crypto::ec_scalar &res);
void hash_to_point(const crypto::hash &h, crypto::ec_point &res);
void hash_to_ec(const crypto::public_key &key, crypto::ec_point &res);
bool check_ge_p3_identity_failure(const crypto::public_key &point);
bool check_ge_p3_identity_success(const crypto::public_key &point);
#endif