Home
last modified time | relevance | path

Searched refs:mp_mont_modulus (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/common/crypto/ecc/
H A Decp_mont.c66 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 Dmpmontg.c97 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 Dmpi-priv.h309 } mp_mont_modulus; typedef
312 mp_mont_modulus *mmm);
313 mp_err s_mp_redc(mp_int *T, mp_mont_modulus *mmm);