Home | History | Annotate | Download | only in bn

Lines Matching defs:mont

128 	BN_MONT_CTX *mont=NULL;
159 mont=in_mont;
162 if ((mont=BN_MONT_CTX_new()) == NULL) goto err;
163 if (!BN_MONT_CTX_set(mont,m,ctx)) goto err;
187 if (!BN_to_montgomery(val1[0],a_mod_m,mont,ctx)) goto err;
190 if (!BN_mod_mul_montgomery(d,val1[0],val1[0],mont,ctx)) goto err;
197 d,mont,ctx))
220 if (!BN_to_montgomery(val2[0],a_mod_m,mont,ctx)) goto err;
223 if (!BN_mod_mul_montgomery(d,val2[0],val2[0],mont,ctx)) goto err;
230 d,mont,ctx))
243 if (!BN_to_montgomery(r,BN_value_one(),mont,ctx)) goto err;
248 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx))
289 if (!BN_mod_mul_montgomery(r,r,val1[wvalue1>>1],mont,ctx))
298 if (!BN_mod_mul_montgomery(r,r,val2[wvalue2>>1],mont,ctx))
304 if (!BN_from_montgomery(rr,r,mont,ctx))
308 if ((in_mont == NULL) && (mont != NULL)) BN_MONT_CTX_free(mont);