This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / class / corlib / Test / System.Security.Cryptography / ChangeLog
1 2004-06-23  Sebastien Pouliot  <sebastien@ximian.com>
2
3         * CryptoStreamTest.cs: Added two tests for bug #60573. One shows that
4         an encryptor doesn't reduce the number of block on Write while the
5         second shows that a decryptor does reduce the number of blocks on 
6         Write.
7
8 2004-06-16  Sebastien Pouliot  <sebastien@ximian.com>
9
10         * SignatureDescriptionTest.cs: Added missing [TestFixture] :( and 
11         cases for the previously undocumented .ctor(SecurityElement) - which
12         is now, backwardly, documented in VS.NET 2005.
13
14 2004-05-27  Sebastien Pouliot  <sebastien@ximian.com>
15
16         * HashAlgorithmTest.cs: Added new tests to check for more exceptions.
17
18 2004-05-26  Sebastien Pouliot  <sebastien@ximian.com>
19
20         * CryptoStreamTest.cs: Added new unit tests for overflows.
21         * FromBase64Transform.cs: Added new unit tests for undocumented 
22         exceptions (null, overflows...).
23         * ToBase64TransformTest.cs: Added new unit tests for negatives and
24         overflows. 
25
26 2004-05-20  Sebastien Pouliot  <sebastien@ximian.com>
27
28         * CryptoStreamTest.cs, DESCryptoServiceProviderTest.cs, 
29         DSACryptoServiceProviderTest.cs, DSATest.cs, FromBase64Transform.cs,
30         HMACRIPEMD160Test.cs, MD5Test.cs, PKCS1MaskGenerationMethodTest.cs,
31         RIPEMD160ManagedTest.cs, RNGCryptoServiceProviderTest.cs, 
32         RSACryptoServiceProviderTest.cs, RSAOAEPKeyExchangeDeformatterTest.cs,
33         RSAOAEPKeyExchangeFormatterTest.cs, RSAPKCS1KeyExchangeDeformatterTest.cs,
34         RSAPKCS1KeyExchangeFormatterTest.cs, RSAPKCS1SignatureDeformatterTest.cs,
35         RSAPKCS1SignatureFormatterTest.cs, RSATest.cs: SetUp/TearDown are now
36         public (required for new nunit).
37
38 2004-05-17  Sebastien Pouliot  <sebastien@ximian.com>
39
40         * RNGCryptoServiceProviderTest.cs: Added new tests to see how the 
41         constructor behave with null seeds or if they modify the seed.
42
43 2004-05-07  Sebastien Pouliot  <sebastien@ximian.com>
44
45         * DSACryptoServiceProviderTest.cs: Added a new unit test for SignData
46         (was badly tested) and simplified test to reduce key pair generations.
47         * PasswordDerivceBytesTest.cs: Added new tests to complete
48         coverage.
49         * RSACryptoServiceProviderTest.cs: Added new tests to complete
50         coverage.
51         * ToBase64TransformTest.cs: Added a (legal) test where the final 
52         transform receive data smaller than it's input block (padding).
53
54 2004-05-06  Sebastien Pouliot  <sebastien@ximian.com>
55
56         * RC2Test.cs: Converted to NUnit 2. Uncommented some tests that throw 
57         exceptions to test exception handling (and get more coverage).
58         * RNGCryptoServiceProviderTest.cs: Updated unit tests for exception 
59         testing.
60         * RSAOAEPKeyExchangeDeformatterTest.cs: Updated unit tests to complete 
61         coverage.
62         * RSAOAEPKeyExchangeFormatterTest.cs: Updated unit tests to complete 
63         coverage.
64         * RSAPKCS1KeyExchangeDeformatterTest.cs: Updated unit tests to 
65         complete coverage.
66         * RSAPKCS1KeyExchangeFormatterTest.cs: Updated unit tests to complete 
67         coverage.
68         * RSAPKCS1SignatureDeformatterTest.cs: Updated unit tests to complete 
69         coverage.
70         * RSAPKCS1SignatureFormatterTest.cs: Updated unit tests to complete 
71         coverage.
72         * RSATest.cs: Updated unit tests for importing XML key pairs.
73         * SHA256Test.cs: Corrected Setup attribtue (was [Test]).
74         * SignatureDescriptionTest.cs: Removed unimplemented constructor from
75         tests. Converted to NUnit2.
76         * SymmetricAlgorithm2Test.cs: New. Non generated unit test for better
77         coverage (like exception testing).
78         * ToBase64TransformTest.cs: New. Unit tests to complete coverage of
79         ToBase64Transform.
80         * TripleDESTest.cs: New. Unit tests to complete coverage of TripleDES.
81
82 2004-04-29  Sebastien Pouliot  <sebastien@ximian.com>
83
84         * DSACryptoServiceProviderTest.cs: New unit tests fo better coverage.
85         * FromBase64Transform.cs: New unit tests for better coverage.
86         * HashAlgorithmTest.cs: New unit tests for better coverage.
87         * HMACSHA1Test.cs: New unit tests for better coverage. Updated to 
88         NUnit2.
89         * KeyedHashAlgorithmTest.cs: Coverage already complete. Updated to 
90         NUnit 2.
91         * SHA1Test.cs: Coverage already complete. Updated to NUnit2.
92         * SHA1CryptoServiceProviderTest.cs: Coverage almost complete. Updated 
93         to NUnit2.
94         * SHA256Test.cs: Coverage already complete. Updated to NUnit2.
95         * SHA256ManagedTest.cs: Coverage already complete. Updated to NUnit2.
96         * SHA384Test.cs: Coverage already complete. Updated to NUnit2.
97         * SHA384ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
98         * SHA512Test.cs: Coverage already complete. Updated to NUnit2.
99         * SHA512ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
100
101 2004-04-28  Sebastien Pouliot  <sebastien@ximian.com>
102
103         * DESCryptoServiceProviderTest.cs: New. Completes coverage for 
104         DESCryptoServiceProvider class. Calls the FIPS 81 tests for this
105         implementation.
106         * DESTest.cs: Added test vectors from FIPS 81.
107
108 2004-04-26  Sebastien Pouliot  <sebastien@ximian.com>
109
110         * DESTest.cs: New. Unit tests for DES including checks for weak and
111         semi-weak keys (with and without parity applied on keys). Completes
112         coverage for DES class.
113
114 2004-04-02  Bernie Solomon  <bernard@ugsolutions.com>
115
116         * PasswordDeriveBytesTest.cs: Add ToInt32LE so
117         it works on big endian machines.
118
119 2004-03-10  Sebastien Pouliot  <sebastien@ximian.com>
120
121         * FromBase64Transform.cs: Two new unit tests showing that the 
122         transform doesn't care if it's data is invalid base64. Convert class
123         is on it's own.
124
125 2004-03-10  Sebastien Pouliot  <sebastien@ximian.com>
126
127         * FromBase64Transform.cs: Converted to NUnit2 format. New unit tests
128         for properties, Dispose, Reuse and ignored characters.
129
130 2004-03-09  Atsushi Enomoto  <atsushi@ximian.com>
131
132         * DSATest.cs : Added ToXmlString test that checks if input without
133           Seed and PgenCounter elements pass or not.
134
135 2004-02-12  Sebastien Pouliot  <spouliot@videotron.ca>
136
137         * CryptoStreamTest.cs: Added new tests for [From|To]Base64Transform 
138         (InputBlockSize != OutputBlockSize) and for cascading CryptoStreams.
139
140 2004-02-09  Sebastien Pouliot  <sebastien@ximian.com>
141
142         * DSACryptoServiceProvider.cs: Added new unit tests for key pair 
143         persistence.
144         * RSACryptoServiceProvider.cs: Added new unit tests for key pair 
145         persistence.
146
147 2004-02-04  Sebastien Pouliot  <spouliot@videotron.ca>
148
149         * CryptoStreamTest.cs: Added many more tests for every problem found
150         with CryptoStream using code samples from the internet.
151
152 2003-12-15  Sebastien Pouliot  <spouliot@videotron.ca>
153
154         * CryptoConfigTest.cs: Converted unit tests to NUnit2.
155         * PaddingModeTest.cs: New. Unit tests to check every padding modes for
156         symmetric algorithms.
157         * MACTripleDESTest.cs: Updated unit tests for NUnit2 and to work for 
158         both 1.0 and 1.1 framework.
159
160 2003-11-13  Sebastien Pouliot  <spouliot@videotron.ca>
161
162         * ProtectedDataTest.cs: New. Unit tests for ProtectedData (1.2).
163         * ProtectedMemoryTest.cs: New. Unit tests for ProtectedMemory (1.2).
164
165 2003-11-11  Sebastien Pouliot  <spouliot@videotron.ca>
166
167         * Rfc2898DeriveBytesTest.cs: More tests for Reset and keys longer than
168         a single block.
169
170 2003-11-10  Sebastien Pouliot  <spouliot@videotron.ca>
171
172         * Rfc2898DeriveBytesTest.cs: New. Unit tests for Rfc2898DeriveBytes
173         and test vectors from RFC3211.
174
175 2003-11-09  Sebastien Pouliot  <spouliot@videotron.ca>
176
177         * HMACMD5Test.cs: New. Unit test for HMAC-MD5 with test vectors from 
178         RFC2104.
179         * HMACRIPEMD160Test.cs: New. Unit test for HMAC-RIPEMD160 with test 
180         vectors from http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html.
181         * HMACSHA256Test.cs: New. Unit test for HMAC-SHA256.
182
183 2003-11-08  Sebastien Pouliot  <spouliot@videotron.ca>
184
185         * RIPEMD160Test.cs: New. Unit test using RIPEMD160 test vectors.
186         * RIPEMD160Managed.cs: New. Unit tests running RIPEMD160Test using the
187         RIPEMD160Managed implementation.
188
189 2003-10-04  Sebastien Pouliot  <spouliot@videotron.ca>
190
191         * CryptoStreamTest.cs: Added test case from bugzilla #49323 from
192         Carlos Guzmán Álvarez and some small tests for empty stream with
193         different PaddingMode (as found by Lluis Sanchez Gual).
194
195 2003-08-05  Sebastien Pouliot  <spouliot@videotron.ca>
196
197         * CryptoStreamTest.cs: Added test case from bugzilla #40689 from 
198         Henning Westerholt.
199
200 2003-07-31  Sebastien Pouliot  <spouliot@videotron.ca>
201
202         * CryptoStreamTest.cs: New. Very basic test for CryptoStream + the 
203         test case from bugzilla #46143 from Joerg Rosenkranz.
204         * RSACryptoServiceProviderTest.cs: Fixed some exceptions that are
205         different from .NET 1.0 and 1.1.
206
207 2003-07-05  Sebastien Pouliot  <spouliot@videotron.ca>
208
209         * DSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
210         and better test coverage (based on Zoltan's logs).
211         * DSATest.cs: Converted to NUnit2 format. Added new tests for better unit 
212         test coverage (import incomplete public keys).
213         * RSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
214         and better test coverage (based on Zoltan's logs).
215         * RSATest.cs: Converted to NUnit2 format. Added new tests for better unit 
216         test coverage (import incomplete public keys).
217
218 2003-06-23  Nick Drochak <ndrochak@gol.com>
219
220         * MACTripleDESTest.cs: Adjust for .NET 1.1.
221
222 2003-06-11  Sebastien Pouliot  <spouliot@videotron.ca>
223
224         * AllTests2.cs: Converted tests to NUnit2 format.
225         * RSACryptoServiceProviderTest.cs: Converted tests to NUnit2 format.
226         * RSAPKCS1KeyExchangeDeformatterTest.cs: Converted tests to NUnit2 format.
227         * RSAPKCS1KeyExchangeFormatterTest.cs: Converted tests to NUnit2 format.
228         * RSAPKCS1SignatureDeformatterTest.cs: Converted tests to NUnit2 format.
229         * RSAPKCS1SignatureFormatterTest.cs: Converted tests to NUnit2 format.
230
231 2003-05-29  Sebastien Pouliot  <spouliot@videotron.ca>
232
233         * PKCS1MaskGenerationMethodTest.cs: Added [Ignore] to vector test
234         (as it's result isn't valid on both framework 1.0 and 1.1).
235         * RSAPKCS1SignatureDeformatter.cs: Splitting the test for NUnit2
236         cloned the previous error into many more tests. Hopefully fixed.
237
238 2003-05-28  Sebastien Pouliot  <spouliot@videotron.ca>
239
240         * RSAPKCS1SignatureDeformatter.cs: Fixed (well I hope so) a test
241         which doesn't throw the same exception under 1.1. Also converted 
242         the tests to NUnit2 format.
243
244 2003-05-12  Sebastien Pouliot  <spouliot@videotron.ca>
245
246         * PKCS1MaskGenerationMethodTest.cs: Uncommented PKCS#1 v.2.1 vector 
247         unit test (will work on Mono but fails with MS implementation).
248         * RSAOAEPKeyExchangeDeformatterTest.cs: Updated tests vectors for
249         both Mono and MS (under Windows XP) generated OAEP results.
250         * RSAOAEPKeyExchangeFormatterTest.cs: Update exception handling.
251
252 2003-04-17  Nick Drochak  <ndrochak@gol.com>
253
254         * DSATest.cs: Use nunit version 2 style to test throw.
255         * HMACSHA1Test.cs: Eliminate compiler warning.
256
257 2003-03-04  Sebastien Pouliot  <spouliot@videotron.ca>
258
259         * CryptoConfigTest.cs: Added new tests for algorithms 
260         documented in book ".NET Framework Security".
261
262 2003-02-03  Sebastien Pouliot  <spouliot@videotron.ca>
263
264         * PasswordDeriveBytesTest.cs: Added some new tests to complete 
265         coverage.
266         * RSAPKCS1SignatureDeformatterTest.cs: Added test for null and 
267         invalid hash algorithm.
268
269 2003-01-19  Sebastien Pouliot  <spouliot@videotron.ca>
270
271         * HMACSHA1Test.cs: Added tests for constructors.
272         * MACTripleDESTest.cs: Added tests for constructors.
273
274 2003-01-12  Sebastien Pouliot  <spouliot@videotron.ca>
275
276         * HashAlgorithmTest.cs: Added new test for null streams.
277         * MACTripleDESTest.cs: New. Test suite par MAC using 3DES.
278
279 2002-12-21  Nick Drochak <ndrochak@gol.com>
280
281         * all: make tests build and run under nunit2
282
283 2002-12-21  Nick Drochak  <ndrochak@gol.com>
284
285         * AllTests2.cs: Helper file for unit tests
286         
287 2002-11-20  Sebastien Pouliot  <spouliot@videotron.ca>
288
289         * RSAPKCS1SignatureDeformatterTest.cs: Removed patch from Nick - 
290         as it doesn't seems to work on my system and the exception behavior 
291         isn't logical (only MD5 not SHA1, ...).
292
293 2002-11-18  Nick Drochak  <ndrochak@gol.com>
294
295         * RSAPKCS1SignatureDeformatterTest.cs: MS .NET throws an exception when
296         verifying a bad signature.  Test for that.
297
298 2002-11-17  Sebastien Pouliot  <spouliot@videotron.ca>
299
300         * AllTests.cs: Added a common RSA keypair for tests and all RSA 
301         suites for new tests.
302         * RSACryptoServiceProviderTest.cs: Include tests for keygen,
303         import/export and signature (no encryption yet).
304         * RSAOAEPKeyExchangeDeformatterTest.cs: Compare results with 
305         pre-generated vectors from Mono/Windows (cannot yet compare 
306         with CryptoAPI/Windows as OAEP isn't available on my system).
307         * RSAOAEPKeyExchangeFormatterTest.cs: Test that the Formatter output
308         is compatible with the Deformatter.
309         * RSAPKCS1KeyExchangeDeformatterTest.cs: Compare results with 
310         pre-generated vectors from Mono/Windows and CryptoAPI/Windows.
311         * RSAPKCS1KeyExchangeFormatterTest.cs: Test that the Formatter output
312         is compatible with the Deformatter.
313         * RSAPKCS1SignatureDeformatterTest.cs: Compare results with 
314         pre-generated vectors from Mono/Windows and CryptoAPI/Windows.
315         * RSAPKCS1SignatureFormatterTest.cs: Test that the Formatter output
316         is compatible with the Deformatter.
317
318 2002-11-16  Sebastien Pouliot  <spouliot@videotron.ca>
319
320         * AllTests.cs: Added suites for DSASignatureDeformatter, 
321         DSASignatureFormatter.
322         * CryptoConfigTest.cs: Tests new URLs. This test will fail
323         if System.Security.dll isn't present (or not yet compiled).
324         * DSACryptoServiceProviderTest.cs: New. Key generation (limited
325         because it's too slow), Import/Export, Signature and Verification.
326         * DSASignatureDeformatterTest.cs: New. Test signature verification. 
327         * DSASignatureFormatterTest.cs: New. Test signature creation.
328         * DSATest.cs: Comment DSA-derived test class as DSA constructor
329         is internal. Reworked the test suite.
330         * SignatureDescriptionTest.cs: Added tests for
331         DSASignatureDescription and RSAPKCS1SHA1SignatureDescription.
332
333 2002-11-02  Sebastien Pouliot  <spouliot@videotron.ca>
334
335         * AllTests.cs: Added suites for SignatureDescription and 
336         activated suites for SHA384Managed and SHA512Managed.
337         * SignatureDescriptionTest.cs: New. Basic tests (because I don't
338         know the context in which the class is used).
339
340 2002-10-28  Sebastien Pouliot  <spouliot@videotron.ca>
341
342         * AllTests.cs: Added test suites for SHA256, SHA384 and SHA512 
343         (last two partly commented until implementation is commited).
344         * SHA256Test.cs: New. Generic FIPS180-2 tests for SHA-256.
345         * SHA256ManagedTest.cs: New. Implementation tests (inherits
346         from SHA256Test).
347         * SHA384Test.cs: New. Generic FIPS180-2 tests for SHA-384.
348         * SHA384ManagedTest.cs: New. Implementation tests (inherits
349         from SHA384Test).
350         * SHA512Test.cs: New. Generic FIPS180-2 tests for SHA-512.
351         * SHA512ManagedTest.cs: New. Implementation tests (inherits
352         from SHA512Test).
353
354 2002-10-25  Sebastien Pouliot  <spouliot@videotron.ca>
355
356         * AllTests.cs: Added suite for PasswordDeriveBytes
357         * PasswordDeriveBytesTest.cs: New. Tests against pre-generated vectors -
358         only works for short runs (keys < HashSize) not long runs
359
360 2002-10-20  Sebastien Pouliot  <spouliot@videotron.ca>
361
362         * AllTests.cs: Added suite for Rjindael
363         * RjindaelTest.cs: New. Test vectors from FIPS PUB 197 appendix.
364
365 2002-10-19  Sebastien Pouliot  <spouliot@videotron.ca>
366
367         * AllTests.cs: Renabled most tests after commenting all code causing a 
368         cyclic dependency (corlib->System.Xml->corlib). Some tests will fail 
369         until commented code is replaced.
370         * SymmetricAlgorithm.cs: New (189) generated test cases for all default
371         algorithm implementation, all cipher modes, all padding modes, all key
372         sizes, all block sizes, feedback...
373         * PKCS1MaskGenerationMethodTest.cs: Commented vector test. Added new 
374         tests to check for various exceptions
375
376 2002-10-16  Nick Drochak  <ndrochak@gol.com>
377
378         * CryptoConfigTest.cs (TestCreateFromName): Disable tests for
379         algorithms that aren't in the build yet.
380
381 2002-10-16  Nick Drochak  <ndrochak@gol.com>
382
383         * AllTests.cs: Disable tests that use components were are excluding
384         from corlib.
385         * SHA1Test.cs: same
386
387 2002-10-14  Sebastien Pouliot  <spouliot@videotron.ca>
388
389         * AllTests.cs: Added suite for PKCS1MaskGenerationMethod
390         * PKCS1MaskGenerationMethodTest.cs: New. Test work as per PKCS#1 but 
391         result isn't the same as MS implementation !?! is MS using this class ?
392
393 2002-10-13  Sebastien Pouliot  <spouliot@videotron.ca>
394
395         * AllTests.cs: Added suite for HashAlgorithm, KeyedHashAlgorithm and
396         HMACSHA1
397         * HashAlgorithmTest.cs: New. Test for Create and Clear
398         * KeyedHashAlgorithmTest.cs: New. Test for Create and key assignation
399         * HMACSHA1Test.cs: New. Test vectors from FIPS 198 and RFC2202
400
401 2002-10-12  Sebastien Pouliot  <spouliot@videotron.ca>
402
403         * AllTests.cs: Added suite for RandomNumberGenerator, SHA1 and 
404         SHA1CryptoServiceProvider
405         * RandomNumberGeneratorTest.cs: New. Tests for Create and generic 
406         random quality tests (FIPS140-2)
407         * SHA1Test.cs: New. Tests for Create and generic SHA1 tests (FIPS180-1)
408         * SHA1CryptoServiceProviderTest.cs: New. Inherited SHA1Tests tests +
409         specific tests
410
411 2002-10-10  Sebastien Pouliot  <spouliot@videotron.ca>
412
413         * DSATest.cs: Added non-abstract DSA class to test To/FromXmlString()
414         * RSATest.cs: Added non-abstract RSA class to test To/FromXmlString()
415         * AllTests.cs: Added DSATest.cs and RSATest.cs in suite
416
417 2002-10-09  Sebastien Pouliot  <spouliot@videotron.ca>
418
419         * CryptoConfigTest.cs: New tests
420         * AllTests.cs: Added CryptoConfigTest in suite
421
422 2002-10-05  Andrew Birkett  <andy@nobugs.org>
423
424         * RC2Test.cs: New test.  Only three cases are enabled - the other
425         five work fine under mono, but fail under MS corlib, so I've 
426         commented them out.
427
428         * AllTests.cs: Added RC2Test.
429
430 2002-09-23  Andrew Birkett  <andy@nobugs.org>
431
432         * RijndaelManagedTest.cs: Fixed initialization order problem 
433         to match MS behaviour.
434
435 2002-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
436
437         * MD5Test.cs: new test from Eduardo García Cebollero (kiwnix@yahoo.es).
438         * AllTests.cs: added new test.