format
This commit is contained in:
11
src/jpc.c
11
src/jpc.c
@@ -113,12 +113,11 @@ jpc_add_ac_signed (jpc *X, const jpc *A, const ac *B, int minus)
|
|||||||
else
|
else
|
||||||
modp256_mul (b, b, B->y);
|
modp256_mul (b, b, B->y);
|
||||||
|
|
||||||
if (bn256_cmp (A->x, a) == 0)
|
if (bn256_cmp (A->x, a) == 0 && bn256_cmp (A->y, b) == 0)
|
||||||
if (bn256_cmp (A->y, b) == 0)
|
{
|
||||||
{
|
jpc_double (X, A);
|
||||||
jpc_double (X, A);
|
return;
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
modp256_sub (c, a, A->x);
|
modp256_sub (c, a, A->x);
|
||||||
modp256_sub (d, b, A->y);
|
modp256_sub (d, b, A->y);
|
||||||
|
|||||||
Reference in New Issue
Block a user