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