diff options
author | beck <> | 2024-04-10 14:58:06 +0000 |
---|---|---|
committer | beck <> | 2024-04-10 14:58:06 +0000 |
commit | 72a2143c701f080bf33d5f8221ac8bab8772bf3d (patch) | |
tree | b5de088ad24e4c81c5ef75f7dff9b4e16970e5e1 /src/lib/libcrypto/bn/bn_exp.c | |
parent | 3c9bb658e65e654a398837dcaa7828d4e83681ab (diff) | |
download | openbsd-72a2143c701f080bf33d5f8221ac8bab8772bf3d.tar.gz openbsd-72a2143c701f080bf33d5f8221ac8bab8772bf3d.tar.bz2 openbsd-72a2143c701f080bf33d5f8221ac8bab8772bf3d.zip |
Hide symbols in bn.h
Mark them LCRYPTO_UNUSED appropriately and remove the LIBRESSL_INTERNAL
guards around them
ok tb@
Diffstat (limited to 'src/lib/libcrypto/bn/bn_exp.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_exp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_exp.c b/src/lib/libcrypto/bn/bn_exp.c index 04852424f7..c51296c3c3 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.52 2024/03/02 09:27:31 tb Exp $ */ | 1 | /* $OpenBSD: bn_exp.c,v 1.53 2024/04/10 14:58:06 beck 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 | * |
@@ -799,6 +799,7 @@ BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, | |||
799 | return BN_mod_exp_mont_internal(rr, a, p, m, ctx, in_mont, | 799 | return BN_mod_exp_mont_internal(rr, a, p, m, ctx, in_mont, |
800 | (BN_get_flags(p, BN_FLG_CONSTTIME) != 0)); | 800 | (BN_get_flags(p, BN_FLG_CONSTTIME) != 0)); |
801 | } | 801 | } |
802 | LCRYPTO_ALIAS(BN_mod_exp_mont); | ||
802 | 803 | ||
803 | int | 804 | int |
804 | BN_mod_exp_mont_ct(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, | 805 | BN_mod_exp_mont_ct(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, |
@@ -1160,6 +1161,7 @@ BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, | |||
1160 | return BN_mod_exp_internal(r, a, p, m, ctx, | 1161 | return BN_mod_exp_internal(r, a, p, m, ctx, |
1161 | (BN_get_flags(p, BN_FLG_CONSTTIME) != 0)); | 1162 | (BN_get_flags(p, BN_FLG_CONSTTIME) != 0)); |
1162 | } | 1163 | } |
1164 | LCRYPTO_ALIAS(BN_mod_exp); | ||
1163 | 1165 | ||
1164 | int | 1166 | int |
1165 | BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, | 1167 | BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, |