Lines Matching refs:m_ctx
24 BN_MONT_CTX *m_ctx; member
26 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
111 if (b->m_ctx != NULL) { in BN_BLINDING_update()
112 if (!bn_mul_mont_fixed_top(b->Ai, b->Ai, b->Ai, b->m_ctx, ctx) in BN_BLINDING_update()
113 || !bn_mul_mont_fixed_top(b->A, b->A, b->A, b->m_ctx, ctx)) in BN_BLINDING_update()
154 if (b->m_ctx != NULL) in BN_BLINDING_convert_ex()
155 ret = BN_mod_mul_montgomery(n, n, b->A, b->m_ctx, ctx); in BN_BLINDING_convert_ex()
179 if (b->m_ctx != NULL) { in BN_BLINDING_invert_ex()
194 ret = BN_mod_mul_montgomery(n, n, r, b->m_ctx, ctx); in BN_BLINDING_invert_ex()
240 BN_MONT_CTX *m_ctx), in BN_BLINDING_create_param() argument
241 BN_MONT_CTX *m_ctx) in BN_BLINDING_create_param()
268 if (m_ctx != NULL) in BN_BLINDING_create_param()
269 ret->m_ctx = m_ctx; in BN_BLINDING_create_param()
290 if (ret->bn_mod_exp != NULL && ret->m_ctx != NULL) { in BN_BLINDING_create_param()
291 if (!ret->bn_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx, ret->m_ctx)) in BN_BLINDING_create_param()
298 if (ret->m_ctx != NULL) { in BN_BLINDING_create_param()
299 if (!bn_to_mont_fixed_top(ret->Ai, ret->Ai, ret->m_ctx, ctx) in BN_BLINDING_create_param()
300 || !bn_to_mont_fixed_top(ret->A, ret->A, ret->m_ctx, ctx)) in BN_BLINDING_create_param()