Lines Matching refs:mod
261 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) in BN_MONT_CTX_set() argument
266 if (BN_is_zero(mod)) in BN_MONT_CTX_set()
273 if (!BN_copy(&(mont->N), mod)) in BN_MONT_CTX_set()
275 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) in BN_MONT_CTX_set()
289 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) in BN_MONT_CTX_set()
292 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2; in BN_MONT_CTX_set()
307 if ((buf[0] = mod->d[0])) in BN_MONT_CTX_set()
309 if ((buf[1] = mod->top > 1 ? mod->d[1] : 0)) in BN_MONT_CTX_set()
343 buf[0] = mod->d[0]; /* tmod = N mod word size */ in BN_MONT_CTX_set()
427 const BIGNUM *mod, BN_CTX *ctx) in BN_MONT_CTX_set_locked() argument
449 if (!BN_MONT_CTX_set(ret, mod, ctx)) { in BN_MONT_CTX_set_locked()