diff options
| author | tb <> | 2024-11-12 10:53:22 +0000 |
|---|---|---|
| committer | tb <> | 2024-11-12 10:53:22 +0000 |
| commit | b3e4524c8e3edbf9d20ca74196ff1dec1489065a (patch) | |
| tree | 96f9afd477779eb0cea46bbb5071123645cf95af /src/lib/libcrypto/ec/ec_local.h | |
| parent | 1d83a62b342cb834d04c4e3875c970f799d5294d (diff) | |
| download | openbsd-b3e4524c8e3edbf9d20ca74196ff1dec1489065a.tar.gz openbsd-b3e4524c8e3edbf9d20ca74196ff1dec1489065a.tar.bz2 openbsd-b3e4524c8e3edbf9d20ca74196ff1dec1489065a.zip | |
Make ec_GFp_simple_* static
These functions are no longer shared between multiple files, so they can
be static in ecp_methods.c and the long list of prototypes can go away.
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_local.h | 41 |
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 { | |||
| 252 | int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, | 252 | int 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 */ | ||
| 256 | int ec_GFp_simple_group_init(EC_GROUP *); | ||
| 257 | void ec_GFp_simple_group_finish(EC_GROUP *); | ||
| 258 | int ec_GFp_simple_group_copy(EC_GROUP *, const EC_GROUP *); | ||
| 259 | int ec_GFp_simple_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *); | ||
| 260 | int ec_GFp_simple_group_get_curve(const EC_GROUP *, BIGNUM *p, BIGNUM *a, BIGNUM *b, BN_CTX *); | ||
| 261 | int ec_GFp_simple_group_get_degree(const EC_GROUP *); | ||
| 262 | int ec_GFp_simple_group_check_discriminant(const EC_GROUP *, BN_CTX *); | ||
| 263 | int ec_GFp_simple_point_init(EC_POINT *); | ||
| 264 | void ec_GFp_simple_point_finish(EC_POINT *); | ||
| 265 | int ec_GFp_simple_point_copy(EC_POINT *, const EC_POINT *); | ||
| 266 | int ec_GFp_simple_point_set_to_infinity(const EC_GROUP *, EC_POINT *); | ||
| 267 | int ec_GFp_simple_set_Jprojective_coordinates(const EC_GROUP *, EC_POINT *, | ||
| 268 | const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *); | ||
| 269 | int ec_GFp_simple_get_Jprojective_coordinates(const EC_GROUP *, | ||
| 270 | const EC_POINT *, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *); | ||
| 271 | int ec_GFp_simple_point_set_affine_coordinates(const EC_GROUP *, EC_POINT *, | ||
| 272 | const BIGNUM *x, const BIGNUM *y, BN_CTX *); | ||
| 273 | int ec_GFp_simple_point_get_affine_coordinates(const EC_GROUP *, const EC_POINT *, | ||
| 274 | BIGNUM *x, BIGNUM *y, BN_CTX *); | ||
| 275 | int ec_GFp_simple_set_compressed_coordinates(const EC_GROUP *, EC_POINT *, | ||
| 276 | const BIGNUM *x, int y_bit, BN_CTX *); | ||
| 277 | int ec_GFp_simple_add(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, const EC_POINT *b, BN_CTX *); | ||
| 278 | int ec_GFp_simple_dbl(const EC_GROUP *, EC_POINT *r, const EC_POINT *a, BN_CTX *); | ||
| 279 | int ec_GFp_simple_invert(const EC_GROUP *, EC_POINT *, BN_CTX *); | ||
| 280 | int ec_GFp_simple_is_at_infinity(const EC_GROUP *, const EC_POINT *); | ||
| 281 | int ec_GFp_simple_is_on_curve(const EC_GROUP *, const EC_POINT *, BN_CTX *); | ||
| 282 | int ec_GFp_simple_cmp(const EC_GROUP *, const EC_POINT *a, const EC_POINT *b, BN_CTX *); | ||
| 283 | int ec_GFp_simple_make_affine(const EC_GROUP *, EC_POINT *, BN_CTX *); | ||
| 284 | int ec_GFp_simple_points_make_affine(const EC_GROUP *, size_t num, EC_POINT *[], BN_CTX *); | ||
| 285 | int ec_GFp_simple_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *); | ||
| 286 | int ec_GFp_simple_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *); | ||
| 287 | int ec_GFp_simple_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); | ||
| 288 | int ec_GFp_simple_mul_generator_ct(const EC_GROUP *, EC_POINT *r, const BIGNUM *scalar, BN_CTX *); | ||
| 289 | int ec_GFp_simple_mul_single_ct(const EC_GROUP *, EC_POINT *r, const BIGNUM *scalar, | ||
| 290 | const EC_POINT *point, BN_CTX *); | ||
| 291 | int 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 | |||
| 294 | int ec_group_simple_order_bits(const EC_GROUP *group); | 255 | int ec_group_simple_order_bits(const EC_GROUP *group); |
| 295 | int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); | 256 | int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); |
| 296 | 257 | ||
