diff options
author | beck <> | 2023-07-08 12:21:58 +0000 |
---|---|---|
committer | beck <> | 2023-07-08 12:21:58 +0000 |
commit | 4fff81a3a2e2fb3d68e73e2fcc951cee3548c554 (patch) | |
tree | 789e1276988198ecf8411c8f5bb376e2ea404f91 /src/lib/libcrypto/bn/bn_exp.c | |
parent | de1ea0d71a59536dfa9a5b0b755c13d3d6eddbeb (diff) | |
download | openbsd-4fff81a3a2e2fb3d68e73e2fcc951cee3548c554.tar.gz openbsd-4fff81a3a2e2fb3d68e73e2fcc951cee3548c554.tar.bz2 openbsd-4fff81a3a2e2fb3d68e73e2fcc951cee3548c554.zip |
Hide symbols in bn
ok tb@
Diffstat (limited to 'src/lib/libcrypto/bn/bn_exp.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_exp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_exp.c b/src/lib/libcrypto/bn/bn_exp.c index 9e5d1fd26d..a50fa5953c 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.46 2023/05/09 05:38:11 tb Exp $ */ | 1 | /* $OpenBSD: bn_exp.c,v 1.47 2023/07/08 12:21:58 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 | * |
@@ -173,6 +173,7 @@ BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) | |||
173 | 173 | ||
174 | return ret; | 174 | return ret; |
175 | } | 175 | } |
176 | LCRYPTO_ALIAS(BN_exp); | ||
176 | 177 | ||
177 | /* The old fallback, simple version :-) */ | 178 | /* The old fallback, simple version :-) */ |
178 | int | 179 | int |
@@ -291,6 +292,7 @@ err: | |||
291 | BN_CTX_end(ctx); | 292 | BN_CTX_end(ctx); |
292 | return (ret); | 293 | return (ret); |
293 | } | 294 | } |
295 | LCRYPTO_ALIAS(BN_mod_exp_simple); | ||
294 | 296 | ||
295 | /* BN_mod_exp_mont_consttime() stores the precomputed powers in a specific layout | 297 | /* BN_mod_exp_mont_consttime() stores the precomputed powers in a specific layout |
296 | * so that accessing any of these table values shows the same access pattern as far | 298 | * so that accessing any of these table values shows the same access pattern as far |
@@ -632,6 +634,7 @@ err: | |||
632 | BN_CTX_end(ctx); | 634 | BN_CTX_end(ctx); |
633 | return (ret); | 635 | return (ret); |
634 | } | 636 | } |
637 | LCRYPTO_ALIAS(BN_mod_exp_mont_consttime); | ||
635 | 638 | ||
636 | static int | 639 | static int |
637 | BN_mod_exp_mont_internal(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, | 640 | BN_mod_exp_mont_internal(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, |
@@ -947,6 +950,7 @@ err: | |||
947 | BN_CTX_end(ctx); | 950 | BN_CTX_end(ctx); |
948 | return (ret); | 951 | return (ret); |
949 | } | 952 | } |
953 | LCRYPTO_ALIAS(BN_mod_exp_mont_word); | ||
950 | 954 | ||
951 | int | 955 | int |
952 | BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, | 956 | BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, |
@@ -1331,3 +1335,4 @@ err: | |||
1331 | BN_CTX_end(ctx); | 1335 | BN_CTX_end(ctx); |
1332 | return (ret); | 1336 | return (ret); |
1333 | } | 1337 | } |
1338 | LCRYPTO_ALIAS(BN_mod_exp2_mont); | ||