Lines Matching defs:ctx

141  * input parameters `group`, `r`, `scalar` and `ctx` are not NULL.
147 BN_CTX *ctx)
170 BN_CTX_start(ctx);
194 cardinality = BN_CTX_get(ctx);
195 lambda = BN_CTX_get(ctx);
196 k = BN_CTX_get(ctx);
202 if (!BN_mul(cardinality, group->order, group->cofactor, ctx)) {
233 if (!BN_nnmod(k, k, cardinality, ctx)) {
271 || !group->meth->make_affine(group, p, ctx))) {
277 if (!ec_point_ladder_pre(group, r, s, p, ctx)) {
357 if (!ec_point_ladder_step(group, r, s, p, ctx)) {
372 if (!ec_point_ladder_post(group, r, s, p, ctx)) {
382 BN_CTX_end(ctx);
412 const BIGNUM *scalars[], BN_CTX *ctx)
453 return ossl_ec_scalar_mul_ladder(group, r, scalar, NULL, ctx);
464 ctx);
479 && (EC_POINT_cmp(group, generator, pre_comp->points[0], ctx) ==
706 if (!EC_POINT_dbl(group, tmp, val_sub[i][0], ctx))
710 (group, val_sub[i][j], val_sub[i][j - 1], tmp, ctx))
717 || !group->meth->points_make_affine(group, num_val, val, ctx))
724 if (!EC_POINT_dbl(group, r, r, ctx))
741 if (!EC_POINT_invert(group, r, ctx))
761 if (!ossl_ec_point_blind_coordinates(group, r, ctx)) {
769 (group, r, r, val_sub[i][digit >> 1], ctx))
782 if (!EC_POINT_invert(group, r, ctx))
830 int ossl_ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
856 if (ctx == NULL)
857 ctx = new_ctx = BN_CTX_new();
859 if (ctx == NULL)
862 BN_CTX_start(ctx);
923 if (!EC_POINT_dbl(group, tmp_point, base, ctx))
933 if (!EC_POINT_add(group, *var, tmp_point, *(var - 1), ctx))
948 if (!EC_POINT_dbl(group, base, tmp_point, ctx))
951 if (!EC_POINT_dbl(group, base, base, ctx))
958 || !group->meth->points_make_affine(group, num, points, ctx))
974 BN_CTX_end(ctx);