Home
last modified time | relevance | path

Searched refs:mp_cmp (Results 1 – 11 of 11) sorted by relevance

/titanic_50/usr/src/common/crypto/ecc/
H A Dec2_test.c206 if ((mp_cmp(&rx, &group->genx) != 0) in ectest_curve_GF2m()
207 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GF2m()
226 if ((mp_cmp(&rx, &group->genx) != 0) in ectest_curve_GF2m()
227 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GF2m()
246 if ((mp_cmp(&rx, &group->genx) != 0) in ectest_curve_GF2m()
247 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GF2m()
265 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GF2m()
282 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GF2m()
386 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GF2m()
H A Decp_test.c204 if ((mp_cmp(&rx, &group->genx) != 0) in ectest_curve_GFp()
205 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GFp()
225 if ((mp_cmp(&rx, &group->genx) != 0) in ectest_curve_GFp()
226 || (mp_cmp(&ry, &group->geny) != 0)) { in ectest_curve_GFp()
244 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
261 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
348 if ((mp_cmp(&rx, &gx) != 0) || (mp_cmp(&ry, &gy) != 0)) { in ectest_curve_GFp()
H A Dec2_aff.c108 if (mp_cmp(px, qx) != 0) { in ec_GF2m_pt_add_aff()
124 if (((mp_cmp(py, qy) != 0)) || (mp_cmp_z(qx) == 0)) { in ec_GF2m_pt_add_aff()
309 if ((MP_SIGN(px) == MP_NEG) || (mp_cmp(px, &group->meth->irr) >= 0) || in ec_GF2m_validate_point()
310 (MP_SIGN(py) == MP_NEG) || (mp_cmp(py, &group->meth->irr) >= 0)) { in ec_GF2m_validate_point()
H A Decp_aff.c115 if (mp_cmp(px, qx) != 0) { in ec_GFp_pt_add_aff()
122 if (((mp_cmp(py, qy) != 0)) || (mp_cmp_z(qy) == 0)) { in ec_GFp_pt_add_aff()
322 if ((MP_SIGN(px) == MP_NEG) || (mp_cmp(px, &group->meth->irr) >= 0) || in ec_GFp_validate_point()
323 (MP_SIGN(py) == MP_NEG) || (mp_cmp(py, &group->meth->irr) >= 0)) { in ec_GFp_validate_point()
H A Decl_mult.c70 if (mp_cmp(k, &group->order) > 0) { in ECPoint_mul()
333 if (mp_cmp(k1, &group->order) >= 0) { in ECPoints_mul()
344 if (mp_cmp(k2, &group->order) >= 0) { in ECPoints_mul()
H A Decl_gf.c226 if (mp_cmp(r, &meth->irr) >= 0) { in ec_GFp_add()
325 ((r2 == a2) && mp_cmp(r,&meth->irr) != MP_LT)) { in ec_GFp_add_3()
415 ((r3 == a3) && mp_cmp(r,&meth->irr) != MP_LT)) { in ec_GFp_add_4()
501 ((r4 == a4) && mp_cmp(r,&meth->irr) != MP_LT)) { in ec_GFp_add_5()
584 ((r5 == a5) && mp_cmp(r,&meth->irr) != MP_LT)) { in ec_GFp_add_6()
H A Dec.c689 if ((mp_cmp_z(&k) <= 0) || (mp_cmp(&k, &n) >= 0)) { in ECDSA_SignDigestWithSeed()
941 mp_cmp(&r_, &n) >= 0 || mp_cmp(&s_, &n) >= 0) { in ECDSA_VerifyDigest()
1026 if (mp_cmp(&v, &r_)) { in ECDSA_VerifyDigest()
H A Decp_256.c263 if (mp_cmp(r,&meth->irr) != MP_LT) { in ec_GFp_nistp256_mod()
/titanic_50/usr/src/common/mpi/
H A Dmpmontg.c118 if ((res = mp_cmp(T, &mmm->N)) >= 0) { in s_mp_redc()
H A Dmpi.h312 int mp_cmp(const mp_int *a, const mp_int *b);
H A Dmpi.c1684 int mp_cmp(const mp_int *a, const mp_int *b) in mp_cmp() function
1743 out = mp_cmp(a, &tmp); in mp_cmp_int()
2011 if(mp_cmp(&u, &v) >= 0) { in mp_xgcd()
2129 diff_sign = mp_cmp(&f, &g); in s_mp_almost_inverse()
2330 if (mp_cmp(&t1, &t0) == MP_EQ) in s_mp_invmod_2d()
4419 while(mp_cmp(x, m) >= 0) { in s_mp_reduce()