summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_exp.c
diff options
context:
space:
mode:
authortb <>2024-03-02 09:24:59 +0000
committertb <>2024-03-02 09:24:59 +0000
commit2309a3f36e13452642a7ad2ed127e96ed774e1c5 (patch)
tree89f8d7085a178d2059b43cba1c1809f147cc1431 /src/lib/libcrypto/bn/bn_exp.c
parent2c5808653fa0d563b5f341caa86dd3f3acc8f5cc (diff)
downloadopenbsd-2309a3f36e13452642a7ad2ed127e96ed774e1c5.tar.gz
openbsd-2309a3f36e13452642a7ad2ed127e96ed774e1c5.tar.bz2
openbsd-2309a3f36e13452642a7ad2ed127e96ed774e1c5.zip
Make BN_mod_exp_simple() internal
This function is very slow and useful for testing purposes only. It should never have been part of the public API. Remove it from there. ok jsing
Diffstat (limited to 'src/lib/libcrypto/bn/bn_exp.c')
-rw-r--r--src/lib/libcrypto/bn/bn_exp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_exp.c b/src/lib/libcrypto/bn/bn_exp.c
index 8293ae54f9..e4e06db149 100644
--- a/src/lib/libcrypto/bn/bn_exp.c
+++ b/src/lib/libcrypto/bn/bn_exp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_exp.c,v 1.50 2023/10/19 10:27:27 tb Exp $ */ 1/* $OpenBSD: bn_exp.c,v 1.51 2024/03/02 09:24:59 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -304,7 +304,6 @@ BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
304 304
305 return ret; 305 return ret;
306} 306}
307LCRYPTO_ALIAS(BN_mod_exp_simple);
308 307
309/* BN_mod_exp_mont_consttime() stores the precomputed powers in a specific layout 308/* BN_mod_exp_mont_consttime() stores the precomputed powers in a specific layout
310 * so that accessing any of these table values shows the same access pattern as far 309 * so that accessing any of these table values shows the same access pattern as far