1 2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
3 * CryptoStreamTest.cs: Add (nunit-ized) test cases provided by
4 Santa Marta (via Atsushi) as repro for bugs #539288 and #539229
6 2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
8 * CryptoStreamTest.cs: Convert to newer nunit syntax
10 2008-09-17 Sebastien Pouliot <sebastien@ximian.com>
12 * CryptoConfigTest.cs: Add test cases for HMAC URI.
14 2008-07-13 Nestor Salceda <nestor.salceda@gmail.com>
16 * RSAPKCS1KeyExchangeFormatterTest.cs: Add test case where you are
17 passing null parameters to SetKey method and constructor with the key as
18 parameter. Fixes the bug #408738.
20 2008-04-21 Sebastien Pouliot <sebastien@ximian.com>
22 * HMACSHA1Test.cs: Add test case where data reside inside a byte
23 array. Patch by Kazuki Oikawa.
25 2008-04-17 Sebastien Pouliot <sebastien@ximian.com>
27 * DSATest.cs: Add valid test cases with invalid xml. Update to
29 * HashAlgorithmTest.cs: Fix compiler warnings.
30 * RSATest.cs: Add valid test cases with invalid xml. Update to
32 * SHA256Test.cs, SHA384Test.cs, SHA512Test.cs: Flush
34 2008-03-04 Sebastien Pouliot <sebastien@ximian.com>
36 * PaddingModeTest.cs: Add test case for #366623 ANSI padding bug.
38 2008-02-21 Sebastien Pouliot <sebastien@ximian.com>
40 * Rfc2898DeriveBytesTest.cs: Add test cases for consecutive calls to
41 GetBytes and compare the result to a single, larger, call. Converted
42 all exitsing tests to NUnit 2.2.
44 2008-01-02 Sebastien Pouliot <sebastien@ximian.com>
46 * RC2CryptoServiceProviderTest.cs: Fix Create[De|En]cryptor_KeyNull
47 test case not to fail about 1 out of 256 times under the 2.0 profile.
48 * TripleDESCryptoServiceProviderTest.cs: Fix Create[De|En]cryptor_KeyNull
49 test case not to fail about 1 out of 256 times under the 2.0 profile.
51 2007-11-20 Sebastien Pouliot <sebastien@ximian.com>
53 * DESCryptoServiceProviderTest.cs: Fix CreateDecryptor_KeyNull test
54 case not to fail about 1 out of 256 times under the 2.0 profile.
56 2007-10-23 Sebastien Pouliot <sebastien@ximian.com>
58 * DESCryptoServiceProviderTest.cs: Fix CreateEncryptor_KeyNull test
59 case not to fail about 1 out of 256 times under the 2.0 profile.
61 2007-05-16 Sebastien Pouliot <sebastien@ximian.com>
63 * CryptoStreamTest.cs: Add test cases for WriteByte.
65 2007-05-08 Randolph Chung <tausq@debian.org>
67 * DSACryptoServiceProviderTest.cs: Remove "NotWorking" annotation
68 for the blob tests that should now pass.
70 2007-05-08 Sebastien Pouliot <sebastien@ximian.com>
72 * DSATest.cs: Add test case where we import a key that has a null Y
73 (public part) but where X (private part) is available - and usable
76 2007-03-22 Sebastien Pouliot <sebastien@ximian.com>
78 * CryptoConfigTest.cs: Fix upper/lower/mixed cases tests as they work
80 * CryptoStreamTest.cs: Fixed some test cases to work properly on MS
82 * DSACryptoServiceProviderTest.cs: Normalize line endings.
83 * PasswordDeriveBytesTest.cs: Fix test case that used Reset (as the
84 method was fixed to reset the state in fx 2.0).
85 * Rfc2898DeriveBytesTest.cs: Add test case to trigger an endian bug.
86 * RSACryptoServiceProviderTest.cs: Normalize line endings.
87 * SymmetricAlgorithmTransformTest.cs: Change/split test cases so that
88 they work properly under both MS 1.1 and 2.0. In some cases tests are
89 marked as NotWorking because Mono implements the, more consistent, 2.0
90 behavior for all transforms.
92 2007-03-15 Roei Erez <roeie@mainsoft.com>
94 * Adding some TARGET_JVM tags.
96 2007-03-05 Sebastien Pouliot <sebastien@ximian.com>
98 * SymmetricAlgorithmTransformTest.cs: Add test cases for #81008 by
99 looking at the encrypted/decrypted block length when TransformBlock is
100 called with different MoO and paddings.
102 2007-02-14 Sebastien Pouliot <sebastien@ximian.com>
104 * HashAlgorithmTest.cs: Convert to NUnit 2.2 format.
105 * HMACMD5Test.cs: Convert to NUnit 2.2 format.
106 * HMACRIPEMD160Test.cs: Convert to NUnit 2.2 format.
107 * HMACSHA1Test.cs: Convert to NUnit 2.2 format.
108 * HMACSHA256Test.cs: Convert to NUnit 2.2 format.
109 * HMACSHA384Test.cs: Convert to NUnit 2.2 format. Add test cases from
110 RFC4231 using the correct block size (128) and the "legacy" size (64).
111 * HMACSHA512Test.cs: Convert to NUnit 2.2 format. . Add test cases from
112 RFC4231 using the correct block size (128) and the "legacy" size (64).
113 * KeyedHashAlgorithmTest.cs: Convert to NUnit 2.2 format.
114 * SHA1CryptoServiceProviderTest.cs: Convert to NUnit 2.2 format.
115 * SHA1Test.cs: Convert to NUnit 2.2 format.
116 * SHA256ManagedTest.cs: Convert to NUnit 2.2 format.
117 * SHA256Test.cs: Convert to NUnit 2.2 format.
118 * SHA384ManagedTest.cs: Convert to NUnit 2.2 format.
119 * SHA384Test.cs: Convert to NUnit 2.2 format.
120 * SHA512ManagedTest.cs: Convert to NUnit 2.2 format.
121 * SHA512Test.cs: Convert to NUnit 2.2 format.
123 2007-02-14 Sebastien Pouliot <sebastien@ximian.com>
125 * CryptoConfigTest.cs: Adjust line-endings.
126 * CryptoStreamTest.cs: Adjust line-endings.
127 * DESTest.cs: Adjust line-endings.
128 * DSACryptoServiceProviderTest.cs: Adjust line-endings.
129 * DSATest.cs: Adjust line-endings.
130 * RSACryptoServiceProviderTest.cs: Adjust line-endings.
132 2007-01-08 Sebastien Pouliot <sebastien@ximian.com>
134 * DESCryptoServiceProviderTest.cs: Remove test cases for bug #80439
135 as they are more general than DES and the default padding.
136 * SymmetricAlgorithmTransformTest.cs: New. Extensive test cases for
137 bug #80439, all symmtric ciphers (all block size), all mode of
138 operations and all supported padding modes.
140 2007-01-04 Sebastien Pouliot <sebastien@ximian.com>
142 * DESCryptoServiceProviderTest.cs: Update and add new test cases for
145 2007-01-03 Sebastien Pouliot <sebastien@ximian.com>
147 * DESCryptoServiceProviderTest.cs: Add tests for bug #80439 where
148 inputCount is reduced to fit into the output buffer (for any mode).
150 2006-11-24 Sebastien Pouliot <sebastien@ximian.com>
152 * CryptoConfigTest.cs: Added test case for X509Chain.
154 2006-11-16 Sebastien Pouliot <sebastien@ximian.com>
156 * PasswordDeriveBytesTest.cs: Added test case for bug #79499
158 2006-10-11 Sebastien Pouliot <sebastien@ximian.com>
160 * CryptoConfigTest.cs: Added test cases to ensure lower/mixed-case of
161 algorithm names are supported by CreateFromName and MapNameToOID (fix
162 bug #79641). Updated some OID that were changed (well nulled) in the
163 final 2.0 release of MS framework.
165 2006-09-08 Sebastien Pouliot <sebastien@ximian.com>
167 * RSACryptoServiceProviderTest.cs: Added test cases for decoding bad
168 PKCS1 and OAEP padding - both resulting in a CryptographicException.
169 * RSAOAEPKeyExchangeDeformatterTest.cs: Add test case for bad padding.
170 * RSAPKCS1KeyExchangeDeformatterTest.cs: Add test case for bad padding
172 2006-09-05 Sebastien Pouliot <sebastien@ximian.com>
174 * RSACryptoServiceProviderTest.cs: Test case for #79269 where we
175 ensure a CryptographicException (not a NRE) when decrypting without a
178 2006-07-01 Sebastien Pouliot <sebastien@ximian.com>
180 * RSAPKCS1SignatureDeformatterTest.cs: Added test case where
181 SetHashAlgorithm isn't called and the hash algorithm name is derived
182 from the hash instance. From bug #78744 by Diego Mesa Tabares.
184 2006-06-15 Sebastien Pouliot <sebastien@ximian.com>
186 * HashAlgorithmTest.cs: Added new test cases wrt the output buffer
187 used in TransformBlock (e.g. bug #78647). Updated existing test case
188 to work under 2.0 final.
189 * HMACMD5Test.cs: Fix SetUp to allow new inherited test cases to work
191 * HMACRIPEMD160Test.cs: Fix SetUp to allow new inherited test cases to
193 * HMACSHA1Test.cs: Fix SetUp to allow new inherited test cases to
195 * HMACSHA256Test.cs: Fix SetUp to allow new inherited test cases to
197 * HMACSHA384Test.cs: New. Basic test cases that, cheaply, inherits
198 the HashAlgorithm tests.
199 * HMACSHA512Test.cs: New. Basic test cases that, cheaply, inherits
200 the HashAlgorithm tests.
201 * KeyedHashAlgorithmTest.cs: Ensure we're always using the same key
202 (required for new, inherited, test cases). Fix ToString to match
203 KeyedHashAlgorithm (and not an inherited class).
205 2006-06-01 Sebastien Pouliot <sebastien@ximian.com>
207 * RandomNumberGeneratorTest.cs: Don't forget the last run in Runs.
208 Track both 0 and 1 runs. Changed runs ranges to match FIPS140-2 Change
209 Notice #1 (fixes bug #78560). Updated test cases to NUnit 2.2 format.
211 2005-12-15 Sebastien Pouliot <sebastien@ximian.com>
213 * RijndaelTest.cs: Add test cases for cycling key sizes and block
215 * SymmetricAlgorithm2Test.cs: Added test case for re-setting the
216 BlockSize. Keeping the same value *doesn't* change the current IV
217 (while doing the same on the KeySize *does* change the key).
219 2005-11-22 Sebastien Pouliot <sebastien@ximian.com>
221 * DSATest.cs: Added test case where J isn't imported. In this case we
222 don't export (our internally calculated) J and it's also not part of
225 2005-10-21 Sebastien Pouliot <sebastien@ximian.com>
227 * RC2CryptoServiceProviderTest.cs: New. Unit tests specific to this
228 implementation (not algorithm specific but required to match MS
230 * RijndaelManagedTest.cs: Added unit tests specific to this
231 implementation (not algorithm specific but required to match MS
233 * DESCryptoServiceProviderTest.cs: Added unit tests specific to this
234 implementation (not algorithm specific but required to match MS
236 * TripleDESCryptoServiceProviderTest.cs: New. Unit tests specific to
237 this implementation (not algorithm specific but required to match MS
240 2005-09-29 Sebastien Pouliot <sebastien@ximian.com>
242 * HMACSHA1Test.cs: Use the new ctor(byte[],bool) introduced in 2.0 RC
243 in some of the existing tests (under 2.0).
245 2005-04-27 Sebastien Pouliot <sebastien@ximian.com>
247 * DSACryptoServiceProviderTest.cs: Catch UnauthorizedAccessException
248 directly in UseMachineKeyStore (not just wrapped inside a
249 CryptographicException).
250 * RSACryptoServiceProviderTest.cs: Catch UnauthorizedAccessException
251 directly in UseMachineKeyStore (not just wrapped inside a
252 CryptographicException).
254 2005-04-25 Sebastien Pouliot <sebastien@ximian.com>
256 * CryptoConfigTest.cs: Check that ArgumentNullException is throw in
257 EncodeOID for 2.0. Comment test for RSA OID (2.0).
258 * DESTest.cs: Check that null keys throws CryptographicException in
259 IsWeakKey and IsSemiWeakKey for 2.0.
260 * TripleDESTest.cs: Check that null keys throws CryptographicException
261 in IsWeakKey for 2.0.
262 * SymmetricAlgorithm2Test.cs: Check that a FeedbackSize of zero throws
263 a CryptographicException in 2.0.
265 2005-04-18 Sebastien Pouliot <sebastien@ximian.com>
267 * SymmetricAlgorithm2Test.cs: Added a test case where the FeedBackSize
268 is set to 0 before starting encryption.
270 2005-03-30 Sebastien Pouliot <sebastien@ximian.com>
272 * CryptoStreamTest.cs: Added test case when when no padding is used.
274 2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
276 * CryptoConfigCas.cs: New. CAS unit tests for CryptoConfig.
277 * CryptoAPITransformCas.cs: New. CAS unit tests for CryptoAPITransform.
279 2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
281 * DSATest.cs: Added unit test for Counter == 0. Actualized test cases
282 for NET_2_0 now that we can inherit from DSA outside corlib.
284 2005-01-30 Sebastien Pouliot <sebastien@ximian.com>
286 * PasswordDeriveBytesTest.cs: Changed [Ignore] to [Category
287 ("NotWorking")] to reduce nunit logs.
289 2005-01-19 Sebastien Pouliot <sebastien@ximian.com>
291 * CryptoStreamTest.cs: Added [ExpectedException] for [Ignored] unit
292 tests that were converted to [Category]
294 2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
296 * CryptoConfigTest.cs: Added new RIPEMD160 hash algorithm and new HMAC
297 algorithms (HMACMD5, HMACRIPEMD160, HMACSHA256, HMACSHA384 and
298 HMACSHA512) to the tests.
299 * DSACryptoServiceProviderTest.cs: Fixed VerifySignatureWithoutKey to
300 ensure that Mono didn't create the key before starting verification.
301 * RSACryptoServiceProviderTest.cs: Added tests for PublicOnly in the
302 constructor tests and for VerifyHash with a null OID.
303 * RSAPKCS1SignatureFormatterTest.cs: Fixed signatures values for
304 SHA256, SHA384 and SHA512 for NET_2_0 profile. The older signatures
305 (working only in Mono) can't be used because 2.0 use new OID for those
306 hash algorithms. Note that this still only works with Mono in 2.0!
308 2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
310 * CryptoStreamTest.cs, DSACryptoServiceProviderTest.cs,
311 HashAlgorithmTest.cs, PKCS1MaskGenerationMethodTest.cs,
312 RSAPKCS1KeyExchangeFormatterTest.cs, ToBase64TransformTest.cs:
313 Use [Category ("NotDotNet")] for tests failing only on the MS runtime
314 (so they are now executed on Mono).
316 2005-01-08 Sebastien Pouliot <sebastien@ximian.com>
318 * TripleDESTest.cs: Testing weak key with null throws a NRE.
320 2005-01-06 Sebastien Pouliot <sebastien@ximian.com>
322 * DESTest.cs: Updated weak key and semi-weak key tests with more
324 * TripleDESTest.cs: Added tests when including a DES weak key into
327 2005-01-04 Sebastien Pouliot <sebastien@ximian.com>
329 * CryptoStreamTest.cs: Undo some previous fixes that have changed from
330 2.0 Nov CTP. Stream chaining was working on Nov CTP but are failing
333 2004-12-23 Sebastien Pouliot <sebastien@ximian.com>
335 * CryptoStreamTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
336 * DSACryptoServiceProviderTest.cs: Fixed tests to execute properly on
338 * PaddingModeTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
339 * RSACryptoServiceProviderTest.cs: Fixed tests to execute properly on
342 2004-12-23 Sebastien Pouliot <sebastien@ximian.com>
344 * ProtectedDataTest.cs: Moved in System.Security.dll
345 * ProtectedMemoryTest.cs: Moved in System.Security.dll
347 2004-12-06 Sebastien Pouliot <sebastien@ximian.com>
349 * RSACryptoServiceProviderTest.cs: Adjusted unit tests to show that
350 RSACryptoServiceProvider doesn't support private keys without CRT
351 parameters available - except to import the keys.
353 2004-11-09 Sebastien Pouliot <sebastien@ximian.com>
355 * PasswordDeriveBytesTest.cs: Removed test for 69036. This is a MS
356 bug that will be fixed in 2.0 beta 2.
358 2004-11-03 Sebastien Pouliot <sebastien@ximian.com>
360 * DSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to
361 fail if the key container directory wasn't yet created (root).
362 * PasswordDeriveBytesTest.cs: Added tests for NET_2_0, more tests
363 for all constructors, tests for properties and a test for bug 69036.
364 * RSACryptoServiceProviderTest.cs: Fixed UseMachineKeyStore not to
365 fail if the key container directory wasn't yet created (root).
367 2004-08-31 Nick Drochak <ndrochak@gol.com>
369 * DSACryptoServiceProviderTest.cs:
370 * RSACryptoServiceProviderTest.cs: Feed csc smaller bite sizes.
372 2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
374 * DESTest.cs: Added a new test case to check default values.
375 * HMACSHA1.cs: Fixed bad test (and renamed it).
376 * RC2Test.cs: Added a new test case to check default values.
377 * RijndaelTest.cs: Added a new test case to check default values.
378 Convert tests from NUnit 1 to 2.2.
379 * TripleDESTest.cs: Added a new test case to check default values.
380 Convert tests to NUnit 2.2.
382 2004-07-07 Sebastien Pouliot <sebastien@ximian.com>
384 * AllTests2.cs: Updated to NUnit 2.2 Assert.
385 * CipherModeTest.cs: New. Tests supported CipherMode for all
386 SymmetricAlgorithm included in the framework (enum contains two more
387 modes that aren't implemented in any Fx version).
388 * CryptoConfigTest.cs: Ajusted new OID (for old names) in Fx 2.0.
389 * CryptoStreamTest.cs: Fixed different reported exception in Fx 2.0.
391 * CspProviderFlagsTest.cs: New. Test the values of the enum.
392 * DSACryptoServiceProviderTest.cs: Added new tests for new public
393 properties and methods added in Fx 2.0. Duplicated test to import a
394 key pair into a disposed instance (works in Fx 2.0). Removed all
395 [Ignore]s in NET_2_0 as the MS class/runtime has been fixed.
396 * DSASignatureDeformatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
397 different reported exception in Fx 2.0.
398 * DSASignatureFormatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
399 different reported exception in Fx 2.0.
400 * HMACRIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
401 * HMACSHA1Test.cs: Fixed tests so they work on both NET_1_1 and
402 NET_2_0 profiles (as HMACSHA1 changed it's base class).
403 * HashAlgorithmTest.cs: Fixed different reported exception in Fx 2.0.
404 Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
405 * MACTripleDESTest.cs: Fixed tests so they work on both NET_1_1 and
407 * PKCS1MaskGenerationMethodTest.cs: Removed [Ignore] in NET_2_0 as the
408 MS class has been fixed.
409 * PaddingModeTest.cs: Added new tests for the two new padding mode
410 introduced in Fx 2.0. Converted to NUnit 2.2.
411 * PasswordDeriveBytesTest.cs: Removed [ExpectedException] for
412 StrangeBehaviour test as it is fixed in Fx 2.0.
413 * RC2Test.cs: Changed exception from CryptographicException to
414 CryptographicUnexpectedOperationException for Fx 1.1/2.0.
415 * RIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
416 * RSACryptoServiceProviderTest.cs: Added new tests for new public
417 properties and methods added in Fx 2.0. Duplicated test to import a
418 key pair into a disposed instance (works in Fx 2.0). Duplicated test
419 to sign with a null OID (Fx 2.0 use SHA1 oid in this case).
420 * RSAOAEPKeyExchangeDeformatterTest.cs: Changed exception for a key
421 exchange with no key (to match Fx 2.0).
422 * RSAOAEPKeyExchangeFormatterTest.cs: Changed exception for a key
423 exchange with no key (to match Fx 2.0).
424 * RSAPKCS1KeyExchangeFormatterTest.cs: Changed exception for a key
425 exchange with no key (to match Fx 2.0). Removed [Ignore] in NET_2_0 as
426 the MS class/runtime has been fixed.
427 * RSAPKCS1SignatureDeformatterTest.cs: Null keys, in constructor or in
428 SetKey method, now throw an ArgumentNullException in Fx 2.0.
429 * RSAPKCS1SignatureFormatterTest.cs: Null keys, in constructor or in
430 SetKey method, now throw an ArgumentNullException in Fx 2.0.
431 * Rfc2898DeriveBytesTest.cs: Typecasted a null as a string.
432 * SymmetricAlgorithm2Test.cs: In Fx 2.0 an empty IV now throws a
433 CryptographicException.
434 * ToBase64TransformTest.cs: Fixed different reported exception in Fx 2.0.
435 Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
437 2004-06-23 Sebastien Pouliot <sebastien@ximian.com>
439 * CryptoStreamTest.cs: Added two tests for bug #60573. One shows that
440 an encryptor doesn't reduce the number of block on Write while the
441 second shows that a decryptor does reduce the number of blocks on
444 2004-06-16 Sebastien Pouliot <sebastien@ximian.com>
446 * SignatureDescriptionTest.cs: Added missing [TestFixture] :( and
447 cases for the previously undocumented .ctor(SecurityElement) - which
448 is now, backwardly, documented in VS.NET 2005.
450 2004-05-27 Sebastien Pouliot <sebastien@ximian.com>
452 * HashAlgorithmTest.cs: Added new tests to check for more exceptions.
454 2004-05-26 Sebastien Pouliot <sebastien@ximian.com>
456 * CryptoStreamTest.cs: Added new unit tests for overflows.
457 * FromBase64Transform.cs: Added new unit tests for undocumented
458 exceptions (null, overflows...).
459 * ToBase64TransformTest.cs: Added new unit tests for negatives and
462 2004-05-20 Sebastien Pouliot <sebastien@ximian.com>
464 * CryptoStreamTest.cs, DESCryptoServiceProviderTest.cs,
465 DSACryptoServiceProviderTest.cs, DSATest.cs, FromBase64Transform.cs,
466 HMACRIPEMD160Test.cs, MD5Test.cs, PKCS1MaskGenerationMethodTest.cs,
467 RIPEMD160ManagedTest.cs, RNGCryptoServiceProviderTest.cs,
468 RSACryptoServiceProviderTest.cs, RSAOAEPKeyExchangeDeformatterTest.cs,
469 RSAOAEPKeyExchangeFormatterTest.cs, RSAPKCS1KeyExchangeDeformatterTest.cs,
470 RSAPKCS1KeyExchangeFormatterTest.cs, RSAPKCS1SignatureDeformatterTest.cs,
471 RSAPKCS1SignatureFormatterTest.cs, RSATest.cs: SetUp/TearDown are now
472 public (required for new nunit).
474 2004-05-17 Sebastien Pouliot <sebastien@ximian.com>
476 * RNGCryptoServiceProviderTest.cs: Added new tests to see how the
477 constructor behave with null seeds or if they modify the seed.
479 2004-05-07 Sebastien Pouliot <sebastien@ximian.com>
481 * DSACryptoServiceProviderTest.cs: Added a new unit test for SignData
482 (was badly tested) and simplified test to reduce key pair generations.
483 * PasswordDerivceBytesTest.cs: Added new tests to complete
485 * RSACryptoServiceProviderTest.cs: Added new tests to complete
487 * ToBase64TransformTest.cs: Added a (legal) test where the final
488 transform receive data smaller than it's input block (padding).
490 2004-05-06 Sebastien Pouliot <sebastien@ximian.com>
492 * RC2Test.cs: Converted to NUnit 2. Uncommented some tests that throw
493 exceptions to test exception handling (and get more coverage).
494 * RNGCryptoServiceProviderTest.cs: Updated unit tests for exception
496 * RSAOAEPKeyExchangeDeformatterTest.cs: Updated unit tests to complete
498 * RSAOAEPKeyExchangeFormatterTest.cs: Updated unit tests to complete
500 * RSAPKCS1KeyExchangeDeformatterTest.cs: Updated unit tests to
502 * RSAPKCS1KeyExchangeFormatterTest.cs: Updated unit tests to complete
504 * RSAPKCS1SignatureDeformatterTest.cs: Updated unit tests to complete
506 * RSAPKCS1SignatureFormatterTest.cs: Updated unit tests to complete
508 * RSATest.cs: Updated unit tests for importing XML key pairs.
509 * SHA256Test.cs: Corrected Setup attribtue (was [Test]).
510 * SignatureDescriptionTest.cs: Removed unimplemented constructor from
511 tests. Converted to NUnit2.
512 * SymmetricAlgorithm2Test.cs: New. Non generated unit test for better
513 coverage (like exception testing).
514 * ToBase64TransformTest.cs: New. Unit tests to complete coverage of
516 * TripleDESTest.cs: New. Unit tests to complete coverage of TripleDES.
518 2004-04-29 Sebastien Pouliot <sebastien@ximian.com>
520 * DSACryptoServiceProviderTest.cs: New unit tests fo better coverage.
521 * FromBase64Transform.cs: New unit tests for better coverage.
522 * HashAlgorithmTest.cs: New unit tests for better coverage.
523 * HMACSHA1Test.cs: New unit tests for better coverage. Updated to
525 * KeyedHashAlgorithmTest.cs: Coverage already complete. Updated to
527 * SHA1Test.cs: Coverage already complete. Updated to NUnit2.
528 * SHA1CryptoServiceProviderTest.cs: Coverage almost complete. Updated
530 * SHA256Test.cs: Coverage already complete. Updated to NUnit2.
531 * SHA256ManagedTest.cs: Coverage already complete. Updated to NUnit2.
532 * SHA384Test.cs: Coverage already complete. Updated to NUnit2.
533 * SHA384ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
534 * SHA512Test.cs: Coverage already complete. Updated to NUnit2.
535 * SHA512ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
537 2004-04-28 Sebastien Pouliot <sebastien@ximian.com>
539 * DESCryptoServiceProviderTest.cs: New. Completes coverage for
540 DESCryptoServiceProvider class. Calls the FIPS 81 tests for this
542 * DESTest.cs: Added test vectors from FIPS 81.
544 2004-04-26 Sebastien Pouliot <sebastien@ximian.com>
546 * DESTest.cs: New. Unit tests for DES including checks for weak and
547 semi-weak keys (with and without parity applied on keys). Completes
548 coverage for DES class.
550 2004-04-02 Bernie Solomon <bernard@ugsolutions.com>
552 * PasswordDeriveBytesTest.cs: Add ToInt32LE so
553 it works on big endian machines.
555 2004-03-10 Sebastien Pouliot <sebastien@ximian.com>
557 * FromBase64Transform.cs: Two new unit tests showing that the
558 transform doesn't care if it's data is invalid base64. Convert class
561 2004-03-10 Sebastien Pouliot <sebastien@ximian.com>
563 * FromBase64Transform.cs: Converted to NUnit2 format. New unit tests
564 for properties, Dispose, Reuse and ignored characters.
566 2004-03-09 Atsushi Enomoto <atsushi@ximian.com>
568 * DSATest.cs : Added ToXmlString test that checks if input without
569 Seed and PgenCounter elements pass or not.
571 2004-02-12 Sebastien Pouliot <spouliot@videotron.ca>
573 * CryptoStreamTest.cs: Added new tests for [From|To]Base64Transform
574 (InputBlockSize != OutputBlockSize) and for cascading CryptoStreams.
576 2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
578 * DSACryptoServiceProvider.cs: Added new unit tests for key pair
580 * RSACryptoServiceProvider.cs: Added new unit tests for key pair
583 2004-02-04 Sebastien Pouliot <spouliot@videotron.ca>
585 * CryptoStreamTest.cs: Added many more tests for every problem found
586 with CryptoStream using code samples from the internet.
588 2003-12-15 Sebastien Pouliot <spouliot@videotron.ca>
590 * CryptoConfigTest.cs: Converted unit tests to NUnit2.
591 * PaddingModeTest.cs: New. Unit tests to check every padding modes for
592 symmetric algorithms.
593 * MACTripleDESTest.cs: Updated unit tests for NUnit2 and to work for
594 both 1.0 and 1.1 framework.
596 2003-11-13 Sebastien Pouliot <spouliot@videotron.ca>
598 * ProtectedDataTest.cs: New. Unit tests for ProtectedData (1.2).
599 * ProtectedMemoryTest.cs: New. Unit tests for ProtectedMemory (1.2).
601 2003-11-11 Sebastien Pouliot <spouliot@videotron.ca>
603 * Rfc2898DeriveBytesTest.cs: More tests for Reset and keys longer than
606 2003-11-10 Sebastien Pouliot <spouliot@videotron.ca>
608 * Rfc2898DeriveBytesTest.cs: New. Unit tests for Rfc2898DeriveBytes
609 and test vectors from RFC3211.
611 2003-11-09 Sebastien Pouliot <spouliot@videotron.ca>
613 * HMACMD5Test.cs: New. Unit test for HMAC-MD5 with test vectors from
615 * HMACRIPEMD160Test.cs: New. Unit test for HMAC-RIPEMD160 with test
616 vectors from http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html.
617 * HMACSHA256Test.cs: New. Unit test for HMAC-SHA256.
619 2003-11-08 Sebastien Pouliot <spouliot@videotron.ca>
621 * RIPEMD160Test.cs: New. Unit test using RIPEMD160 test vectors.
622 * RIPEMD160Managed.cs: New. Unit tests running RIPEMD160Test using the
623 RIPEMD160Managed implementation.
625 2003-10-04 Sebastien Pouliot <spouliot@videotron.ca>
627 * CryptoStreamTest.cs: Added test case from bugzilla #49323 from
628 Carlos Guzmán Álvarez and some small tests for empty stream with
629 different PaddingMode (as found by Lluis Sanchez Gual).
631 2003-08-05 Sebastien Pouliot <spouliot@videotron.ca>
633 * CryptoStreamTest.cs: Added test case from bugzilla #40689 from
636 2003-07-31 Sebastien Pouliot <spouliot@videotron.ca>
638 * CryptoStreamTest.cs: New. Very basic test for CryptoStream + the
639 test case from bugzilla #46143 from Joerg Rosenkranz.
640 * RSACryptoServiceProviderTest.cs: Fixed some exceptions that are
641 different from .NET 1.0 and 1.1.
643 2003-07-05 Sebastien Pouliot <spouliot@videotron.ca>
645 * DSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
646 and better test coverage (based on Zoltan's logs).
647 * DSATest.cs: Converted to NUnit2 format. Added new tests for better unit
648 test coverage (import incomplete public keys).
649 * RSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
650 and better test coverage (based on Zoltan's logs).
651 * RSATest.cs: Converted to NUnit2 format. Added new tests for better unit
652 test coverage (import incomplete public keys).
654 2003-06-23 Nick Drochak <ndrochak@gol.com>
656 * MACTripleDESTest.cs: Adjust for .NET 1.1.
658 2003-06-11 Sebastien Pouliot <spouliot@videotron.ca>
660 * AllTests2.cs: Converted tests to NUnit2 format.
661 * RSACryptoServiceProviderTest.cs: Converted tests to NUnit2 format.
662 * RSAPKCS1KeyExchangeDeformatterTest.cs: Converted tests to NUnit2 format.
663 * RSAPKCS1KeyExchangeFormatterTest.cs: Converted tests to NUnit2 format.
664 * RSAPKCS1SignatureDeformatterTest.cs: Converted tests to NUnit2 format.
665 * RSAPKCS1SignatureFormatterTest.cs: Converted tests to NUnit2 format.
667 2003-05-29 Sebastien Pouliot <spouliot@videotron.ca>
669 * PKCS1MaskGenerationMethodTest.cs: Added [Ignore] to vector test
670 (as it's result isn't valid on both framework 1.0 and 1.1).
671 * RSAPKCS1SignatureDeformatter.cs: Splitting the test for NUnit2
672 cloned the previous error into many more tests. Hopefully fixed.
674 2003-05-28 Sebastien Pouliot <spouliot@videotron.ca>
676 * RSAPKCS1SignatureDeformatter.cs: Fixed (well I hope so) a test
677 which doesn't throw the same exception under 1.1. Also converted
678 the tests to NUnit2 format.
680 2003-05-12 Sebastien Pouliot <spouliot@videotron.ca>
682 * PKCS1MaskGenerationMethodTest.cs: Uncommented PKCS#1 v.2.1 vector
683 unit test (will work on Mono but fails with MS implementation).
684 * RSAOAEPKeyExchangeDeformatterTest.cs: Updated tests vectors for
685 both Mono and MS (under Windows XP) generated OAEP results.
686 * RSAOAEPKeyExchangeFormatterTest.cs: Update exception handling.
688 2003-04-17 Nick Drochak <ndrochak@gol.com>
690 * DSATest.cs: Use nunit version 2 style to test throw.
691 * HMACSHA1Test.cs: Eliminate compiler warning.
693 2003-03-04 Sebastien Pouliot <spouliot@videotron.ca>
695 * CryptoConfigTest.cs: Added new tests for algorithms
696 documented in book ".NET Framework Security".
698 2003-02-03 Sebastien Pouliot <spouliot@videotron.ca>
700 * PasswordDeriveBytesTest.cs: Added some new tests to complete
702 * RSAPKCS1SignatureDeformatterTest.cs: Added test for null and
703 invalid hash algorithm.
705 2003-01-19 Sebastien Pouliot <spouliot@videotron.ca>
707 * HMACSHA1Test.cs: Added tests for constructors.
708 * MACTripleDESTest.cs: Added tests for constructors.
710 2003-01-12 Sebastien Pouliot <spouliot@videotron.ca>
712 * HashAlgorithmTest.cs: Added new test for null streams.
713 * MACTripleDESTest.cs: New. Test suite par MAC using 3DES.
715 2002-12-21 Nick Drochak <ndrochak@gol.com>
717 * all: make tests build and run under nunit2
719 2002-12-21 Nick Drochak <ndrochak@gol.com>
721 * AllTests2.cs: Helper file for unit tests
723 2002-11-20 Sebastien Pouliot <spouliot@videotron.ca>
725 * RSAPKCS1SignatureDeformatterTest.cs: Removed patch from Nick -
726 as it doesn't seems to work on my system and the exception behavior
727 isn't logical (only MD5 not SHA1, ...).
729 2002-11-18 Nick Drochak <ndrochak@gol.com>
731 * RSAPKCS1SignatureDeformatterTest.cs: MS .NET throws an exception when
732 verifying a bad signature. Test for that.
734 2002-11-17 Sebastien Pouliot <spouliot@videotron.ca>
736 * AllTests.cs: Added a common RSA keypair for tests and all RSA
737 suites for new tests.
738 * RSACryptoServiceProviderTest.cs: Include tests for keygen,
739 import/export and signature (no encryption yet).
740 * RSAOAEPKeyExchangeDeformatterTest.cs: Compare results with
741 pre-generated vectors from Mono/Windows (cannot yet compare
742 with CryptoAPI/Windows as OAEP isn't available on my system).
743 * RSAOAEPKeyExchangeFormatterTest.cs: Test that the Formatter output
744 is compatible with the Deformatter.
745 * RSAPKCS1KeyExchangeDeformatterTest.cs: Compare results with
746 pre-generated vectors from Mono/Windows and CryptoAPI/Windows.
747 * RSAPKCS1KeyExchangeFormatterTest.cs: Test that the Formatter output
748 is compatible with the Deformatter.
749 * RSAPKCS1SignatureDeformatterTest.cs: Compare results with
750 pre-generated vectors from Mono/Windows and CryptoAPI/Windows.
751 * RSAPKCS1SignatureFormatterTest.cs: Test that the Formatter output
752 is compatible with the Deformatter.
754 2002-11-16 Sebastien Pouliot <spouliot@videotron.ca>
756 * AllTests.cs: Added suites for DSASignatureDeformatter,
757 DSASignatureFormatter.
758 * CryptoConfigTest.cs: Tests new URLs. This test will fail
759 if System.Security.dll isn't present (or not yet compiled).
760 * DSACryptoServiceProviderTest.cs: New. Key generation (limited
761 because it's too slow), Import/Export, Signature and Verification.
762 * DSASignatureDeformatterTest.cs: New. Test signature verification.
763 * DSASignatureFormatterTest.cs: New. Test signature creation.
764 * DSATest.cs: Comment DSA-derived test class as DSA constructor
765 is internal. Reworked the test suite.
766 * SignatureDescriptionTest.cs: Added tests for
767 DSASignatureDescription and RSAPKCS1SHA1SignatureDescription.
769 2002-11-02 Sebastien Pouliot <spouliot@videotron.ca>
771 * AllTests.cs: Added suites for SignatureDescription and
772 activated suites for SHA384Managed and SHA512Managed.
773 * SignatureDescriptionTest.cs: New. Basic tests (because I don't
774 know the context in which the class is used).
776 2002-10-28 Sebastien Pouliot <spouliot@videotron.ca>
778 * AllTests.cs: Added test suites for SHA256, SHA384 and SHA512
779 (last two partly commented until implementation is commited).
780 * SHA256Test.cs: New. Generic FIPS180-2 tests for SHA-256.
781 * SHA256ManagedTest.cs: New. Implementation tests (inherits
783 * SHA384Test.cs: New. Generic FIPS180-2 tests for SHA-384.
784 * SHA384ManagedTest.cs: New. Implementation tests (inherits
786 * SHA512Test.cs: New. Generic FIPS180-2 tests for SHA-512.
787 * SHA512ManagedTest.cs: New. Implementation tests (inherits
790 2002-10-25 Sebastien Pouliot <spouliot@videotron.ca>
792 * AllTests.cs: Added suite for PasswordDeriveBytes
793 * PasswordDeriveBytesTest.cs: New. Tests against pre-generated vectors -
794 only works for short runs (keys < HashSize) not long runs
796 2002-10-20 Sebastien Pouliot <spouliot@videotron.ca>
798 * AllTests.cs: Added suite for Rjindael
799 * RjindaelTest.cs: New. Test vectors from FIPS PUB 197 appendix.
801 2002-10-19 Sebastien Pouliot <spouliot@videotron.ca>
803 * AllTests.cs: Renabled most tests after commenting all code causing a
804 cyclic dependency (corlib->System.Xml->corlib). Some tests will fail
805 until commented code is replaced.
806 * SymmetricAlgorithm.cs: New (189) generated test cases for all default
807 algorithm implementation, all cipher modes, all padding modes, all key
808 sizes, all block sizes, feedback...
809 * PKCS1MaskGenerationMethodTest.cs: Commented vector test. Added new
810 tests to check for various exceptions
812 2002-10-16 Nick Drochak <ndrochak@gol.com>
814 * CryptoConfigTest.cs (TestCreateFromName): Disable tests for
815 algorithms that aren't in the build yet.
817 2002-10-16 Nick Drochak <ndrochak@gol.com>
819 * AllTests.cs: Disable tests that use components were are excluding
823 2002-10-14 Sebastien Pouliot <spouliot@videotron.ca>
825 * AllTests.cs: Added suite for PKCS1MaskGenerationMethod
826 * PKCS1MaskGenerationMethodTest.cs: New. Test work as per PKCS#1 but
827 result isn't the same as MS implementation !?! is MS using this class ?
829 2002-10-13 Sebastien Pouliot <spouliot@videotron.ca>
831 * AllTests.cs: Added suite for HashAlgorithm, KeyedHashAlgorithm and
833 * HashAlgorithmTest.cs: New. Test for Create and Clear
834 * KeyedHashAlgorithmTest.cs: New. Test for Create and key assignation
835 * HMACSHA1Test.cs: New. Test vectors from FIPS 198 and RFC2202
837 2002-10-12 Sebastien Pouliot <spouliot@videotron.ca>
839 * AllTests.cs: Added suite for RandomNumberGenerator, SHA1 and
840 SHA1CryptoServiceProvider
841 * RandomNumberGeneratorTest.cs: New. Tests for Create and generic
842 random quality tests (FIPS140-2)
843 * SHA1Test.cs: New. Tests for Create and generic SHA1 tests (FIPS180-1)
844 * SHA1CryptoServiceProviderTest.cs: New. Inherited SHA1Tests tests +
847 2002-10-10 Sebastien Pouliot <spouliot@videotron.ca>
849 * DSATest.cs: Added non-abstract DSA class to test To/FromXmlString()
850 * RSATest.cs: Added non-abstract RSA class to test To/FromXmlString()
851 * AllTests.cs: Added DSATest.cs and RSATest.cs in suite
853 2002-10-09 Sebastien Pouliot <spouliot@videotron.ca>
855 * CryptoConfigTest.cs: New tests
856 * AllTests.cs: Added CryptoConfigTest in suite
858 2002-10-05 Andrew Birkett <andy@nobugs.org>
860 * RC2Test.cs: New test. Only three cases are enabled - the other
861 five work fine under mono, but fail under MS corlib, so I've
864 * AllTests.cs: Added RC2Test.
866 2002-09-23 Andrew Birkett <andy@nobugs.org>
868 * RijndaelManagedTest.cs: Fixed initialization order problem
869 to match MS behaviour.
871 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
873 * MD5Test.cs: new test from Eduardo García Cebollero (kiwnix@yahoo.es).
874 * AllTests.cs: added new test.