Lines Matching refs:mod
123 BIGNUM *mod; /* just a reference */ member
137 BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod) in BN_BLINDING_new() argument
141 bn_check_top(mod); in BN_BLINDING_new()
159 if ((ret->mod = BN_dup(mod)) == NULL) goto err; in BN_BLINDING_new()
160 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) in BN_BLINDING_new()
161 BN_set_flags(ret->mod, BN_FLG_CONSTTIME); in BN_BLINDING_new()
179 if (r->mod != NULL) BN_free(r->mod); in BN_BLINDING_free()
202 if (!BN_mod_mul(b->A,b->A,b->A,b->mod,ctx)) goto err; in BN_BLINDING_update()
203 if (!BN_mod_mul(b->Ai,b->Ai,b->Ai,b->mod,ctx)) goto err; in BN_BLINDING_update()
235 if (!BN_mod_mul(n,n,b->A,b->mod,ctx)) ret=0; in BN_BLINDING_convert_ex()
257 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex()
259 ret = BN_mod_mul(n, n, b->Ai, b->mod, ctx); in BN_BLINDING_invert_ex()
334 if (!BN_rand_range(ret->A, ret->mod)) goto err; in BN_BLINDING_create_param()
335 if (BN_mod_inverse(ret->Ai, ret->A, ret->mod, ctx) == NULL) in BN_BLINDING_create_param()
358 if (!ret->bn_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx, ret->m_ctx)) in BN_BLINDING_create_param()
363 if (!BN_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx)) in BN_BLINDING_create_param()