summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-01-21 18:21:50 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-01-21 18:21:50 +0700
commit9ded11e7b04c64f2c36c9cf6a6993c2aa7903a0a (patch)
treeb2f9e43c44476ee963497f86120115c2ca6b05ea /crypto
parentUpdate for timw (diff)
downloadBouncyCastle.NET-ed25519-9ded11e7b04c64f2c36c9cf6a6993c2aa7903a0a.tar.xz
Fix digest test constructors
Formatting
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/crypto/test/MD2DigestTest.cs90
-rw-r--r--crypto/test/src/crypto/test/MD4DigestTest.cs92
-rw-r--r--crypto/test/src/crypto/test/MD5DigestTest.cs92
-rw-r--r--crypto/test/src/crypto/test/RipeMD128DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD160DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD256DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/RipeMD320DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA1DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA224DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SHA256DigestTest.cs92
-rw-r--r--crypto/test/src/crypto/test/SHA384DigestTest.cs90
-rw-r--r--crypto/test/src/crypto/test/SHA512DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/SM3DigestTest.cs2
-rw-r--r--crypto/test/src/crypto/test/TigerDigestTest.cs48
-rw-r--r--crypto/test/src/crypto/test/WhirlpoolDigestTest.cs2
15 files changed, 261 insertions, 261 deletions
diff --git a/crypto/test/src/crypto/test/MD2DigestTest.cs b/crypto/test/src/crypto/test/MD2DigestTest.cs
index 963a57e49..4f4da516b 100644
--- a/crypto/test/src/crypto/test/MD2DigestTest.cs
+++ b/crypto/test/src/crypto/test/MD2DigestTest.cs
@@ -9,59 +9,59 @@ using Org.BouncyCastle.Utilities.Test;
 
 namespace Org.BouncyCastle.Crypto.Tests
 {
-	/**
+    /**
      * standard vector test for MD2
      * from RFC1319 by B.Kaliski of RSA Laboratories April 1992
      *
      */
-	[TestFixture]
-	public class MD2DigestTest
-		: DigestTest
-	{
-		static string[] messages =
-		{
-			"",
-			"a",
-			"abc",
-			"message digest",
-			"abcdefghijklmnopqrstuvwxyz",
-			"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
-			"12345678901234567890123456789012345678901234567890123456789012345678901234567890"
-		};
+    [TestFixture]
+    public class MD2DigestTest
+        : DigestTest
+    {
+        static string[] messages =
+        {
+            "",
+            "a",
+            "abc",
+            "message digest",
+            "abcdefghijklmnopqrstuvwxyz",
+            "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
+            "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
+        };
 
-		static string[] digests =
-		{ 
-			"8350e5a3e24c153df2275c9f80692773",
-			"32ec01ec4a6dac72c0ab96fb34c0b5d1",
-			"da853b0d3f88d99b30283a69e6ded6bb",
-			"ab4f496bfb2a530b219ff33031fe06b0",
-			"4e8ddff3650292ab5a4108c3aa47940b",
-			"da33def2a42df13975352846c30338cd",
-			"d5976f79d83d3a0dc9806c3c66f3efd8" 
-		};
+        static string[] digests =
+        { 
+            "8350e5a3e24c153df2275c9f80692773",
+            "32ec01ec4a6dac72c0ab96fb34c0b5d1",
+            "da853b0d3f88d99b30283a69e6ded6bb",
+            "ab4f496bfb2a530b219ff33031fe06b0",
+            "4e8ddff3650292ab5a4108c3aa47940b",
+            "da33def2a42df13975352846c30338cd",
+            "d5976f79d83d3a0dc9806c3c66f3efd8" 
+        };
 
-		internal MD2DigestTest()
-			: base(new MD2Digest(), messages, digests)
-		{
-		}
+        public MD2DigestTest()
+            : base(new MD2Digest(), messages, digests)
+        {
+        }
 
-		protected override IDigest CloneDigest(IDigest digest)
-		{
-			return new MD2Digest((MD2Digest)digest);
-		}
+        protected override IDigest CloneDigest(IDigest digest)
+        {
+            return new MD2Digest((MD2Digest)digest);
+        }
 
-		public static void Main(
-			string[] args)
-		{
-			RunTest(new MD2DigestTest());
-		}
+        public static void Main(
+            string[] args)
+        {
+            RunTest(new MD2DigestTest());
+        }
 
-		[Test]
-		public void TestFunction()
-		{
-			string resultText = Perform().ToString();
+        [Test]
+        public void TestFunction()
+        {
+            string resultText = Perform().ToString();
 
-			Assert.AreEqual(Name + ": Okay", resultText);
-		}
-	}
+            Assert.AreEqual(Name + ": Okay", resultText);
+        }
+    }
 }
