summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorRoy Basmacier <roy.basmacier@keyfactor.com>2022-07-11 14:24:48 -0400
committerRoy Basmacier <roy.basmacier@keyfactor.com>2022-07-11 14:24:48 -0400
commit141cf71f4b6ea7dbf709559b0a5fbf371856b86b (patch)
tree7ed004ac03fb4e722ca79da49bf998986f101632 /crypto/src
parentAdded SIKE to PrivateKeyFactory.cs and changed SikeVectorTest.cs (diff)
downloadBouncyCastle.NET-ed25519-141cf71f4b6ea7dbf709559b0a5fbf371856b86b.tar.xz
Detached picnic signature
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/pqc/crypto/picnic/PicnicSigner.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/pqc/crypto/picnic/PicnicSigner.cs b/crypto/src/pqc/crypto/picnic/PicnicSigner.cs
index 302d144b3..7b631b3cb 100644
--- a/crypto/src/pqc/crypto/picnic/PicnicSigner.cs
+++ b/crypto/src/pqc/crypto/picnic/PicnicSigner.cs
@@ -38,7 +38,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Picnic
             byte[] sig = new byte[engine.GetSignatureSize(message.Length)];
             engine.crypto_sign(sig, message, privKey.GetEncoded());
 
-            return Arrays.CopyOfRange(sig, 0, message.Length + engine.GetTrueSignatureSize());
+            return Arrays.CopyOfRange(sig, message.Length + 4,  engine.GetTrueSignatureSize() + message.Length);
         }
 
         public bool VerifySignature(byte[] message, byte[] signature)