Switch to compiler-tester
[mono.git] / mcs / class / corlib / System.Security.Cryptography / ChangeLog
1 2005-06-10  Sebastien Pouliot  <sebastien@ximian.com>
2
3         * all: 2.0 beta2 fixes, i.e. mostly added [ComVisible(true)]
4
5 2005-06-09  Sebastien Pouliot  <sebastien@ximian.com>
6
7         * HMAC.cs: BlockSizeValue has changed from a protected member to
8         a protected property.
9
10 2005-06-06  Sebastien Pouliot  <sebastien@ximian.com>
11
12         * CspProviderFlags.cs: UseExistingKey was added in 1.1 SP1. Added
13         ComVisible attribute for 2.0.
14
15 2005-05-19  Sebastien Pouliot  <sebastien@ximian.com>
16
17         * CryptoConfig.cs: Don't use the global hashtables until the 
18         initialization is complete.
19
20 2005-05-18  Sebastien Pouliot  <sebastien@ximian.com>
21
22         * CryptoConfig.cs: Changed lock pattern to second version of
23         http://www.skeet.org.uk/csharp/singleton.html
24
25 2005-05-16  Sebastien Pouliot  <sebastien@ximian.com>
26
27         * CryptoConfig.cs: Initialization wasn't threadsafe as the "checked" 
28         value was assigned at the start of the initialization.
29
30 2005-04-25  Sebastien Pouliot  <sebastien@ximian.com>
31
32         * CryptoConfig.cs: Removed RSA OID and added null check in EncodeOID
33         in NET_2_0 to match beta2.
34         * DES.cs: Added null check for IsWeakKey and IsSemiWeakKey in NET_2_0
35         to match beta2.
36         * SymmetricAlgorithm.cs: Throw CryptographicException when feedback is
37         zero in NET_2_0 to match beta2
38         * TripleDES.cs: Added null check for IsWeakKey in NET_2_0 to match 
39         beta2.
40
41 2005-04-05  Sebastien Pouliot  <sebastien@ximian.com>
42
43         * CryptoConfig.cs: Added Assert for FileIOPermission to LoadConfig so 
44         the configuration can be read under partial trust.
45
46 2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>
47
48         * CryptoConfig.cs: Added LinkDemand for unrestricted to CreateFromName
49         when used to create instance with object[] parameters.
50         * CryptoAPITransform.cs: Added Demand for UnmanagedCode to KeyHandle 
51         property.
52
53 2005-03-07  Sebastien Pouliot  <sebastien@ximian.com>
54
55         * MD5CryptoServiceProvider.cs: Fixed #73404 to return right results
56         if the data length is bigger than 2^32 bits.
57         * SHA1CryptoServiceProvider.cs: Fixed #73404 to return right results
58         if the data length is bigger than 2^32 bits.
59         * SHA256Managed.cs: Fixed #73404 to return right results if the data
60         length is bigger than 2^32 bits.
61
62 2005-03-03  Sebastien Pouliot  <sebastien@ximian.com>
63
64         * RNGCryptoServiceProvider.cs: Added a new call in the static ctor
65         to check if we're using a global handle. In that case we lock before
66         calling the RNG.
67
68 2005-02-10  Sebastien Pouliot  <sebastien@ximian.com> 
69
70         * DSA.cs: Weekly fix to case where DSAParameters.Counter is 0 :-(
71         A new unit test was added for this specific case so it's hopefully
72         the last fix for this. Fixed exception reporting to match NET_2_0.
73
74 2005-01-30  Sebastien Pouliot  <sebastien@ximian.com> 
75
76         * DSA.cs: Really fixed case where DSAParameters.Counter is 0.
77
78 2005-01-21  Sebastien Pouliot  <sebastien@ximian.com> 
79
80         * DSA.cs: Handle the case where DSAParameters.Counter is 0.
81
82 2005-01-11  Sebastien Pouliot  <sebastien@ximian.com> 
83
84         * CryptoConfig.cs: Added support to create RIPEMD160 and the new HMAC
85         algorithms (HMACMD5, HMACRIPEMD160, HMACSHA256, HMACSHA384 and 
86         HMACSHA512). This fix the unit tests failures in Mono.Security.dll in
87         the NET_2_0 profile.
88         * DSACryptoServiceProvider.cs: Import|ExportCspBlob throws 
89         NotImplementedException (CryptoConvert class doesn't support DSA yet).
90         * RSACryptoServiceProvider.cs: SignHash/VerifyHash defaults to SHA-1
91         in 2.0. VerifyHash throw appropriate exception when no OID is 
92         specified (1.0/1.1). Import|ExportCspBlob implemented using the
93         CryptoConvert class.
94         * RSAOAEPKeyExchangeDeformatter.cs: Throw exception if no key is 
95         specified.
96         * RSAOAEPKeyExchangeFormatter.cs: Throw exception if no key is 
97         specified.
98         * RSAPKCS1KeyExchangeFormatter.cs: Throw exception if no key is 
99         specified.
100         * SymmetricAlgorithm.cs: More strict IV length checks on 2.0.
101
102 2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>
103
104         * CryptoConfig.cs: Change the OID for SHA-2 algorithms to match 2.0
105         and added new OID for asymmetric and symmetric algorithms.
106         * CspKeyContainerInfo.cs: Added CryptoKeySecurity property. This will
107         always return null until we support access control for key containers.
108         * CspParameters.cs: Added new constructors and propertys for access 
109         control and password (2.0).
110         * DSASignatureDeformatter.cs: Throw ArgumentNullException in NET_2_0 
111         if a null key is specified.
112         * DSASignatureFormatter.cs: Throw ArgumentNullException in NET_2_0 if
113         a null key is specified.
114         * HashAlgorithm.cs: Fix the reported exceptions for output buffers.
115         * HMAC.cs: Change the .Clear (which calls Dispose) to a .Initialize.
116         * MACTripleDES.cs: Removed unrequired private field _padding.
117         * PasswordDeriveBytes.cs: Added 4 new constructors where the password
118         is a byte[] (as it seems MS won't be using SecureString for this).
119         * RIPEMD160Managed.cs: Removed overriden Dispose method to match 2.0.
120         Clear buffers when initializing (e.g. re-using the hash instance).
121         * Rfc2898DeriveBytes.cs: Added a new constructor where the password
122         is a byte[] (as it seems MS won't be using SecureString for this).
123         * RSAPKCS1SignatureDeformatter.cs: Throw ArgumentNullException in
124         NET_2_0 if a null key is specified.
125         * RSAPKCS1SignatureFormatter.cs: Throw ArgumentNullException in
126         NET_2_0 if a null key is specified.
127         * ToBase64Transform.cs: Fix the reported exceptions for output buffers.
128
129 2005-01-06  Sebastien Pouliot  <sebastien@ximian.com> 
130
131         * DES.cs: Change wek and semi-weak key checking to avoid memory 
132         allocations. Old version required 2 allocations (weak+semiweak) to 
133         unpack the key. New versions are 16x-20x faster.
134         *  RijndaelManaged.cs: Removed unrequired "& 0xff" when casting to 
135         byte.
136
137 2005-01-03  Sebastien Pouliot  <sebastien@ximian.com> 
138
139         * DESCryptoServiceProvider.cs: Refactored ECB/ProcessBlock to allow
140         TripleDES to be more efficient by using the permutations itself. 
141         * TripleDESCryptoServiceProvider.cs: Removed memory allocation in 
142         Transform's ECB method. Changed code to directly call DES's 
143         permutations. MACTripleDES is now 20% faster (didn't have any other
144         3DES benchmark on hand) and requires much less memory.
145
146 2005-01-03  Sebastien Pouliot  <sebastien@ximian.com>
147
148         * DESCryptoServiceProvider.cs: Now using pre-computed tables (instead
149         of using a static constructor to compute them). Not much change 
150         performance-wise unless you used DES but only "a little" ;-). The old
151         code (who computed the results) is still present but commented,
152
153 2005-01-02  Sebastien Pouliot  <sebastien@ximian.com>
154
155         * SHA1CryptoServiceProvider.cs: Removed memory allocation in 
156         ProcessBlock method (now global). This gives up to 8% performance
157         increase when multiple blocks are being used.
158         * SHA256Managed.cs: Removed memory allocation in ProcessBlock method
159         (now global). This gives up to 5% performance increase when multiple 
160         blocks are being used.
161
162 2004-12-23  Sebastien Pouliot  <sebastien@ximian.com>
163
164         * DataProtectionScope.cs: Moved in System.Security.dll
165         * MemoryProtectionScope.cs: Moved in System.Security.dll
166         * ProtectedData.cs: Moved in System.Security.dll
167         * ProtectedMemory.cs: Moved in System.Security.dll
168
169 2004-12-22  Sebastien Pouliot  <sebastien@ximian.com>
170
171         * RSA.cs: Throw the proper CryptographicException exception when 
172         exporting a private key without CRT parameters, while keeping the
173         ArgumentNullException when the private exponent (D) is missing.
174
175 2004-12-06  Sebastien Pouliot  <sebastien@ximian.com>
176
177         * RSACryptoServiceProvider.cs: Adjust DecryptValue to the fact that 
178         Mono's RSAManaged support decryption without CRT while MS requires it.
179
180 2004-11-26  Sebastien Pouliot  <sebastien@ximian.com>
181
182         * CryptoAPITransform.cs: 
183         * DSACryptoServiceProvider.cs: 
184         * MACTripleDES.cs:
185         * RC2CryptoServiceProvider.cs: 
186         * RSACryptoServiceProvider.cs: 
187                 Added ComVisible attributes to match 2.0 October Preview.
188
189 2004-11-03  Sebastien Pouliot  <sebastien@ximian.com>
190
191         * PasswordDeriveBytes.cs: Fix default iretation count to 100. Fix
192         exceptions to match MS more closely. Fixed possible ArgumentException
193         when asking multiple GetBytes than results in more bits than the hash
194         function can provide.
195
196 2004-09-16  Sebastien Pouliot  <sebastien@ximian.com>
197
198         * DESCryptoServiceProvider.cs: Fixed warning (l4) by adding empty {}.
199         * DSASignatureDeformatter.cs: Fixed warning (l4) for unused variable.
200         * DSASignatureFormatter.cs: Fixed warning (l4) for unused variable.
201         * HMACSHA1.cs: Fixed warning (l4) for unused variable.
202
203 2004-09-03  Tim Coleman (tim@timcoleman.com)
204
205         * CryptoConfig.cs: Add new Xml cryptography class info.
206
207 2004-08-08  Sebastien Pouliot  <sebastien@ximian.com>
208
209         * CspProviderFlags.cs: Fixed new enums values.
210         * DSA.cs: Fixed #if for constructor visibility.
211         * CryptoAPITransform.cs: Removed constructor for NET_2_0 profile.
212
213 2004-07-07  Sebastien Pouliot  <sebastien@ximian.com>
214
215         * DES.cs: Fixed FeedbackSizeValue to 8.
216         * RC2.cs: Fixed FeedbackSizeValue to 8.
217         * RC2CryptoServiceProvider.cs: When key size is different from 
218         effective key size we throw CryptographicUnexpectedOperationException.
219         * TripleDES.cs: Fixed FeedbackSizeValue to 8.
220
221 2004-07-07  Sebastien Pouliot  <sebastien@ximian.com>
222
223         * CryptoAPITransform.cs: Added the new Reset method for NET_2_0. This
224         is a NOP as this class isn't used by Mono (all crypto transforms are 
225         managed).
226         * CryptographicException.cs: Added _Exception interface for NET_2_0 
227         profile.
228         * CspProviderFlags.cs: Added new enum's members for NET_2_0.
229         * DSA.cs: Changed constructor to protected for NET_2_0. It is now 
230         possible to inherit from DSA in other assemblies.
231         * DSACryptoServiceProvider.cs: NET_2_0 cleanup. Added interface 
232         ICspAsymmetricAlgorithm (stub), removed (unrequired) LegalKeySizes 
233         override, fixed visibility of PublicOnly property.
234         * HMACSHA1.cs: Fixed #if for NET_2_0 profile.
235         * KeyNumber.cs: Fixed values for new enum in Fx 2.0.
236         * MACTripleDES.cs: Added new Padding property to NET_2_0 profile.
237         * ProtectedData.cs: Added missing private constructor.
238         * ProtectedMemory.cs: Added missing private constructor.
239         * RC2CryptoServiceProvider.cs: Added UseSalt property to NET_2_0 
240         profile. Salt usage must be added to the transforms.
241         * RIPEMD160Managed.cs: Removed unrequired [CLSCompliant] attributes.
242         * RSACryptoServiceProvider.cs: NET_2_0 cleanup. Added interface 
243         ICspAsymmetricAlgorithm (stub), fixed visibility of PublicOnly 
244         property.
245         * RijndaelManaged.cs: Use the new RijndaelManagedTransform for Fx 2.0.
246         * RijndaelManagedTransform.cs: New. Class is now public in Fx 2.0.
247
248 2004-06-23  Sebastien Pouliot  <sebastien@ximian.com>
249
250         * CryptoStream.cs: Removed the block reduction. This seems to be done
251         only for Decryptor so it was moved to SymmetricTransform.
252
253 2004-06-16  Sebastien Pouliot  <sebastien@ximian.com>
254
255         * SignatureDescription.cs: Implemented .ctor(SecurityElement) using
256         documentation from VS.NET 2005.
257
258 2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
259
260         * ToBase64Transform.cs: Uncomment finalizer to fix public API
261         signature
262
263 2004-05-29  Sebastien Pouliot  <sebastien@ximian.com>
264
265         * CspProviderFlags.cs: Reverted previous patch as UseExistingKey isn't
266         part of the 1.0/1.1 framework.
267
268 2004-05-29  Gert Driesen (drieseng@users.sourceforge.net)
269
270         * CspProviderFlags.cs: Added missing enum field UseExistingKey
271
272 2004-05-27  Sebastien Pouliot  <sebastien@ximian.com>
273
274         * HashAlgorithm.cs: Added missing exception handling to ComputeHash,
275         TransformBlock and TransformFinalBlock.
276
277 2004-05-26  Sebastien Pouliot  <sebastien@ximian.com>
278
279         * CryptoStream.cs: Fixed possible integer overflow.
280         * FromBase64Transform.cs: Better exception handling and fixed possible
281         integer overflow.
282         * RNGCryptoServiceProvider.cs: Changed RNG interface with the runtime
283         so it could be used in a thread-safe way with CryptoAPI.
284         * ToBase64Transform.cs: Better exception handling and fixed possible
285         integer overflow.
286
287 2004-05-07  Sebastien Pouliot  <sebastien@ximian.com>
288
289         * CipherMode.cs: Moved XML comments to monodoc.
290         * CryptoConfig.cs: Changed Array.Copy to Buffer.BlockCopy.
291         * CryptoStream.cs: Changed Array.Copy to Buffer.BlockCopy.
292         * DSA.cs: Changed Array.Copy to Buffer.BlockCopy.
293         * DSACryptoServiceProvider.cs: Fixed SignData to hash data before 
294         signing it (thanks to Jens Thiel for spotting this).
295         * ICryptoTransform.cs: Moved XML comments to monodoc.
296         * PasswordDeriveBytes.cs: Changed Array.Copy to Buffer.BlockCopy.
297         * FromBase64Transform.cs: Moved XML comments to monodoc.
298         * RSACryptoServiceProvider.cs: Fixed OID related exception in SignData.
299         * ToBase64Transform.cs: Input block may be smaller than a full block
300         when calling TransformFinalBlock (fix 2 CryptoStream unit tests).
301
302 2004-05-06  Sebastien Pouliot  <sebastien@ximian.com>
303
304         * RSAOAEPKeyExchangeDeformatter.cs: Fixed wrt completed unit tests.
305         * RSAOAEPKeyExchangeFormatter.cs: Fixed wrt completed unit tests.
306         * RSAPKCS1KeyExchangeDeformatter.cs: Fixed wrt completed unit tests.
307         Added globalization to exceptions.
308         * RSAPKCS1KeyExchangeFormatter.cs: Fixed wrt completed unit tests.
309         * RSAPKCS1SignatureDeformatter.cs: Fixed wrt completed unit tests.
310         Added globalization to exceptions.
311         * RSAPKCS1SignatureFormatter.cs: Fixed wrt completed unit tests.
312         Added globalization to exceptions.
313         
314 2004-05-06  Sebastien Pouliot  <sebastien@ximian.com>
315
316         * RC2.cs: Fixed KeySize to change it's value and the EffectiveKeySize
317         when the key is changed.
318         * RC2CryptoServiceProvider.cs: Added globalization to exceptions. 
319         Fixed the KeySize must be equal with EffectiveKeySize to match MS 
320         implementation.
321         * Rijndael.cs: Source clean up.
322         * RijndaelManaged.cs: Moved XML comments to monodoc. Added 
323         globalization to exceptions. 
324         * RNGCryptoServiceProvider.cs: Removed TODO and documented them in
325         mono doc. Now call runtime when a seed is provided.
326         * RSA.cs: Added globalization to exceptions. Removed check for 
327         <RSAKeyValue> as it is not checked by MS implementation.
328         * SHA1.cs: Moved XML comments to monodoc.
329         * SHA1CryptoServiceProvider.cs: Moved XML comments to monodoc. Removed
330         CLSCompliance attributes from private fields. 
331         * SHA256.cs: Moved XML comments to monodoc.
332         * SHA256Managed.cs: Moved XML comments to monodoc. Removed 
333         CLSCompliance attributes from   private fields.
334         * SHA384.cs: Moved XML comments to monodoc.
335         * SHA512.cs: Moved XML comments to monodoc.
336         * SignatureDescription.cs: Moved XML comments to monodoc. Added 
337         globalization to exceptions. Removed TODO and added notes to monodoc.
338         * SymmetricAlgorithm.cs: Moved XML comments to monodoc. Added 
339         globalization to exceptions.
340         * ToBase64Tranform.cs: Added missing exception handling. Moved XML 
341         comments to monodoc.
342         * TripleDES.cs: Added globalization to exceptions.
343         * TripleDESCryptoServiceProvider.cs: Changed Array.Copy to 
344         Buffer.BlockCopy. Zeroize decrypted data.
345
346 2004-05-05  Sebastien Pouliot  <sebastien@ximian.com>
347
348         * HashAlgorithm.cs: Moved XML comments to monodoc. Added globalization
349         to exceptions.
350         * KeyedHashAlgorithm.cs: Added globalization to exceptions.
351         * KeySizes.cs: Moved XML comments to monodoc.
352         * MaskGenerationMethod.cs: Source clean up.
353         * MD5.cs: Moved XML comments to monodoc.
354         * MD5CryptoServiceProvider.cs: Removed CLSCompliance attributes from
355         private fields. Changed constants from enum to array. Zeroize data on
356         Dispose.
357         * PaddingMode.cs: Moved XML comments to monodoc.
358         * PasswordDeriveBytes.cs: Added globalization to exceptions. Removed 
359         TODO and documented as "not supported" in MonoDoc.
360         * RandomNumberGenerator.cs: Source clean up.
361
362 2004-05-05  Sebastien Pouliot  <sebastien@ximian.com>
363
364         * DSACryptoServiceProvider.cs: Added globalization to exceptions.
365         * HMACSHA1.cs: Cleanup.
366         * SHA1CryptoServiceProvider.cs: Removed unused private methods.
367         * SHA1Managed.cs: Removed unused private methods.
368         * SHA384Managed.cs: Don't zeroize buffer on first initialization.
369         * SHA512Managed.cs: Don't zeroize buffer on first initialization.
370         
371 2004-05-05  Sebastien Pouliot  <sebastien@ximian.com>
372
373         * Base64Constants.cs: New. Convert code into tables for better base64
374         performance.
375         * FromBase64Transform.cs: Updated to use the new tables. Source code
376         cleanup.
377         * SHA256Managed.cs: Updated to use shared constants.
378         * SHA384Managed.cs: Updated to use shared constants.
379         * SHA512Managed.cs: Updated to use shared constants.
380         * SHAConstants.cs: New. Shared constants for SHA implementations.
381         * ToBase64Transform.cs: Updated to use the new tables. Added 
382         globalization. Commented finalizer as it isn't required in this case.
383
384 2004-05-03  Sebastien Pouliot  <sebastien@ximian.com>
385
386         * CryptoConfig.cs: Specify version and public key token when loading
387         System.Security.dll for XML Digital Signature classes.
388
389 2004-04-29 Ben Maurer  <bmaurer@users.sourceforge.net>
390
391         * DES.cs:
392         * DESCryptoServiceProvider.cs:
393         * RC2CryptoServiceProvider.cs:
394         * RijndaelManaged.cs:
395         * SHA384Managed.cs:
396         * SHA512Managed.cs:
397         * ToBase64Transform.cs:
398         Readonly/Constify.
399
400 2004-04-29  Sebastien Pouliot  <sebastien@ximian.com>
401
402         * DES.cs: Removed redundant weak/semi-weak key check in Key property.
403         * DESCryptoServiceProvider.cs: Implementation already had 100% 
404         coverage.
405
406 2004-04-28  Sebastien Pouliot  <sebastien@ximian.com>
407
408         * DSACryptoServiceProvider.cs: Changed delegate signature.
409         * RSACryptoServiceProvider.cs: Changed delegate signature.
410
411 2004-04-28  Sebastien Pouliot  <sebastien@ximian.com>
412
413         * DSA.cs: Moved XML comments to monodoc. Added globalization to 
414         exceptions. Already had 100% coverage.
415         * DSAParameters.cs: Moved XML comments to monodoc.
416         * DSASignatureDeformetter.cs: Added globalization to exceptions. 
417         Limited catch to expected exception. Already had 100% coverage.
418         * DSASignatureFormatter.cs: Added globalization to exceptions. Limited
419         catch to expected exception. Already had 100% coverage.
420
421 2004-04-26  Sebastien Pouliot  <sebastien@ximian.com>
422
423         * AsymmetricAlgorithm.cs: Moved XML comments to monodoc. Added 
424         globalization to exceptions. Already had 100% coverage.
425         * AsymmetricKeyExchangeDeformatter.cs: Moved XML comments to monodoc.
426         Already had 100% coverage.
427         * AsymmetricKeyExchangeFormatter.cs: Moved XML comments to monodoc.
428         Already had 100% coverage.
429         * AsymmetricSignatureDeformatter.cs: Moved XML comments to monodoc.
430         Already had 100% coverage.
431         * AsymmetricSignatureFormatter.cs: Moved XML comments to monodoc.
432         Already had 100% coverage.
433         * CryptoAPITransform.cs: Unused by Mono (added note to monodoc).
434         Class will stay at 0% coverage.
435         * CryptoConfig.cs: Added globalization to exceptions. 98% coverage.
436         * CryptographicException.cs: Added globalization to exceptions. 
437         Already had 100% coverage.
438         * CryptoStream.cs: Added globalization to exceptions. Removed (unused)
439         field _previousBlock to get 100% coverage.
440         * CspParameters.cs: Moved XML comments to monodoc. Already had 100% 
441         coverage.
442         * CspProviderFlags.cs: Moved XML comments to monodoc.
443         * DeriveBytes.cs: Moved XML comments to monodoc. Already had 100% 
444         coverage.
445         * DES.cs: Fixes to weak/semi-weak checking to pass new unit tests (it
446         requires to set odd parity on keys before comparing).
447
448 2004-04-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
449
450         * DSACryptoServiceProvider.cs: Call invariant compare
451
452 2004-04-08  Bernie Solomon  <bernard@ugsolutions.com>
453
454         * DSA.cs: Use Mono.Security.BitConverterLE
455
456 2004-04-05  Bernie Solomon  <bernard@ugsolutions.com>
457
458         * DESCryptoServiceProvider.cs: Use BitConverter.IsLittleEndian
459         to fix for big endian machines.
460
461 2004-03-10  Sebastien Pouliot  <sebastien@ximian.com>
462
463         * FromBase64Transform.cs: Now throws ObjectDisposedException and
464         return true for CanReuseTransform (as MS implementation).
465
466 2004-03-09  Atsushi Enomoto  <atsushi@ximian.com>
467
468         * DSA.cs : fixed incorrectly modified catch for debugging.
469
470 2004-03-09  Atsushi Enomoto  <atsushi@ximian.com>
471
472         * DSA.cs : In ToXmlString(), sequence of Seed and PgenCounter is
473           optional.
474
475 2004-02-26  Sebastien Pouliot  <sebastien@ximian.com>
476
477         * DES.cs: Same fix as for SymmetricAlgorithm (get_Key is 
478         overridden to check for weak keys). Also ensured that no weak keys
479         would be generated.
480         * SymmetricAlgorithm.cs: Return a copy of the key (and IV) so it 
481         doesn't get destroyed when dispose is called (in this case the key
482         zeroization is the caller's responsability). Match MS implementation.
483         * TripleDES.cs: Same fix as for SymmetricAlgorithm (get_Key is 
484         overridden to check for weak keys). Fix bugzilla #54868.
485
486 2004-02-12  Sebastien Pouliot  <sebastien@ximian.com>
487
488         * CryptoStream.cs: Remove the _blockSize assumptions because some 
489         Transforms could be different on Input/Output. Added a special case
490         for cascading CryptoStreams in FlushFinalBlock.
491
492 2004-02-09  Sebastien Pouliot  <sebastien@ximian.com>
493
494         * DSACryptoServiceProvider.cs: Fixed support for key pair persistence.
495         It now requires (like MS) to call Clear to delete an existing 
496         container. PersistKeyInCsp default value also changes if a 
497         CspParameters is supplied (or not) to the constructor.
498         * RSACryptoServiceProvider.cs: Same fixes as DSA.
499         * SymmetricAlgorithm.cs: Reintroduced the patch from 2003-08-24 to fix
500         IV length exception for stream ciphers (e.g. RC4). I overwrote it by
501         accident some time ago :(
502
503 2004-02-08  Sebastien Pouliot  <sebastien@ximian.com>
504
505         * HashAlgorithm.cs: Changed the ComputeHash(Stream) method to (a) not
506         allocate the whole stream memory (big memory saver as suggested by
507         Peter Williams in bugzilla entry #54022) and (b) to never use Stream.
508         Length and Stream.Position because they aren't implemented for every
509         stream class (similar issue to the CryptoStream patch).
510         * MD5CryptoServiceProvider.cs: Moved a buffer allocation from 
511         ProcessBlock to constructor to reduce memory allocation. Optimization
512         suggested by Peter Williams in bugzilla entry #54024.
513
514 2004-02-06  Sebastien Pouliot  <sebastien@ximian.com>
515
516         * DSACryptoServiceProvider.cs: Added keypair persistence support.
517         Corrected dispose so object cannot be disposed multiple time. Added
518         PublicOnly property (as internal before 1.2, public after).
519         * RSACryptoServiceProvider.cs: Added keypair persistence support.
520         Corrected dispose so object cannot be disposed multiple time. Added
521         PublicOnly property (as internal before 1.2, public after).
522         * SymmetricAlgorithm.cs: Removed class SymmetricTransform from file
523         and moved it to Mono.Security.Cryptography namespace. The transform
524         class will also be included in Mono.Security assembly.
525
526 2004-02-06  David Sheldon <dave-mono@earth.li>
527
528   * FromBase64Transform.cs: Improved code layout to match coding style, 
529    and removed the Byte comparison with -1.
530
531 2004-02-04  Sebastien Pouliot  <sebastien@ximian.com>
532
533         * CryptoStream.cs: New implementation - should fix all known issues
534         with the class (Read/WriteByte, reading by non-multiple of the
535         block size, using Stream.Length and Stream.Position ...).
536         * SymmetricAlgorithm.cs: Return an empty array when there's nothing
537         to return (required for CryptoStream to work).
538
539 2004-01-31  David Sheldon      <dave-mono@earth.li>
540
541         * FromBase64Transform.cs: Removed needless catch and rethrow.
542
543 2004-01-31  David Sheldon      <dave-mono@earth.li>
544
545         * FromBase64Transform.cs: Fixes to what happens if a character in the
546         input stream is not in the lookup table. IndexOutOfRangeException was 
547         wrong.
548
549 2003-12-15  Sebastien Pouliot  <spouliot@videotron.ca>
550
551         * CryptoConfig.cs: Now use internal Environment.GetMachineConfigPath()
552         to find machine.config. Initialization removed from static constructor
553         to speed up 98% of software that do not requires it.
554         * SymmetricAlgorithm.cs: Fixed padding for None and Zeros modes. Unit
555         tests for padding modes are now in PaddingModeTest.cs.
556
557 2003-12-10  Zoltan Varga  <vargaz@freemail.hu>
558
559         * HMAC.cs: Fix compilation warnings.
560
561 2003-12-10  Mark Crichton  <crichton@gimp.org>
562
563         * RNGCryptoServiceProvider.cs: Removed icall to GetNonZeroBytes. Now
564         done with managed code.
565
566 2003-11-13  Sebastien Pouliot  <spouliot@videotron.ca>
567
568         * ProtectedData.cs: Added exceptions - core is still TODO.
569         * ProtectedMemory.cs: Added exceptions - core is still TODO.
570
571 2003-11-11  Sebastien Pouliot  <spouliot@videotron.ca>
572
573         * Rfc2898DeriveBytes.cs: Now handle resets and keys longer than 160 
574         bits (HMACSHA1 block size). Removed TODO.
575         * SymmetricAlgorithm.cs: Fixed decryption when inputOffset > 0.
576         [#50826].
577
578 2003-11-10  Sebastien Pouliot  <spouliot@videotron.ca>
579
580         * Rfc2898DeriveBytes.cs: Implementation for PKCS5 PBKDF2. It works
581         except for the Reset() part - which implies some kind of Resume.
582
583 2003-11-09  Sebastien Pouliot  <spouliot@videotron.ca>
584
585         * CryptoConfig.cs: Updated for RIPEMD160 and HMAC.
586         * CspKeyContainerInfo.cs: New (1.2). Information about CSP based key
587         containers.
588         * DataProtectionScope.cs: New (1.2). Enumeration for ProtectedData.
589         * HMAC.cs: New (1.2). Base class for all HMAC. Code is mostly copied 
590         from internal Mono.Security.Cryptography.HMACAlgorith.cs.
591         * HMACMD5.cs: New (1.2). HMAC implementation using MD5.
592         * HMACRIPEMD160.cs: New (1.2). HMAC implementation using RIPEMD160.
593         * HMACSHA1.cs: Modified to derive from HMAC for .NET 1.2.
594         * HMACSHA256.cs: New (1.2). HMAC implementation using SHA256.
595         * HMACSHA384.cs: New (1.2). HMAC implementation using SHA384.
596         * HMACSHA512.cs: New (1.2). HMAC implementation using SHA512.
597         * ICspAsymmetricAlgorithm.cs: New (1.2). Interface for CSP based 
598         asymmetric algorithm.
599         * KeyNumber.cs: New (1.2). Enumeration for CspKeyContainerInfo.
600         * MemoryProtectionScope.cs: New (1.2). Enumeration for ProtectedMemory.
601         * PaddingMode.cs: Added two new padding modes to enumeration (for 1.2).
602         * ProtectedData.cs: New (1.2). ProtectedData without protection (TODO).
603         * ProtectedMemory.cs: New (1.2). Stub for ProtectedMemory.
604         * Rfc2898DeriveBytes.cs: New (1.2). Stub for PKCS5 PBKDF2.
605
606 2003-11-08  Sebastien Pouliot  <spouliot@videotron.ca>
607
608         * RIPEMD160.cs: New (1.2). Abstract class for RIPEMD160 hash from 
609         Pieter Philippaerts (Pieter@mentalis.org)
610         * RIPEMD160Managed.cs: New (1.2). Implementation of the RIPEMD160 hash
611         algorithm from Pieter Philippaerts (Pieter@mentalis.org)
612
613 2003-10-07  Sebastien Pouliot  <spouliot@videotron.ca>
614
615         * CryptoStream.cs: Commented CanTransformMultipleBlocks
616         optimization - it simply doesn't work :(
617
618 2003-10-04  Sebastien Pouliot  <spouliot@videotron.ca>
619
620         * CryptoStream.cs: Fixed bug 49323. The CanTransformMultipleBlocks
621         optimization in Read has been fixed for partial blocks.
622
623 2003-09-11  Lluis Sanchez Gual  <lluis@ximian.com>
624
625         * CryptoStream.cs: Added [In,Out] attributes to Read method.
626
627 2003-08-24  Sebastien Pouliot  <spouliot@videotron.ca>
628
629         * SymmetricAlgorithm.cs: Fixed IV length exception for stream ciphers
630         (e.g. RC4) which don't uses IV. This needs more tests for small IV...
631
632 2003-08-09  Sebastien Pouliot  <spouliot@videotron.ca>
633
634         * SymmetricAlgorithm.cs: Re-introduced Lluis patch for PaddingMode.None 
635         and PaddingMode.Zeros (not PaddingMode.PKCS7).
636
637 2003-08-05  Sebastien Pouliot  <spouliot@videotron.ca>
638
639         * CryptoStream.cs: Closing bug #40689. The Write method was re-written.
640         * SymmetricAlgorithm.cs: Removed Lluis previous patch (it fails a unit
641         test) and corrected a bug in FinalDecrypt.
642         * RSACryptoServiceProvider.cs: Fixed different exceptions from .NET 1.0
643         and 1.1.
644
645 2003-07-31  Sebastien Pouliot  <spouliot@videotron.ca>
646
647         * CryptoStream.cs: Closing bug #46143. The Read method was re-written.
648
649 2003-07-30  Sebastien Pouliot  <spouliot@videotron.ca>
650
651         * CryptoStream.cs: Fixed bug #46143 (exception) - however we dont 
652         returns the same result as MS. Class needs to be re-written.
653
654 2003-07-09  Lluis Sanchez Gual  <lluis@ximian.com>
655
656         * SymmetricAlgorithm.cs: Fixed FinalEncrypt. Return empty array if inputCount is 0.
657
658 2003-07-05  Sebastien Pouliot  <spouliot@videotron.ca>
659
660         * AsymmetricAlgorithm.cs: Removed AsymmetricParameters (IReader) class. 
661         Now uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
662         * CryptoConfig.cs: Removed CorlibHandler and CorlibReader classes. Now 
663         uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
664         * DSA.cs: Removed DSAHandler (IHandler) class. Now uses the new 
665         Mono.Xml.SecurityParser (xml -> SecurityElement)
666         * DSACryptoServiceProvider.cs: Added ObjectDisposedException support
667         and fixed bugs found in new unit tests.
668         * RSA.cs: Removed DSAHandler (IHandler) class. Now uses the new 
669         Mono.Xml.SecurityParser (xml -> SecurityElement)
670         * RSACryptoServiceProvider.cs: Added ObjectDisposedException support
671         and fixed bugs found in new unit tests.
672
673 2003-06-22  Sebastien Pouliot <spouliot@motus.com>
674
675         * DSACryptoServiceProvider.cs: Added UseMachineKeyStore property (1.1).
676         * RSACryptoServiceProvider.cs: Added UseMachineKeyStore property (1.1).
677
678 2003-06-11  Sebastien Pouliot <spouliot@motus.com>
679
680         * DSACryptoServiceProvider.cs: Refactored from orginal by splitting 
681         much core functionalities into DSAManaged. 
682         * RSACryptoServiceProvider.cs: Refactored from orginal by splitting 
683         much core functionalities into RSAManaged. 
684         * RSAPKCS1SignatureDeformatter.cs: Updated to use the new PKCS#1 API.
685         Now works with any hash algorithm (which OID is defined in machine.config)
686         * RSAPKCS1SignatureFormatter.cs: Updated to use the new PKCS#1 API.
687         Now works with any hash algorithm (which OID is defined in machine.config)
688
689 2003-06-09  Sebastien Pouliot <spouliot@motus.com>
690
691         * CryptoConfig.cs: Now support OID in machine.config.
692         * DSACryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
693         * KeySizes.cs: Changed USE_VERSION_1_0 for NET_1_0.
694         * MD5CryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
695         * RNGCryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
696
697 2003-05-12  Sebastien Pouliot  <spouliot@videotron.ca>
698
699         * PKCS1MaskGenerationMethod.cs: Added comment to justify why
700         the class is no more compatible with MS implementation (the bug
701         was preventing OAEP to work properly).
702
703 2003-05-09  Sebastien Pouliot  <spouliot@videotron.ca>
704
705         * DSACryptoServiceProvider.cs: Class is now sealed in v.1.1.
706         * KeySizes.cs: Class is now sealed in v.1.1.
707         * MD5CryptoServiceProvider.cs: Class is now sealed in v.1.1.
708         * RNGCryptoServiceProvider.cs: Class is now sealed in v.1.1.
709
710 2003-04-22  Sebastien Pouliot  <spouliot@videotron.ca>
711
712         * DSACryptoServiceProvider.cs: Changed key generation to use the
713         new BigInteger class (commited for Ben Maurer).
714         * RSACryptoServiceProvider.cs: Changed key generation to use the
715         new BigInteger class (commited for Ben Maurer).
716
717 2003-04-06  Sebastien Pouliot  <spouliot@videotron.ca>
718
719         * AsymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
720         * DSACryptoServiceProvider.cs: Fix bug where key generation always
721         resulted in 1024 bits keypair.
722         * KeySizes.cs: Added internal IsLegalKeySize and IsLegal to avoid
723         duplication in both AsymmetricAlgorithm and SymmetricAlgorithm.
724         * RC2.cs: Modified to use IsLegalKeySize from KeySizes.cs.
725         * RSACryptoServiceProvider.cs: Fix bug where key generation always
726         resulted in 1024 bits keypair. Should fix unit test failure under
727         Linux.
728         * SymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
729
730 2003-04-06  Sebastien Pouliot  <spouliot@videotron.ca>
731
732         * CryptoStream.cs: Partial fix for bug #40689 (workaround). Does not 
733         throw a NotSupportedException on closing a CryptoStream in read mode
734         (like MS does but unlike MS documents).
735
736 2003-03-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
737
738         * CryptoStream.cs: fixed the previous fix. MS throws a NotSupportedExc
739         when FlushFinalBlock is called twice. I've moved a few lines from Close
740         to FlushFinalBlock and added the exception check.
741
742 2003-03-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
743
744         * CryptoStream.cs: don't Close the underlying stream in FlushFinalBlock.
745         Fixes bug #40394.
746
747 2003-03-03  Sebastien Pouliot  <spouliot@videotron.ca>
748
749         * RSACryptoServiceProvider.cs: Delay keypair generation event when 
750         keysize is a constructor parameter (major speed improvment when
751         importing keys). Removed NotSupportedException when CspParameter is
752         used in constructor (required for forthcoming security tools).
753
754 2003-02-08  Sebastien Pouliot  <spouliot@videotron.ca>
755
756         * Changes to refer Mono.Math and Mono.Security.Cryptography
757         * Changes to refer Mono.Xml
758
759 2003-02-04  Sebastien Pouliot  <spouliot@videotron.ca>
760
761         * CryptoConfig.cs: Added initital support for "machine.config" 
762         (limited to algorithms, not OIDs). Modified CreateFromName to use
763         the fully qualified class names (and removed xmldsig hack). Added
764         algorithm names documented in book ".NET Framework Security".
765
766 2003-02-03  Sebastien Pouliot  <spouliot@videotron.ca>
767
768         * PasswordDeriveBytes.cs: Finally got the derivation right. The
769         class can now derive keys up to 1000 * HashSize (same limit as MS).
770         * RSAPKCS1SignatureDeformatter.cs: No need to create the hash object
771         in this class - the OID is enough.
772
773 2003-02-01  Sebastien Pouliot  <spouliot@videotron.ca>
774
775         * AsymmetricSignatureFormatter.cs: Call abstract SetHashAlgorithm
776         when CreateSignature(hash) is called.
777         * CryptoStream.cs: Fixed some issues in constructor.
778         * DSACryptoServiceProvider.cs: Fixed a bug (1 chance in 256) that
779         a signature could be less than 40 bytes (which is invalid).
780
781 2003-01-25  Sebastien Pouliot  <spouliot@videotron.ca>
782
783         * CryptographicException.cs: Default HResult to CORSEC_E_CRYPTO
784         (0x80131430) as documented.
785         * CryptographicUnexpectedOperationException.cs: Default HResult
786         to CORSEC_E_CRYPTO_UNEX_OPER (0x80131431) as documented.
787
788 2003-01-20  Sebastien Pouliot  <spouliot@videotron.ca>
789
790         * CipherMode.cs: Added missing [Serializable] to enum.
791         * CspProviderFlags.cs: Added missing [Serializable] to enum.
792         * FromBase64Transform.cs: Added missing [Serializable] to enum.
793         * PaddingMode.cs: Added missing [Serializable] to enum.
794
795 2003-01-19  Sebastien Pouliot  <spouliot@videotron.ca>
796
797         * CryptoTools.cs: Added internal class BlockProcessor to help
798         implementation of block-based algorithms (like MAC and HMAC).
799         * HMACSHA1.cs: Refactored to remove dependencies on CryptoStream,
800         better constructors and Dispose support.
801         * MACTripleDES.cs: Refactored to reuse new HMACSHA1 stuff, better
802         constructors.
803
804 2003-01-18  Sebastien Pouliot  <spouliot@videotron.ca>
805
806         * HMACSHA1.cs: Now use KeyBuilder to build the default key.
807
808 2003-01-12  Sebastien Pouliot  <spouliot@videotron.ca>
809
810         * MACTripleDES.cs: Now working (the problem was with my stream usage
811         which was removed for performance reason).
812         * TripleDES.cs: Fixed key generation (wasn't called and returned
813         null).
814
815 2003-01-09  Sebastien Pouliot  <spouliot@videotron.ca>
816
817         * RNGCryptoServiceProvider.cs: Changed methods interacting with 
818         the runtime as Internal<MethodName>. This will allow to make the
819         class Windows-compatible by doing a switch at runtime.
820
821 2003-01-05  Sebastien Pouliot  <spouliot@videotron.ca>
822
823         * CryptoAPITransform.cs: Removed all TODO. This class will not be
824         used by Mono. MS uses it with <algo>CryptoServiceProvider classes 
825         to provide a common ICryptoTransform access to CryptoAPI. 
826
827 2003-01-03  Sebastien Pouliot  <spouliot@videotron.ca>
828
829         * RC2CryptoServiceProvider.cs: Now about 2 time faster by inlining 
830         methods and changing to UInt16 (instead of UInt32). 
831
832 2003-01-02  Sebastien Pouliot  <spouliot@videotron.ca>
833
834         * RijndaelManaged.cs: Now 7 (encrypt) to 10 (decrypt) times faster 
835         by removing allocation inside intensively called methods, using pre-
836         calculated tables instead of Mult_GF methods and inlining most methods.
837
838 2002-12-31  Sebastien Pouliot  <spouliot@videotron.ca>
839
840         * AsymmetricAlgorithm.cs: Removed ValidKeySize (method only present
841         in SymmetricAlgorithm).
842         * DSA.cs: Change ZeroizePrivateKey from protected to internal.
843         * DSACryptoServiceProvider.cs: Added some case where we need to check 
844         for keypairGenerated.
845         * RSA.cs: Change ZeroizePrivateKey from protected to internal.
846         * RSACryptoServiceProvider.cs: Key were never generated with the default
847         (no parameter) constructor. Now checks for keypairGenerated in methods.
848         * SignatureDescription.cs: Added CreateDeformatter in RSAPKCS1SHA1-
849         SignatureDescription to please corcompare (it just call it's ancestor).
850
851 2002-12-30  Sebastien Pouliot  <spouliot@videotron.ca>
852
853         * CryptoStream.cs: Implemented core. Not sure about many details - 
854         but it run the samples now (#30256).
855         * CryptoStreamMode.cs: Added [Serializable] to enum declaration.
856         * SymmetricAlgorithm.cs: Made some changes required for CryptoStream 
857         and to match more closely MS implementation. Also added little
858         optimizations in TransformBlock.
859
860 2002-12-27  Sebastien Pouliot  <spouliot@videotron.ca>
861
862         * CryptoTools.cs: New. Shared classes for cryptography. Now
863         includes a KeyBuilder to generate symmetric keys and IV.
864         * DES.cs: Modified Key validation.
865         * DESCryptoServiceProvider.cs: Implemented Key and IV using
866         KeyBuilder.
867         * RC2CryptoServiceProvider.cs: Implemented Key and IV using
868         KeyBuilder (and removed TODO).
869         * RijndaelManaged.cs: Implemented Key and IV using KeyBuilder 
870         (and removed TODO).
871         * SHA384Managed.cs: Changed code to remove compiler warning.
872         * SHA512Managed.cs: Changed code to remove compiler warning.
873         * SymmetricAlgorithm.cs: Removed TODO on IV.
874         * TripleDESCryptoServiceProvider.cs: Implemented Key and IV
875         using KeyBuilder (and removed TODO).
876
877 2002-11-20  Sebastien Pouliot  <spouliot@videotron.ca>
878
879         * AsymmetricSignatureDeformatter.cs: Added exception handling in
880         VerifySignature (moved from RSAPKCS1SignatureDeformatter).
881         * AsymmetricSignatureFormatter.cs: Added exception handling in
882         CreateSignature (moved from RSAPKCS1SignatureFormatter).
883         * CryptoAPITransform.cs: Removed "= false" assignation from a private
884         member (because this created an unwanted "ghost" constructor) and 
885         modified Dispose declaration.
886         * HashAlgorithm.cs: Removed destructor. Disposing unmanaged 
887         ressources is the responsability of each class (not an abstract class).
888         * RSAPKCS1SignatureDeformatter.cs: Removed a VerifySignature method
889         which was present in the base class AsymmetricSignatureDeformatter.
890         * RSAPKCS1SignatureFormatter.cs: Removed a CreateSignature method
891         which was present in the base class AsymmetricSignatureFormatter.
892         * SHA1Managed.cs: Removed sealed from class declaration. Removed 
893         destructor and Dispose method as class is fully managed.
894         * ToBase64Transform.cs: Added virtual to property CanReuseTransform.
895
896 2002-11-17  Sebastien Pouliot  <spouliot@videotron.ca>
897
898         * CryptoConfig.cs: Added full classes name for MapNameToOID.
899         * PKCS1.cs: New. Internal class for the various primitives defined
900         in PKCS#1 v.2.1.
901         * PKCS1MaskGenerationFunction.cs: Modified to use PKCS1.cs.
902         * RSA.cs: Added internal class RSAHandler (which implements IHandler
903         interface for MiniParser) to import RSA keypairs from XML strings.
904         * RSACryptoServiceProvider.cs: Crypto implemented using BigInteger. 
905         Key generation is VERY LONG.
906         * RSAOAEPKeyExchangeDeformatter.cs: Completed using PKCS1. Not sure 
907         of the results as this is not available in all versions of Windows.
908         * RSAOAEPKeyExchangeFormatter.cs: Completed using PKCS1. Not sure 
909         of the results as this is not available in all versions of Windows.
910         * RSAPKCS1KeyExchangeDeformatter.cs: Completed using PKCS1.
911         * RSAPKCS1KeyExchangeFormatter.cs: Completed using PKCS1.
912         * RSAPKCS1SignatureDeformatter.cs: Completed using PKCS1.
913         * RSAPKCS1SignatureFormatter.cs: Completed using PKCS1.
914
915 2002-11-17  Sebastien Pouliot  <spouliot@videotron.ca>
916
917         * MiniParser.cs: Added explicit cast in order to compile with mcs.
918
919 2002-11-16  Sebastien Pouliot  <spouliot@videotron.ca>
920
921         * AsymmetricAlgorithm.cs: Added internal class AsymmetricParameters
922         (which implements the IReader interface for MiniParser). Corrected
923         Dispose declaration.
924         * BigInteger.cs: New. Internal class for handling BIG integers for 
925         asymmetric crypto (both RSA and DSA). Thanks to Chew Keong TAN !
926         * CryptoConfig.cs: Added XMLDSIG URLs in CreateFromName.
927         Will dynamically load System.Security.dll, when required,
928         to return instance of those classes. Also CryptoConfig can now
929         create any object (e.g. System.IO.MemoryStream) !
930         * DSA.cs: Added internal class DSAHandler (which implements IHandler
931         interface for MiniParser) to import DSA keypairs from XML strings.
932         * DSACryptoServiceProvider.cs: Crypto fully implemented using 
933         BigInteger. Key generation (group) is VERY long.
934         * MiniParser.cs: New. Minimal XML parser by Sergey Chaban. Used to 
935         import keypairs in XML strings.
936         * SignatureDescription.cs: Removed local CreateFromName (to use
937         CryptoConfig - which actually can create anything). Added internal
938         classes DSASignatureDescription and RSAPKCS1SHA1SignatureDescription.
939
940 2002-11-15  Sebastien Pouliot  <spouliot@videotron.ca>
941
942         * CryptographicUnexpectedOperationException.cs: Forgot it last time!
943         * FromBase64Transform.cs: Added missing virtual to CanReuseTransform.
944         Changed Dispose().
945         * HashAlgorithm.cs: Changed Dispose().
946         * MD5CryptoServiceProvider.cs: Added destructor and Dipose(bool).
947         * PasswordDeriveBytes.cs: Changed some declaration from
948         protected to private.
949         * RC2.cs: Added valid keysize check in EffectiveKeySize.
950         * RC2CryptoServiceProvider.cs: Overriden EffectiveKeySize to match
951         corlib declarations.
952         * RSAOAEPKeyExchangeDeformatter.cs: Changed some declaration from
953         protected to private.
954         * RSAOAEPKeyExchangeFormatter.cs: Changed some declaration from
955         protected to private.
956         * RSAPKCS1KeyExchangeDeformatter.cs: Changed some declaration from
957         protected to private.
958         * RSAPKCS1KeyExchangeFormatter.cs: Changed some declaration from
959         protected to private.
960         * RSAPKCS1SignatureDeformatter.cs: Changed some declaration from
961         protected to private.
962         * RSAPKCS1SignatureFormatter.cs: Changed some declaration from
963         protected to private.
964         * SHA1CryptoServiceProvider.cs: Moved SHA1 code to SHA1Internal.
965         SHA1CryptoServiceProvider now use SHA1Internal. Added Dispose and
966         destructor.
967         * SHA1Managed.cs: New. Use SHA1Internal. Same as 
968         SHA1CryptoServiceProvider but is required for binary compatibility.
969         * SHA256Managed.cs: Changed some declaration from protected to private.
970         * SHA384Managed.cs: Changed some declaration from protected to private.
971         * SHA512Managed.cs: Changed some declaration from protected to private.
972         * SymmetricAlgorithm.cs: Added Clear(), changed Dispose() and added
973         virtual to Dispose(bool).
974         * ToBase64Transform.cs: Added missing virtual to CanReuseTransform.
975         Changed Dispose().
976         * TripleDESCryptoServiceProvider.cs: Added missing sealed to class
977         declaration.
978
979 2002-11-03  Sebastien Pouliot  <spouliot@videotron.ca>
980
981         * CryptoAPITransform.cs: Added missing CanReuseTransform property,
982         Clear method, destructor and IDisposable support.
983         * CryptographicException.cs: Added missing protected constructor.
984         * CryptographicUnexpectedOperationException.cs: Added missing 
985         protected constructor.
986         * ICryptoTransform.cs: Added missing CanReuseTransform property.
987         * FromBase64Transform.cs: Added missing CanReuseTransform property,
988         Clear method, destructor and IDisposable support.
989         * SymmetricAlgorithm.cs: Implement IDisposable.
990         * ToBase64Transform.cs: Added missing CanReuseTransform property,
991         Clear method, destructor and IDisposable support.
992
993 2002-11-02  Sebastien Pouliot  <spouliot@videotron.ca>
994
995         * SignatureDescription.cs: Updated class to match unit test results
996         * X509Certificate.cs: REMOVED! Wrong namespace. An almost complete
997         implementation is now in System.Security.Cryptography.X509Certificates
998
999 2002-11-01  Sebastien Pouliot  <spouliot@videotron.ca>
1000
1001         * bouncycastle.txt: Bouncy Castle JCE License.
1002         * SHA384Managed.cs: Hash implementation based on BouncyCastle JCE.
1003         * SHA512Managed.cs: Hash implementation based on BouncyCastle JCE.
1004
1005 2002-10-30  Sebastien Pouliot  <spouliot@videotron.ca>
1006
1007         * DSASignatureDeformatter.cs: Fully implemented - however it 
1008         requires a functionnal DSA implementation to work.
1009         * DSASignatureFormatter.cs: Fully implemented - however it 
1010         requires a functionnal DSA implementation to work.
1011
1012 2002-10-25  Sebastien Pouliot  <spouliot@videotron.ca>
1013
1014         * PasswordDeriveBytes.cs: New. PKCS#5 key derivation (PBKDF1) works up to
1015         HashSize length (but MS support longer keys)
1016
1017 2002-10-24  Sebastien Pouliot  <spouliot@videotron.ca>
1018
1019         * RSACryptoServiceProvider.cs: New. Implemented most logic expect crypto 
1020         * RSAOAEPKeyExchangeDeformatter.cs: New. Stub.
1021         * RSAOAEPKeyExchangeFormatter.cs: New. Stub.
1022         * RSAPKCS1KeyExchangeDeformatter.cs: New. Stub.
1023         * RSAPKCS1KeyExchangeFormatter.cs: New. 98% implemented but still
1024         require RSA.DecryptValue (not supported in MS .NET Framework)
1025         * RSAPKCS1SignatureDeformatter.cs: New. Stub.
1026         * RSAPKCS1SignatureFormatter.cs: New. Stub.
1027
1028 2002-10-23  Sebastien Pouliot  <spouliot@videotron.ca>
1029
1030         * SymmetricAlgorithm.cs: Fixed CFB mode (do encryption while decrypting!)
1031         * TripleDESCryptoServiceProvider.cs: Ajusted for CFB.
1032
1033 2002-10-22  Sebastien Pouliot  <spouliot@videotron.ca>
1034
1035         * RjindaelManaged.cs: Fixed decryption for 192 and 256 bit block size
1036
1037 2002-10-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1038
1039         * RC2CryptoServiceProvider.cs: fixed end of lines (changed from \r
1040         to \n).
1041
1042 2002-10-20  Sebastien Pouliot  <spouliot@videotron.ca>
1043
1044         * SymmetricAlgorithm.cs: Added better Dispose support
1045         * DES.cs: Now only contains the abstract DES class.
1046         * DESCryptoServiceProvider.cs: Added the DESTransform class (inherited
1047         from SymmetricTransform) based the old DESCore and DESTransformBase code
1048         * RC2.cs: Fixed EffectiveKeySize == 0
1049         * RC2CryptoServiceProvider.cs: Added the RC2Transform class (inherited
1050         from SymmetricTransform) based on the old RC2lImpl code. Unrolled some loops.
1051         * RjindaelManaged.cs: Few more optimizations while looking for decrypting bug
1052         * TripleDESCryptoServiceProvider.cs: New. Implement TripleDESTransform from 
1053         DESTransform (non-optimal but working :-).
1054
1055 2002-10-19  Sebastien Pouliot  <spouliot@videotron.ca>
1056
1057         * SymmetricAlgorithm.cs: Added new class SymmetricTransform to avoid
1058         duplicating CipherMode (currently ECB, CBC) and PaddingMode functionalities
1059         in every crytographic algorithm implementation.
1060         * RijndaelManaged.cs: Added the RjindaelTransform class (inherited
1061         from SymmetricTransform) based the old RijndaelImpl / RijndaelController 
1062         code. Fixed encryption for block size 192, 256, there is still a problem
1063         decrypting block size 192, 256. Unrolled some loops + littl'optimizations
1064         * PKCS1MaskGenerationMethod.cs: Removed Array.Reverse in I2OSP to be
1065         compatible with MS implementation (however we are now failing the PKCS#1
1066         test vector) + added some more checks (null, overflow, ...)
1067         * AsymmetricAlgorithm.cs: Commented XMLDocument stuff to end the cyclic
1068         dependency (corlib->System.Xml->corlib)
1069         * RSA.cs: Commented FromXmlString stuff to end the cyclic dependency
1070         * DSA.cs: Commented FromXmlString stuff to end the cyclic dependency
1071         * RC2.cs: Create using CryptoConfig
1072         * TripleDES.cs: Marked class public. Added LegalKeySizes and LegalBlockSizes
1073
1074 2002-10-14  Sebastien Pouliot  <spouliot@videotron.ca>
1075
1076         * MD5.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
1077         * Rijndael.cs: Create using CryptoConfig. Removed TODO.
1078         * RSAParameters.cs: Modulus must be serialized. Removed TODO.
1079         * SHA256.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
1080         * SHA384.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
1081         * SHA512.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
1082         * FromBase64Transform.cs: Removed ToString()
1083         * ToBase64Transform.cs: Removed ToString()
1084         * SymmetricAlgorithm.cs: Create using CryptoConfig, set default Mode and 
1085         Padding, added Clear, Dispose
1086         * TripleDES.cs: New. Abstract class.
1087         * MaskGenerationMethod.cs: New. Abstract class.
1088         * PKCS1MaskGenerationMethod.cs: New. Implement PKCS#1 MGF (currently not 
1089         compatible with MS implementation - but not sure the bug is mine!).
1090
1091 2002-10-13  Sebastien Pouliot  <spouliot@videotron.ca>
1092
1093         * HashAlgorithm.cs: Added Dispose() to HashAlgorithm because it 
1094         inherits ICryptoTransform
1095         * KeyedHashAlgorithm.cs: New implementation
1096         * HMACSHA1.cs: New (include a generic HMACAlgorithm as internal class)
1097         * MACTripleDES.cs: New (missing core implementation on generic MACAlgorithm)
1098         * CryptoStream.cs: Added limited functionalities to support HMACSHA1
1099
1100 2002-10-12  Sebastien Pouliot  <spouliot@videotron.ca>
1101
1102         * DSA.cs: changed constructor to public from internal (like MS)
1103         * HashAlgorithm.cs: Completed ComputeHash methods
1104         * SHA1.cs: Added HashSizeValue = 160
1105
1106 2002-10-12  Sebastien Pouliot  <spouliot@videotron.ca>
1107
1108         * ICryptoTransform.cs: Now inherits from IDisposable
1109         * RC2CryptoServiceProvider.cs: Added Dispose() to RC2Impl because it inherits ICryptoTransform
1110         * CryptoAPITransform.cs: Added Dispose() to CryptoAPITransform... ICryptoTransform
1111         * RijndaelManaged.cs: Added Dispose() to RijndaelController...ICryptoTransform
1112         * FromBase64Transform.cs: Added Dispose() to FromBase64Transform...ICryptoTransform
1113         * ToBase64Transform.cs: Added Dispose() to ToBase64Transform...ICryptoTransform
1114         * DESCryptoServiceProvider.cs: Added Dispose() to DESTransformBase...ICryptoTransform
1115
1116 2002-10-11  Duncan Mak  <duncan@ximian.com>
1117
1118         * DESCryptoServiceProvider.cs: Removed unnecessary Dispose ().
1119
1120 2002-10-11  Sebastien Pouliot  <spouliot@videotron.ca>
1121
1122         * DES.cs: Create() using CryptoConfig, fix #30256
1123         * DESCryptoServiceProvider.cs: fix #30256
1124         * RandomNumberGenerator.cs: uncomment in Create(rng) for CryptoConfig
1125
1126 2002-10-10  Sebastien Pouliot  <spouliot@videotron.ca>
1127
1128         * AsymmetricAlgorithm.cs: Inherit from IDisposable, common support from XML import
1129         * DSA.cs: FromXmlString() keypair import, Create() using CryptoConfig
1130         * RSA.cs: FromXmlString() keypair import, Create() using CryptoConfig
1131         * DSACryptoServiceProvider.cs: Added Dispose()
1132
1133 2002-10-09  Sebastien Pouliot  <spouliot@videotron.ca>
1134
1135         * CryptoConfig.cs: New implementation
1136
1137 2002-10-05  Andrew Birkett  <andy@nobugs.org>
1138
1139         * RC2CryptoServiceProvider.cs: New implementation
1140         * RC2.cs: New implementation
1141
1142 2002-09-22  Andrew Birkett  <andy@nobugs.org>
1143
1144         * RijndaelManaged.cs: Added faster case for multiplication by 2 in GF(8)
1145         
1146 2002-09-22  Andrew Birkett  <andy@nobugs.org>
1147
1148         * RijndaelManaged.cs: BlockSize now reports size in bytes.
1149         * ICryptoTransform.cs: Updated comments - BlockSizes are in bytes, unlike elsewhere.
1150
1151 2002-09-19  Andrew Birkett  <andy@nobugs.org>
1152
1153         * Rijndael.cs: Create() now gives you a RijndaelManaged object
1154         * RijndaelManaged.cs: Added dummy GenerateKey until we have a proper RNG.
1155         * SymmetricAlgorithm.cs: Updated comments
1156
1157 2002-09-15  Andrew Birkett  <andy@nobugs.org>
1158
1159         * RijndaelManaged.cs: Added support for CBC-mode, PKCS7/Zero padding.
1160         * SymmetricAlgorithm.cs: IV size must match block size, not key size.  
1161           Key property now sets KeySizeValue correctly in bits.
1162
1163 2002-09-11  Andrew Birkett  <andy@nobugs.org>
1164
1165         * RijndaelManaged.cs: Implemented ECB-mode Rijndael cipher.
1166         * Rijndael.cs: Set valid key/block sizes.
1167         * SymmetricAlgorithm.cs: Remove throw from ctr so we can instantiate
1168           derived classes.  Fixes to key sizes so they are measured in bits.
1169         * KeySizes.cs: Updated comments to emphasize that sizes are in bits.
1170
1171 2002-06-29  Martin Baulig  <martin@gnome.org>
1172
1173         * AsymmetricAlgorithm.cs: Removed a duplicate semicolon to make it compile.
1174
1175 2002-05-19  Martin Baulig  <martin@gnome.org>
1176
1177         * FromBase64Transform.cs (TransformFinalBlock): The return value of
1178         `DoTransform' tells us the number of bytes actually written - if it's
1179         smaller than `res', copy it to a smaller array.
1180
1181 2002-02-21  Mark Crichton <crichton@gimp.org>
1182
1183         * RNGCryptoServiceProvider.cs: New file.
1184         * RandomNumberGenerator.cs: Constructor is now marked public.
1185
1186 2002-02-13  Dan Lewis <dihlewis@yahoo.co.uk>
1187
1188         * DSACryptoServiceProvider.cs, SHA384Managed.cs, SHA512Managed.cs,
1189         Rijndael.cs, RSA.cs, RSAParameters.cs : New files (stubs)
1190
1191 Mon Feb 11 13:26:17 CET 2002 Paolo Molaro <lupus@ximian.com>
1192
1193         * X509Certificates: dummy class.
1194
1195 2002-01-10  Duco Fijma <duco@lorentz.xs4all.nl>
1196         * Create (trivial) implementation of RandomNumberGenerator
1197
1198 2002-01-05  Ravi Pratap  <ravi@ximian.com>
1199
1200         * CryptoAPITransform.cs, DESCryptoProvider.cs : MonoTODO attribute
1201         decoration.
1202
1203         * HashAlgorithm.cs, MD5.cs, SHA1.cs, SHA256.cs, SHA384.cs : Ditto.
1204
1205         * SHA512.cs, SymmetricAlgorithm.cs, ToBase64Transform.cs, 
1206         AsymmetricAlgorithm.cs, CryptoStream.cs, DSA.cs, DSASignatureDeformatter.cs,
1207         DSASignatureFormatter.cs, SignatureDescription.cs : Ditto.
1208         
1209 Wed Nov 14 17:04:30 CET 2001 Paolo Molaro <lupus@ximian.com>
1210
1211         * MD5CryptoServiceProvider.cs, SHA1CryptoServiceProvider.cs,
1212         SHA256Managed.cs: CLSCompliant updates.
1213
1214 2001-10-11  Thomas Neidhart <tome@sbox.tugraz.at>
1215
1216         * CryptoAPITransform.cs: Initial version
1217         * CryptoStream.cs: Initial version
1218         * CspParameter.cs: Initial version
1219         * CspProviderFlags.cs: Initial version
1220         * DSA.cs: Initial version
1221         * DSAParameters.cs: Initial version
1222         * DSASignatureDeformatter.cs: Initial version
1223         * DSASignatureFormatter.cs: Initial version
1224         * DeriveBytes.cs: Initial version
1225
1226 2001-10-06  Thomas Neidhart <tome@sbox.tugraz.at>
1227
1228     * AsymmetricAlgorithm.cs: Inital version
1229         * AsymmetricKeyExchangeDeformatter.cs: Initial version
1230         * AsymmetricKeyExchangeFormatter.cs: Initial version
1231         * AsymmetricSignatureDeformatter.cs: Initial version
1232         * AsymmetricSignatureFormatter.cs: Initial version
1233         * PaddingMode.cs: Added PaddingMode.None
1234         * SignatureDescription.cs: Initial version
1235     * CryptographicException.cs: Initial version
1236         * CryptographicUnknownOperationException.cs: Initial version
1237         * SymmetricAlgorithm.cs: Implemented CreateDecryptor, CreateEncryptor
1238           and Create() methods.
1239         
1240 2001-08-20  Sergey Chaban <serge@wildwestsoftware.com>
1241
1242         * DES.cs encryption core is about 30% faster than previous version.
1243         * DESCryptoServiceProvider.cs added PKCS-5 padding.
1244
1245 2001-08-09  Sergey Chaban <serge@wildwestsoftware.com>
1246
1247         * ToBase64Transform.cs: Base64Table now supports both encoding
1248           and decoding tables. As a result Table was renamed to EncodeTable
1249           and DecodeTable was added.
1250         * FromBase64Transform.cs: Initial check-in.
1251         * DES.cs: Initial check-in.
1252         * DESCryptoServiceProvider.cs: Initial check-in.
1253
1254 2001-08-01  Matthew S. Ford  <Matthew.S.Ford@Rose-Hulman.Edu>
1255
1256         * CipherMode.cs: Initial version.
1257         * CryptoStreamMode.cs: Initial version.
1258         * HashAlgorithm.cs: Initial version.
1259         * ICryptoTransform.cs: Initial version.
1260         * KeySizes.cs: Initial version.
1261         * MD5.cs: Initial version.
1262         * MD5CryptoServiceProvider.cs: Initial version.
1263         * PaddingMode.cs: Initial version.
1264         * SHA1.cs: Initial version.
1265         * SHA1CryptoServiceProvider.cs: Initial version.
1266         * SHA256.cs: Initial version.
1267         * SHA256Managed.cs: Initial version.
1268         * SHA384.cs: Initial version.
1269         * SHA512.cs: Initial version.