diff options
-rw-r--r-- | src/lib/libcrypto/bn/bn_recp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_recp.c b/src/lib/libcrypto/bn/bn_recp.c index 1658a13823..4905dffa88 100644 --- a/src/lib/libcrypto/bn/bn_recp.c +++ b/src/lib/libcrypto/bn/bn_recp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_recp.c,v 1.22 2025/01/08 20:12:18 tb Exp $ */ | 1 | /* $OpenBSD: bn_recp.c,v 1.23 2025/01/08 20:13:52 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 | * |
@@ -125,7 +125,7 @@ BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) | |||
125 | if (!BN_set_bit(t, len)) | 125 | if (!BN_set_bit(t, len)) |
126 | goto err; | 126 | goto err; |
127 | 127 | ||
128 | if (!BN_div_ct(r, NULL, t,m, ctx)) | 128 | if (!BN_div_ct(r, NULL, t, m, ctx)) |
129 | goto err; | 129 | goto err; |
130 | 130 | ||
131 | ret = len; | 131 | ret = len; |
@@ -193,7 +193,7 @@ BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp, | |||
193 | */ | 193 | */ |
194 | if (!BN_rshift(a, m, recp->num_bits)) | 194 | if (!BN_rshift(a, m, recp->num_bits)) |
195 | goto err; | 195 | goto err; |
196 | if (!BN_mul(b, a,&recp->Nr, ctx)) | 196 | if (!BN_mul(b, a, &recp->Nr, ctx)) |
197 | goto err; | 197 | goto err; |
198 | if (!BN_rshift(d, b, i - recp->num_bits)) | 198 | if (!BN_rshift(d, b, i - recp->num_bits)) |
199 | goto err; | 199 | goto err; |