summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hidden/openssl/bn.h
diff options
context:
space:
mode:
authortb <>2024-03-02 09:27:31 +0000
committertb <>2024-03-02 09:27:31 +0000
commitc9bc42b7edc08f714c31d8ec1a974cc5b287ef4c (patch)
treed56583ceff6f4723ec51bb6b5743dbe552a6a98d /src/lib/libcrypto/hidden/openssl/bn.h
parent2309a3f36e13452642a7ad2ed127e96ed774e1c5 (diff)
downloadopenbsd-c9bc42b7edc08f714c31d8ec1a974cc5b287ef4c.tar.gz
openbsd-c9bc42b7edc08f714c31d8ec1a974cc5b287ef4c.tar.bz2
openbsd-c9bc42b7edc08f714c31d8ec1a974cc5b287ef4c.zip
Make BN_mod_exp2_mont() and BN_mod_exp_mont_word() internal
The former could be useful but nothing uses it. The latter is a dangerous implementation detail of Montgomery exponentiation that should never have been leaked out of the library. Fix this. ok jsing
Diffstat (limited to 'src/lib/libcrypto/hidden/openssl/bn.h')
-rw-r--r--src/lib/libcrypto/hidden/openssl/bn.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/hidden/openssl/bn.h b/src/lib/libcrypto/hidden/openssl/bn.h
index 1aa5b10d9d..f6f00cf766 100644
--- a/src/lib/libcrypto/hidden/openssl/bn.h
+++ b/src/lib/libcrypto/hidden/openssl/bn.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn.h,v 1.5 2024/03/02 09:24:59 tb Exp $ */ 1/* $OpenBSD: bn.h,v 1.6 2024/03/02 09:27: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 *
@@ -97,8 +97,6 @@ LCRYPTO_USED(BN_lshift);
97LCRYPTO_USED(BN_lshift1); 97LCRYPTO_USED(BN_lshift1);
98LCRYPTO_USED(BN_exp); 98LCRYPTO_USED(BN_exp);
99LCRYPTO_USED(BN_mod_exp_mont_consttime); 99LCRYPTO_USED(BN_mod_exp_mont_consttime);
100LCRYPTO_USED(BN_mod_exp_mont_word);
101LCRYPTO_USED(BN_mod_exp2_mont);
102LCRYPTO_USED(BN_mask_bits); 100LCRYPTO_USED(BN_mask_bits);
103LCRYPTO_USED(BN_print_fp); 101LCRYPTO_USED(BN_print_fp);
104LCRYPTO_USED(BN_print); 102LCRYPTO_USED(BN_print);