diff options
author | Roy Basmacier <roy.basmacier@keyfactor.com> | 2022-06-24 16:19:02 -0400 |
---|---|---|
committer | Roy Basmacier <roy.basmacier@keyfactor.com> | 2022-06-24 16:19:02 -0400 |
commit | 5ce0ecf7d31b462bd14c51a9e1f6514dc188c17c (patch) | |
tree | 9236aa449ab6b2c2142f3f8b0065078e125c2603 /crypto/test/src/pqc | |
parent | sphincs plus v3.1 (diff) | |
parent | Refactoring (diff) | |
download | BouncyCastle.NET-ed25519-5ce0ecf7d31b462bd14c51a9e1f6514dc188c17c.tar.xz |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'crypto/test/src/pqc')
-rw-r--r-- | crypto/test/src/pqc/crypto/lms/HSSTests.cs | 2 | ||||
-rw-r--r-- | crypto/test/src/pqc/crypto/lms/LMSTests.cs | 16 |
2 files changed, 4 insertions, 14 deletions
diff --git a/crypto/test/src/pqc/crypto/lms/HSSTests.cs b/crypto/test/src/pqc/crypto/lms/HSSTests.cs index 6918da102..d97038d3b 100644 --- a/crypto/test/src/pqc/crypto/lms/HSSTests.cs +++ b/crypto/test/src/pqc/crypto/lms/HSSTests.cs @@ -470,7 +470,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Lms byte[] hssPubEnc = null; MemoryStream fixedESBuffer = new MemoryStream(); IList sigVectors = new ArrayList(); - int d = 0, j = 0; + int d = 0; string line; while ((line = sr.ReadLine()) != null) diff --git a/crypto/test/src/pqc/crypto/lms/LMSTests.cs b/crypto/test/src/pqc/crypto/lms/LMSTests.cs index 4b5d6206f..dbc541674 100644 --- a/crypto/test/src/pqc/crypto/lms/LMSTests.cs +++ b/crypto/test/src/pqc/crypto/lms/LMSTests.cs @@ -158,20 +158,10 @@ namespace Org.BouncyCastle.Pqc.Crypto.Lms ctx.Update((byte)1); Assert.Fail("Digest reuse after signature taken."); } - catch (NullReferenceException npe) + catch (NullReferenceException) { - Assert.True(true); + // Expected } - } - - public void Main(string[] args) - { - TestCoefFunc(); - TestPrivateKeyRound(); - TestLMS(); - TestContextSingleUse(); - } - } -} \ No newline at end of file +} |