diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-03-02 09:27:32 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-03-02 09:27:32 +0000 |
commit | a2a4fd283e1f93064e05a39b367a23ddfb059c2b (patch) | |
tree | 96ce91e407b905ad9d3a2b08fb4e12b524d14a37 /lib/libcrypto/hidden | |
parent | 96ad4157c52e9d25b8a58afbd251a6b582d8217f (diff) |
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 'lib/libcrypto/hidden')
-rw-r--r-- | lib/libcrypto/hidden/openssl/bn.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libcrypto/hidden/openssl/bn.h b/lib/libcrypto/hidden/openssl/bn.h index 1aa5b10d9d6..f6f00cf7664 100644 --- a/lib/libcrypto/hidden/openssl/bn.h +++ b/lib/libcrypto/hidden/openssl/bn.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn.h,v 1.5 2024/03/02 09:24:59 tb Exp $ */ +/* $OpenBSD: bn.h,v 1.6 2024/03/02 09:27:31 tb Exp $ */ /* * Copyright (c) 2023 Bob Beck <beck@openbsd.org> * @@ -97,8 +97,6 @@ LCRYPTO_USED(BN_lshift); LCRYPTO_USED(BN_lshift1); LCRYPTO_USED(BN_exp); LCRYPTO_USED(BN_mod_exp_mont_consttime); -LCRYPTO_USED(BN_mod_exp_mont_word); -LCRYPTO_USED(BN_mod_exp2_mont); LCRYPTO_USED(BN_mask_bits); LCRYPTO_USED(BN_print_fp); LCRYPTO_USED(BN_print); |