From 9061a75bd77228c9ab155033828aa538e2f0a320 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 20 Oct 2022 01:09:57 +0700 Subject: Account for zOff correctly --- crypto/src/math/raw/Interleave.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/src/math/raw/Interleave.cs b/crypto/src/math/raw/Interleave.cs index c7c8eb4da..02aa79551 100644 --- a/crypto/src/math/raw/Interleave.cs +++ b/crypto/src/math/raw/Interleave.cs @@ -98,7 +98,7 @@ namespace Org.BouncyCastle.Math.Raw internal static void Expand64To128(ulong[] xs, int xsOff, int xsLen, ulong[] zs, int zsOff) { - int xsPos = xsLen, zsPos = zsOff + xsLen << 1; + int xsPos = xsLen, zsPos = zsOff + (xsLen << 1); while (--xsPos >= 0) { zsPos -= 2; -- cgit 1.4.1