summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/bn/bn_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_internal.h b/src/lib/libcrypto/bn/bn_internal.h
index ab3efd14f4..12ea3641e6 100644
--- a/src/lib/libcrypto/bn/bn_internal.h
+++ b/src/lib/libcrypto/bn/bn_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_internal.h,v 1.3 2023/02/14 18:31:02 jsing Exp $ */ 1/* $OpenBSD: bn_internal.h,v 1.4 2023/02/15 04:46:49 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -156,7 +156,7 @@ bn_umul_hilo(BN_ULONG a, BN_ULONG b, BN_ULONG *out_h, BN_ULONG *out_l)
156 c2 = l & x; 156 c2 = l & x;
157 l += x; 157 l += x;
158 h += ((c1 & ~l) | c2) >> (BN_BITS2 - 1); /* carry */ 158 h += ((c1 & ~l) | c2) >> (BN_BITS2 - 1); /* carry */
159 159
160 /* (bh * al) << BN_BITS4, partition the result across h:l with carry. */ 160 /* (bh * al) << BN_BITS4, partition the result across h:l with carry. */
161 x = bh * al; 161 x = bh * al;
162 h += x >> BN_BITS4; 162 h += x >> BN_BITS4;