summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2025-03-09 15:37:31 +0000
committertb <>2025-03-09 15:37:31 +0000
commit2d8c8253cb0e94323b811f37132240ab824ca624 (patch)
tree5930f125df0151d4717d5aeb5b68d51f92ec06a5 /src/lib
parentd0e75df669e616f4e020ff1b663080bf874ecf0b (diff)
downloadopenbsd-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/lib')
-rw-r--r--src/lib/libcrypto/Symbols.list2
-rw-r--r--src/lib/libcrypto/ec/ec.h4
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c18
-rw-r--r--src/lib/libcrypto/hidden/openssl/ec.h4
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
879EC_GROUP_get_order 879EC_GROUP_get_order
880EC_GROUP_get_point_conversion_form 880EC_GROUP_get_point_conversion_form
881EC_GROUP_get_seed_len 881EC_GROUP_get_seed_len
882EC_GROUP_have_precompute_mult
883EC_GROUP_new_by_curve_name 882EC_GROUP_new_by_curve_name
884EC_GROUP_new_curve_GFp 883EC_GROUP_new_curve_GFp
885EC_GROUP_order_bits 884EC_GROUP_order_bits
886EC_GROUP_precompute_mult
887EC_GROUP_set_asn1_flag 885EC_GROUP_set_asn1_flag
888EC_GROUP_set_curve 886EC_GROUP_set_curve
889EC_GROUP_set_curve_GFp 887EC_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);
215int EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n, 215int 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);
217int EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx);
218int EC_GROUP_have_precompute_mult(const EC_GROUP *group);
219 217
220int EC_GROUP_get_basis_type(const EC_GROUP *); 218int 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}
1405LCRYPTO_ALIAS(EC_POINTs_mul); 1405LCRYPTO_ALIAS(EC_POINTs_mul);
1406
1407int
1408EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx_in)
1409{
1410 ECerror(ERR_R_DISABLED);
1411 return 0;
1412}
1413LCRYPTO_ALIAS(EC_GROUP_precompute_mult);
1414
1415int
1416EC_GROUP_have_precompute_mult(const EC_GROUP *group)
1417{
1418 ECerror(ERR_R_DISABLED);
1419 return 0;
1420}
1421LCRYPTO_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);
76LCRYPTO_USED(EC_POINTs_make_affine); 76LCRYPTO_USED(EC_POINTs_make_affine);
77LCRYPTO_USED(EC_POINTs_mul); 77LCRYPTO_USED(EC_POINTs_mul);
78LCRYPTO_USED(EC_POINT_mul); 78LCRYPTO_USED(EC_POINT_mul);
79LCRYPTO_USED(EC_GROUP_precompute_mult);
80LCRYPTO_USED(EC_GROUP_have_precompute_mult);
81LCRYPTO_USED(EC_GROUP_get_basis_type); 79LCRYPTO_USED(EC_GROUP_get_basis_type);
82LCRYPTO_USED(d2i_ECPKParameters); 80LCRYPTO_USED(d2i_ECPKParameters);
83LCRYPTO_USED(i2d_ECPKParameters); 81LCRYPTO_USED(i2d_ECPKParameters);