Lines Matching refs:ctx

25                                                   BN_CTX *ctx)
31 if (ctx == NULL) {
32 ctx = new_ctx = BN_CTX_new_ex(group->libctx);
33 if (ctx == NULL)
39 BN_CTX_start(ctx);
40 tmp1 = BN_CTX_get(ctx);
41 tmp2 = BN_CTX_get(ctx);
42 x = BN_CTX_get(ctx);
43 y = BN_CTX_get(ctx);
54 if (!BN_nnmod(x, x_, group->field, ctx))
58 if (!group->meth->field_sqr(group, tmp2, x_, ctx))
60 if (!group->meth->field_mul(group, tmp1, tmp2, x_, ctx))
63 if (!BN_mod_sqr(tmp2, x_, group->field, ctx))
65 if (!BN_mod_mul(tmp1, tmp2, x_, group->field, ctx))
79 if (!group->meth->field_decode(group, tmp2, group->a, ctx))
81 if (!BN_mod_mul(tmp2, tmp2, x, group->field, ctx))
85 if (!group->meth->field_mul(group, tmp2, group->a, x, ctx))
95 if (!group->meth->field_decode(group, tmp2, group->b, ctx))
105 if (!BN_mod_sqrt(y, tmp1, group->field, ctx)) {
127 kron = BN_kronecker(x, group->field, ctx);
148 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
154 BN_CTX_end(ctx);
161 unsigned char *buf, size_t len, BN_CTX *ctx)
201 if (ctx == NULL) {
202 ctx = new_ctx = BN_CTX_new_ex(group->libctx);
203 if (ctx == NULL)
207 BN_CTX_start(ctx);
209 x = BN_CTX_get(ctx);
210 y = BN_CTX_get(ctx);
214 if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx))
263 BN_CTX_end(ctx);
269 BN_CTX_end(ctx);
276 BN_CTX *ctx)
322 if (ctx == NULL) {
323 ctx = new_ctx = BN_CTX_new_ex(group->libctx);
324 if (ctx == NULL)
328 BN_CTX_start(ctx);
329 x = BN_CTX_get(ctx);
330 y = BN_CTX_get(ctx);
342 if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx))
362 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
369 BN_CTX_end(ctx);