summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2018-04-08 17:51:17 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2018-04-08 17:51:17 +0700
commit28fc9c2c829efc36d9b6991b7392f5a2e856cbe5 (patch)
treebadb0f6ae793471780bc91e414ea795ad28bf6c3 /crypto
parentPort of BLAKE2B/2S digests from bc-java (diff)
parentif the parameter "inOff" in Decrypt() is not zero, it can not be decrypted as... (diff)
downloadBouncyCastle.NET-ed25519-28fc9c2c829efc36d9b6991b7392f5a2e856cbe5.tar.xz
Merge branch 'patch-1' of https://github.com/ZZMarquis/bc-csharp into ZZMarquis-patch-1
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 e5f12bbbb..90a5e4d6f 100644
--- a/crypto/src/crypto/engines/SM2Engine.cs
+++ b/crypto/src/crypto/engines/SM2Engine.cs
@@ -139,7 +139,7 @@ namespace Org.BouncyCastle.Crypto.Engines
             int check = 0;
             for (int i = 0; i != c3.Length; i++)
             {
-                check |= c3[i] ^ input[c1.Length + c2.Length + i];
+                check |= c3[i] ^ input[inOff + c1.Length + c2.Length + i];
             }
 
             Arrays.Fill(c1, 0);