summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bn/bn_exp.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-03-02 09:27:32 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-03-02 09:27:32 +0000
commita2a4fd283e1f93064e05a39b367a23ddfb059c2b (patch)
tree96ce91e407b905ad9d3a2b08fb4e12b524d14a37 /lib/libcrypto/bn/bn_exp.c
parent96ad4157c52e9d25b8a58afbd251a6b582d8217f (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/bn/bn_exp.c')
-rw-r--r--lib/libcrypto/bn/bn_exp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libcrypto/bn/bn_exp.c b/lib/libcrypto/bn/bn_exp.c
index e4e06db1495..04852424f7e 100644
--- a/lib/libcrypto/bn/bn_exp.c
+++ b/lib/libcrypto/bn/bn_exp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_exp.c,v 1.51 2024/03/02 09:24:59 tb Exp $ */
+/* $OpenBSD: bn_exp.c,v 1.52 2024/03/02 09:27:31 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -961,7 +961,6 @@ err:
BN_CTX_end(ctx);
return (ret);
}
-LCRYPTO_ALIAS(BN_mod_exp_mont_word);
int
BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
@@ -1353,4 +1352,3 @@ err:
BN_CTX_end(ctx);
return (ret);
}
-LCRYPTO_ALIAS(BN_mod_exp2_mont);