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