diff --git a/crypto/test/src/crypto/test/MD4DigestTest.cs b/crypto/test/src/crypto/test/MD4DigestTest.cs
index a4062e92d..4fd4e0931 100644
--- a/crypto/test/src/crypto/test/MD4DigestTest.cs
+++ b/crypto/test/src/crypto/test/MD4DigestTest.cs
@@ -9,51 +9,51 @@ using Org.BouncyCastle.Utilities.Test;
 
 namespace Org.BouncyCastle.Crypto.Tests
 {
-	/**
-	 * standard vector test for MD4 from RFC 1320.
+    /**
+     * standard vector test for MD4 from RFC 1320.
      */
-	[TestFixture]
-	public class MD4DigestTest
-		: DigestTest
-	{
-		static private string[] messages =
-		{
-			"",
-			"a",
-			"abc",
-			"12345678901234567890123456789012345678901234567890123456789012345678901234567890"
-		};
-
-		static private string[] digests =
-		{
-			"31d6cfe0d16ae931b73c59d7e0c089c0",
-			"bde52cb31de33e46245e05fbdbd6fb24",
-			"a448017aaf21d8525fc10ae87aa6729d",
-			"e33b4ddc9c38f2199c3e7b164fcc0536"
-		};
-
-		internal MD4DigestTest()
-			: base(new MD4Digest(), messages, digests)
-		{
-		}
-
-		protected override IDigest CloneDigest(IDigest digest)
-		{
-			return new MD4Digest((MD4Digest)digest);
-		}
-
-		public static void Main(
-			string[] args)
-		{
-			RunTest(new MD4DigestTest());
-		}
-
-		[Test]
-		public void TestFunction()
-		{
-			string resultText = Perform().ToString();
-
-			Assert.AreEqual(Name + ": Okay", resultText);
-		}
-	}
+    [TestFixture]
+    public class MD4DigestTest
+        : DigestTest
+    {
+        static private string[] messages =
+        {
+            "",
+            "a",
+            "abc",
+            "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
+        };
+
+        static private string[] digests =
+        {
+            "31d6cfe0d16ae931b73c59d7e0c089c0",
+            "bde52cb31de33e46245e05fbdbd6fb24",
+            "a448017aaf21d8525fc10ae87aa6729d",
+            "e33b4ddc9c38f2199c3e7b164fcc0536"
+        };
+
+        public MD4DigestTest()
+            : base(new MD4Digest(), messages, digests)
+        {
+        }
+
+        protected override IDigest CloneDigest(IDigest digest)
+        {
+            return new MD4Digest((MD4Digest)digest);
+        }
+
+        public static void Main(
+            string[] args)
+        {
+            RunTest(new MD4DigestTest());
+        }
+
+        [Test]
+        public void TestFunction()
+        {
+            string resultText = Perform().ToString();
+
+            Assert.AreEqual(Name + ": Okay", resultText);
+        }
+    }
 }
