diff options
| author | tb <> | 2025-03-09 15:37:31 +0000 |
|---|---|---|
| committer | tb <> | 2025-03-09 15:37:31 +0000 |
| commit | 2d8c8253cb0e94323b811f37132240ab824ca624 (patch) | |
| tree | 5930f125df0151d4717d5aeb5b68d51f92ec06a5 /src | |
| parent | d0e75df669e616f4e020ff1b663080bf874ecf0b (diff) | |
| download | openbsd-2d8c8253cb0e94323b811f37132240ab824ca624.tar.gz openbsd-2d8c8253cb0e94323b811f37132240ab824ca624.tar.bz2 openbsd-2d8c8253cb0e94323b811f37132240ab824ca624.zip | |
Unexport EC_GROUP_*precompute_mult()
These have been noops for a while and as usual some Perl module was the
only thing "using" it.
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/Symbols.list | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/ec/ec.h | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 18 | ||||
| -rw-r--r-- | src/lib/libcrypto/hidden/openssl/ec.h | 4 |
4 files changed, 3 insertions, 25 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index 463eef8fe8..332f55af8e 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
| @@ -879,11 +879,9 @@ EC_GROUP_get_degree | |||
| 879 | EC_GROUP_get_order | 879 | EC_GROUP_get_order |
| 880 | EC_GROUP_get_point_conversion_form | 880 | EC_GROUP_get_point_conversion_form |
| 881 | EC_GROUP_get_seed_len | 881 | EC_GROUP_get_seed_len |
| 882 | EC_GROUP_have_precompute_mult | ||
| 883 | EC_GROUP_new_by_curve_name | 882 | EC_GROUP_new_by_curve_name |
| 884 | EC_GROUP_new_curve_GFp | 883 | EC_GROUP_new_curve_GFp |
| 885 | EC_GROUP_order_bits | 884 | EC_GROUP_order_bits |
| 886 | EC_GROUP_precompute_mult | ||
| 887 | EC_GROUP_set_asn1_flag | 885 | EC_GROUP_set_asn1_flag |
| 888 | EC_GROUP_set_curve | 886 | EC_GROUP_set_curve |
| 889 | EC_GROUP_set_curve_GFp | 887 | EC_GROUP_set_curve_GFp |
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 4f5d33226e..6d8d9dfb07 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec.h,v 1.51 2025/03/09 15:35:40 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.52 2025/03/09 15:37:31 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 | */ |
| @@ -214,8 +214,6 @@ int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, | |||
| 214 | size_t num, const EC_POINT *p[], const BIGNUM *m[], BN_CTX *ctx); | 214 | size_t num, const EC_POINT *p[], const BIGNUM *m[], BN_CTX *ctx); |
| 215 | int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, | 215 | int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, |
| 216 | const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx); | 216 | const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx); |
| 217 | int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx); | ||
| 218 | int EC_GROUP_have_precompute_mult(const EC_GROUP *group); | ||
| 219 | 217 | ||
| 220 | int EC_GROUP_get_basis_type(const EC_GROUP *); | 218 | int EC_GROUP_get_basis_type(const EC_GROUP *); |
| 221 | 219 | ||
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 9c7f684385..43774d4267 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_lib.c,v 1.118 2025/03/09 15:35:40 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.119 2025/03/09 15:37:31 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 | */ |
| @@ -1403,19 +1403,3 @@ EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, | |||
| 1403 | return 0; | 1403 | return 0; |
| 1404 | } | 1404 | } |
| 1405 | LCRYPTO_ALIAS(EC_POINTs_mul); | 1405 | LCRYPTO_ALIAS(EC_POINTs_mul); |
| 1406 | |||
| 1407 | int | ||
| 1408 | EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in) | ||
| 1409 | { | ||
| 1410 | ECerror(ERR_R_DISABLED); | ||
| 1411 | return 0; | ||
| 1412 | } | ||
| 1413 | LCRYPTO_ALIAS(EC_GROUP_precompute_mult); | ||
| 1414 | |||
| 1415 | int | ||
| 1416 | EC_GROUP_have_precompute_mult(const EC_GROUP *group) | ||
| 1417 | { | ||
| 1418 | ECerror(ERR_R_DISABLED); | ||
| 1419 | return 0; | ||
| 1420 | } | ||
| 1421 | LCRYPTO_ALIAS(EC_GROUP_have_precompute_mult); | ||
diff --git a/src/lib/libcrypto/hidden/openssl/ec.h b/src/lib/libcrypto/hidden/openssl/ec.h index 510b26284f..ada455c089 100644 --- a/src/lib/libcrypto/hidden/openssl/ec.h +++ b/src/lib/libcrypto/hidden/openssl/ec.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec.h,v 1.9 2025/03/09 15:35:40 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.10 2025/03/09 15:37:31 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -76,8 +76,6 @@ LCRYPTO_USED(EC_POINT_make_affine); | |||
| 76 | LCRYPTO_USED(EC_POINTs_make_affine); | 76 | LCRYPTO_USED(EC_POINTs_make_affine); |
| 77 | LCRYPTO_USED(EC_POINTs_mul); | 77 | LCRYPTO_USED(EC_POINTs_mul); |
| 78 | LCRYPTO_USED(EC_POINT_mul); | 78 | LCRYPTO_USED(EC_POINT_mul); |
| 79 | LCRYPTO_USED(EC_GROUP_precompute_mult); | ||
| 80 | LCRYPTO_USED(EC_GROUP_have_precompute_mult); | ||
| 81 | LCRYPTO_USED(EC_GROUP_get_basis_type); | 79 | LCRYPTO_USED(EC_GROUP_get_basis_type); |
| 82 | LCRYPTO_USED(d2i_ECPKParameters); | 80 | LCRYPTO_USED(d2i_ECPKParameters); |
| 83 | LCRYPTO_USED(i2d_ECPKParameters); | 81 | LCRYPTO_USED(i2d_ECPKParameters); |
