Home
last modified time | relevance | path

Searched refs:MP_SIGN (Results 1 – 12 of 12) sorted by relevance

/illumos-gate/usr/src/common/crypto/ecc/
H A Decl_gf.c320 MP_SIGN(r) = MP_ZPOS; in ec_GFp_add_3()
416 MP_SIGN(r) = MP_ZPOS; in ec_GFp_add_4()
510 MP_SIGN(r) = MP_ZPOS; in ec_GFp_add_5()
603 MP_SIGN(r) = MP_ZPOS; in ec_GFp_add_6()
721 MP_SIGN(r) = MP_ZPOS; in ec_GFp_sub_3()
820 MP_SIGN(r) = MP_ZPOS; in ec_GFp_sub_4()
896 MP_SIGN(r) = MP_ZPOS; in ec_GFp_sub_5()
983 MP_SIGN(r) = MP_ZPOS; in ec_GFp_sub_6()
H A Decp_384.c69 MP_SIGN(&m[i]) = MP_ZPOS; in ec_GFp_nistp384_mod()
77 MP_SIGN(&m[i]) = MP_ZPOS; in ec_GFp_nistp384_mod()
H A Decp_256.c235 MP_SIGN(r) = MP_ZPOS; in ec_GFp_nistp256_mod()
259 while (MP_SIGN(r) != MP_ZPOS) { in ec_GFp_nistp256_mod()
382 MP_SIGN(r) = MP_ZPOS; in ec_GFp_nistp256_mod()
H A Decp_521.c70 MP_SIGN(&m1) = MP_ZPOS; in ec_GFp_nistp521_mod()
H A Decp_224.c203 MP_SIGN(r) = MP_ZPOS; in ec_GFp_nistp224_mod()
310 MP_SIGN(r) = MP_ZPOS; in ec_GFp_nistp224_mod()
H A Decp_aff.c320 if ((MP_SIGN(px) == MP_NEG) || (mp_cmp(px, &group->meth->irr) >= 0) || in ec_GFp_validate_point()
321 (MP_SIGN(py) == MP_NEG) || (mp_cmp(py, &group->meth->irr) >= 0)) { in ec_GFp_validate_point()
H A Dec2_aff.c307 if ((MP_SIGN(px) == MP_NEG) || (mp_cmp(px, &group->meth->irr) >= 0) || in ec_GF2m_validate_point()
308 (MP_SIGN(py) == MP_NEG) || (mp_cmp(py, &group->meth->irr) >= 0)) { in ec_GF2m_validate_point()
H A Decp_192.c376 MP_SIGN(r) = MP_ZPOS; in ec_GFp_nistp192_add()
459 MP_SIGN(r) = MP_ZPOS; in ec_GFp_nistp192_sub()
H A Decl_mult.c72 MP_SIGN(&kt) = MP_ZPOS; in ECPoint_mul()
/illumos-gate/usr/src/common/mpi/
H A Dmpi.c794 if (MP_SIGN(a) != MP_SIGN(b)) { in mp_sub()
803 MP_SIGN(c) = !MP_SIGN(a); in mp_sub()
807 MP_SIGN(c) = MP_ZPOS; in mp_sub()
1021 signA = MP_SIGN(a); in mp_div()
1022 signB = MP_SIGN(b); in mp_div()
1067 MP_SIGN(pR) = signA; /* Sr = Sa */ in mp_div()
1069 MP_SIGN(pQ) = (signA == signB) ? ZPOS : NEG; in mp_div()
2146 while (MP_SIGN(c) != MP_ZPOS) { in s_mp_almost_inverse()
2327 while (MP_SIGN(&t1) != MP_ZPOS) { in s_mp_invmod_2d()
2401 while (MP_SIGN(&tmp2) != MP_ZPOS) { in s_mp_invmod_even_m()
[all …]
H A Dmpi.h230 #define MP_SIGN(MP) ((MP)->sign) macro
371 #define SIGN(MP) MP_SIGN(MP)
H A Dmp_gf2m.c245 MP_SIGN(c) = ZPOS; in mp_badd()