mirror of https://github.com/wolfSSL/wolfssl.git
Use mp_iszero
parent
1c1bd413e0
commit
a37e17084d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue