From 2d8c8253cb0e94323b811f37132240ab824ca624 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 9 Mar 2025 15:37:31 +0000 Subject: 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 --- src/lib/libcrypto/Symbols.list | 2 -- src/lib/libcrypto/ec/ec.h | 4 +--- src/lib/libcrypto/ec/ec_lib.c | 18 +----------------- src/lib/libcrypto/hidden/openssl/ec.h | 4 +--- 4 files changed, 3 insertions(+), 25 deletions(-) (limited to 'src') 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 EC_GROUP_get_order EC_GROUP_get_point_conversion_form EC_GROUP_get_seed_len -EC_GROUP_have_precompute_mult EC_GROUP_new_by_curve_name EC_GROUP_new_curve_GFp EC_GROUP_order_bits -EC_GROUP_precompute_mult EC_GROUP_set_asn1_flag EC_GROUP_set_curve 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 @@ -/* $OpenBSD: ec.h,v 1.51 2025/03/09 15:35:40 tb Exp $ */ +/* $OpenBSD: ec.h,v 1.52 2025/03/09 15:37:31 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -214,8 +214,6 @@ int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, size_t num, const EC_POINT *p[], const BIGNUM *m[], BN_CTX *ctx); int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx); -int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx); -int EC_GROUP_have_precompute_mult(const EC_GROUP *group); int EC_GROUP_get_basis_type(const EC_GROUP *); 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 @@ -/* $OpenBSD: ec_lib.c,v 1.118 2025/03/09 15:35:40 tb Exp $ */ +/* $OpenBSD: ec_lib.c,v 1.119 2025/03/09 15:37:31 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -1403,19 +1403,3 @@ EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, return 0; } LCRYPTO_ALIAS(EC_POINTs_mul); - -int -EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in) -{ - ECerror(ERR_R_DISABLED); - return 0; -} -LCRYPTO_ALIAS(EC_GROUP_precompute_mult); - -int -EC_GROUP_have_precompute_mult(const EC_GROUP *group) -{ - ECerror(ERR_R_DISABLED); - return 0; -} -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 @@ -/* $OpenBSD: ec.h,v 1.9 2025/03/09 15:35:40 tb Exp $ */ +/* $OpenBSD: ec.h,v 1.10 2025/03/09 15:37:31 tb Exp $ */ /* * Copyright (c) 2023 Bob Beck * @@ -76,8 +76,6 @@ LCRYPTO_USED(EC_POINT_make_affine); LCRYPTO_USED(EC_POINTs_make_affine); LCRYPTO_USED(EC_POINTs_mul); LCRYPTO_USED(EC_POINT_mul); -LCRYPTO_USED(EC_GROUP_precompute_mult); -LCRYPTO_USED(EC_GROUP_have_precompute_mult); LCRYPTO_USED(EC_GROUP_get_basis_type); LCRYPTO_USED(d2i_ECPKParameters); LCRYPTO_USED(i2d_ECPKParameters); -- cgit v1.2.3-55-g6feb