summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-04-22 19:02:54 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-04-22 19:02:54 +0700
commit6f2c50ee08bd5a4e887ac11d19701ef9514134c8 (patch)
tree1af84b33b4f2b872fe6a56c5f502150e67f8286f
parentMerge branch 'release/v2.2' (diff)
downloadBouncyCastle.NET-ed25519-6f2c50ee08bd5a4e887ac11d19701ef9514134c8.tar.xz
Cleanup AsconTest
-rw-r--r--crypto/test/src/crypto/test/AsconTest.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/test/src/crypto/test/AsconTest.cs b/crypto/test/src/crypto/test/AsconTest.cs
index 5e426bbfe..313f7d45e 100644
--- a/crypto/test/src/crypto/test/AsconTest.cs
+++ b/crypto/test/src/crypto/test/AsconTest.cs
@@ -496,11 +496,10 @@ namespace Org.BouncyCastle.Crypto.Tests
         private void ImplTestVectorsHash(AsconDigest.AsconParameters asconParameters, string filename)
         {
             AsconDigest ascon = new AsconDigest(asconParameters);
-            var buf = new Dictionary<string, string>();
+            var map = new Dictionary<string, string>();
             using (var src = new StreamReader(
                 SimpleTest.GetTestDataAsStream("crypto.ascon." + filename + "_LWC_HASH_KAT_256.txt")))
             {
-                Dictionary<string, string> map = new Dictionary<string, string>();
                 string line;
                 while ((line = src.ReadLine()) != null)
                 {
@@ -515,7 +514,6 @@ namespace Org.BouncyCastle.Crypto.Tests
                         byte[] hash = new byte[ascon.GetDigestSize()];
                         ascon.DoFinal(hash, 0);
                         Assert.True(Arrays.AreEqual(expected, hash));
-                        ascon.Reset();
                     }
                     else
                     {
@@ -554,7 +552,6 @@ namespace Org.BouncyCastle.Crypto.Tests
                         byte[] hash = new byte[ascon.GetDigestSize()];
                         ascon.DoFinal(hash, 0);
                         Assert.True(Arrays.AreEqual(expected, hash));
-                        ascon.Reset();
                     }
                     else
                     {