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