/illumos-gate/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 | 89 if((res = mp_copy(a, b)) != MP_OKAY) in mpl_rsh() 94 return MP_OKAY; in mpl_rsh() 108 if((res = mp_copy(a, b)) != MP_OKAY) in mpl_lsh() 135 if (rv != MP_OKAY) in mpl_set_bit() 146 return MP_OKAY; in mpl_set_bit()
|
H A D | mpprime.c | 102 return MP_OKAY; in mpp_random() 116 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 | 213 mp_err res = MP_OKAY; in mp_badd() 291 mp_err res = MP_OKAY; in mp_bmul() 357 mp_err res = MP_OKAY; in mp_bmod() 438 if ((res = mp_bmul(a, b, r) ) != MP_OKAY) in mp_bmulmod() 498 mp_err res = MP_OKAY; in mp_bdivmod() 599 mp_err res = MP_OKAY; in mp_barr2poly()
|
H A D | mpi.h | 119 #define MP_OKAY 0 /* no error, all is well */ macro 359 #define MP_CHECKOK(x) if (MP_OKAY > (res = (x))) goto CLEANUP 360 #define MP_CHECKERR(x) if (MP_OKAY > (res = (x))) goto CLEANUP
|
/illumos-gate/usr/src/common/crypto/ecc/ |
H A D | ecp_521.c | 61 mp_err res = MP_OKAY; in ec_GFp_nistp521_mod() 76 if (a==r) return MP_OKAY; in ec_GFp_nistp521_mod() 118 mp_err res = MP_OKAY; in ec_GFp_nistp521_sqr() 133 mp_err res = MP_OKAY; in ec_GFp_nistp521_mul() 147 mp_err res = MP_OKAY; in ec_GFp_nistp521_div() 177 return MP_OKAY; in ec_group_set_gfp521()
|
H A D | ecl.c | 60 mp_err res = MP_OKAY; in ECGroup_new() 90 if (res != MP_OKAY) { in ECGroup_new() 103 mp_err res = MP_OKAY; in ECGroup_consGFp() 130 if (res != MP_OKAY) { in ECGroup_consGFp() 144 mp_err res = MP_OKAY; in ECGroup_consGFp_mont() 173 if (res != MP_OKAY) { in ECGroup_consGFp_mont() 189 mp_err res = MP_OKAY; in ECGroup_consGF2m() 216 if (res != MP_OKAY) { in ECGroup_consGF2m() 233 mp_err res = MP_OKAY; in ecgroup_fromNameAndHex() 257 if (bits < MP_OKAY) { in ecgroup_fromNameAndHex() [all …]
|
H A D | ecp_mont.c | 63 mp_err res = MP_OKAY; in GFMethod_consGFp_mont() 99 if (res != MP_OKAY) { in GFMethod_consGFp_mont() 113 mp_err res = MP_OKAY; in ec_GFp_mul_mont() 152 mp_err res = MP_OKAY; in ec_GFp_div_mont() 173 mp_err res = MP_OKAY; in ec_GFp_enc_mont() 186 mp_err res = MP_OKAY; in ec_GFp_dec_mont()
|
H A D | ecl_gf.c | 58 mp_err res = MP_OKAY; in GFMethod_new() 73 if (res != MP_OKAY) { in GFMethod_new() 85 mp_err res = MP_OKAY; in GFMethod_consGFp() 130 if (res != MP_OKAY) { in GFMethod_consGFp() 144 mp_err res = MP_OKAY; in GFMethod_consGF2m() 186 if (res != MP_OKAY) { in GFMethod_consGF2m() 221 if ((res = mp_add(a, b, r)) != MP_OKAY) { in ec_GFp_add() 238 return MP_OKAY; in ec_GFp_neg() 248 mp_err res = MP_OKAY; in ec_GFp_sub() 273 mp_err res = MP_OKAY; in ec_GFp_add_3() [all …]
|
H A D | ecp_aff.c | 75 return MP_OKAY; in ec_GFp_pt_set_inf_aff() 87 mp_err res = MP_OKAY; in ec_GFp_pt_add_aff() 102 res = MP_OKAY; in ec_GFp_pt_add_aff() 109 res = MP_OKAY; in ec_GFp_pt_add_aff() 123 res = MP_OKAY; in ec_GFp_pt_add_aff() 173 mp_err res = MP_OKAY; in ec_GFp_pt_sub_aff() 206 mp_err res = MP_OKAY; in ec_GFp_pt_mul_aff() 227 res = MP_OKAY; in ec_GFp_pt_mul_aff()
|
H A D | ec2_aff.c | 71 return MP_OKAY; in ec_GF2m_pt_set_inf_aff() 81 mp_err res = MP_OKAY; in ec_GF2m_pt_add_aff() 94 res = MP_OKAY; in ec_GF2m_pt_add_aff() 101 res = MP_OKAY; in ec_GF2m_pt_add_aff() 125 res = MP_OKAY; in ec_GF2m_pt_add_aff() 163 mp_err res = MP_OKAY; in ec_GF2m_pt_sub_aff() 193 mp_err res = MP_OKAY; in ec_GF2m_pt_mul_aff() 214 res = MP_OKAY; in ec_GF2m_pt_mul_aff()
|
H A D | ecp_192.c | 61 mp_err res = MP_OKAY; in ec_GFp_nistp192_mod() 78 return MP_OKAY; in ec_GFp_nistp192_mod() 308 mp_err res = MP_OKAY; in ec_GFp_nistp192_add() 393 mp_err res = MP_OKAY; in ec_GFp_nistp192_sub() 475 mp_err res = MP_OKAY; in ec_GFp_nistp192_sqr() 490 mp_err res = MP_OKAY; in ec_GFp_nistp192_mul() 504 mp_err res = MP_OKAY; in ec_GFp_nistp192_div() 538 return MP_OKAY; in ec_group_set_gfp192()
|
H A D | ecp_224.c | 61 mp_err res = MP_OKAY; in ec_GFp_nistp224_mod() 78 if (a == r) return MP_OKAY; in ec_GFp_nistp224_mod() 329 mp_err res = MP_OKAY; in ec_GFp_nistp224_sqr() 344 mp_err res = MP_OKAY; in ec_GFp_nistp224_mul() 358 mp_err res = MP_OKAY; in ec_GFp_nistp224_div() 388 return MP_OKAY; in ec_group_set_gfp224()
|
H A D | ec2_mont.c | 62 mp_err res = MP_OKAY; in gf2m_Mdouble() 90 mp_err res = MP_OKAY; in gf2m_Madd() 122 mp_err res = MP_OKAY; in gf2m_Mxy() 181 if (res == MP_OKAY) { in gf2m_Mxy() 196 mp_err res = MP_OKAY; in ec_GF2m_pt_mul_mont()
|
H A D | ec2_163.c | 61 mp_err res = MP_OKAY; in ec_GF2m_163_mod() 133 mp_err res = MP_OKAY; in ec_GF2m_163_sqr() 183 mp_err res = MP_OKAY; in ec_GF2m_163_mul() 276 return MP_OKAY; in ec_group_set_gf2m163()
|
H A D | ec2_193.c | 61 mp_err res = MP_OKAY; in ec_GF2m_193_mod() 141 mp_err res = MP_OKAY; in ec_GF2m_193_sqr() 192 mp_err res = MP_OKAY; in ec_GF2m_193_mul() 295 return MP_OKAY; in ec_group_set_gf2m193()
|
H A D | ec2_233.c | 61 mp_err res = MP_OKAY; in ec_GF2m_233_mod() 157 mp_err res = MP_OKAY; in ec_GF2m_233_sqr() 210 mp_err res = MP_OKAY; in ec_GF2m_233_mul() 320 return MP_OKAY; in ec_group_set_gf2m233()
|
H A D | ecp_384.c | 59 mp_err res = MP_OKAY; in ec_GFp_nistp384_mod() 267 mp_err res = MP_OKAY; in ec_GFp_nistp384_sqr() 282 mp_err res = MP_OKAY; in ec_GFp_nistp384_mul() 300 return MP_OKAY; in ec_group_set_gfp384()
|
H A D | ecp_jac.c | 67 mp_err res = MP_OKAY; in ec_GFp_pt_aff2jac() 91 mp_err res = MP_OKAY; in ec_GFp_pt_jac2aff() 140 return MP_OKAY; in ec_GFp_pt_set_inf_jac() 155 mp_err res = MP_OKAY; in ec_GFp_pt_add_jac_aff() 243 mp_err res = MP_OKAY; in ec_GFp_pt_dbl_jac() 336 mp_err res = MP_OKAY; in ec_GFp_pt_mul_jac() 418 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 | 61 mp_err res = MP_OKAY; in ECPoint_mul() 116 mp_err res = MP_OKAY; in ec_pts_mul_basic() 171 mp_err res = MP_OKAY; in ec_pts_mul_simul_w2() 320 mp_err res = MP_OKAY; in ECPoints_mul()
|
H A D | ecp_256.c | 59 mp_err res = MP_OKAY; in ec_GFp_nistp256_mod() 77 if (a == r) return MP_OKAY; in ec_GFp_nistp256_mod() 413 mp_err res = MP_OKAY; in ec_GFp_nistp256_sqr() 428 mp_err res = MP_OKAY; in ec_GFp_nistp256_mul() 446 return MP_OKAY; in ec_group_set_gfp256()
|
H A D | ec_naf.c | 71 mp_err res = MP_OKAY; in ec_compute_wNAF()
|
H A D | ecp_test.c | 368 if (size < MP_OKAY) { in ectest_curve_GFp() 408 if (res != MP_OKAY) { in ectest_curve_GFp() 472 if (res != MP_OKAY) { in ecp_test()
|