New test.
[mono.git] / mcs / class / corlib / Test / System.Security.Cryptography / ChangeLog
index af051f1b57e0bbe869493ba3a733dbf507eb8c98..94924f32f50963f43c252dedbb9d761711d9968a 100644 (file)
@@ -1,3 +1,317 @@
+2006-09-08  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * RSACryptoServiceProviderTest.cs: Added test cases for decoding bad
+       PKCS1 and OAEP padding - both resulting in a CryptographicException.
+       * RSAOAEPKeyExchangeDeformatterTest.cs: Add test case for bad padding.
+       * RSAPKCS1KeyExchangeDeformatterTest.cs: Add test case for bad padding
+
+2006-09-05  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * RSACryptoServiceProviderTest.cs: Test case for #79269 where we 
+       ensure a CryptographicException (not a NRE) when decrypting without a
+       private key.
+
+2006-07-01  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * RSAPKCS1SignatureDeformatterTest.cs: Added test case where 
+       SetHashAlgorithm isn't called and the hash algorithm name is derived
+       from the hash instance. From bug #78744 by Diego Mesa Tabares.
+
+2006-06-15  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * HashAlgorithmTest.cs: Added new test cases wrt the output buffer 
+       used in TransformBlock (e.g. bug #78647). Updated existing test case
+       to work under 2.0 final.
+       * HMACMD5Test.cs: Fix SetUp to allow new inherited test cases to work 
+       properly.
+       * HMACRIPEMD160Test.cs: Fix SetUp to allow new inherited test cases to
+       work properly.
+       * HMACSHA1Test.cs: Fix SetUp to allow new inherited test cases to 
+       work properly.
+       * HMACSHA256Test.cs: Fix SetUp to allow new inherited test cases to 
+       work properly.
+       * HMACSHA384Test.cs: New. Basic test cases that, cheaply, inherits 
+       the HashAlgorithm tests.
+       * HMACSHA512Test.cs: New. Basic test cases that, cheaply, inherits 
+       the HashAlgorithm tests.
+       * KeyedHashAlgorithmTest.cs: Ensure we're always using the same key 
+       (required for new, inherited, test cases). Fix ToString to match 
+       KeyedHashAlgorithm (and not an inherited class).
+
+2006-06-01  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * RandomNumberGeneratorTest.cs: Don't forget the last run in Runs. 
+       Track both 0 and 1 runs. Changed runs ranges to match FIPS140-2 Change
+       Notice #1 (fixes bug #78560). Updated test cases to NUnit 2.2 format.
+
+2005-12-15  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * RijndaelTest.cs: Add test cases for cycling key sizes and block 
+       sizes.
+       * SymmetricAlgorithm2Test.cs: Added test case for re-setting the 
+       BlockSize. Keeping the same value *doesn't* change the current IV 
+       (while doing the same on the KeySize *does* change the key).
+
+2005-11-22  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DSATest.cs: Added test case where J isn't imported. In this case we
+       don't export (our internally calculated) J and it's also not part of 
+       the XML output.
+
+2005-10-21  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * RC2CryptoServiceProviderTest.cs: New. Unit tests specific to this 
+       implementation (not algorithm specific but required to match MS 
+       behaviour).
+       * RijndaelManagedTest.cs: Added unit tests specific to this 
+       implementation (not algorithm specific but required to match MS
+       behaviour).
+       * DESCryptoServiceProviderTest.cs: Added unit tests specific to this
+       implementation (not algorithm specific but required to match MS
+       behaviour).
+       * TripleDESCryptoServiceProviderTest.cs: New. Unit tests specific to 
+       this implementation (not algorithm specific but required to match MS
+       behaviour).
+
+2005-09-29  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * HMACSHA1Test.cs: Use the new ctor(byte[],bool) introduced in 2.0 RC
+       in some of the existing tests (under 2.0).
+
+2005-04-27  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DSACryptoServiceProviderTest.cs: Catch UnauthorizedAccessException
+       directly in UseMachineKeyStore (not just wrapped inside a 
+       CryptographicException). 
+       * RSACryptoServiceProviderTest.cs: Catch UnauthorizedAccessException
+       directly in UseMachineKeyStore (not just wrapped inside a 
+       CryptographicException). 
+
+2005-04-25  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CryptoConfigTest.cs: Check that ArgumentNullException is throw in
+       EncodeOID for 2.0. Comment test for RSA OID (2.0).
+       * DESTest.cs: Check that null keys throws CryptographicException in 
+       IsWeakKey and IsSemiWeakKey for 2.0.
+       * TripleDESTest.cs: Check that null keys throws CryptographicException
+       in IsWeakKey for 2.0.
+       * SymmetricAlgorithm2Test.cs: Check that a FeedbackSize of zero throws
+       a CryptographicException in 2.0.
+
+2005-04-18  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SymmetricAlgorithm2Test.cs: Added a test case where the FeedBackSize
+       is set to 0 before starting encryption.
+
+2005-03-30  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CryptoStreamTest.cs: Added test case when when no padding is used.
+
+2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CryptoConfigCas.cs: New. CAS unit tests for CryptoConfig.
+       * CryptoAPITransformCas.cs: New. CAS unit tests for CryptoAPITransform.
+
+2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DSATest.cs: Added unit test for Counter == 0. Actualized test cases
+       for NET_2_0 now that we can inherit from DSA outside corlib.
+
+2005-01-30  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * PasswordDeriveBytesTest.cs: Changed [Ignore] to [Category
+       ("NotWorking")] to reduce nunit logs.
+
+2005-01-19  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CryptoStreamTest.cs: Added [ExpectedException] for [Ignored] unit 
+       tests that were converted to [Category]
+
+2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CryptoConfigTest.cs: Added new RIPEMD160 hash algorithm and new HMAC
+       algorithms (HMACMD5, HMACRIPEMD160, HMACSHA256, HMACSHA384 and 
+       HMACSHA512) to the tests.
+       * DSACryptoServiceProviderTest.cs: Fixed VerifySignatureWithoutKey to
+       ensure that Mono didn't create the key before starting verification.
+       * RSACryptoServiceProviderTest.cs: Added tests for PublicOnly in the
+       constructor tests and for VerifyHash with a null OID.
+       * RSAPKCS1SignatureFormatterTest.cs: Fixed signatures values for 
+       SHA256, SHA384 and SHA512 for NET_2_0 profile. The older signatures
+       (working only in Mono) can't be used because 2.0 use new OID for those
+       hash algorithms. Note that this still only works with Mono in 2.0!
+
+2005-01-10  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * CryptoStreamTest.cs, DSACryptoServiceProviderTest.cs,
+       HashAlgorithmTest.cs, PKCS1MaskGenerationMethodTest.cs,
+       RSAPKCS1KeyExchangeFormatterTest.cs, ToBase64TransformTest.cs:
+       Use [Category ("NotDotNet")] for tests failing only on the MS runtime
+       (so they are now executed on Mono).
+
+2005-01-08  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * TripleDESTest.cs: Testing weak key with null throws a NRE.
+
+2005-01-06  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * DESTest.cs: Updated weak key and semi-weak key tests with more 
+       exhaustive versions.
+       * TripleDESTest.cs: Added tests when including a DES weak key into
+       a 2DES or 3DES key.
+
+2005-01-04  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * CryptoStreamTest.cs: Undo some previous fixes that have changed from
+       2.0 Nov CTP. Stream chaining was working on Nov CTP but are failing 
+       again with Dec.
+
+2004-12-23  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * CryptoStreamTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
+       * DSACryptoServiceProviderTest.cs: Fixed tests to execute properly on 
+       2.0 Nov CTP.
+       * PaddingModeTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
+       * RSACryptoServiceProviderTest.cs: Fixed tests to execute properly on 
+       2.0 Nov CTP.
+
+2004-12-23  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * ProtectedDataTest.cs: Moved in System.Security.dll
+       * ProtectedMemoryTest.cs: Moved in System.Security.dll
+
+2004-12-06  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * RSACryptoServiceProviderTest.cs: Adjusted unit tests to show that 
+       RSACryptoServiceProvider doesn't support private keys without CRT
+       parameters available - except to import the keys.
+
+2004-11-09  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * PasswordDeriveBytesTest.cs: Removed test for 69036. This is a MS
+       bug that will be fixed in 2.0 beta 2.
+
+2004-11-03  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to 
+       fail if the key container directory wasn't yet created (root).
+       * PasswordDeriveBytesTest.cs: Added tests for NET_2_0, more tests
+       for all constructors, tests for properties and a test for bug 69036.
+       * RSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to 
+       fail if the key container directory wasn't yet created (root).
+
+2004-08-31  Nick Drochak <ndrochak@gol.com>
+
+       * DSACryptoServiceProviderTest.cs: 
+       * RSACryptoServiceProviderTest.cs: Feed csc smaller bite sizes.
+
+2004-07-07  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * DESTest.cs: Added a new test case to check default values.
+       * HMACSHA1.cs: Fixed bad test (and renamed it).
+       * RC2Test.cs: Added a new test case to check default values.
+       * RijndaelTest.cs: Added a new test case to check default values.
+       Convert tests from NUnit 1 to 2.2.
+       * TripleDESTest.cs: Added a new test case to check default values.
+       Convert tests to NUnit 2.2.
+
+2004-07-07  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * AllTests2.cs: Updated to NUnit 2.2 Assert.
+       * CipherModeTest.cs: New. Tests supported CipherMode for all 
+       SymmetricAlgorithm included in the framework (enum contains two more
+       modes that aren't implemented in any Fx version).
+       * CryptoConfigTest.cs: Ajusted new OID (for old names) in Fx 2.0.
+       * CryptoStreamTest.cs: Fixed different reported exception in Fx 2.0.
+       Fixed a bad test.
+       * CspProviderFlagsTest.cs: New. Test the values of the enum.
+       * DSACryptoServiceProviderTest.cs: Added new tests for new public 
+       properties and methods added in Fx 2.0. Duplicated test to import a
+       key pair into a disposed instance (works in Fx 2.0). Removed all
+       [Ignore]s in NET_2_0 as the MS class/runtime has been fixed.
+       * DSASignatureDeformatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
+       different reported exception in Fx 2.0.
+       * DSASignatureFormatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
+       different reported exception in Fx 2.0.
+       * HMACRIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
+       * HMACSHA1Test.cs: Fixed tests so they work on both NET_1_1 and 
+       NET_2_0 profiles (as HMACSHA1 changed it's base class).
+       * HashAlgorithmTest.cs: Fixed different reported exception in Fx 2.0.
+       Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
+       * MACTripleDESTest.cs: Fixed tests so they work on both NET_1_1 and 
+       NET_2_0 profiles.
+       * PKCS1MaskGenerationMethodTest.cs: Removed [Ignore] in NET_2_0 as the
+       MS class has been fixed.
+       * PaddingModeTest.cs: Added new tests for the two new padding mode
+       introduced in Fx 2.0. Converted to NUnit 2.2.
+       * PasswordDeriveBytesTest.cs: Removed [ExpectedException] for 
+       StrangeBehaviour test as it is fixed in Fx 2.0.
+       * RC2Test.cs: Changed exception from CryptographicException to 
+       CryptographicUnexpectedOperationException for Fx 1.1/2.0.
+       * RIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
+       * RSACryptoServiceProviderTest.cs: Added new tests for new public 
+       properties and methods added in Fx 2.0. Duplicated test to import a
+       key pair into a disposed instance (works in Fx 2.0). Duplicated test
+       to sign with a null OID (Fx 2.0 use SHA1 oid in this case).
+       * RSAOAEPKeyExchangeDeformatterTest.cs: Changed exception for a key
+       exchange with no key (to match Fx 2.0).
+       * RSAOAEPKeyExchangeFormatterTest.cs: Changed exception for a key
+       exchange with no key (to match Fx 2.0).
+       * RSAPKCS1KeyExchangeFormatterTest.cs: Changed exception for a key
+       exchange with no key (to match Fx 2.0). Removed [Ignore] in NET_2_0 as
+       the MS class/runtime has been fixed.
+       * RSAPKCS1SignatureDeformatterTest.cs: Null keys, in constructor or in
+       SetKey method, now throw an ArgumentNullException in Fx 2.0.
+       * RSAPKCS1SignatureFormatterTest.cs: Null keys, in constructor or in
+       SetKey method, now throw an ArgumentNullException in Fx 2.0.
+       * Rfc2898DeriveBytesTest.cs: Typecasted a null as a string.
+       * SymmetricAlgorithm2Test.cs: In Fx 2.0 an empty IV now throws a 
+       CryptographicException.
+       * ToBase64TransformTest.cs: Fixed different reported exception in Fx 2.0.
+       Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
+
+2004-06-23  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CryptoStreamTest.cs: Added two tests for bug #60573. One shows that
+       an encryptor doesn't reduce the number of block on Write while the
+       second shows that a decryptor does reduce the number of blocks on 
+       Write.
+
+2004-06-16  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * SignatureDescriptionTest.cs: Added missing [TestFixture] :( and 
+       cases for the previously undocumented .ctor(SecurityElement) - which
+       is now, backwardly, documented in VS.NET 2005.
+
+2004-05-27  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * HashAlgorithmTest.cs: Added new tests to check for more exceptions.
+
+2004-05-26  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CryptoStreamTest.cs: Added new unit tests for overflows.
+       * FromBase64Transform.cs: Added new unit tests for undocumented 
+       exceptions (null, overflows...).
+       * ToBase64TransformTest.cs: Added new unit tests for negatives and
+       overflows. 
+
+2004-05-20  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CryptoStreamTest.cs, DESCryptoServiceProviderTest.cs, 
+       DSACryptoServiceProviderTest.cs, DSATest.cs, FromBase64Transform.cs,
+       HMACRIPEMD160Test.cs, MD5Test.cs, PKCS1MaskGenerationMethodTest.cs,
+       RIPEMD160ManagedTest.cs, RNGCryptoServiceProviderTest.cs, 
+       RSACryptoServiceProviderTest.cs, RSAOAEPKeyExchangeDeformatterTest.cs,
+       RSAOAEPKeyExchangeFormatterTest.cs, RSAPKCS1KeyExchangeDeformatterTest.cs,
+       RSAPKCS1KeyExchangeFormatterTest.cs, RSAPKCS1SignatureDeformatterTest.cs,
+       RSAPKCS1SignatureFormatterTest.cs, RSATest.cs: SetUp/TearDown are now
+       public (required for new nunit).
+
+2004-05-17  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * RNGCryptoServiceProviderTest.cs: Added new tests to see how the 
+       constructor behave with null seeds or if they modify the seed.
+
 2004-05-07  Sebastien Pouliot  <sebastien@ximian.com>
 
        * DSACryptoServiceProviderTest.cs: Added a new unit test for SignData
 2003-10-04  Sebastien Pouliot  <spouliot@videotron.ca>
 
        * CryptoStreamTest.cs: Added test case from bugzilla #49323 from
-       Carlos Guzmán Álvarez and some small tests for empty stream with
+       Carlos Guzmán Álvarez and some small tests for empty stream with
        different PaddingMode (as found by Lluis Sanchez Gual).
 
 2003-08-05  Sebastien Pouliot  <spouliot@videotron.ca>
 
 2002-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
-       * MD5Test.cs: new test from Eduardo García Cebollero (kiwnix@yahoo.es).
+       * MD5Test.cs: new test from Eduardo García Cebollero (kiwnix@yahoo.es).
        * AllTests.cs: added new test.