From 6f2c50ee08bd5a4e887ac11d19701ef9514134c8 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sat, 22 Apr 2023 19:02:54 +0700 Subject: Cleanup AsconTest --- crypto/test/src/crypto/test/AsconTest.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crypto/test') 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(); + var map = new Dictionary(); using (var src = new StreamReader( SimpleTest.GetTestDataAsStream("crypto.ascon." + filename + "_LWC_HASH_KAT_256.txt"))) { - Dictionary map = new Dictionary(); 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 { -- cgit 1.4.1