2003-11-11 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / corlib / System.Security.Cryptography / ChangeLog
1 2003-11-11  Sebastien Pouliot  <spouliot@videotron.ca>
2
3         * SymmetricAlgorithm.cs: Fixed decryption when inputOffset > 0.
4         [#50826].
5
6 2003-11-10  Sebastien Pouliot  <spouliot@videotron.ca>
7
8         * Rfc2898DeriveBytes.cs: Implementation for PKCS5 PBKDF2. It works
9         except for the Reset() part - which implies some kind of Resume.
10
11 2003-11-09  Sebastien Pouliot  <spouliot@videotron.ca>
12
13         * CryptoConfig.cs: Updated for RIPEMD160 and HMAC.
14         * CspKeyContainerInfo.cs: New (1.2). Information about CSP based key
15         containers.
16         * DataProtectionScope.cs: New (1.2). Enumeration for ProtectedData.
17         * HMAC.cs: New (1.2). Base class for all HMAC. Code is mostly copied 
18         from internal Mono.Security.Cryptography.HMACAlgorith.cs.
19         * HMACMD5.cs: New (1.2). HMAC implementation using MD5.
20         * HMACRIPEMD160.cs: New (1.2). HMAC implementation using RIPEMD160.
21         * HMACSHA1.cs: Modified to derive from HMAC for .NET 1.2.
22         * HMACSHA256.cs: New (1.2). HMAC implementation using SHA256.
23         * HMACSHA384.cs: New (1.2). HMAC implementation using SHA384.
24         * HMACSHA512.cs: New (1.2). HMAC implementation using SHA512.
25         * ICspAsymmetricAlgorithm.cs: New (1.2). Interface for CSP based 
26         asymmetric algorithm.
27         * KeyNumber.cs: New (1.2). Enumeration for CspKeyContainerInfo.
28         * MemoryProtectionScope.cs: New (1.2). Enumeration for ProtectedMemory.
29         * PaddingMode.cs: Added two new padding modes to enumeration (for 1.2).
30         * ProtectedData.cs: New (1.2). ProtectedData without protection (TODO).
31         * ProtectedMemory.cs: New (1.2). Stub for ProtectedMemory.
32         * Rfc2898DeriveBytes.cs: New (1.2). Stub for PKCS5 PBKDF2.
33
34 2003-11-08  Sebastien Pouliot  <spouliot@videotron.ca>
35
36         * RIPEMD160.cs: New (1.2). Abstract class for RIPEMD160 hash from 
37         Pieter Philippaerts (Pieter@mentalis.org)
38         * RIPEMD160Managed.cs: New (1.2). Implementation of the RIPEMD160 hash
39         algorithm from Pieter Philippaerts (Pieter@mentalis.org)
40
41 2003-10-07  Sebastien Pouliot  <spouliot@videotron.ca>
42
43         * CryptoStream.cs: Commented CanTransformMultipleBlocks
44         optimization - it simply doesn't work :(
45
46 2003-10-04  Sebastien Pouliot  <spouliot@videotron.ca>
47
48         * CryptoStream.cs: Fixed bug 49323. The CanTransformMultipleBlocks
49         optimization in Read has been fixed for partial blocks.
50
51 2003-09-11  Lluis Sanchez Gual  <lluis@ximian.com>
52
53         * CryptoStream.cs: Added [In,Out] attributes to Read method.
54
55 2003-08-24  Sebastien Pouliot  <spouliot@videotron.ca>
56
57         * SymmetricAlgorithm.cs: Fixed IV length exception for stream ciphers
58         (e.g. RC4) which don't uses IV. This needs more tests for small IV...
59
60 2003-08-09  Sebastien Pouliot  <spouliot@videotron.ca>
61
62         * SymmetricAlgorithm.cs: Re-introduced Lluis patch for PaddingMode.None 
63         and PaddingMode.Zeros (not PaddingMode.PKCS7).
64
65 2003-08-05  Sebastien Pouliot  <spouliot@videotron.ca>
66
67         * CryptoStream.cs: Closing bug #40689. The Write method was re-written.
68         * SymmetricAlgorithm.cs: Removed Lluis previous patch (it fails a unit
69         test) and corrected a bug in FinalDecrypt.
70         * RSACryptoServiceProvider.cs: Fixed different exceptions from .NET 1.0
71         and 1.1.
72
73 2003-07-31  Sebastien Pouliot  <spouliot@videotron.ca>
74
75         * CryptoStream.cs: Closing bug #46143. The Read method was re-written.
76
77 2003-07-30  Sebastien Pouliot  <spouliot@videotron.ca>
78
79         * CryptoStream.cs: Fixed bug #46143 (exception) - however we dont 
80         returns the same result as MS. Class needs to be re-written.
81
82 2003-07-09  Lluis Sanchez Gual  <lluis@ximian.com>
83
84         * SymmetricAlgorithm.cs: Fixed FinalEncrypt. Return empty array if inputCount is 0.
85
86 2003-07-05  Sebastien Pouliot  <spouliot@videotron.ca>
87
88         * AsymmetricAlgorithm.cs: Removed AsymmetricParameters (IReader) class. 
89         Now uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
90         * CryptoConfig.cs: Removed CorlibHandler and CorlibReader classes. Now 
91         uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
92         * DSA.cs: Removed DSAHandler (IHandler) class. Now uses the new 
93         Mono.Xml.SecurityParser (xml -> SecurityElement)
94         * DSACryptoServiceProvider.cs: Added ObjectDisposedException support
95         and fixed bugs found in new unit tests.
96         * RSA.cs: Removed DSAHandler (IHandler) class. Now uses the new 
97         Mono.Xml.SecurityParser (xml -> SecurityElement)
98         * RSACryptoServiceProvider.cs: Added ObjectDisposedException support
99         and fixed bugs found in new unit tests.
100
101 2003-06-22  Sebastien Pouliot <spouliot@motus.com>
102
103         * DSACryptoServiceProvider.cs: Added UseMachineKeyStore property (1.1).
104         * RSACryptoServiceProvider.cs: Added UseMachineKeyStore property (1.1).
105
106 2003-06-11  Sebastien Pouliot <spouliot@motus.com>
107
108         * DSACryptoServiceProvider.cs: Refactored from orginal by splitting 
109         much core functionalities into DSAManaged. 
110         * RSACryptoServiceProvider.cs: Refactored from orginal by splitting 
111         much core functionalities into RSAManaged. 
112         * RSAPKCS1SignatureDeformatter.cs: Updated to use the new PKCS#1 API.
113         Now works with any hash algorithm (which OID is defined in machine.config)
114         * RSAPKCS1SignatureFormatter.cs: Updated to use the new PKCS#1 API.
115         Now works with any hash algorithm (which OID is defined in machine.config)
116
117 2003-06-09  Sebastien Pouliot <spouliot@motus.com>
118
119         * CryptoConfig.cs: Now support OID in machine.config.
120         * DSACryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
121         * KeySizes.cs: Changed USE_VERSION_1_0 for NET_1_0.
122         * MD5CryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
123         * RNGCryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
124
125 2003-05-12  Sebastien Pouliot  <spouliot@videotron.ca>
126
127         * PKCS1MaskGenerationMethod.cs: Added comment to justify why
128         the class is no more compatible with MS implementation (the bug
129         was preventing OAEP to work properly).
130
131 2003-05-09  Sebastien Pouliot  <spouliot@videotron.ca>
132
133         * DSACryptoServiceProvider.cs: Class is now sealed in v.1.1.
134         * KeySizes.cs: Class is now sealed in v.1.1.
135         * MD5CryptoServiceProvider.cs: Class is now sealed in v.1.1.
136         * RNGCryptoServiceProvider.cs: Class is now sealed in v.1.1.
137
138 2003-04-22  Sebastien Pouliot  <spouliot@videotron.ca>
139
140         * DSACryptoServiceProvider.cs: Changed key generation to use the
141         new BigInteger class (commited for Ben Maurer).
142         * RSACryptoServiceProvider.cs: Changed key generation to use the
143         new BigInteger class (commited for Ben Maurer).
144
145 2003-04-06  Sebastien Pouliot  <spouliot@videotron.ca>
146
147         * AsymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
148         * DSACryptoServiceProvider.cs: Fix bug where key generation always
149         resulted in 1024 bits keypair.
150         * KeySizes.cs: Added internal IsLegalKeySize and IsLegal to avoid
151         duplication in both AsymmetricAlgorithm and SymmetricAlgorithm.
152         * RC2.cs: Modified to use IsLegalKeySize from KeySizes.cs.
153         * RSACryptoServiceProvider.cs: Fix bug where key generation always
154         resulted in 1024 bits keypair. Should fix unit test failure under
155         Linux.
156         * SymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
157
158 2003-04-06  Sebastien Pouliot  <spouliot@videotron.ca>
159
160         * CryptoStream.cs: Partial fix for bug #40689 (workaround). Does not 
161         throw a NotSupportedException on closing a CryptoStream in read mode
162         (like MS does but unlike MS documents).
163
164 2003-03-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
165
166         * CryptoStream.cs: fixed the previous fix. MS throws a NotSupportedExc
167         when FlushFinalBlock is called twice. I've moved a few lines from Close
168         to FlushFinalBlock and added the exception check.
169
170 2003-03-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
171
172         * CryptoStream.cs: don't Close the underlying stream in FlushFinalBlock.
173         Fixes bug #40394.
174
175 2003-03-03  Sebastien Pouliot  <spouliot@videotron.ca>
176
177         * RSACryptoServiceProvider.cs: Delay keypair generation event when 
178         keysize is a constructor parameter (major speed improvment when
179         importing keys). Removed NotSupportedException when CspParameter is
180         used in constructor (required for forthcoming security tools).
181
182 2003-02-08  Sebastien Pouliot  <spouliot@videotron.ca>
183
184         * Changes to refer Mono.Math and Mono.Security.Cryptography
185         * Changes to refer Mono.Xml
186
187 2003-02-04  Sebastien Pouliot  <spouliot@videotron.ca>
188
189         * CryptoConfig.cs: Added initital support for "machine.config" 
190         (limited to algorithms, not OIDs). Modified CreateFromName to use
191         the fully qualified class names (and removed xmldsig hack). Added
192         algorithm names documented in book ".NET Framework Security".
193
194 2003-02-03  Sebastien Pouliot  <spouliot@videotron.ca>
195
196         * PasswordDeriveBytes.cs: Finally got the derivation right. The
197         class can now derive keys up to 1000 * HashSize (same limit as MS).
198         * RSAPKCS1SignatureDeformatter.cs: No need to create the hash object
199         in this class - the OID is enough.
200
201 2003-02-01  Sebastien Pouliot  <spouliot@videotron.ca>
202
203         * AsymmetricSignatureFormatter.cs: Call abstract SetHashAlgorithm
204         when CreateSignature(hash) is called.
205         * CryptoStream.cs: Fixed some issues in constructor.
206         * DSACryptoServiceProvider.cs: Fixed a bug (1 chance in 256) that
207         a signature could be less than 40 bytes (which is invalid).
208
209 2003-01-25  Sebastien Pouliot  <spouliot@videotron.ca>
210
211         * CryptographicException.cs: Default HResult to CORSEC_E_CRYPTO
212         (0x80131430) as documented.
213         * CryptographicUnexpectedOperationException.cs: Default HResult
214         to CORSEC_E_CRYPTO_UNEX_OPER (0x80131431) as documented.
215
216 2003-01-20  Sebastien Pouliot  <spouliot@videotron.ca>
217
218         * CipherMode.cs: Added missing [Serializable] to enum.
219         * CspProviderFlags.cs: Added missing [Serializable] to enum.
220         * FromBase64Transform.cs: Added missing [Serializable] to enum.
221         * PaddingMode.cs: Added missing [Serializable] to enum.
222
223 2003-01-19  Sebastien Pouliot  <spouliot@videotron.ca>
224
225         * CryptoTools.cs: Added internal class BlockProcessor to help
226         implementation of block-based algorithms (like MAC and HMAC).
227         * HMACSHA1.cs: Refactored to remove dependencies on CryptoStream,
228         better constructors and Dispose support.
229         * MACTripleDES.cs: Refactored to reuse new HMACSHA1 stuff, better
230         constructors.
231
232 2003-01-18  Sebastien Pouliot  <spouliot@videotron.ca>
233
234         * HMACSHA1.cs: Now use KeyBuilder to build the default key.
235
236 2003-01-12  Sebastien Pouliot  <spouliot@videotron.ca>
237
238         * MACTripleDES.cs: Now working (the problem was with my stream usage
239         which was removed for performance reason).
240         * TripleDES.cs: Fixed key generation (wasn't called and returned
241         null).
242
243 2003-01-09  Sebastien Pouliot  <spouliot@videotron.ca>
244
245         * RNGCryptoServiceProvider.cs: Changed methods interacting with 
246         the runtime as Internal<MethodName>. This will allow to make the
247         class Windows-compatible by doing a switch at runtime.
248
249 2003-01-05  Sebastien Pouliot  <spouliot@videotron.ca>
250
251         * CryptoAPITransform.cs: Removed all TODO. This class will not be
252         used by Mono. MS uses it with <algo>CryptoServiceProvider classes 
253         to provide a common ICryptoTransform access to CryptoAPI. 
254
255 2003-01-03  Sebastien Pouliot  <spouliot@videotron.ca>
256
257         * RC2CryptoServiceProvider.cs: Now about 2 time faster by inlining 
258         methods and changing to UInt16 (instead of UInt32). 
259
260 2003-01-02  Sebastien Pouliot  <spouliot@videotron.ca>
261
262         * RijndaelManaged.cs: Now 7 (encrypt) to 10 (decrypt) times faster 
263         by removing allocation inside intensively called methods, using pre-
264         calculated tables instead of Mult_GF methods and inlining most methods.
265
266 2002-12-31  Sebastien Pouliot  <spouliot@videotron.ca>
267
268         * AsymmetricAlgorithm.cs: Removed ValidKeySize (method only present
269         in SymmetricAlgorithm).
270         * DSA.cs: Change ZeroizePrivateKey from protected to internal.
271         * DSACryptoServiceProvider.cs: Added some case where we need to check 
272         for keypairGenerated.
273         * RSA.cs: Change ZeroizePrivateKey from protected to internal.
274         * RSACryptoServiceProvider.cs: Key were never generated with the default
275         (no parameter) constructor. Now checks for keypairGenerated in methods.
276         * SignatureDescription.cs: Added CreateDeformatter in RSAPKCS1SHA1-
277         SignatureDescription to please corcompare (it just call it's ancestor).
278
279 2002-12-30  Sebastien Pouliot  <spouliot@videotron.ca>
280
281         * CryptoStream.cs: Implemented core. Not sure about many details - 
282         but it run the samples now (#30256).
283         * CryptoStreamMode.cs: Added [Serializable] to enum declaration.
284         * SymmetricAlgorithm.cs: Made some changes required for CryptoStream 
285         and to match more closely MS implementation. Also added little
286         optimizations in TransformBlock.
287
288 2002-12-27  Sebastien Pouliot  <spouliot@videotron.ca>
289
290         * CryptoTools.cs: New. Shared classes for cryptography. Now
291         includes a KeyBuilder to generate symmetric keys and IV.
292         * DES.cs: Modified Key validation.
293         * DESCryptoServiceProvider.cs: Implemented Key and IV using
294         KeyBuilder.
295         * RC2CryptoServiceProvider.cs: Implemented Key and IV using
296         KeyBuilder (and removed TODO).
297         * RijndaelManaged.cs: Implemented Key and IV using KeyBuilder 
298         (and removed TODO).
299         * SHA384Managed.cs: Changed code to remove compiler warning.
300         * SHA512Managed.cs: Changed code to remove compiler warning.
301         * SymmetricAlgorithm.cs: Removed TODO on IV.
302         * TripleDESCryptoServiceProvider.cs: Implemented Key and IV
303         using KeyBuilder (and removed TODO).
304
305 2002-11-20  Sebastien Pouliot  <spouliot@videotron.ca>
306
307         * AsymmetricSignatureDeformatter.cs: Added exception handling in
308         VerifySignature (moved from RSAPKCS1SignatureDeformatter).
309         * AsymmetricSignatureFormatter.cs: Added exception handling in
310         CreateSignature (moved from RSAPKCS1SignatureFormatter).
311         * CryptoAPITransform.cs: Removed "= false" assignation from a private
312         member (because this created an unwanted "ghost" constructor) and 
313         modified Dispose declaration.
314         * HashAlgorithm.cs: Removed destructor. Disposing unmanaged 
315         ressources is the responsability of each class (not an abstract class).
316         * RSAPKCS1SignatureDeformatter.cs: Removed a VerifySignature method
317         which was present in the base class AsymmetricSignatureDeformatter.
318         * RSAPKCS1SignatureFormatter.cs: Removed a CreateSignature method
319         which was present in the base class AsymmetricSignatureFormatter.
320         * SHA1Managed.cs: Removed sealed from class declaration. Removed 
321         destructor and Dispose method as class is fully managed.
322         * ToBase64Transform.cs: Added virtual to property CanReuseTransform.
323
324 2002-11-17  Sebastien Pouliot  <spouliot@videotron.ca>
325
326         * CryptoConfig.cs: Added full classes name for MapNameToOID.
327         * PKCS1.cs: New. Internal class for the various primitives defined
328         in PKCS#1 v.2.1.
329         * PKCS1MaskGenerationFunction.cs: Modified to use PKCS1.cs.
330         * RSA.cs: Added internal class RSAHandler (which implements IHandler
331         interface for MiniParser) to import RSA keypairs from XML strings.
332         * RSACryptoServiceProvider.cs: Crypto implemented using BigInteger. 
333         Key generation is VERY LONG.
334         * RSAOAEPKeyExchangeDeformatter.cs: Completed using PKCS1. Not sure 
335         of the results as this is not available in all versions of Windows.
336         * RSAOAEPKeyExchangeFormatter.cs: Completed using PKCS1. Not sure 
337         of the results as this is not available in all versions of Windows.
338         * RSAPKCS1KeyExchangeDeformatter.cs: Completed using PKCS1.
339         * RSAPKCS1KeyExchangeFormatter.cs: Completed using PKCS1.
340         * RSAPKCS1SignatureDeformatter.cs: Completed using PKCS1.
341         * RSAPKCS1SignatureFormatter.cs: Completed using PKCS1.
342
343 2002-11-17  Sebastien Pouliot  <spouliot@videotron.ca>
344
345         * MiniParser.cs: Added explicit cast in order to compile with mcs.
346
347 2002-11-16  Sebastien Pouliot  <spouliot@videotron.ca>
348
349         * AsymmetricAlgorithm.cs: Added internal class AsymmetricParameters
350         (which implements the IReader interface for MiniParser). Corrected
351         Dispose declaration.
352         * BigInteger.cs: New. Internal class for handling BIG integers for 
353         asymmetric crypto (both RSA and DSA). Thanks to Chew Keong TAN !
354         * CryptoConfig.cs: Added XMLDSIG URLs in CreateFromName.
355         Will dynamically load System.Security.dll, when required,
356         to return instance of those classes. Also CryptoConfig can now
357         create any object (e.g. System.IO.MemoryStream) !
358         * DSA.cs: Added internal class DSAHandler (which implements IHandler
359         interface for MiniParser) to import DSA keypairs from XML strings.
360         * DSACryptoServiceProvider.cs: Crypto fully implemented using 
361         BigInteger. Key generation (group) is VERY long.
362         * MiniParser.cs: New. Minimal XML parser by Sergey Chaban. Used to 
363         import keypairs in XML strings.
364         * SignatureDescription.cs: Removed local CreateFromName (to use
365         CryptoConfig - which actually can create anything). Added internal
366         classes DSASignatureDescription and RSAPKCS1SHA1SignatureDescription.
367
368 2002-11-15  Sebastien Pouliot  <spouliot@videotron.ca>
369
370         * CryptographicUnexpectedOperationException.cs: Forgot it last time!
371         * FromBase64Transform.cs: Added missing virtual to CanReuseTransform.
372         Changed Dispose().
373         * HashAlgorithm.cs: Changed Dispose().
374         * MD5CryptoServiceProvider.cs: Added destructor and Dipose(bool).
375         * PasswordDeriveBytes.cs: Changed some declaration from
376         protected to private.
377         * RC2.cs: Added valid keysize check in EffectiveKeySize.
378         * RC2CryptoServiceProvider.cs: Overriden EffectiveKeySize to match
379         corlib declarations.
380         * RSAOAEPKeyExchangeDeformatter.cs: Changed some declaration from
381         protected to private.
382         * RSAOAEPKeyExchangeFormatter.cs: Changed some declaration from
383         protected to private.
384         * RSAPKCS1KeyExchangeDeformatter.cs: Changed some declaration from
385         protected to private.
386         * RSAPKCS1KeyExchangeFormatter.cs: Changed some declaration from
387         protected to private.
388         * RSAPKCS1SignatureDeformatter.cs: Changed some declaration from
389         protected to private.
390         * RSAPKCS1SignatureFormatter.cs: Changed some declaration from
391         protected to private.
392         * SHA1CryptoServiceProvider.cs: Moved SHA1 code to SHA1Internal.
393         SHA1CryptoServiceProvider now use SHA1Internal. Added Dispose and
394         destructor.
395         * SHA1Managed.cs: New. Use SHA1Internal. Same as 
396         SHA1CryptoServiceProvider but is required for binary compatibility.
397         * SHA256Managed.cs: Changed some declaration from protected to private.
398         * SHA384Managed.cs: Changed some declaration from protected to private.
399         * SHA512Managed.cs: Changed some declaration from protected to private.
400         * SymmetricAlgorithm.cs: Added Clear(), changed Dispose() and added
401         virtual to Dispose(bool).
402         * ToBase64Transform.cs: Added missing virtual to CanReuseTransform.
403         Changed Dispose().
404         * TripleDESCryptoServiceProvider.cs: Added missing sealed to class
405         declaration.
406
407 2002-11-03  Sebastien Pouliot  <spouliot@videotron.ca>
408
409         * CryptoAPITransform.cs: Added missing CanReuseTransform property,
410         Clear method, destructor and IDisposable support.
411         * CryptographicException.cs: Added missing protected constructor.
412         * CryptographicUnexpectedOperationException.cs: Added missing 
413         protected constructor.
414         * ICryptoTransform.cs: Added missing CanReuseTransform property.
415         * FromBase64Transform.cs: Added missing CanReuseTransform property,
416         Clear method, destructor and IDisposable support.
417         * SymmetricAlgorithm.cs: Implement IDisposable.
418         * ToBase64Transform.cs: Added missing CanReuseTransform property,
419         Clear method, destructor and IDisposable support.
420
421 2002-11-02  Sebastien Pouliot  <spouliot@videotron.ca>
422
423         * SignatureDescription.cs: Updated class to match unit test results
424         * X509Certificate.cs: REMOVED! Wrong namespace. An almost complete
425         implementation is now in System.Security.Cryptography.X509Certificates
426
427 2002-11-01  Sebastien Pouliot  <spouliot@videotron.ca>
428
429         * bouncycastle.txt: Bouncy Castle JCE License.
430         * SHA384Managed.cs: Hash implementation based on BouncyCastle JCE.
431         * SHA512Managed.cs: Hash implementation based on BouncyCastle JCE.
432
433 2002-10-30  Sebastien Pouliot  <spouliot@videotron.ca>
434
435         * DSASignatureDeformatter.cs: Fully implemented - however it 
436         requires a functionnal DSA implementation to work.
437         * DSASignatureFormatter.cs: Fully implemented - however it 
438         requires a functionnal DSA implementation to work.
439
440 2002-10-25  Sebastien Pouliot  <spouliot@videotron.ca>
441
442         * PasswordDeriveBytes.cs: New. PKCS#5 key derivation (PBKDF1) works up to
443         HashSize length (but MS support longer keys)
444
445 2002-10-24  Sebastien Pouliot  <spouliot@videotron.ca>
446
447         * RSACryptoServiceProvider.cs: New. Implemented most logic expect crypto 
448         * RSAOAEPKeyExchangeDeformatter.cs: New. Stub.
449         * RSAOAEPKeyExchangeFormatter.cs: New. Stub.
450         * RSAPKCS1KeyExchangeDeformatter.cs: New. Stub.
451         * RSAPKCS1KeyExchangeFormatter.cs: New. 98% implemented but still
452         require RSA.DecryptValue (not supported in MS .NET Framework)
453         * RSAPKCS1SignatureDeformatter.cs: New. Stub.
454         * RSAPKCS1SignatureFormatter.cs: New. Stub.
455
456 2002-10-23  Sebastien Pouliot  <spouliot@videotron.ca>
457
458         * SymmetricAlgorithm.cs: Fixed CFB mode (do encryption while decrypting!)
459         * TripleDESCryptoServiceProvider.cs: Ajusted for CFB.
460
461 2002-10-22  Sebastien Pouliot  <spouliot@videotron.ca>
462
463         * RjindaelManaged.cs: Fixed decryption for 192 and 256 bit block size
464
465 2002-10-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
466
467         * RC2CryptoServiceProvider.cs: fixed end of lines (changed from \r
468         to \n).
469
470 2002-10-20  Sebastien Pouliot  <spouliot@videotron.ca>
471
472         * SymmetricAlgorithm.cs: Added better Dispose support
473         * DES.cs: Now only contains the abstract DES class.
474         * DESCryptoServiceProvider.cs: Added the DESTransform class (inherited
475         from SymmetricTransform) based the old DESCore and DESTransformBase code
476         * RC2.cs: Fixed EffectiveKeySize == 0
477         * RC2CryptoServiceProvider.cs: Added the RC2Transform class (inherited
478         from SymmetricTransform) based on the old RC2lImpl code. Unrolled some loops.
479         * RjindaelManaged.cs: Few more optimizations while looking for decrypting bug
480         * TripleDESCryptoServiceProvider.cs: New. Implement TripleDESTransform from 
481         DESTransform (non-optimal but working :-).
482
483 2002-10-19  Sebastien Pouliot  <spouliot@videotron.ca>
484
485         * SymmetricAlgorithm.cs: Added new class SymmetricTransform to avoid
486         duplicating CipherMode (currently ECB, CBC) and PaddingMode functionalities
487         in every crytographic algorithm implementation.
488         * RijndaelManaged.cs: Added the RjindaelTransform class (inherited
489         from SymmetricTransform) based the old RijndaelImpl / RijndaelController 
490         code. Fixed encryption for block size 192, 256, there is still a problem
491         decrypting block size 192, 256. Unrolled some loops + littl'optimizations
492         * PKCS1MaskGenerationMethod.cs: Removed Array.Reverse in I2OSP to be
493         compatible with MS implementation (however we are now failing the PKCS#1
494         test vector) + added some more checks (null, overflow, ...)
495         * AsymmetricAlgorithm.cs: Commented XMLDocument stuff to end the cyclic
496         dependency (corlib->System.Xml->corlib)
497         * RSA.cs: Commented FromXmlString stuff to end the cyclic dependency
498         * DSA.cs: Commented FromXmlString stuff to end the cyclic dependency
499         * RC2.cs: Create using CryptoConfig
500         * TripleDES.cs: Marked class public. Added LegalKeySizes and LegalBlockSizes
501
502 2002-10-14  Sebastien Pouliot  <spouliot@videotron.ca>
503
504         * MD5.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
505         * Rijndael.cs: Create using CryptoConfig. Removed TODO.
506         * RSAParameters.cs: Modulus must be serialized. Removed TODO.
507         * SHA256.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
508         * SHA384.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
509         * SHA512.cs: Create using CryptoConfig, set HashSizeValue, removed TODO.
510         * FromBase64Transform.cs: Removed ToString()
511         * ToBase64Transform.cs: Removed ToString()
512         * SymmetricAlgorithm.cs: Create using CryptoConfig, set default Mode and 
513         Padding, added Clear, Dispose
514         * TripleDES.cs: New. Abstract class.
515         * MaskGenerationMethod.cs: New. Abstract class.
516         * PKCS1MaskGenerationMethod.cs: New. Implement PKCS#1 MGF (currently not 
517         compatible with MS implementation - but not sure the bug is mine!).
518
519 2002-10-13  Sebastien Pouliot  <spouliot@videotron.ca>
520
521         * HashAlgorithm.cs: Added Dispose() to HashAlgorithm because it 
522         inherits ICryptoTransform
523         * KeyedHashAlgorithm.cs: New implementation
524         * HMACSHA1.cs: New (include a generic HMACAlgorithm as internal class)
525         * MACTripleDES.cs: New (missing core implementation on generic MACAlgorithm)
526         * CryptoStream.cs: Added limited functionalities to support HMACSHA1
527
528 2002-10-12  Sebastien Pouliot  <spouliot@videotron.ca>
529
530         * DSA.cs: changed constructor to public from internal (like MS)
531         * HashAlgorithm.cs: Completed ComputeHash methods
532         * SHA1.cs: Added HashSizeValue = 160
533
534 2002-10-12  Sebastien Pouliot  <spouliot@videotron.ca>
535
536         * ICryptoTransform.cs: Now inherits from IDisposable
537         * RC2CryptoServiceProvider.cs: Added Dispose() to RC2Impl because it inherits ICryptoTransform
538         * CryptoAPITransform.cs: Added Dispose() to CryptoAPITransform... ICryptoTransform
539         * RijndaelManaged.cs: Added Dispose() to RijndaelController...ICryptoTransform
540         * FromBase64Transform.cs: Added Dispose() to FromBase64Transform...ICryptoTransform
541         * ToBase64Transform.cs: Added Dispose() to ToBase64Transform...ICryptoTransform
542         * DESCryptoServiceProvider.cs: Added Dispose() to DESTransformBase...ICryptoTransform
543
544 2002-10-11  Duncan Mak  <duncan@ximian.com>
545
546         * DESCryptoServiceProvider.cs: Removed unnecessary Dispose ().
547
548 2002-10-11  Sebastien Pouliot  <spouliot@videotron.ca>
549
550         * DES.cs: Create() using CryptoConfig, fix #30256
551         * DESCryptoServiceProvider.cs: fix #30256
552         * RandomNumberGenerator.cs: uncomment in Create(rng) for CryptoConfig
553
554 2002-10-10  Sebastien Pouliot  <spouliot@videotron.ca>
555
556         * AsymmetricAlgorithm.cs: Inherit from IDisposable, common support from XML import
557         * DSA.cs: FromXmlString() keypair import, Create() using CryptoConfig
558         * RSA.cs: FromXmlString() keypair import, Create() using CryptoConfig
559         * DSACryptoServiceProvider.cs: Added Dispose()
560
561 2002-10-09  Sebastien Pouliot  <spouliot@videotron.ca>
562
563         * CryptoConfig.cs: New implementation
564
565 2002-10-05  Andrew Birkett  <andy@nobugs.org>
566
567         * RC2CryptoServiceProvider.cs: New implementation
568         * RC2.cs: New implementation
569
570 2002-09-22  Andrew Birkett  <andy@nobugs.org>
571
572         * RijndaelManaged.cs: Added faster case for multiplication by 2 in GF(8)
573         
574 2002-09-22  Andrew Birkett  <andy@nobugs.org>
575
576         * RijndaelManaged.cs: BlockSize now reports size in bytes.
577         * ICryptoTransform.cs: Updated comments - BlockSizes are in bytes, unlike elsewhere.
578
579 2002-09-19  Andrew Birkett  <andy@nobugs.org>
580
581         * Rijndael.cs: Create() now gives you a RijndaelManaged object
582         * RijndaelManaged.cs: Added dummy GenerateKey until we have a proper RNG.
583         * SymmetricAlgorithm.cs: Updated comments
584
585 2002-09-15  Andrew Birkett  <andy@nobugs.org>
586
587         * RijndaelManaged.cs: Added support for CBC-mode, PKCS7/Zero padding.
588         * SymmetricAlgorithm.cs: IV size must match block size, not key size.  
589           Key property now sets KeySizeValue correctly in bits.
590
591 2002-09-11  Andrew Birkett  <andy@nobugs.org>
592
593         * RijndaelManaged.cs: Implemented ECB-mode Rijndael cipher.
594         * Rijndael.cs: Set valid key/block sizes.
595         * SymmetricAlgorithm.cs: Remove throw from ctr so we can instantiate
596           derived classes.  Fixes to key sizes so they are measured in bits.
597         * KeySizes.cs: Updated comments to emphasize that sizes are in bits.
598
599 2002-06-29  Martin Baulig  <martin@gnome.org>
600
601         * AsymmetricAlgorithm.cs: Removed a duplicate semicolon to make it compile.
602
603 2002-05-19  Martin Baulig  <martin@gnome.org>
604
605         * FromBase64Transform.cs (TransformFinalBlock): The return value of
606         `DoTransform' tells us the number of bytes actually written - if it's
607         smaller than `res', copy it to a smaller array.
608
609 2002-02-21  Mark Crichton <crichton@gimp.org>
610
611         * RNGCryptoServiceProvider.cs: New file.
612         * RandomNumberGenerator.cs: Constructor is now marked public.
613
614 2002-02-13  Dan Lewis <dihlewis@yahoo.co.uk>
615
616         * DSACryptoServiceProvider.cs, SHA384Managed.cs, SHA512Managed.cs,
617         Rijndael.cs, RSA.cs, RSAParameters.cs : New files (stubs)
618
619 Mon Feb 11 13:26:17 CET 2002 Paolo Molaro <lupus@ximian.com>
620
621         * X509Certificates: dummy class.
622
623 2002-01-10  Duco Fijma <duco@lorentz.xs4all.nl>
624         * Create (trivial) implementation of RandomNumberGenerator
625
626 2002-01-05  Ravi Pratap  <ravi@ximian.com>
627
628         * CryptoAPITransform.cs, DESCryptoProvider.cs : MonoTODO attribute
629         decoration.
630
631         * HashAlgorithm.cs, MD5.cs, SHA1.cs, SHA256.cs, SHA384.cs : Ditto.
632
633         * SHA512.cs, SymmetricAlgorithm.cs, ToBase64Transform.cs, 
634         AsymmetricAlgorithm.cs, CryptoStream.cs, DSA.cs, DSASignatureDeformatter.cs,
635         DSASignatureFormatter.cs, SignatureDescription.cs : Ditto.
636         
637 Wed Nov 14 17:04:30 CET 2001 Paolo Molaro <lupus@ximian.com>
638
639         * MD5CryptoServiceProvider.cs, SHA1CryptoServiceProvider.cs,
640         SHA256Managed.cs: CLSCompliant updates.
641
642 2001-10-11  Thomas Neidhart <tome@sbox.tugraz.at>
643
644         * CryptoAPITransform.cs: Initial version
645         * CryptoStream.cs: Initial version
646         * CspParameter.cs: Initial version
647         * CspProviderFlags.cs: Initial version
648         * DSA.cs: Initial version
649         * DSAParameters.cs: Initial version
650         * DSASignatureDeformatter.cs: Initial version
651         * DSASignatureFormatter.cs: Initial version
652         * DeriveBytes.cs: Initial version
653
654 2001-10-06  Thomas Neidhart <tome@sbox.tugraz.at>
655
656     * AsymmetricAlgorithm.cs: Inital version
657         * AsymmetricKeyExchangeDeformatter.cs: Initial version
658         * AsymmetricKeyExchangeFormatter.cs: Initial version
659         * AsymmetricSignatureDeformatter.cs: Initial version
660         * AsymmetricSignatureFormatter.cs: Initial version
661         * PaddingMode.cs: Added PaddingMode.None
662         * SignatureDescription.cs: Initial version
663     * CryptographicException.cs: Initial version
664         * CryptographicUnknownOperationException.cs: Initial version
665         * SymmetricAlgorithm.cs: Implemented CreateDecryptor, CreateEncryptor
666           and Create() methods.
667         
668 2001-08-20  Sergey Chaban <serge@wildwestsoftware.com>
669
670         * DES.cs encryption core is about 30% faster than previous version.
671         * DESCryptoServiceProvider.cs added PKCS-5 padding.
672
673 2001-08-09  Sergey Chaban <serge@wildwestsoftware.com>
674
675         * ToBase64Transform.cs: Base64Table now supports both encoding
676           and decoding tables. As a result Table was renamed to EncodeTable
677           and DecodeTable was added.
678         * FromBase64Transform.cs: Initial check-in.
679         * DES.cs: Initial check-in.
680         * DESCryptoServiceProvider.cs: Initial check-in.
681
682 2001-08-01  Matthew S. Ford  <Matthew.S.Ford@Rose-Hulman.Edu>
683
684         * CipherMode.cs: Initial version.
685         * CryptoStreamMode.cs: Initial version.
686         * HashAlgorithm.cs: Initial version.
687         * ICryptoTransform.cs: Initial version.
688         * KeySizes.cs: Initial version.
689         * MD5.cs: Initial version.
690         * MD5CryptoServiceProvider.cs: Initial version.
691         * PaddingMode.cs: Initial version.
692         * SHA1.cs: Initial version.
693         * SHA1CryptoServiceProvider.cs: Initial version.
694         * SHA256.cs: Initial version.
695         * SHA256Managed.cs: Initial version.
696         * SHA384.cs: Initial version.
697         * SHA512.cs: Initial version.