Lines Matching defs:ctx
73 BN_CTX *ctx;
82 ctx = BN_CTX_new();
83 if (ctx == NULL)
98 CRYPTO_LOCK_DH, dh->p, ctx);
115 if (!dh->meth->bn_mod_exp(dh, pub_key, dh->g, priv_key, dh->p, ctx,
130 BN_CTX_free(ctx);
138 BN_CTX *ctx = NULL;
149 ctx = BN_CTX_new();
150 if (ctx == NULL)
152 BN_CTX_start(ctx);
153 if ((tmp = BN_CTX_get(ctx)) == NULL)
163 CRYPTO_LOCK_DH, dh->p, ctx);
176 if (!dh->meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key, dh->p, ctx,
184 if (ctx != NULL) {
185 BN_CTX_end(ctx);
186 BN_CTX_free(ctx);
193 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx)
195 return BN_mod_exp_mont_ct(r, a, p, m, ctx, m_ctx);