diff --git a/crypto/test/src/crypto/test/MD5DigestTest.cs b/crypto/test/src/crypto/test/MD5DigestTest.cs
index 75cc9f8a4..cc914165c 100644
--- a/crypto/test/src/crypto/test/MD5DigestTest.cs
+++ b/crypto/test/src/crypto/test/MD5DigestTest.cs
@@ -9,51 +9,51 @@ using Org.BouncyCastle.Utilities.Test;
 
 namespace Org.BouncyCastle.Crypto.Tests
 {
-	/**
-	 * standard vector test for MD5 from "Handbook of Applied Cryptography", page 345.
+    /**
+     * standard vector test for MD5 from "Handbook of Applied Cryptography", page 345.
      */
-	[TestFixture]
-	public class MD5DigestTest
-		: DigestTest
-	{
-		static string[] messages =
-		{
-			"",
-			"a",
-			"abc",
-			"abcdefghijklmnopqrstuvwxyz"
-		};
-
-		static string[] digests =
-		{
-			"d41d8cd98f00b204e9800998ecf8427e",
-			"0cc175b9c0f1b6a831c399e269772661",
-			"900150983cd24fb0d6963f7d28e17f72",
-			"c3fcd3d76192e4007dfb496cca67e13b"
-		};
-
-		internal MD5DigestTest()
-			: base(new MD5Digest(), messages, digests)
-		{
-		}
-
-		protected override IDigest CloneDigest(IDigest digest)
-		{
-			return new MD5Digest((MD5Digest)digest);
-		}
-
-		public static void Main(
-			string[] args)
-		{
-			RunTest(new MD5DigestTest());
-		}
-
-		[Test]
-		public void TestFunction()
-		{
-			string resultText = Perform().ToString();
-
-			Assert.AreEqual(Name + ": Okay", resultText);
-		}
-	}
+    [TestFixture]
+    public class MD5DigestTest
+        : DigestTest
+    {
+        static string[] messages =
+        {
+            "",
+            "a",
+            "abc",
+            "abcdefghijklmnopqrstuvwxyz"
+        };
+
+        static string[] digests =
+        {
+            "d41d8cd98f00b204e9800998ecf8427e",
+            "0cc175b9c0f1b6a831c399e269772661",
+            "900150983cd24fb0d6963f7d28e17f72",
+            "c3fcd3d76192e4007dfb496cca67e13b"
+        };
+
+        public MD5DigestTest()
+            : base(new MD5Digest(), messages, digests)
+        {
+        }
+
+        protected override IDigest CloneDigest(IDigest digest)
+        {
+            return new MD5Digest((MD5Digest)digest);
+        }
+
+        public static void Main(
+            string[] args)
+        {
+            RunTest(new MD5DigestTest());
+        }
+
+        [Test]
+        public void TestFunction()
+        {
+            string resultText = Perform().ToString();
+
+            Assert.AreEqual(Name + ": Okay", resultText);
+        }
+    }
 }
diff --git a/crypto/test/src/crypto/test/RipeMD128DigestTest.cs b/crypto/test/src/crypto/test/RipeMD128DigestTest.cs
index 8cf0d7e0c..ead4f06ad 100644
--- a/crypto/test/src/crypto/test/RipeMD128DigestTest.cs
+++ b/crypto/test/src/crypto/test/RipeMD128DigestTest.cs
@@ -40,7 +40,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 
 		readonly static String million_a_digest = "4a7f5723f954eba1216c9d8f6320431f";
 
-		internal RipeMD128DigestTest()
+		public RipeMD128DigestTest()
 			: base(new RipeMD128Digest(), messages, digests)
 		{
 		}
diff --git a/crypto/test/src/crypto/test/RipeMD160DigestTest.cs b/crypto/test/src/crypto/test/RipeMD160DigestTest.cs
index 76f472574..15e53f2a0 100644
--- a/crypto/test/src/crypto/test/RipeMD160DigestTest.cs
+++ b/crypto/test/src/crypto/test/RipeMD160DigestTest.cs
@@ -40,7 +40,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 
 		readonly static string million_a_digest = "52783243c1697bdbe16d37f97f68f08325dc1528";
 
-		internal RipeMD160DigestTest()
+		public RipeMD160DigestTest()
 			: base(new RipeMD160Digest(), messages, digests)
 		{
 		}
diff --git a/crypto/test/src/crypto/test/RipeMD256DigestTest.cs b/crypto/test/src/crypto/test/RipeMD256DigestTest.cs
index 27a9c88cc..5b3e6b10b 100644
--- a/crypto/test/src/crypto/test/RipeMD256DigestTest.cs
+++ b/crypto/test/src/crypto/test/RipeMD256DigestTest.cs
@@ -40,7 +40,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 
 		readonly static string million_a_digest = "ac953744e10e31514c150d4d8d7b677342e33399788296e43ae4850ce4f97978";
 
