Lines Matching refs:ctx
1908 BN_CTX *ctx)
1915 if (ctx == NULL)
1916 ctx = new_ctx = BN_CTX_new();
1918 if (ctx == NULL)
1921 BN_CTX_start(ctx);
1922 curve_p = BN_CTX_get(ctx);
1923 curve_a = BN_CTX_get(ctx);
1924 curve_b = BN_CTX_get(ctx);
1935 ret = ossl_ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
1937 BN_CTX_end(ctx);
1951 BN_CTX *ctx)
2026 const BIGNUM *scalars[], BN_CTX *ctx)
2048 BN_CTX_start(ctx);
2049 x = BN_CTX_get(ctx);
2050 y = BN_CTX_get(ctx);
2051 z = BN_CTX_get(ctx);
2052 tmp_scalar = BN_CTX_get(ctx);
2076 x, y, z, ctx))
2078 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
2134 if (!BN_nnmod(tmp_scalar, p_scalar, group->order, ctx)) {
2188 if (!BN_nnmod(tmp_scalar, scalar, group->order, ctx)) {
2217 ctx);
2220 BN_CTX_end(ctx);
2228 int ossl_ec_GFp_nistp256_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
2245 if (ctx == NULL)
2246 ctx = new_ctx = BN_CTX_new();
2248 if (ctx == NULL)
2251 BN_CTX_start(ctx);
2252 x = BN_CTX_get(ctx);
2253 y = BN_CTX_get(ctx);
2264 if (!EC_POINT_set_affine_coordinates(group, generator, x, y, ctx))
2271 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx)) {
2366 BN_CTX_end(ctx);