Lines Matching refs:ctx
130 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
136 if (ctx == NULL)
137 if ((ctx = new_ctx = BN_CTX_new()) == NULL) return 0;
139 BN_CTX_start(ctx);
140 if ((tmp_bn = BN_CTX_get(ctx)) == NULL) goto err;
158 ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
161 BN_CTX_end(ctx);
169 const BIGNUM *b, BN_CTX *ctx)
179 if (!ctx)
180 if ((ctx_new = ctx = BN_CTX_new()) == NULL) goto err;
182 if (!BN_mul(r, a, b, ctx)) goto err;
183 if (!group->field_mod_func(r, r, &group->field, ctx))
195 BN_CTX *ctx)
205 if (!ctx)
206 if ((ctx_new = ctx = BN_CTX_new()) == NULL) goto err;
208 if (!BN_sqr(r, a, ctx)) goto err;
209 if (!group->field_mod_func(r, r, &group->field, ctx))