summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/test')
-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
                     {