Age | Commit message (Collapse) | Author |
|
svn path=/trunk/mcs/; revision=29249
|
|
signature
svn path=/trunk/mcs/; revision=29204
|
|
* CspProviderFlags.cs: Reverted previous patch as UseExistingKey isn't
part of the 1.0/1.1 framework.
svn path=/trunk/mcs/; revision=28440
|
|
svn path=/trunk/mcs/; revision=28433
|
|
* HashAlgorithm.cs: Added missing exception handling to ComputeHash,
TransformBlock and TransformFinalBlock.
svn path=/trunk/mcs/; revision=28252
|
|
* CryptoStream.cs: Fixed possible integer overflow.
* FromBase64Transform.cs: Better exception handling and fixed possible
integer overflow.
* ToBase64Transform.cs: Better exception handling and fixed possible
integer overflow.
svn path=/trunk/mcs/; revision=28213
|
|
* RNGCryptoServiceProvider.cs: Changed RNG interface with the runtime
so it could be used in a thread-safe way with CryptoAPI.
svn path=/trunk/mcs/; revision=28143
|
|
* DSACryptoServiceProvider.cs: Fixed SignData to hash data before
signing it (thanks to Jens Thiel for spotting this).
svn path=/trunk/mcs/; revision=26932
|
|
* RSACryptoServiceProvider.cs: Fixed OID related exception in SignData.
svn path=/trunk/mcs/; revision=26923
|
|
* ToBase64Transform.cs: Input block may be smaller than a full block
when calling TransformFinalBlock (fix 2 CryptoStream unit tests).
svn path=/trunk/mcs/; revision=26911
|
|
* CipherMode.cs: Moved XML comments to monodoc.
* CryptoConfig.cs: Changed Array.Copy to Buffer.BlockCopy.
* CryptoStream.cs: Changed Array.Copy to Buffer.BlockCopy.
* DSA.cs: Changed Array.Copy to Buffer.BlockCopy.
* ICryptoTransform.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Changed Array.Copy to Buffer.BlockCopy.
* FromBase64Transform.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26907
|
|
* RSAOAEPKeyExchangeDeformatter.cs: Fixed wrt completed unit tests.
* RSAOAEPKeyExchangeFormatter.cs: Fixed wrt completed unit tests.
* RSAPKCS1KeyExchangeDeformatter.cs: Fixed wrt completed unit tests.
Added globalization to exceptions.
* RSAPKCS1KeyExchangeFormatter.cs: Fixed wrt completed unit tests.
* RSAPKCS1SignatureDeformatter.cs: Fixed wrt completed unit tests.
Added globalization to exceptions.
* RSAPKCS1SignatureFormatter.cs: Fixed wrt completed unit tests.
Added globalization to exceptions.
svn path=/trunk/mcs/; revision=26862
|
|
* Rijndael.cs: Source clean up.
* RijndaelManaged.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
svn path=/trunk/mcs/; revision=26849
|
|
* RNGCryptoServiceProvider.cs: Removed TODO and documented them in
mono doc. Now call runtime when a seed is provided.
* RSA.cs: Added globalization to exceptions. Removed check for
<RSAKeyValue> as it is not checked by MS implementation.
* SignatureDescription.cs: Moved XML comments to monodoc. Added
globalization to exceptions. Removed TODO and added notes to monodoc.
* SymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
* ToBase64Tranform.cs: Added missing exception handling. Moved XML
comments to monodoc.
svn path=/trunk/mcs/; revision=26848
|
|
* TripleDES.cs: Added globalization to exceptions.
* TripleDESCryptoServiceProvider.cs: Changed Array.Copy to
Buffer.BlockCopy. Zeroize decrypted data.
svn path=/trunk/mcs/; revision=26846
|
|
* SHA1.cs: Moved XML comments to monodoc.
* SHA1CryptoServiceProvider.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA256.cs: Moved XML comments to monodoc.
* SHA256Managed.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA384.cs: Moved XML comments to monodoc.
* SHA512.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26845
|
|
* RC2.cs: Fixed KeySize to change it's value and the EffectiveKeySize
when the key is changed.
* RC2CryptoServiceProvider.cs: Added globalization to exceptions.
Fixed the KeySize must be equal with EffectiveKeySize to match MS
implementation.
svn path=/trunk/mcs/; revision=26844
|
|
* HashAlgorithm.cs: Moved XML comments to monodoc. Added globalization
to exceptions.
* KeyedHashAlgorithm.cs: Added globalization to exceptions.
* KeySizes.cs: Moved XML comments to monodoc.
* MaskGenerationMethod.cs: Source clean up.
* MD5.cs: Moved XML comments to monodoc.
* MD5CryptoServiceProvider.cs: Removed CLSCompliance attributes from
private fields. Changed constants from enum to array. Zeroize data on
Dispose.
* PaddingMode.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Added globalization to exceptions. Removed
TODO and documented as "not supported" in MonoDoc.
* RandomNumberGenerator.cs: Source clean up.
svn path=/trunk/mcs/; revision=26773
|
|
* DSACryptoServiceProvider.cs: Added globalization to exceptions.
* HMACSHA1.cs: Cleanup.
* SHA1CryptoServiceProvider.cs: Removed unused private methods.
* SHA1Managed.cs: Removed unused private methods.
* SHA384Managed.cs: Don't zeroize buffer on first initialization.
* SHA512Managed.cs: Don't zeroize buffer on first initialization.
svn path=/trunk/mcs/; revision=26763
|
|
* SHA256Managed.cs: Updated to use shared constants.
* SHA384Managed.cs: Updated to use shared constants.
* SHA512Managed.cs: Updated to use shared constants.
* SHAConstants.cs: New. Shared constants for SHA implementations.
svn path=/trunk/mcs/; revision=26759
|
|
* Base64Constants.cs: New. Convert code into tables for better base64
performance.
* FromBase64Transform.cs: Updated to use the new tables. Source code
cleanup.
* ToBase64Transform.cs: Updated to use the new tables. Added
globalization. Commented finalizer as it isn't required in this case.
svn path=/trunk/mcs/; revision=26753
|
|
* CryptoConfig.cs: Specify version and public key token when loading
System.Security.dll for XML Digital Signature classes.
svn path=/trunk/mcs/; revision=26629
|
|
svn path=/trunk/mcs/; revision=26349
|
|
* DES.cs: Removed redundant weak/semi-weak key check in Key property.
* DESCryptoServiceProvider.cs: Implementation already had 100%
coverage.
svn path=/trunk/mcs/; revision=26294
|
|
* DSACryptoServiceProvider.cs: Changed delegate signature.
* RSACryptoServiceProvider.cs: Changed delegate signature.
svn path=/trunk/mcs/; revision=26164
|
|
* DSA.cs: Moved XML comments to monodoc. Added globalization to
exceptions. Already had 100% coverage.
* DSAParameters.cs: Moved XML comments to monodoc.
* DSASignatureDeformetter.cs: Added globalization to exceptions.
Limited catch to expected exception. Already had 100% coverage.
* DSASignatureFormatter.cs: Added globalization to exceptions. Limited
catch to expected exception. Already had 100% coverage.
svn path=/trunk/mcs/; revision=26135
|
|
* CryptoConfig.cs: Oops - forgot to commit
svn path=/trunk/mcs/; revision=26026
|
|
* DES.cs: Fixes to weak/semi-weak checking to pass new unit tests (it
requires to set odd parity on keys before comparing).
svn path=/trunk/mcs/; revision=26025
|
|
* AsymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
globalization to exceptions. Already had 100% coverage.
* AsymmetricKeyExchangeDeformatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricKeyExchangeFormatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricSignatureDeformatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricSignatureFormatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* CryptoAPITransform.cs: Unused by Mono (added note to monodoc).
Class will stay at 0% coverage.
* CryptoConfig.cs: Added globalization to exceptions. 98% coverage.
* CryptographicException.cs: Added globalization to exceptions.
Already had 100% coverage.
* CryptoStream.cs: Added globalization to exceptions. Removed (unused)
field _previousBlock to get 100% coverage.
* CspParameters.cs: Moved XML comments to monodoc. Already had 100%
coverage.
* CspProviderFlags.cs: Moved XML comments to monodoc.
* DeriveBytes.cs: Moved XML comments to monodoc. Already had 100%
coverage.
svn path=/trunk/mcs/; revision=26022
|
|
* DSACryptoServiceProvider.cs: Call invariant compare
svn path=/trunk/mcs/; revision=25952
|
|
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.
svn path=/trunk/mcs/; revision=25877
|
|
* DSA.cs: Use Mono.Security.BitConverterLE
svn path=/trunk/mcs/; revision=25241
|
|
* DESCryptoServiceProvider.cs: Use BitConverter.IsLittleEndian
to fix for big endian machines.
svn path=/trunk/mcs/; revision=25066
|
|
* FromBase64Transform.cs: Now throws ObjectDisposedException and
return true for CanReuseTransform (as MS implementation).
svn path=/trunk/mcs/; revision=23895
|
|
* DSA.cs : fixed incorrectly modified catch for debugging.
svn path=/trunk/mcs/; revision=23836
|
|
* DSA.cs : In ToXmlString(), sequence of Seed and PgenCounter is
optional.
svn path=/trunk/mcs/; revision=23835
|
|
* DES.cs: Same fix as for SymmetricAlgorithm (get_Key is
overridden to check for weak keys). Also ensured that no weak keys
would be generated.
* SymmetricAlgorithm.cs: Return a copy of the key (and IV) so it
doesn't get destroyed when dispose is called (in this case the key
zeroization is the caller's responsability). Match MS implementation.
* TripleDES.cs: Same fix as for SymmetricAlgorithm (get_Key is
overridden to check for weak keys). Fix bugzilla #54868.
svn path=/trunk/mcs/; revision=23484
|
|
* CryptoStream.cs: Remove the _blockSize assumptions because some
Transforms could be different on Input/Output. Added a special case
for cascading CryptoStreams in FlushFinalBlock.
svn path=/trunk/mcs/; revision=23024
|
|
* SymmetricAlgorithm.cs: Reintroduced the patch from 2003-08-24 to fix
IV length exception for stream ciphers (e.g. RC4). I overwrote it by
accident some time ago :(
svn path=/trunk/mcs/; revision=22915
|
|
* DSACryptoServiceProvider.cs: Fixed support for key pair persistence.
It now requires (like MS) to call Clear to delete an existing
container. PersistKeyInCsp default value also changes if a
CspParameters is supplied (or not) to the constructor.
* RSACryptoServiceProvider.cs: Same fixes as DSA.
svn path=/trunk/mcs/; revision=22899
|
|
* HashAlgorithm.cs: Changed the ComputeHash(Stream) method to (a) not
allocate the whole stream memory (big memory saver as suggested by
Peter Williams in bugzilla entry #54022) and (b) to never use Stream.
Length and Stream.Position because they aren't implemented for every
stream class (similar issue to the CryptoStream patch).
* MD5CryptoServiceProvider.cs: Moved a buffer allocation from
ProcessBlock to constructor to reduce memory allocation. Optimization
suggested by Peter Williams in bugzilla entry #54024.
svn path=/trunk/mcs/; revision=22881
|
|
* DSACryptoServiceProvider.cs: Added keypair persistence support.
Corrected dispose so object cannot be disposed multiple time. Added
PublicOnly property (as internal before 1.2, public after).
* RSACryptoServiceProvider.cs: Added keypair persistence support.
Corrected dispose so object cannot be disposed multiple time. Added
PublicOnly property (as internal before 1.2, public after).
svn path=/trunk/mcs/; revision=22844
|
|
* SymmetricAlgorithm.cs: Removed class SymmetricTransform from file
and moved it to Mono.Security.Cryptography namespace. The transform
class will also be included in Mono.Security assembly.
svn path=/trunk/mcs/; revision=22835
|
|
* FromBase64Transform.cs: Improved code layout to match coding style,
and removed the Byte comparison with -1.
svn path=/trunk/mcs/; revision=22833
|
|
* CryptoStream.cs: New implementation - should fix all known issues
with the class (Read/WriteByte, reading by non-multiple of the
block size, using Stream.Length and Stream.Position ...).
* SymmetricAlgorithm.cs: Return an empty array when there's nothing
to return (required for CryptoStream to work).
svn path=/trunk/mcs/; revision=22770
|
|
2003-01-31 David Sheldon <dave-mono@earth.li>
* FromBase64Transform.cs: Removed needless catch and rethrow.
svn path=/trunk/mcs/; revision=22655
|
|
* FromBase64Transform.cs: Fixes to what happens if a character in the
input stream is not in the lookup table. IndexOutOfRangeException was
wrong.
2004-01-31 David Sheldon <dave-mono@earth.li>
* ConvertTest.cs: Added test for malformed Base64. Bug 52928
svn path=/trunk/mcs/; revision=22654
|
|
* CryptoConfig.cs: Now use internal Environment.GetMachineConfigPath()
to find machine.config. Initialization removed from static constructor
to speed up 98% of software that do not requires it.
svn path=/trunk/mcs/; revision=21198
|
|
* SymmetricAlgorithm.cs: Fixed padding for None and Zeros modes. Unit
tests for padding modes are now in PaddingModeTest.cs.
svn path=/trunk/mcs/; revision=21162
|
|
* HMAC.cs: Fix compilation warnings.
svn path=/trunk/mcs/; revision=20999
|