diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-03-09 17:56:13 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-03-09 17:56:13 +0700 |
commit | 9ed219b443babdf1309bb16d9966389e78f45733 (patch) | |
tree | 635fde17c42187e580b3a3da01c7807c92014dca | |
parent | Fix setting of buffer position (diff) | |
download | BouncyCastle.NET-ed25519-9ed219b443babdf1309bb16d9966389e78f45733.tar.xz |
Don't ignore index
-rw-r--r-- | crypto/src/crypto/engines/SM2Engine.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/crypto/engines/SM2Engine.cs b/crypto/src/crypto/engines/SM2Engine.cs index 90a5e4d6f..ab7e9cd17 100644 --- a/crypto/src/crypto/engines/SM2Engine.cs +++ b/crypto/src/crypto/engines/SM2Engine.cs @@ -158,7 +158,7 @@ namespace Org.BouncyCastle.Crypto.Engines { for (int i = 0; i != encData.Length; i++) { - if (encData[i] != input[inOff]) + if (encData[i] != input[inOff + i]) { return false; } |