Lines Matching refs:ctx
42 BN_CTX *ctx)
49 if (ctx == NULL) {
50 ctx = new_ctx = BN_CTX_new();
51 if (ctx == NULL)
58 BN_CTX_start(ctx);
59 tmp = BN_CTX_get(ctx);
60 x = BN_CTX_get(ctx);
61 y = BN_CTX_get(ctx);
62 z = BN_CTX_get(ctx);
69 if (!BN_GF2m_mod_sqrt_arr(y, group->b, group->poly, ctx))
72 if (!group->meth->field_sqr(group, tmp, x, ctx))
74 if (!group->meth->field_div(group, tmp, group->b, tmp, ctx))
81 if (!BN_GF2m_mod_solve_quad_arr(z, tmp, group->poly, ctx)) {
99 if (!group->meth->field_mul(group, y, x, z, ctx))
107 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
113 BN_CTX_end(ctx);
128 unsigned char *buf, size_t len, BN_CTX *ctx)
171 if (ctx == NULL) {
172 ctx = new_ctx = BN_CTX_new();
173 if (ctx == NULL)
178 BN_CTX_start(ctx);
180 x = BN_CTX_get(ctx);
181 y = BN_CTX_get(ctx);
182 yxi = BN_CTX_get(ctx);
186 if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx))
191 if (!group->meth->field_div(group, yxi, y, x, ctx))
237 BN_CTX_end(ctx);
245 BN_CTX_end(ctx);
258 BN_CTX *ctx)
321 if (ctx == NULL) {
322 ctx = new_ctx = BN_CTX_new();
323 if (ctx == NULL)
328 BN_CTX_start(ctx);
329 x = BN_CTX_get(ctx);
330 y = BN_CTX_get(ctx);
331 yxi = BN_CTX_get(ctx);
343 if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx))
364 if (!group->meth->field_div(group, yxi, y, x, ctx))
377 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx))
384 BN_CTX_end(ctx);