summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-24 20:39:54 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-24 20:39:54 +0700
commitc46292dac6e5cea7a6b2c01ca867ffa26ee22ae7 (patch)
treea32e79018f3a9c4f0826563c954f71a3cac32664
parentUpdate EC curve registry classes (diff)
downloadBouncyCastle.NET-ed25519-c46292dac6e5cea7a6b2c01ca867ffa26ee22ae7.tar.xz
Cleanup in tests
-rw-r--r--crypto/test/src/pqc/crypto/lms/HSSTests.cs2
-rw-r--r--crypto/test/src/pqc/crypto/lms/LMSTests.cs16
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
+}