diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-01-21 17:20:04 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-01-21 17:20:04 +0700 |
commit | 5f39bd591cd54a1747518d99b723991383a8a9de (patch) | |
tree | bac28f6a3008ce790c38a01d55aa58f88d78eabd /crypto/test | |
parent | Fix up merge (diff) | |
download | BouncyCastle.NET-ed25519-5f39bd591cd54a1747518d99b723991383a8a9de.tar.xz |
Add new files to project, rename Sm3 to SM3
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/crypto/test/RegressionTest.cs | 8 | ||||
-rw-r--r-- | crypto/test/src/crypto/test/SM3DigestTest.cs (renamed from crypto/test/src/crypto/test/Sm3DigestTest.cs) | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/crypto/test/src/crypto/test/RegressionTest.cs b/crypto/test/src/crypto/test/RegressionTest.cs index 4b639005e..8bc8e8339 100644 --- a/crypto/test/src/crypto/test/RegressionTest.cs +++ b/crypto/test/src/crypto/test/RegressionTest.cs @@ -97,9 +97,9 @@ namespace Org.BouncyCastle.Crypto.Tests new Rfc3211WrapTest(), new SeedTest(), new NaccacheSternTest(), - new Salsa20Test(), - new XSalsa20Test(), - new ChaChaTest(), + new Salsa20Test(), + new XSalsa20Test(), + new ChaChaTest(), new CMacTest(), new EaxTest(), new GcmTest(), @@ -117,7 +117,7 @@ namespace Org.BouncyCastle.Crypto.Tests new SipHashTest(), new Poly1305Test(), new OcbTest(), - new Sm3DigestTest() + new SM3DigestTest() }; public static void Main( diff --git a/crypto/test/src/crypto/test/Sm3DigestTest.cs b/crypto/test/src/crypto/test/SM3DigestTest.cs index 3d004deaa..b1e93059e 100644 --- a/crypto/test/src/crypto/test/Sm3DigestTest.cs +++ b/crypto/test/src/crypto/test/SM3DigestTest.cs @@ -13,7 +13,7 @@ namespace Org.BouncyCastle.Crypto.Tests * standard vector test for SM3 digest from chinese specification */ [TestFixture] - public class Sm3DigestTest + public class SM3DigestTest : DigestTest { private static string[] messages = { @@ -39,8 +39,8 @@ namespace Org.BouncyCastle.Crypto.Tests private static string sixtyFourKdigest = "97049bdc8f0736bc7300eafa9980aeb9cf00f24f7ec3a8f1f8884954d7655c1d"; private static string million_a_digest = "c8aaf89429554029e231941a2acc0ad61ff2a5acd8fadd25847a3a732b3b02c3"; - internal Sm3DigestTest() - : base(new Sm3Digest(), messages, digests) + internal SM3DigestTest() + : base(new SM3Digest(), messages, digests) { } @@ -54,13 +54,13 @@ namespace Org.BouncyCastle.Crypto.Tests protected override IDigest CloneDigest(IDigest digest) { - return new Sm3Digest((Sm3Digest)digest); + return new SM3Digest((SM3Digest)digest); } public static void Main( string[] args) { - RunTest(new Sm3DigestTest()); + RunTest(new SM3DigestTest()); } [Test] |