diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_mont.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_mont.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c index d4de5c2cc5..f8b870266c 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.32 2022/11/26 16:08:51 tb Exp $ */ | 1 | /* $OpenBSD: bn_mont.c,v 1.33 2023/01/16 16:53:19 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 | * |
@@ -213,9 +213,6 @@ BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont) | |||
213 | r->top = max; | 213 | r->top = max; |
214 | n0 = mont->n0[0]; | 214 | n0 = mont->n0[0]; |
215 | 215 | ||
216 | #ifdef BN_COUNT | ||
217 | fprintf(stderr, "word BN_from_montgomery_word %d * %d\n", nl, nl); | ||
218 | #endif | ||
219 | for (carry = 0, i = 0; i < nl; i++, rp++) { | 216 | for (carry = 0, i = 0; i < nl; i++, rp++) { |
220 | v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2); | 217 | v = bn_mul_add_words(rp, np, nl, (rp[0] * n0) & BN_MASK2); |
221 | v = (v + carry + rp[nl]) & BN_MASK2; | 218 | v = (v + carry + rp[nl]) & BN_MASK2; |