Lines Matching refs:mod
20 BIGNUM *mod; /* just a reference */ member
30 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod) in BN_BLINDING_new() argument
34 bn_check_top(mod); in BN_BLINDING_new()
59 if ((ret->mod = BN_dup(mod)) == NULL) in BN_BLINDING_new()
62 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) in BN_BLINDING_new()
63 BN_set_flags(ret->mod, BN_FLG_CONSTTIME); in BN_BLINDING_new()
86 BN_free(r->mod); in BN_BLINDING_free()
114 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx) in BN_BLINDING_update()
115 || !BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) in BN_BLINDING_update()
155 ret = BN_mod_mul(n, n, b->A, b->mod, ctx); in BN_BLINDING_convert_ex()
195 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex()
272 if (!BN_priv_rand_range_ex(ret->A, ret->mod, 0, ctx)) in BN_BLINDING_create_param()
274 if (int_bn_mod_inverse(ret->Ai, ret->A, ret->mod, ctx, &rv)) in BN_BLINDING_create_param()
290 if (!ret->bn_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx, ret->m_ctx)) in BN_BLINDING_create_param()
293 if (!BN_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx)) in BN_BLINDING_create_param()