summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-03-09 17:56:13 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-03-09 17:56:13 +0700
commit9ed219b443babdf1309bb16d9966389e78f45733 (patch)
tree635fde17c42187e580b3a3da01c7807c92014dca /crypto
parentFix setting of buffer position (diff)
downloadBouncyCastle.NET-ed25519-9ed219b443babdf1309bb16d9966389e78f45733.tar.xz
Don't ignore index
Diffstat (limited to 'crypto')
-rw-r--r--crypto/src/crypto/engines/SM2Engine.cs2
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;
                 }