mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Use mp_iszero
This commit is contained in:
@ -4599,8 +4599,7 @@ int wc_ecc_point_is_at_infinity(ecc_point* p)
|
|||||||
{
|
{
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
if (mp_iszero(p->x) && mp_iszero(p->y))
|
||||||
if ((p->x->used == 0) && (p->y->used == 0))
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user