mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Update NSS to 3.32.1-RTM
This commit is contained in:
parent
f29876f120
commit
c91ef9012b
512 changed files with 83203 additions and 16839 deletions
|
|
@ -127,6 +127,17 @@ ec_GFp_pt_add_jm_aff(const mp_int *px, const mp_int *py, const mp_int *pz,
|
|||
MP_CHECKOK(group->meth->field_mul(A, qx, A, group->meth));
|
||||
MP_CHECKOK(group->meth->field_mul(B, qy, B, group->meth));
|
||||
|
||||
/* Check P == Q */
|
||||
if (mp_cmp(A, px) == 0) {
|
||||
if (mp_cmp(B, py) == 0) {
|
||||
/* If Px == Qx && Py == Qy, double P. */
|
||||
return ec_GFp_pt_dbl_jm(px, py, pz, paz4, rx, ry, rz, raz4,
|
||||
scratch, group);
|
||||
}
|
||||
/* If Px == Qx && Py != Qy, return point at infinity. */
|
||||
return ec_GFp_pt_set_inf_jac(rx, ry, rz);
|
||||
}
|
||||
|
||||
/* C = A - px, D = B - py */
|
||||
MP_CHECKOK(group->meth->field_sub(A, px, C, group->meth));
|
||||
MP_CHECKOK(group->meth->field_sub(B, py, D, group->meth));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue