diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/bn/bn_exp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_exp.c b/src/lib/libcrypto/bn/bn_exp.c index 2aa41f8658..85c192b30a 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.56 2025/01/22 12:53:16 tb Exp $ */ | 1 | /* $OpenBSD: bn_exp.c,v 1.57 2025/02/12 21:21:34 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 | * |
@@ -964,7 +964,7 @@ err: | |||
964 | } | 964 | } |
965 | 965 | ||
966 | int | 966 | int |
967 | BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, | 967 | BN_mod_exp_reciprocal(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, |
968 | BN_CTX *ctx) | 968 | BN_CTX *ctx) |
969 | { | 969 | { |
970 | int i, j, bits, wstart, wend, window, wvalue; | 970 | int i, j, bits, wstart, wend, window, wvalue; |
@@ -1137,7 +1137,7 @@ BN_mod_exp_internal(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m | |||
1137 | } else | 1137 | } else |
1138 | ret = BN_mod_exp_mont_ct(r, a,p, m,ctx, NULL); | 1138 | ret = BN_mod_exp_mont_ct(r, a,p, m,ctx, NULL); |
1139 | } else { | 1139 | } else { |
1140 | ret = BN_mod_exp_recp(r, a,p, m, ctx); | 1140 | ret = BN_mod_exp_reciprocal(r, a,p, m, ctx); |
1141 | } | 1141 | } |
1142 | 1142 | ||
1143 | return (ret); | 1143 | return (ret); |