diff options
author | David Hook <dgh@cryptoworkshop.com> | 2022-08-08 18:26:22 +1000 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2022-08-08 18:26:22 +1000 |
commit | 936681fdad330fda0c4b283fc9f4541336771d9f (patch) | |
tree | 7f5497ddfd052795e7ba787783767b29200a9658 /crypto/test | |
parent | Initial Falcon implementation (diff) | |
download | BouncyCastle.NET-ed25519-936681fdad330fda0c4b283fc9f4541336771d9f.tar.xz |
minor refactoring
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/pqc/crypto/test/FalconTest.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/test/src/pqc/crypto/test/FalconTest.cs b/crypto/test/src/pqc/crypto/test/FalconTest.cs index f923f699f..0c73dfcfd 100644 --- a/crypto/test/src/pqc/crypto/test/FalconTest.cs +++ b/crypto/test/src/pqc/crypto/test/FalconTest.cs @@ -80,7 +80,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests FalconPublicKeyParameters pkparam = new FalconPublicKeyParameters(parameters[fileIndex], pk); verifier.Init(false, pkparam); byte[] noncesig = new byte[sm_len - m_len - 2 + 1]; - noncesig[0] = (byte)(0x30 + parameters[fileIndex].GetLogN()); + noncesig[0] = (byte)(0x30 + parameters[fileIndex].LogN); Array.Copy(sm, 2, noncesig, 1, 40); Array.Copy(sm, 2 + 40 + m_len, noncesig, 40 + 1, sm_len - 2 - 40 - m_len); bool vrfyrespass = verifier.VerifySignature(msg, noncesig); |