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