diff options
| author | jsing <> | 2023-03-07 05:41:18 +0000 |
|---|---|---|
| committer | jsing <> | 2023-03-07 05:41:18 +0000 |
| commit | 642e7834e85d3453952cd857c93a9e1b2fba17e4 (patch) | |
| tree | f63e78480eeac7bbf2d266e0c589b56072ae03fc /src/lib/libcrypto/ec/ec_local.h | |
| parent | 107bdaad3282f883e5e726dc19b70e0d2b0c9d75 (diff) | |
| download | openbsd-642e7834e85d3453952cd857c93a9e1b2fba17e4.tar.gz openbsd-642e7834e85d3453952cd857c93a9e1b2fba17e4.tar.bz2 openbsd-642e7834e85d3453952cd857c93a9e1b2fba17e4.zip | |
Use static functions for EC_GFp_mont_method() implementation.
Move the EC_METHOD to the bottom of the file, which allows all
implementation functions to become static. Remove unneeded prototypes.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_local.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 7ddf6240d2..1124108d57 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.6 2023/03/05 16:31:01 jsing Exp $ */ | 1 | /* $OpenBSD: ec_local.h,v 1.7 2023/03/07 05:41:18 jsing 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 | */ |
| @@ -369,19 +369,6 @@ int ec_GFp_simple_mul_single_ct(const EC_GROUP *, EC_POINT *r, const BIGNUM *sca | |||
| 369 | int ec_GFp_simple_mul_double_nonct(const EC_GROUP *, EC_POINT *r, const BIGNUM *g_scalar, | 369 | int ec_GFp_simple_mul_double_nonct(const EC_GROUP *, EC_POINT *r, const BIGNUM *g_scalar, |
| 370 | const BIGNUM *p_scalar, const EC_POINT *point, BN_CTX *); | 370 | const BIGNUM *p_scalar, const EC_POINT *point, BN_CTX *); |
| 371 | 371 | ||
| 372 | |||
| 373 | /* method functions in ecp_mont.c */ | ||
| 374 | int ec_GFp_mont_group_init(EC_GROUP *); | ||
| 375 | int ec_GFp_mont_group_set_curve(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *); | ||
| 376 | void ec_GFp_mont_group_finish(EC_GROUP *); | ||
| 377 | void ec_GFp_mont_group_clear_finish(EC_GROUP *); | ||
| 378 | int ec_GFp_mont_group_copy(EC_GROUP *, const EC_GROUP *); | ||
| 379 | int ec_GFp_mont_field_mul(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *); | ||
| 380 | int ec_GFp_mont_field_sqr(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *); | ||
| 381 | int ec_GFp_mont_field_encode(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *); | ||
| 382 | int ec_GFp_mont_field_decode(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, BN_CTX *); | ||
| 383 | int ec_GFp_mont_field_set_to_one(const EC_GROUP *, BIGNUM *r, BN_CTX *); | ||
| 384 | |||
| 385 | int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); | 372 | int ec_point_blind_coordinates(const EC_GROUP *group, EC_POINT *p, BN_CTX *ctx); |
| 386 | 373 | ||
| 387 | /* method functions in ecp_nist.c */ | 374 | /* method functions in ecp_nist.c */ |