-		internal RipeMD256DigestTest()
+		public RipeMD256DigestTest()
 			: base(new RipeMD256Digest(), messages, digests)
 		{
 		}
diff --git a/crypto/test/src/crypto/test/RipeMD320DigestTest.cs b/crypto/test/src/crypto/test/RipeMD320DigestTest.cs
index 51296e55b..047d68aa7 100644
--- a/crypto/test/src/crypto/test/RipeMD320DigestTest.cs
+++ b/crypto/test/src/crypto/test/RipeMD320DigestTest.cs
@@ -40,7 +40,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 
 		readonly static string million_a_digest = "bdee37f4371e20646b8b0d862dda16292ae36f40965e8c8509e63d1dbddecc503e2b63eb9245bb66";
 
-		internal RipeMD320DigestTest()
+		public RipeMD320DigestTest()
 			: base(new RipeMD320Digest(), messages, digests)
 		{
 		}
diff --git a/crypto/test/src/crypto/test/SHA1DigestTest.cs b/crypto/test/src/crypto/test/SHA1DigestTest.cs
index 8e0564dd8..318035b0c 100644
--- a/crypto/test/src/crypto/test/SHA1DigestTest.cs
+++ b/crypto/test/src/crypto/test/SHA1DigestTest.cs
@@ -30,7 +30,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 			"32d10c7b8cf96570ca04ce37f2a19d84240d3a89"
 		};
 
-		internal Sha1DigestTest()
+		public Sha1DigestTest()
 			: base(new Sha1Digest(), messages, digests)
 		{
 		}
diff --git a/crypto/test/src/crypto/test/SHA224DigestTest.cs b/crypto/test/src/crypto/test/SHA224DigestTest.cs
index 8207a18c7..9469b651b 100644
--- a/crypto/test/src/crypto/test/SHA224DigestTest.cs
+++ b/crypto/test/src/crypto/test/SHA224DigestTest.cs
@@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 		// 1 million 'a'
 		private static string million_a_digest = "20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67";
 
-		internal Sha224DigestTest()
+		public Sha224DigestTest()
 			: base(new Sha224Digest(), messages, digests)
 		{
 		}
diff --git a/crypto/test/src/crypto/test/SHA256DigestTest.cs b/crypto/test/src/crypto/test/SHA256DigestTest.cs
index d4d29ccbb..d2ae89e56 100644
--- a/crypto/test/src/crypto/test/SHA256DigestTest.cs
+++ b/crypto/test/src/crypto/test/SHA256DigestTest.cs
@@ -9,63 +9,63 @@ using Org.BouncyCastle.Utilities.Test;
 
 namespace Org.BouncyCastle.Crypto.Tests
 {
-	/**
+    /**
      * standard vector test for SHA-256 from FIPS Draft 180-2.
      *
      * Note, the first two vectors are _not_ from the draft, the last three are.
      */
-	[TestFixture]
-	public class Sha256DigestTest
-		: DigestTest
-	{
-		private static string[] messages =
-		{
-			"",
-			"a",
-			"abc",
-			"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
-		};
+    [TestFixture]
+    public class Sha256DigestTest
+        : DigestTest
+    {
+        private static string[] messages =
+        {
+            "",
+            "a",
+            "abc",
+            "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
+        };
 
-		private static string[] digests =
-		{
-			"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-			"ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb",
-			"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",
-			"248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"
-		};
+        private static string[] digests =
+        {
+            "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+            "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb",
+            "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad",
+            "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"
+        };
 
-		// 1 million 'a'
-		static private string  million_a_digest = "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0";
+        // 1 million 'a'
+        static private string  million_a_digest = "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0";
 
-		internal Sha256DigestTest()
-			: base(new Sha256Digest(), messages, digests)
-		{
-		}
+        public Sha256DigestTest()
+            : base(new Sha256Digest(), messages, digests)
+        {
+        }
 
-		public override void PerformTest()
-		{
-			base.PerformTest();
+        public override void PerformTest()
+        {
+            base.PerformTest();
 
-			millionATest(million_a_digest);
-		}
+            millionATest(million_a_digest);
+        }
 
-		protected override IDigest CloneDigest(IDigest digest)
-		{
-			return new Sha256Digest((Sha256Digest)digest);
-		}
+        protected override IDigest CloneDigest(IDigest digest)
+        {
+            return new Sha256Digest((Sha256Digest)digest);
+        }
 
-		public static void Main(
-			string[] args)
-		{
-			RunTest(new Sha256DigestTest());
-		}
+        public static void Main(
+            string[] args)
+        {
+            RunTest(new Sha256DigestTest());
+        }
 
-		[Test]
-		public void TestFunction()
-		{
-			string resultText = Perform().ToString();
+        [Test]
+        public void TestFunction()
+        {
+            string resultText = Perform().ToString();
 
-			Assert.AreEqual(Name + ": Okay", resultText);
-		}
-	}
+            Assert.AreEqual(Name + ": Okay", resultText);
+        }
+    }
 }
