diff options
| author | beck <> | 2024-04-10 14:58:06 +0000 |
|---|---|---|
| committer | beck <> | 2024-04-10 14:58:06 +0000 |
| commit | c1002fc07c1599164ea7518630da25bd606c9993 (patch) | |
| tree | b5de088ad24e4c81c5ef75f7dff9b4e16970e5e1 /src/lib/libcrypto/bn/bn_exp.c | |
| parent | 3eff1e603938779d82a28fbd00dfe96a396d64b6 (diff) | |
| download | openbsd-c1002fc07c1599164ea7518630da25bd606c9993.tar.gz openbsd-c1002fc07c1599164ea7518630da25bd606c9993.tar.bz2 openbsd-c1002fc07c1599164ea7518630da25bd606c9993.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, |
