Lines Matching refs:ctx
71 const BIGNUM *m, BN_CTX *ctx,
108 BN_CTX *ctx;
112 ctx = BN_CTX_new();
113 if (ctx == NULL) goto err;
136 CRYPTO_LOCK_DH, dh->p, ctx);
160 if (!dh->meth->bn_mod_exp(dh, pub_key, dh->g, prk, dh->p, ctx, mont)) goto err;
172 BN_CTX_free(ctx);
178 BN_CTX *ctx=NULL;
190 ctx = BN_CTX_new();
191 if (ctx == NULL) goto err;
192 BN_CTX_start(ctx);
193 tmp = BN_CTX_get(ctx);
204 CRYPTO_LOCK_DH, dh->p, ctx);
220 if (!dh->meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key,dh->p,ctx,mont))
228 if (ctx != NULL)
230 BN_CTX_end(ctx);
231 BN_CTX_free(ctx);
238 const BIGNUM *m, BN_CTX *ctx,
247 return BN_mod_exp_mont_word(r,A,p,m,ctx,m_ctx);
250 return BN_mod_exp_mont(r,a,p,m,ctx,m_ctx);