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