diff options
author | tb <> | 2025-01-06 12:35:27 +0000 |
---|---|---|
committer | tb <> | 2025-01-06 12:35:27 +0000 |
commit | 75d0c2055bd9a0ead97a9eaa83b7887c8a89f10e (patch) | |
tree | 4d972561c740c5722770d1761d303404400ad414 /src/lib/libcrypto/bn/bn_local.h | |
parent | 040f047180525bbee39de311cf3ae17a898c86dc (diff) | |
download | openbsd-75d0c2055bd9a0ead97a9eaa83b7887c8a89f10e.tar.gz openbsd-75d0c2055bd9a0ead97a9eaa83b7887c8a89f10e.tar.bz2 openbsd-75d0c2055bd9a0ead97a9eaa83b7887c8a89f10e.zip |
Shuffle functions into a more sensible order
BN_reciprocal() is only called by BN_div_recp() which in turn is only
called by BN_mod_mul_reciprocal(). So use this order and make the first
two static.
Diffstat (limited to 'src/lib/libcrypto/bn/bn_local.h')
-rw-r--r-- | src/lib/libcrypto/bn/bn_local.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bn/bn_local.h b/src/lib/libcrypto/bn/bn_local.h index 58b5d54903..bfdff56b0e 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.43 2024/04/16 13:07:14 jsing Exp $ */ | 1 | /* $OpenBSD: bn_local.h,v 1.44 2025/01/06 12:35:27 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 | * |
@@ -280,8 +280,6 @@ int bn_rand_interval(BIGNUM *rnd, BN_ULONG lower_word, const BIGNUM *upper_exc); | |||
280 | 280 | ||
281 | void BN_init(BIGNUM *); | 281 | void BN_init(BIGNUM *); |
282 | 282 | ||
283 | int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx); | ||
284 | |||
285 | void BN_RECP_CTX_init(BN_RECP_CTX *recp); | 283 | void BN_RECP_CTX_init(BN_RECP_CTX *recp); |
286 | BN_RECP_CTX *BN_RECP_CTX_new(void); | 284 | BN_RECP_CTX *BN_RECP_CTX_new(void); |
287 | void BN_RECP_CTX_free(BN_RECP_CTX *recp); | 285 | void BN_RECP_CTX_free(BN_RECP_CTX *recp); |
@@ -290,8 +288,6 @@ int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y, | |||
290 | BN_RECP_CTX *recp, BN_CTX *ctx); | 288 | BN_RECP_CTX *recp, BN_CTX *ctx); |
291 | int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | 289 | int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, |
292 | const BIGNUM *m, BN_CTX *ctx); | 290 | const BIGNUM *m, BN_CTX *ctx); |
293 | int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, | ||
294 | BN_RECP_CTX *recp, BN_CTX *ctx); | ||
295 | 291 | ||
296 | /* Explicitly const time / non-const time versions for internal use */ | 292 | /* Explicitly const time / non-const time versions for internal use */ |
297 | int BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | 293 | int BN_mod_exp_ct(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, |