Searched refs:mp_cmp (Results 1 – 11 of 11) sorted by relevance
/titanic_50/usr/src/common/crypto/ecc/ |
H A D | ec2_test.c | 206 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 D | ecp_test.c | 204 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 D | ec2_aff.c | 108 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 D | ecp_aff.c | 115 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 D | ecl_mult.c | 70 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 D | ecl_gf.c | 226 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 D | ec.c | 689 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 D | ecp_256.c | 263 if (mp_cmp(r,&meth->irr) != MP_LT) { in ec_GFp_nistp256_mod()
|
/titanic_50/usr/src/common/mpi/ |
H A D | mpmontg.c | 118 if ((res = mp_cmp(T, &mmm->N)) >= 0) { in s_mp_redc()
|
H A D | mpi.h | 312 int mp_cmp(const mp_int *a, const mp_int *b);
|
H A D | mpi.c | 1684 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()
|