/titanic_50/usr/src/common/mpi/ |
H A D | mpi.c | 163 return MP_OKAY; in mp_init_size() 184 return MP_OKAY; in mp_init_copy() 195 return MP_OKAY; in mp_init_copy() 216 return MP_OKAY; in mp_copy() 256 return MP_OKAY; in mp_copy() 364 return MP_OKAY; /* shortcut for zero */ in mp_set_int() 370 if ((res = s_mp_mul_d(mp, (UCHAR_MAX + 1))) != MP_OKAY) in mp_set_int() 374 if (res != MP_OKAY) in mp_set_int() 381 return MP_OKAY; in mp_set_int() 398 return MP_OKAY; /* shortcut for zero */ in mp_set_ulong() [all …]
|
H A D | mplogic.c | 91 if((res = mp_copy(a, b)) != MP_OKAY) in mpl_rsh() 96 return MP_OKAY; in mpl_rsh() 110 if((res = mp_copy(a, b)) != MP_OKAY) in mpl_lsh() 137 if (rv != MP_OKAY) in mpl_set_bit() 148 return MP_OKAY; in mpl_set_bit()
|
H A D | mpprime.c | 104 return MP_OKAY; in mpp_random() 118 if((res = s_mp_pad(a, prec)) != MP_OKAY) in mpp_random_size()
|
H A D | mpmontg.c | 124 res = MP_OKAY; in s_mp_redc() 149 if((res = s_mp_pad(c, ib)) != MP_OKAY) in s_mp_mul_mont() 181 res = MP_OKAY; in s_mp_mul_mont()
|
H A D | mp_gf2m.c | 215 mp_err res = MP_OKAY; in mp_badd() 293 mp_err res = MP_OKAY; in mp_bmul() 359 mp_err res = MP_OKAY; in mp_bmod() 440 if ((res = mp_bmul(a, b, r) ) != MP_OKAY) in mp_bmulmod() 500 mp_err res = MP_OKAY; in mp_bdivmod() 601 mp_err res = MP_OKAY; in mp_barr2poly()
|
H A D | mpi.h | 120 #define MP_OKAY 0 /* no error, all is well */ macro 360 #define MP_CHECKOK(x) if (MP_OKAY > (res = (x))) goto CLEANUP 361 #define MP_CHECKERR(x) if (MP_OKAY > (res = (x))) goto CLEANUP
|
/titanic_50/usr/src/common/crypto/ecc/ |
H A D | ecp_521.c | 63 mp_err res = MP_OKAY; in ec_GFp_nistp521_mod() 78 if (a==r) return MP_OKAY; in ec_GFp_nistp521_mod() 120 mp_err res = MP_OKAY; in ec_GFp_nistp521_sqr() 135 mp_err res = MP_OKAY; in ec_GFp_nistp521_mul() 149 mp_err res = MP_OKAY; in ec_GFp_nistp521_div() 179 return MP_OKAY; in ec_group_set_gfp521()
|
H A D | ecp_mont.c | 65 mp_err res = MP_OKAY; in GFMethod_consGFp_mont() 101 if (res != MP_OKAY) { in GFMethod_consGFp_mont() 115 mp_err res = MP_OKAY; in ec_GFp_mul_mont() 154 mp_err res = MP_OKAY; in ec_GFp_div_mont() 175 mp_err res = MP_OKAY; in ec_GFp_enc_mont() 188 mp_err res = MP_OKAY; in ec_GFp_dec_mont()
|
H A D | ecl.c | 62 mp_err res = MP_OKAY; in ECGroup_new() 92 if (res != MP_OKAY) { in ECGroup_new() 105 mp_err res = MP_OKAY; in ECGroup_consGFp() 132 if (res != MP_OKAY) { in ECGroup_consGFp() 146 mp_err res = MP_OKAY; in ECGroup_consGFp_mont() 175 if (res != MP_OKAY) { in ECGroup_consGFp_mont() 191 mp_err res = MP_OKAY; in ECGroup_consGF2m() 218 if (res != MP_OKAY) { in ECGroup_consGF2m() 235 mp_err res = MP_OKAY; in ecgroup_fromNameAndHex() 259 if (bits < MP_OKAY) { in ecgroup_fromNameAndHex() [all …]
|
H A D | ecl_gf.c | 60 mp_err res = MP_OKAY; in GFMethod_new() 75 if (res != MP_OKAY) { in GFMethod_new() 87 mp_err res = MP_OKAY; in GFMethod_consGFp() 132 if (res != MP_OKAY) { in GFMethod_consGFp() 146 mp_err res = MP_OKAY; in GFMethod_consGF2m() 188 if (res != MP_OKAY) { in GFMethod_consGF2m() 223 if ((res = mp_add(a, b, r)) != MP_OKAY) { in ec_GFp_add() 240 return MP_OKAY; in ec_GFp_neg() 250 mp_err res = MP_OKAY; in ec_GFp_sub() 275 mp_err res = MP_OKAY; in ec_GFp_add_3() [all …]
|
H A D | ec2_aff.c | 73 return MP_OKAY; in ec_GF2m_pt_set_inf_aff() 83 mp_err res = MP_OKAY; in ec_GF2m_pt_add_aff() 96 res = MP_OKAY; in ec_GF2m_pt_add_aff() 103 res = MP_OKAY; in ec_GF2m_pt_add_aff() 127 res = MP_OKAY; in ec_GF2m_pt_add_aff() 165 mp_err res = MP_OKAY; in ec_GF2m_pt_sub_aff() 195 mp_err res = MP_OKAY; in ec_GF2m_pt_mul_aff() 216 res = MP_OKAY; in ec_GF2m_pt_mul_aff()
|
H A D | ecp_aff.c | 77 return MP_OKAY; in ec_GFp_pt_set_inf_aff() 89 mp_err res = MP_OKAY; in ec_GFp_pt_add_aff() 104 res = MP_OKAY; in ec_GFp_pt_add_aff() 111 res = MP_OKAY; in ec_GFp_pt_add_aff() 125 res = MP_OKAY; in ec_GFp_pt_add_aff() 175 mp_err res = MP_OKAY; in ec_GFp_pt_sub_aff() 208 mp_err res = MP_OKAY; in ec_GFp_pt_mul_aff() 229 res = MP_OKAY; in ec_GFp_pt_mul_aff()
|
H A D | ecp_192.c | 63 mp_err res = MP_OKAY; in ec_GFp_nistp192_mod() 80 return MP_OKAY; in ec_GFp_nistp192_mod() 303 mp_err res = MP_OKAY; in ec_GFp_nistp192_add() 384 mp_err res = MP_OKAY; in ec_GFp_nistp192_sub() 462 mp_err res = MP_OKAY; in ec_GFp_nistp192_sqr() 477 mp_err res = MP_OKAY; in ec_GFp_nistp192_mul() 491 mp_err res = MP_OKAY; in ec_GFp_nistp192_div() 525 return MP_OKAY; in ec_group_set_gfp192()
|
H A D | ecp_224.c | 63 mp_err res = MP_OKAY; in ec_GFp_nistp224_mod() 80 if (a == r) return MP_OKAY; in ec_GFp_nistp224_mod() 322 mp_err res = MP_OKAY; in ec_GFp_nistp224_sqr() 337 mp_err res = MP_OKAY; in ec_GFp_nistp224_mul() 351 mp_err res = MP_OKAY; in ec_GFp_nistp224_div() 381 return MP_OKAY; in ec_group_set_gfp224()
|
H A D | ec2_mont.c | 64 mp_err res = MP_OKAY; in gf2m_Mdouble() 92 mp_err res = MP_OKAY; in gf2m_Madd() 124 mp_err res = MP_OKAY; in gf2m_Mxy() 183 if (res == MP_OKAY) { in gf2m_Mxy() 198 mp_err res = MP_OKAY; in ec_GF2m_pt_mul_mont()
|
H A D | ec2_163.c | 63 mp_err res = MP_OKAY; in ec_GF2m_163_mod() 135 mp_err res = MP_OKAY; in ec_GF2m_163_sqr() 185 mp_err res = MP_OKAY; in ec_GF2m_163_mul() 268 return MP_OKAY; in ec_group_set_gf2m163()
|
H A D | ec2_193.c | 63 mp_err res = MP_OKAY; in ec_GF2m_193_mod() 143 mp_err res = MP_OKAY; in ec_GF2m_193_sqr() 194 mp_err res = MP_OKAY; in ec_GF2m_193_mul() 285 return MP_OKAY; in ec_group_set_gf2m193()
|
H A D | ecp_384.c | 61 mp_err res = MP_OKAY; in ec_GFp_nistp384_mod() 269 mp_err res = MP_OKAY; in ec_GFp_nistp384_sqr() 284 mp_err res = MP_OKAY; in ec_GFp_nistp384_mul() 302 return MP_OKAY; in ec_group_set_gfp384()
|
H A D | ec2_233.c | 63 mp_err res = MP_OKAY; in ec_GF2m_233_mod() 159 mp_err res = MP_OKAY; in ec_GF2m_233_sqr() 212 mp_err res = MP_OKAY; in ec_GF2m_233_mul() 308 return MP_OKAY; in ec_group_set_gf2m233()
|
H A D | ecp_jac.c | 69 mp_err res = MP_OKAY; in ec_GFp_pt_aff2jac() 93 mp_err res = MP_OKAY; in ec_GFp_pt_jac2aff() 142 return MP_OKAY; in ec_GFp_pt_set_inf_jac() 157 mp_err res = MP_OKAY; in ec_GFp_pt_add_jac_aff() 245 mp_err res = MP_OKAY; in ec_GFp_pt_dbl_jac() 338 mp_err res = MP_OKAY; in ec_GFp_pt_mul_jac() 420 mp_err res = MP_OKAY; in ec_GFp_pts_mul_jac()
|
H A D | ec.c | 97 mp_err err = MP_OKAY; in ec_points_mul() 253 mp_err err = MP_OKAY; in ec_NewKey() 411 if (err < MP_OKAY) { in ec_GenerateRandomPrivateKey() 473 mp_err err = MP_OKAY; in EC_ValidatePublicKey() 526 err = MP_OKAY; /* don't change the error code */ in EC_ValidatePublicKey() 567 mp_err err = MP_OKAY; in ECDH_Derive() 639 mp_err err = MP_OKAY; in ECDSA_SignDigestWithSeed() 799 err = MP_OKAY; in ECDSA_SignDigestWithSeed() 876 mp_err err = MP_OKAY; in ECDSA_VerifyDigest()
|
H A D | ecl_mult.c | 63 mp_err res = MP_OKAY; in ECPoint_mul() 118 mp_err res = MP_OKAY; in ec_pts_mul_basic() 173 mp_err res = MP_OKAY; in ec_pts_mul_simul_w2() 322 mp_err res = MP_OKAY; in ECPoints_mul()
|
H A D | ecp_256.c | 61 mp_err res = MP_OKAY; in ec_GFp_nistp256_mod() 79 if (a == r) return MP_OKAY; in ec_GFp_nistp256_mod() 405 mp_err res = MP_OKAY; in ec_GFp_nistp256_sqr() 420 mp_err res = MP_OKAY; in ec_GFp_nistp256_mul() 438 return MP_OKAY; in ec_group_set_gfp256()
|
H A D | ec_naf.c | 73 mp_err res = MP_OKAY; in ec_compute_wNAF()
|
H A D | ecp_jm.c | 68 mp_err res = MP_OKAY; in ec_GFp_pt_dbl_jm() 139 mp_err res = MP_OKAY; in ec_GFp_pt_add_jm_aff() 227 mp_err res = MP_OKAY; in ec_GFp_pt_mul_jm_wNAF()
|