summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_div.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_div.c')
-rw-r--r--src/lib/libcrypto/bn/bn_div.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_div.c b/src/lib/libcrypto/bn/bn_div.c
index 686b957eb5..692e618407 100644
--- a/src/lib/libcrypto/bn/bn_div.c
+++ b/src/lib/libcrypto/bn/bn_div.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_div.c,v 1.38 2023/02/14 18:19:27 jsing Exp $ */ 1/* $OpenBSD: bn_div.c,v 1.39 2023/02/16 10:41:03 jsing 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 *
@@ -204,7 +204,7 @@ bn_div_3_words(const BN_ULONG *m, BN_ULONG d1, BN_ULONG d0)
204 /* n0 < d0 */ 204 /* n0 < d0 */
205 bn_div_rem_words(n0, n1, d0, &q, &rem); 205 bn_div_rem_words(n0, n1, d0, &q, &rem);
206 206
207 bn_umul_hilo(d1, q, &t2h, &t2l); 207 bn_mulw(d1, q, &t2h, &t2l);
208 208
209 for (;;) { 209 for (;;) {
210 if (t2h < rem || (t2h == rem && t2l <= m[-2])) 210 if (t2h < rem || (t2h == rem && t2l <= m[-2]))