Searched refs:mp_mont_modulus (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/common/crypto/ecc/ |
H A D | ecp_mont.c | 66 mp_mont_modulus *mmm; in GFMethod_consGFp_mont() 73 mmm = (mp_mont_modulus *) kmem_alloc(sizeof(mp_mont_modulus), in GFMethod_consGFp_mont() 76 mmm = (mp_mont_modulus *) malloc(sizeof(mp_mont_modulus)); in GFMethod_consGFp_mont() 120 MP_CHECKOK(s_mp_redc(r, (mp_mont_modulus *) meth->extra1)); in ec_GFp_mul_mont() 129 (a, b, &s, (mp_mont_modulus *) meth->extra1)); in ec_GFp_mul_mont() 133 return s_mp_mul_mont(a, b, r, (mp_mont_modulus *) meth->extra1); in ec_GFp_mul_mont() 172 mp_mont_modulus *mmm; in ec_GFp_enc_mont() 175 mmm = (mp_mont_modulus *) meth->extra1; in ec_GFp_enc_mont() 191 MP_CHECKOK(s_mp_redc(r, (mp_mont_modulus *) meth->extra1)); in ec_GFp_dec_mont() 203 kmem_free(meth->extra1, sizeof(mp_mont_modulus)); in ec_GFp_extra_free_mont()
|
/illumos-gate/usr/src/common/mpi/ |
H A D | mpmontg.c | 97 mp_err s_mp_redc(mp_int *T, mp_mont_modulus *mmm) in s_mp_redc() 131 mp_mont_modulus *mmm) in s_mp_mul_mont()
|
H A D | mpi-priv.h | 309 } mp_mont_modulus; typedef 312 mp_mont_modulus *mmm); 313 mp_err s_mp_redc(mp_int *T, mp_mont_modulus *mmm);
|