Home | History | Annotate | Download | only in ec

Lines Matching refs:ctx

59 int EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx)
66 if (ctx == NULL)
68 ctx = new_ctx = BN_CTX_new();
69 if (ctx == NULL)
75 BN_CTX_start(ctx);
76 if ((order = BN_CTX_get(ctx)) == NULL) goto err;
79 if (!EC_GROUP_check_discriminant(group, ctx))
91 if (!EC_POINT_is_on_curve(group, group->generator, ctx))
99 if (!EC_GROUP_get_order(group, order, ctx)) goto err;
106 if (!EC_POINT_mul(group, point, order, NULL, NULL, ctx)) goto err;
116 if (ctx != NULL)
117 BN_CTX_end(ctx);