2 // TestSuite.System.Security.Cryptography.DESCryptoServiceProviderTest.cs
5 // Sebastien Pouliot <sebastien@ximian.com>
7 // (C) 2004 Novell (http://www.novell.com)
11 using System.Security.Cryptography;
13 using NUnit.Framework;
15 namespace MonoTests.System.Security.Cryptography {
18 public class DESCryptoServiceProviderTest : DESFIPS81Test {
23 des = new DESCryptoServiceProvider ();
27 public void KeyChecks ()
30 AssertEquals ("Key", 8, key.Length);
31 Assert ("IsWeakKey", !DES.IsWeakKey (key));
32 Assert ("IsSemiWeakKey", !DES.IsSemiWeakKey (key));
39 AssertEquals ("IV", 8, iv.Length);
42 // other tests (test vectors) are inherited from DESFIPS81Test
43 // (in DESTest.cs) but executed here