diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-20 01:09:57 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-20 01:09:57 +0700 |
commit | 9061a75bd77228c9ab155033828aa538e2f0a320 (patch) | |
tree | 58841b1cf8896e94a8cdedfc93b34eb9261fcf2e | |
parent | Refactoring in Pqc.Crypto.Bike (performance) (diff) | |
download | BouncyCastle.NET-ed25519-9061a75bd77228c9ab155033828aa538e2f0a320.tar.xz |
Account for zOff correctly
-rw-r--r-- | crypto/src/math/raw/Interleave.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |