[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / corlib / Test / System.Security.Cryptography / ChangeLog
1 2009-09-22  Sebastien Pouliot  <sebastien@ximian.com> 
2
3         * CryptoStreamTest.cs: Add (nunit-ized) test cases provided by
4         Santa Marta (via Atsushi) as repro for bugs #539288 and #539229
5
6 2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>
7
8         * CryptoStreamTest.cs: Convert to newer nunit syntax
9
10 2008-09-17  Sebastien Pouliot  <sebastien@ximian.com>
11
12         * CryptoConfigTest.cs: Add test cases for HMAC URI.
13
14 2008-07-13  Nestor Salceda  <nestor.salceda@gmail.com>
15
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.
19
20 2008-04-21  Sebastien Pouliot  <sebastien@ximian.com>
21
22         * HMACSHA1Test.cs: Add test case where data reside inside a byte
23         array. Patch by Kazuki Oikawa.
24
25 2008-04-17  Sebastien Pouliot  <sebastien@ximian.com>
26
27         * DSATest.cs: Add valid test cases with invalid xml. Update to
28         NUnit 2 syntax.
29         * HashAlgorithmTest.cs: Fix compiler warnings.
30         * RSATest.cs: Add valid test cases with invalid xml. Update to
31         NUnit 2 syntax.
32         * SHA256Test.cs, SHA384Test.cs, SHA512Test.cs: Flush
33
34 2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>
35
36         * PaddingModeTest.cs: Add test case for #366623 ANSI padding bug.
37
38 2008-02-21  Sebastien Pouliot  <sebastien@ximian.com>
39
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.
43
44 2008-01-02  Sebastien Pouliot  <sebastien@ximian.com>
45
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.
50
51 2007-11-20  Sebastien Pouliot  <sebastien@ximian.com>
52
53         * DESCryptoServiceProviderTest.cs: Fix CreateDecryptor_KeyNull test 
54         case not to fail about 1 out of 256 times under the 2.0 profile.
55
56 2007-10-23  Sebastien Pouliot  <sebastien@ximian.com>
57
58         * DESCryptoServiceProviderTest.cs: Fix CreateEncryptor_KeyNull test 
59         case not to fail about 1 out of 256 times under the 2.0 profile.
60
61 2007-05-16  Sebastien Pouliot  <sebastien@ximian.com> 
62
63         * CryptoStreamTest.cs: Add test cases for WriteByte.
64
65 2007-05-08  Randolph Chung  <tausq@debian.org>
66
67         * DSACryptoServiceProviderTest.cs: Remove "NotWorking" annotation
68         for the blob tests that should now pass.
69
70 2007-05-08  Sebastien Pouliot  <sebastien@ximian.com>
71
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
74         to compute Y.
75
76 2007-03-22  Sebastien Pouliot  <sebastien@ximian.com> 
77
78         * CryptoConfigTest.cs: Fix upper/lower/mixed cases tests as they work 
79         only for 2.0.
80         * CryptoStreamTest.cs: Fixed some test cases to work properly on MS
81         fx 2.0.
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.
91
92 2007-03-15 Roei Erez <roeie@mainsoft.com>
93
94         * Adding some TARGET_JVM tags.
95         
96 2007-03-05  Sebastien Pouliot  <sebastien@ximian.com>
97
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.
101
102 2007-02-14  Sebastien Pouliot  <sebastien@ximian.com> 
103
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.
122
123 2007-02-14  Sebastien Pouliot  <sebastien@ximian.com>
124
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.
131
132 2007-01-08  Sebastien Pouliot  <sebastien@ximian.com>
133
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.
139
140 2007-01-04  Sebastien Pouliot  <sebastien@ximian.com>
141
142         * DESCryptoServiceProviderTest.cs: Update and add new test cases for
143         bug #80439.
144
145 2007-01-03  Sebastien Pouliot  <sebastien@ximian.com>
146
147         * DESCryptoServiceProviderTest.cs: Add tests for bug #80439 where 
148         inputCount is reduced to fit into the output buffer (for any mode).
149
150 2006-11-24  Sebastien Pouliot  <sebastien@ximian.com>
151
152         * CryptoConfigTest.cs: Added test case for X509Chain.
153
154 2006-11-16  Sebastien Pouliot  <sebastien@ximian.com>
155
156         * PasswordDeriveBytesTest.cs: Added test case for bug #79499
157
158 2006-10-11  Sebastien Pouliot  <sebastien@ximian.com>
159
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.
164
165 2006-09-08  Sebastien Pouliot  <sebastien@ximian.com>
166
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
171
172 2006-09-05  Sebastien Pouliot  <sebastien@ximian.com>
173
174         * RSACryptoServiceProviderTest.cs: Test case for #79269 where we 
175         ensure a CryptographicException (not a NRE) when decrypting without a
176         private key.
177
178 2006-07-01  Sebastien Pouliot  <sebastien@ximian.com>
179
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.
183
184 2006-06-15  Sebastien Pouliot  <sebastien@ximian.com>
185
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 
190         properly.
191         * HMACRIPEMD160Test.cs: Fix SetUp to allow new inherited test cases to
192         work properly.
193         * HMACSHA1Test.cs: Fix SetUp to allow new inherited test cases to 
194         work properly.
195         * HMACSHA256Test.cs: Fix SetUp to allow new inherited test cases to 
196         work properly.
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).
204
205 2006-06-01  Sebastien Pouliot  <sebastien@ximian.com>
206
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.
210
211 2005-12-15  Sebastien Pouliot  <sebastien@ximian.com>
212
213         * RijndaelTest.cs: Add test cases for cycling key sizes and block 
214         sizes.
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).
218
219 2005-11-22  Sebastien Pouliot  <sebastien@ximian.com>
220
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 
223         the XML output.
224
225 2005-10-21  Sebastien Pouliot  <sebastien@ximian.com>
226
227         * RC2CryptoServiceProviderTest.cs: New. Unit tests specific to this 
228         implementation (not algorithm specific but required to match MS 
229         behaviour).
230         * RijndaelManagedTest.cs: Added unit tests specific to this 
231         implementation (not algorithm specific but required to match MS
232         behaviour).
233         * DESCryptoServiceProviderTest.cs: Added unit tests specific to this
234         implementation (not algorithm specific but required to match MS
235         behaviour).
236         * TripleDESCryptoServiceProviderTest.cs: New. Unit tests specific to 
237         this implementation (not algorithm specific but required to match MS
238         behaviour).
239
240 2005-09-29  Sebastien Pouliot  <sebastien@ximian.com>
241
242         * HMACSHA1Test.cs: Use the new ctor(byte[],bool) introduced in 2.0 RC
243         in some of the existing tests (under 2.0).
244
245 2005-04-27  Sebastien Pouliot  <sebastien@ximian.com>
246
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). 
253
254 2005-04-25  Sebastien Pouliot  <sebastien@ximian.com>
255
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.
264
265 2005-04-18  Sebastien Pouliot  <sebastien@ximian.com>
266
267         * SymmetricAlgorithm2Test.cs: Added a test case where the FeedBackSize
268         is set to 0 before starting encryption.
269
270 2005-03-30  Sebastien Pouliot  <sebastien@ximian.com>
271
272         * CryptoStreamTest.cs: Added test case when when no padding is used.
273
274 2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>
275
276         * CryptoConfigCas.cs: New. CAS unit tests for CryptoConfig.
277         * CryptoAPITransformCas.cs: New. CAS unit tests for CryptoAPITransform.
278
279 2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>
280
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.
283
284 2005-01-30  Sebastien Pouliot  <sebastien@ximian.com>
285
286         * PasswordDeriveBytesTest.cs: Changed [Ignore] to [Category
287         ("NotWorking")] to reduce nunit logs.
288
289 2005-01-19  Sebastien Pouliot  <sebastien@ximian.com>
290
291         * CryptoStreamTest.cs: Added [ExpectedException] for [Ignored] unit 
292         tests that were converted to [Category]
293
294 2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>
295
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!
307
308 2005-01-10  Sebastien Pouliot  <sebastien@ximian.com> 
309
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).
315
316 2005-01-08  Sebastien Pouliot  <sebastien@ximian.com> 
317
318         * TripleDESTest.cs: Testing weak key with null throws a NRE.
319
320 2005-01-06  Sebastien Pouliot  <sebastien@ximian.com> 
321
322         * DESTest.cs: Updated weak key and semi-weak key tests with more 
323         exhaustive versions.
324         * TripleDESTest.cs: Added tests when including a DES weak key into
325         a 2DES or 3DES key.
326
327 2005-01-04  Sebastien Pouliot  <sebastien@ximian.com> 
328
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 
331         again with Dec.
332
333 2004-12-23  Sebastien Pouliot  <sebastien@ximian.com> 
334
335         * CryptoStreamTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
336         * DSACryptoServiceProviderTest.cs: Fixed tests to execute properly on 
337         2.0 Nov CTP.
338         * PaddingModeTest.cs: Fixed tests to execute properly on 2.0 Nov CTP.
339         * RSACryptoServiceProviderTest.cs: Fixed tests to execute properly on 
340         2.0 Nov CTP.
341
342 2004-12-23  Sebastien Pouliot  <sebastien@ximian.com>
343
344         * ProtectedDataTest.cs: Moved in System.Security.dll
345         * ProtectedMemoryTest.cs: Moved in System.Security.dll
346
347 2004-12-06  Sebastien Pouliot  <sebastien@ximian.com>
348
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.
352
353 2004-11-09  Sebastien Pouliot  <sebastien@ximian.com>
354
355         * PasswordDeriveBytesTest.cs: Removed test for 69036. This is a MS
356         bug that will be fixed in 2.0 beta 2.
357
358 2004-11-03  Sebastien Pouliot  <sebastien@ximian.com>
359
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).
366
367 2004-08-31  Nick Drochak <ndrochak@gol.com>
368
369         * DSACryptoServiceProviderTest.cs: 
370         * RSACryptoServiceProviderTest.cs: Feed csc smaller bite sizes.
371
372 2004-07-07  Sebastien Pouliot  <sebastien@ximian.com>
373
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.
381
382 2004-07-07  Sebastien Pouliot  <sebastien@ximian.com>
383
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.
390         Fixed a bad test.
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 
406         NET_2_0 profiles.
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.
436
437 2004-06-23  Sebastien Pouliot  <sebastien@ximian.com>
438
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 
442         Write.
443
444 2004-06-16  Sebastien Pouliot  <sebastien@ximian.com>
445
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.
449
450 2004-05-27  Sebastien Pouliot  <sebastien@ximian.com>
451
452         * HashAlgorithmTest.cs: Added new tests to check for more exceptions.
453
454 2004-05-26  Sebastien Pouliot  <sebastien@ximian.com>
455
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
460         overflows. 
461
462 2004-05-20  Sebastien Pouliot  <sebastien@ximian.com>
463
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).
473
474 2004-05-17  Sebastien Pouliot  <sebastien@ximian.com>
475
476         * RNGCryptoServiceProviderTest.cs: Added new tests to see how the 
477         constructor behave with null seeds or if they modify the seed.
478
479 2004-05-07  Sebastien Pouliot  <sebastien@ximian.com>
480
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
484         coverage.
485         * RSACryptoServiceProviderTest.cs: Added new tests to complete
486         coverage.
487         * ToBase64TransformTest.cs: Added a (legal) test where the final 
488         transform receive data smaller than it's input block (padding).
489
490 2004-05-06  Sebastien Pouliot  <sebastien@ximian.com>
491
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 
495         testing.
496         * RSAOAEPKeyExchangeDeformatterTest.cs: Updated unit tests to complete 
497         coverage.
498         * RSAOAEPKeyExchangeFormatterTest.cs: Updated unit tests to complete 
499         coverage.
500         * RSAPKCS1KeyExchangeDeformatterTest.cs: Updated unit tests to 
501         complete coverage.
502         * RSAPKCS1KeyExchangeFormatterTest.cs: Updated unit tests to complete 
503         coverage.
504         * RSAPKCS1SignatureDeformatterTest.cs: Updated unit tests to complete 
505         coverage.
506         * RSAPKCS1SignatureFormatterTest.cs: Updated unit tests to complete 
507         coverage.
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
515         ToBase64Transform.
516         * TripleDESTest.cs: New. Unit tests to complete coverage of TripleDES.
517
518 2004-04-29  Sebastien Pouliot  <sebastien@ximian.com>
519
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 
524         NUnit2.
525         * KeyedHashAlgorithmTest.cs: Coverage already complete. Updated to 
526         NUnit 2.
527         * SHA1Test.cs: Coverage already complete. Updated to NUnit2.
528         * SHA1CryptoServiceProviderTest.cs: Coverage almost complete. Updated 
529         to NUnit2.
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.
536
537 2004-04-28  Sebastien Pouliot  <sebastien@ximian.com>
538
539         * DESCryptoServiceProviderTest.cs: New. Completes coverage for 
540         DESCryptoServiceProvider class. Calls the FIPS 81 tests for this
541         implementation.
542         * DESTest.cs: Added test vectors from FIPS 81.
543
544 2004-04-26  Sebastien Pouliot  <sebastien@ximian.com>
545
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.
549
550 2004-04-02  Bernie Solomon  <bernard@ugsolutions.com>
551
552         * PasswordDeriveBytesTest.cs: Add ToInt32LE so
553         it works on big endian machines.
554
555 2004-03-10  Sebastien Pouliot  <sebastien@ximian.com>
556
557         * FromBase64Transform.cs: Two new unit tests showing that the 
558         transform doesn't care if it's data is invalid base64. Convert class
559         is on it's own.
560
561 2004-03-10  Sebastien Pouliot  <sebastien@ximian.com>
562
563         * FromBase64Transform.cs: Converted to NUnit2 format. New unit tests
564         for properties, Dispose, Reuse and ignored characters.
565
566 2004-03-09  Atsushi Enomoto  <atsushi@ximian.com>
567
568         * DSATest.cs : Added ToXmlString test that checks if input without
569           Seed and PgenCounter elements pass or not.
570
571 2004-02-12  Sebastien Pouliot  <spouliot@videotron.ca>
572
573         * CryptoStreamTest.cs: Added new tests for [From|To]Base64Transform 
574         (InputBlockSize != OutputBlockSize) and for cascading CryptoStreams.
575
576 2004-02-09  Sebastien Pouliot  <sebastien@ximian.com>
577
578         * DSACryptoServiceProvider.cs: Added new unit tests for key pair 
579         persistence.
580         * RSACryptoServiceProvider.cs: Added new unit tests for key pair 
581         persistence.
582
583 2004-02-04  Sebastien Pouliot  <spouliot@videotron.ca>
584
585         * CryptoStreamTest.cs: Added many more tests for every problem found
586         with CryptoStream using code samples from the internet.
587
588 2003-12-15  Sebastien Pouliot  <spouliot@videotron.ca>
589
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.
595
596 2003-11-13  Sebastien Pouliot  <spouliot@videotron.ca>
597
598         * ProtectedDataTest.cs: New. Unit tests for ProtectedData (1.2).
599         * ProtectedMemoryTest.cs: New. Unit tests for ProtectedMemory (1.2).
600
601 2003-11-11  Sebastien Pouliot  <spouliot@videotron.ca>
602
603         * Rfc2898DeriveBytesTest.cs: More tests for Reset and keys longer than
604         a single block.
605
606 2003-11-10  Sebastien Pouliot  <spouliot@videotron.ca>
607
608         * Rfc2898DeriveBytesTest.cs: New. Unit tests for Rfc2898DeriveBytes
609         and test vectors from RFC3211.
610
611 2003-11-09  Sebastien Pouliot  <spouliot@videotron.ca>
612
613         * HMACMD5Test.cs: New. Unit test for HMAC-MD5 with test vectors from 
614         RFC2104.
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.
618
619 2003-11-08  Sebastien Pouliot  <spouliot@videotron.ca>
620
621         * RIPEMD160Test.cs: New. Unit test using RIPEMD160 test vectors.
622         * RIPEMD160Managed.cs: New. Unit tests running RIPEMD160Test using the
623         RIPEMD160Managed implementation.
624
625 2003-10-04  Sebastien Pouliot  <spouliot@videotron.ca>
626
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).
630
631 2003-08-05  Sebastien Pouliot  <spouliot@videotron.ca>
632
633         * CryptoStreamTest.cs: Added test case from bugzilla #40689 from 
634         Henning Westerholt.
635
636 2003-07-31  Sebastien Pouliot  <spouliot@videotron.ca>
637
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.
642
643 2003-07-05  Sebastien Pouliot  <spouliot@videotron.ca>
644
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).
653
654 2003-06-23  Nick Drochak <ndrochak@gol.com>
655
656         * MACTripleDESTest.cs: Adjust for .NET 1.1.
657
658 2003-06-11  Sebastien Pouliot  <spouliot@videotron.ca>
659
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.
666
667 2003-05-29  Sebastien Pouliot  <spouliot@videotron.ca>
668
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.
673
674 2003-05-28  Sebastien Pouliot  <spouliot@videotron.ca>
675
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.
679
680 2003-05-12  Sebastien Pouliot  <spouliot@videotron.ca>
681
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.
687
688 2003-04-17  Nick Drochak  <ndrochak@gol.com>
689
690         * DSATest.cs: Use nunit version 2 style to test throw.
691         * HMACSHA1Test.cs: Eliminate compiler warning.
692
693 2003-03-04  Sebastien Pouliot  <spouliot@videotron.ca>
694
695         * CryptoConfigTest.cs: Added new tests for algorithms 
696         documented in book ".NET Framework Security".
697
698 2003-02-03  Sebastien Pouliot  <spouliot@videotron.ca>
699
700         * PasswordDeriveBytesTest.cs: Added some new tests to complete 
701         coverage.
702         * RSAPKCS1SignatureDeformatterTest.cs: Added test for null and 
703         invalid hash algorithm.
704
705 2003-01-19  Sebastien Pouliot  <spouliot@videotron.ca>
706
707         * HMACSHA1Test.cs: Added tests for constructors.
708         * MACTripleDESTest.cs: Added tests for constructors.
709
710 2003-01-12  Sebastien Pouliot  <spouliot@videotron.ca>
711
712         * HashAlgorithmTest.cs: Added new test for null streams.
713         * MACTripleDESTest.cs: New. Test suite par MAC using 3DES.
714
715 2002-12-21  Nick Drochak <ndrochak@gol.com>
716
717         * all: make tests build and run under nunit2
718
719 2002-12-21  Nick Drochak  <ndrochak@gol.com>
720
721         * AllTests2.cs: Helper file for unit tests
722         
723 2002-11-20  Sebastien Pouliot  <spouliot@videotron.ca>
724
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, ...).
728
729 2002-11-18  Nick Drochak  <ndrochak@gol.com>
730
731         * RSAPKCS1SignatureDeformatterTest.cs: MS .NET throws an exception when
732         verifying a bad signature.  Test for that.
733
734 2002-11-17  Sebastien Pouliot  <spouliot@videotron.ca>
735
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.
753
754 2002-11-16  Sebastien Pouliot  <spouliot@videotron.ca>
755
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.
768
769 2002-11-02  Sebastien Pouliot  <spouliot@videotron.ca>
770
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).
775
776 2002-10-28  Sebastien Pouliot  <spouliot@videotron.ca>
777
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
782         from SHA256Test).
783         * SHA384Test.cs: New. Generic FIPS180-2 tests for SHA-384.
784         * SHA384ManagedTest.cs: New. Implementation tests (inherits
785         from SHA384Test).
786         * SHA512Test.cs: New. Generic FIPS180-2 tests for SHA-512.
787         * SHA512ManagedTest.cs: New. Implementation tests (inherits
788         from SHA512Test).
789
790 2002-10-25  Sebastien Pouliot  <spouliot@videotron.ca>
791
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
795
796 2002-10-20  Sebastien Pouliot  <spouliot@videotron.ca>
797
798         * AllTests.cs: Added suite for Rjindael
799         * RjindaelTest.cs: New. Test vectors from FIPS PUB 197 appendix.
800
801 2002-10-19  Sebastien Pouliot  <spouliot@videotron.ca>
802
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
811
812 2002-10-16  Nick Drochak  <ndrochak@gol.com>
813
814         * CryptoConfigTest.cs (TestCreateFromName): Disable tests for
815         algorithms that aren't in the build yet.
816
817 2002-10-16  Nick Drochak  <ndrochak@gol.com>
818
819         * AllTests.cs: Disable tests that use components were are excluding
820         from corlib.
821         * SHA1Test.cs: same
822
823 2002-10-14  Sebastien Pouliot  <spouliot@videotron.ca>
824
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 ?
828
829 2002-10-13  Sebastien Pouliot  <spouliot@videotron.ca>
830
831         * AllTests.cs: Added suite for HashAlgorithm, KeyedHashAlgorithm and
832         HMACSHA1
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
836
837 2002-10-12  Sebastien Pouliot  <spouliot@videotron.ca>
838
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 +
845         specific tests
846
847 2002-10-10  Sebastien Pouliot  <spouliot@videotron.ca>
848
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
852
853 2002-10-09  Sebastien Pouliot  <spouliot@videotron.ca>
854
855         * CryptoConfigTest.cs: New tests
856         * AllTests.cs: Added CryptoConfigTest in suite
857
858 2002-10-05  Andrew Birkett  <andy@nobugs.org>
859
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 
862         commented them out.
863
864         * AllTests.cs: Added RC2Test.
865
866 2002-09-23  Andrew Birkett  <andy@nobugs.org>
867
868         * RijndaelManagedTest.cs: Fixed initialization order problem 
869         to match MS behaviour.
870
871 2002-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
872
873         * MD5Test.cs: new test from Eduardo García Cebollero (kiwnix@yahoo.es).
874         * AllTests.cs: added new test.