summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
-rw-r--r--src/lib/libcrypto/ec/ec_local.h41
1 files changed, 1 insertions, 40 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index 56402a2b04..e5189361e0 100644
--- a/src/lib/libcrypto/ec/ec_local.h
+++ b/src/lib/libcrypto/ec/ec_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_local.h,v 1.36 2024/11/01 05:10:40 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.37 2024/11/12 10:53:22 tb Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -252,45 +252,6 @@ struct ec_point_st {
252int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, 252int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
253 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *); 253 size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *);
254 254
255/* method functions in ecp_smpl.c */
256int ec_GFp_simple_group_init(EC_GROUP *);
257void ec_GFp_simple_group_finish(EC_GROUP *);
258int ec_GFp_simple_group_copy(EC_GROUP *, const EC_GROUP *);
259int ec_GFp_simple_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
260int ec_GFp_simple_group_get_curve(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *);
261int ec_GFp_simple_group_get_degree(const EC_GROUP *);
262int ec_GFp_simple_group_check_discriminant(const EC_GROUP *, BN_CTX *);
263int ec_GFp_simple_point_init(EC_POINT *);
264void ec_GFp_simple_point_finish(EC_POINT *);
265int ec_GFp_simple_point_copy(EC_POINT *, const EC_POINT *);
266int ec_GFp_simple_point_set_to_infinity(const EC_GROUP *, EC_POINT *);
267int ec_GFp_simple_set_Jprojective_coordinates(const EC_GROUP *, EC_POINT *,
268 const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *);
269int ec_GFp_simple_get_Jprojective_coordinates(const EC_GROUP *,
270 const EC_POINT *, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *);
271int ec_GFp_simple_point_set_affine_coordinates(const EC_GROUP *, EC_POINT *,
272 const BIGNUM *x, const BIGNUM *y, BN_CTX *);
273int ec_GFp_simple_point_get_affine_coordinates(const EC_GROUP *, const EC_POINT *,
274 BIGNUM *x, BIGNUM *y, BN_CTX *);
275int ec_GFp_simple_set_compressed_coordinates(const EC_GROUP *, EC_POINT *,
276 const BIGNUM *x, int y_bit, BN_CTX *);
277int ec_GFp_simple_add(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
278int ec_GFp_simple_dbl(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *);
279int ec_GFp_simple_invert(const EC_GROUP *, EC_POINT *, BN_CTX *);
280int ec_GFp_simple_is_at_infinity(const EC_GROUP *, const EC_POINT *);
281int ec_GFp_simple_is_on_curve(const EC_GROUP *, const EC_POINT *, BN_CTX *);
282int ec_GFp_simple_cmp(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b, BN_CTX *);
283int ec_GFp_simple_make_affine(const EC_GROUP *, EC_POINT *, BN_CTX *);
284int ec_GFp_simple_points_make_affine(const EC_GROUP *, size_t num, EC_POINT *[], BN_CTX *);
285int ec_GFp_simple_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *);
286int ec_GFp_simple_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *);
287int ec_GFp_simple_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx);
288int ec_GFp_simple_mul_generator_ct(const EC_GROUP *, EC_POINT *r, const BIGNUM *scalar, BN_CTX *);
289int ec_GFp_simple_mul_single_ct(const EC_GROUP *, EC_POINT *r, const BIGNUM *scalar,
290 const EC_POINT *point, BN_CTX *);
291int ec_GFp_simple_mul_double_nonct(const EC_GROUP *, EC_POINT *r, const BIGNUM *g_scalar,
292 const BIGNUM *p_scalar, const EC_POINT *point, BN_CTX *);
293
294int ec_group_simple_order_bits(const EC_GROUP *group); 255int ec_group_simple_order_bits(const EC_GROUP *group);
295int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); 256int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx);
296 257