diff options
author | tb <> | 2024-03-02 09:24:59 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 09:24:59 +0000 |
commit | 2309a3f36e13452642a7ad2ed127e96ed774e1c5 (patch) | |
tree | 89f8d7085a178d2059b43cba1c1809f147cc1431 /src/lib/libcrypto/bn/bn_local.h | |
parent | 2c5808653fa0d563b5f341caa86dd3f3acc8f5cc (diff) | |
download | openbsd-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_local.h')
-rw-r--r-- | src/lib/libcrypto/bn/bn_local.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h index a9ce466db3..e5c4cddc92 100644 --- a/src/lib/libcrypto/bn/bn_local.h +++ b/src/lib/libcrypto/bn/bn_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_local.h,v 1.38 2023/08/09 09:23:03 tb Exp $ */ | 1 | /* $OpenBSD: bn_local.h,v 1.39 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 | * |
@@ -308,6 +308,9 @@ int BN_div_ct(BIGNUM *q, BIGNUM *r, const BIGNUM *n, const BIGNUM *d, | |||
308 | int BN_mod_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); | 308 | int BN_mod_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); |
309 | int BN_mod_nonct(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); | 309 | int BN_mod_nonct(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx); |
310 | 310 | ||
311 | int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | ||
312 | const BIGNUM *m, BN_CTX *ctx); | ||
313 | |||
311 | BIGNUM *BN_mod_inverse_ct(BIGNUM *ret, const BIGNUM *a, const BIGNUM *n, | 314 | BIGNUM *BN_mod_inverse_ct(BIGNUM *ret, const BIGNUM *a, const BIGNUM *n, |
312 | BN_CTX *ctx); | 315 | BN_CTX *ctx); |
313 | BIGNUM *BN_mod_inverse_nonct(BIGNUM *ret, const BIGNUM *a, const BIGNUM *n, | 316 | BIGNUM *BN_mod_inverse_nonct(BIGNUM *ret, const BIGNUM *a, const BIGNUM *n, |