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