diff --git a/crypto/test/src/crypto/test/SHA384DigestTest.cs b/crypto/test/src/crypto/test/SHA384DigestTest.cs
index ae9ad0c17..99363ac5a 100644
--- a/crypto/test/src/crypto/test/SHA384DigestTest.cs
+++ b/crypto/test/src/crypto/test/SHA384DigestTest.cs
@@ -9,62 +9,62 @@ using Org.BouncyCastle.Utilities.Test;
 
 namespace Org.BouncyCastle.Crypto.Tests
 {
-	/**
+    /**
      * standard vector test for SHA-384 from FIPS Draft 180-2.
      *
      * Note, the first two vectors are _not_ from the draft, the last three are.
      */
-	[TestFixture]
-	public class Sha384DigestTest
-		: DigestTest
-	{
-		private static string[] messages =
-		{
-			"",
-			"a",
-			"abc",
-			"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"
-		};
+    [TestFixture]
+    public class Sha384DigestTest
+        : DigestTest
+    {
+        private static string[] messages =
+        {
+            "",
+            "a",
+            "abc",
+            "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu"
+        };
 
-		private static string[] digests =
-		{
-			"38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b",
-			"54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31",
-			"cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7",
-			"09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712fcc7c71a557e2db966c3e9fa91746039"
-		};
+        private static string[] digests =
+        {
+            "38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b",
+            "54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31",
+            "cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7",
+            "09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712fcc7c71a557e2db966c3e9fa91746039"
+        };
 
-		static private string  million_a_digest = "9d0e1809716474cb086e834e310a4a1ced149e9c00f248527972cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985";
+        static private string  million_a_digest = "9d0e1809716474cb086e834e310a4a1ced149e9c00f248527972cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985";
 
-		internal Sha384DigestTest()
-			: base(new Sha384Digest(), messages, digests)
-		{
-		}
+        public Sha384DigestTest()
+            : base(new Sha384Digest(), messages, digests)
+        {
+        }
 
-		public override void PerformTest()
-		{
-			base.PerformTest();
+        public override void PerformTest()
+        {
+            base.PerformTest();
 
-			millionATest(million_a_digest);
-		}
+            millionATest(million_a_digest);
+        }
 
-		protected override IDigest CloneDigest(IDigest digest)
-		{
-			return new Sha384Digest((Sha384Digest)digest);
-		}
+        protected override IDigest CloneDigest(IDigest digest)
+        {
+            return new Sha384Digest((Sha384Digest)digest);
+        }
 
-		public static void Main(
-			string[] args)
-		{
-			RunTest(new Sha384DigestTest());
-		}
+        public static void Main(
+            string[] args)
+        {
+            RunTest(new Sha384DigestTest());
+        }
 
-		[Test]
-		public void TestFunction()
-		{
-			string resultText = Perform().ToString();
+        [Test]
+        public void TestFunction()
+        {
+            string resultText = Perform().ToString();
 
-			Assert.AreEqual(Name + ": Okay", resultText);
-		}
-	}
+            Assert.AreEqual(Name + ": Okay", resultText);
+        }
+    }
 }
