diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-24 20:39:54 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-24 20:39:54 +0700 |
commit | c46292dac6e5cea7a6b2c01ca867ffa26ee22ae7 (patch) | |
tree | a32e79018f3a9c4f0826563c954f71a3cac32664 /crypto/test/src/pqc | |
parent | Update EC curve registry classes (diff) | |
download | BouncyCastle.NET-ed25519-c46292dac6e5cea7a6b2c01ca867ffa26ee22ae7.tar.xz |
Cleanup in tests
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 +} |