Lines Matching refs:ctx
345 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx)
390 if (ctx == NULL)
392 ctx = new_ctx = BN_CTX_new();
393 if (ctx == NULL)
410 if (pre_comp && pre_comp->numblocks && (EC_POINT_cmp(group, generator, pre_comp->points[0], ctx) == 0))
638 if (!EC_POINT_dbl(group, tmp, val_sub[i][0], ctx)) goto err;
641 if (!EC_POINT_add(group, val_sub[i][j], val_sub[i][j - 1], tmp, ctx)) goto err;
647 if (!EC_POINTs_make_affine(group, num_val, val, ctx))
657 if (!EC_POINT_dbl(group, r, r, ctx)) goto err;
678 if (!EC_POINT_invert(group, r, ctx)) goto err;
692 if (!EC_POINT_add(group, r, r, val_sub[i][digit >> 1], ctx)) goto err;
706 if (!EC_POINT_invert(group, r, ctx)) goto err;
763 int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
787 if (ctx == NULL)
789 ctx = new_ctx = BN_CTX_new();
790 if (ctx == NULL)
794 BN_CTX_start(ctx);
795 order = BN_CTX_get(ctx);
798 if (!EC_GROUP_get_order(group, order, ctx)) goto err;
858 if (!EC_POINT_dbl(group, tmp_point, base, ctx))
867 if (!EC_POINT_add(group, *var, tmp_point, *(var - 1), ctx))
882 if (!EC_POINT_dbl(group, base, tmp_point, ctx))
886 if (!EC_POINT_dbl(group,base,base,ctx))
892 if (!EC_POINTs_make_affine(group, num, points, ctx))
910 if (ctx != NULL)
911 BN_CTX_end(ctx);