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 a62e74da5d..d0adc4688f 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.28 2022/11/26 16:08:51 tb Exp $ */ 1/* $OpenBSD: bn_div.c,v 1.29 2022/12/26 07:18:51 jmc 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 *
@@ -327,7 +327,7 @@ BN_div_internal(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor
327 l0 = bn_mul_words(tmp->d, sdiv->d, div_n, q); 327 l0 = bn_mul_words(tmp->d, sdiv->d, div_n, q);
328 tmp->d[div_n] = l0; 328 tmp->d[div_n] = l0;
329 wnum.d--; 329 wnum.d--;
330 /* ingore top values of the bignums just sub the two 330 /* ignore top values of the bignums just sub the two
331 * BN_ULONG arrays with bn_sub_words */ 331 * BN_ULONG arrays with bn_sub_words */
332 if (bn_sub_words(wnum.d, wnum.d, tmp->d, div_n + 1)) { 332 if (bn_sub_words(wnum.d, wnum.d, tmp->d, div_n + 1)) {
333 /* Note: As we have considered only the leading 333 /* Note: As we have considered only the leading