diff --git a/crypto/test/src/crypto/test/SHA512DigestTest.cs b/crypto/test/src/crypto/test/SHA512DigestTest.cs
index 814500b63..d4f56e15e 100644
--- a/crypto/test/src/crypto/test/SHA512DigestTest.cs
+++ b/crypto/test/src/crypto/test/SHA512DigestTest.cs
@@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 		// 1 million 'a'
 		static private string  million_a_digest = "e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b";
 
-		internal Sha512DigestTest()
+		public Sha512DigestTest()
 			: base(new Sha512Digest(), messages, digests)
 		{
 		}
diff --git a/crypto/test/src/crypto/test/SM3DigestTest.cs b/crypto/test/src/crypto/test/SM3DigestTest.cs
index b1e93059e..113789897 100644
--- a/crypto/test/src/crypto/test/SM3DigestTest.cs
+++ b/crypto/test/src/crypto/test/SM3DigestTest.cs
@@ -39,7 +39,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 	    private static string sixtyFourKdigest = "97049bdc8f0736bc7300eafa9980aeb9cf00f24f7ec3a8f1f8884954d7655c1d";
 	    private static string million_a_digest = "c8aaf89429554029e231941a2acc0ad61ff2a5acd8fadd25847a3a732b3b02c3";
 
-	    internal SM3DigestTest()
+	    public SM3DigestTest()
 			: base(new SM3Digest(), messages, digests)
 	    {
 	    }
diff --git a/crypto/test/src/crypto/test/TigerDigestTest.cs b/crypto/test/src/crypto/test/TigerDigestTest.cs
index 21bcfe78d..b351c4b5e 100644
--- a/crypto/test/src/crypto/test/TigerDigestTest.cs
+++ b/crypto/test/src/crypto/test/TigerDigestTest.cs
@@ -48,35 +48,35 @@ namespace Org.BouncyCastle.Crypto.Tests
 
         readonly static string hash64k = "FDF4F5B35139F48E710E421BE5AF411DE1A8AAC333F26204";
 
-		internal TigerDigestTest()
-			: base(new TigerDigest(), messages, digests)
-		{
-		}
+        public TigerDigestTest()
+            : base(new TigerDigest(), messages, digests)
+        {
+        }
 
-		public override void PerformTest()
-		{
-			base.PerformTest();
+        public override void PerformTest()
+        {
+            base.PerformTest();
 
-			sixtyFourKTest(hash64k);
-		}
+            sixtyFourKTest(hash64k);
+        }
 
-		protected override IDigest CloneDigest(IDigest digest)
-		{
-			return new TigerDigest((TigerDigest)digest);
-		}
+        protected override IDigest CloneDigest(IDigest digest)
+        {
+            return new TigerDigest((TigerDigest)digest);
+        }
 
-		public static void Main(
-			string[] args)
-		{
-			RunTest(new TigerDigestTest());
-		}
+        public static void Main(
+            string[] args)
+        {
+            RunTest(new TigerDigestTest());
+        }
 
-		[Test]
-		public void TestFunction()
-		{
-			string resultText = Perform().ToString();
+        [Test]
+        public void TestFunction()
+        {
+            string resultText = Perform().ToString();
 
-			Assert.AreEqual(Name + ": Okay", resultText);
-		}
+            Assert.AreEqual(Name + ": Okay", resultText);
+        }
     }
 }
diff --git a/crypto/test/src/crypto/test/WhirlpoolDigestTest.cs b/crypto/test/src/crypto/test/WhirlpoolDigestTest.cs
index eff9b1c2e..1445b8977 100644
--- a/crypto/test/src/crypto/test/WhirlpoolDigestTest.cs
+++ b/crypto/test/src/crypto/test/WhirlpoolDigestTest.cs
@@ -51,7 +51,7 @@ namespace Org.BouncyCastle.Crypto.Tests
 
 		private static string _thirtyOneZeros = "3E3F188F8FEBBEB17A933FEAF7FE53A4858D80C915AD6A1418F0318E68D49B4E459223CD414E0FBC8A57578FD755D86E827ABEF4070FC1503E25D99E382F72BA";
 
-		internal WhirlpoolDigestTest()
+		public WhirlpoolDigestTest()
 			: base(new WhirlpoolDigest(), messages, digests)
 		{
 		}