diff options
| author | tb <> | 2024-03-02 09:27:31 +0000 |
|---|---|---|
| committer | tb <> | 2024-03-02 09:27:31 +0000 |
| commit | 7542aebe05afee384f3e3d61ec0d1ea06fe2427c (patch) | |
| tree | d56583ceff6f4723ec51bb6b5743dbe552a6a98d /src/lib/libcrypto/hidden/openssl | |
| parent | 5c948777cac23e8035e04e3971d7b5a676652af6 (diff) | |
| download | openbsd-7542aebe05afee384f3e3d61ec0d1ea06fe2427c.tar.gz openbsd-7542aebe05afee384f3e3d61ec0d1ea06fe2427c.tar.bz2 openbsd-7542aebe05afee384f3e3d61ec0d1ea06fe2427c.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')
| -rw-r--r-- | src/lib/libcrypto/hidden/openssl/bn.h | 4 |
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); | |||
| 97 | LCRYPTO_USED(BN_lshift1); | 97 | LCRYPTO_USED(BN_lshift1); |
| 98 | LCRYPTO_USED(BN_exp); | 98 | LCRYPTO_USED(BN_exp); |
| 99 | LCRYPTO_USED(BN_mod_exp_mont_consttime); | 99 | LCRYPTO_USED(BN_mod_exp_mont_consttime); |
| 100 | LCRYPTO_USED(BN_mod_exp_mont_word); | ||
| 101 | LCRYPTO_USED(BN_mod_exp2_mont); | ||
| 102 | LCRYPTO_USED(BN_mask_bits); | 100 | LCRYPTO_USED(BN_mask_bits); |
| 103 | LCRYPTO_USED(BN_print_fp); | 101 | LCRYPTO_USED(BN_print_fp); |
| 104 | LCRYPTO_USED(BN_print); | 102 | LCRYPTO_USED(BN_print); |
