Lines Matching refs:tmod
281 BIGNUM tmod; in BN_MONT_CTX_set() local
284 bn_init(&tmod); in BN_MONT_CTX_set()
285 tmod.d = buf; in BN_MONT_CTX_set()
286 tmod.dmax = 2; in BN_MONT_CTX_set()
287 tmod.neg = 0; in BN_MONT_CTX_set()
290 BN_set_flags(&tmod, BN_FLG_CONSTTIME); in BN_MONT_CTX_set()
306 tmod.top = 0; in BN_MONT_CTX_set()
308 tmod.top = 1; in BN_MONT_CTX_set()
310 tmod.top = 2; in BN_MONT_CTX_set()
312 if (BN_is_one(&tmod)) in BN_MONT_CTX_set()
314 else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL) in BN_MONT_CTX_set()
331 if (!BN_div(Ri, NULL, Ri, &tmod, ctx)) in BN_MONT_CTX_set()
345 tmod.top = buf[0] != 0 ? 1 : 0; in BN_MONT_CTX_set()
347 if (BN_is_one(&tmod)) in BN_MONT_CTX_set()
349 else if ((BN_mod_inverse(Ri, R, &tmod, ctx)) == NULL) in BN_MONT_CTX_set()
361 if (!BN_div(Ri, NULL, Ri, &tmod, ctx)) in BN_MONT_CTX_set()