diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_mont.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_mont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c index ed49ec83eb..582c8d4ef8 100644 --- a/src/lib/libcrypto/bn/bn_mont.c +++ b/src/lib/libcrypto/bn/bn_mont.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_mont.c,v 1.52 2023/03/07 09:42:09 jsing Exp $ */ | 1 | /* $OpenBSD: bn_mont.c,v 1.53 2023/03/26 19:09:42 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 | * |
@@ -354,7 +354,7 @@ bn_montgomery_multiply_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *b | |||
354 | for (i = 0; i < n_len; i++) { | 354 | for (i = 0; i < n_len; i++) { |
355 | /* Compute new t[0] * n0, as we need it inside the loop. */ | 355 | /* Compute new t[0] * n0, as we need it inside the loop. */ |
356 | w = (ap[0] * bp[i] + tp[0]) * n0; | 356 | w = (ap[0] * bp[i] + tp[0]) * n0; |
357 | 357 | ||
358 | carry1 = carry2 = 0; | 358 | carry1 = carry2 = 0; |
359 | for (j = 0; j < n_len; j++) { | 359 | for (j = 0; j < n_len; j++) { |
360 | bn_mulw_addw_addw(ap[j], bp[i], tp[j], carry1, &carry1, &x); | 360 | bn_mulw_addw_addw(ap[j], bp[i], tp[j], carry1, &carry1, &x); |