Commit Graph
33 Commits
Author SHA1 Message Date
Sebastien Pouliot 58fe0c6aba CryptoConfig.cs: Inverse name and oid when reading them from machine.config. Part of the fix for #346536
svn path=/trunk/mcs/; revision=94458
2008-01-31 13:53:35 +00:00
Alp Toker 2ce100cb9e 2007-04-03 Alp Toker <[email protected]>
* CryptoConfig.cs: CreateFromName(string,object[]) is params in 2.0.


svn path=/trunk/mcs/; revision=75336
2007-04-03 10:09:37 +00:00
Sebastien Pouliot bd3e5f27df 2007-03-22 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Names are case-insensitive only since fx 2.0.


svn path=/trunk/mcs/; revision=74809
2007-03-22 14:49:47 +00:00
Atsushi Eno 7bce9d1c7d 2007-01-22 Atsushi Enomoto <[email protected]>
* CryptoConfig.cs: Fixed incorrect exchange in urlExcC14N and
	  urlExcC14NWithComments.


svn path=/trunk/mcs/; revision=71450
2007-01-22 17:39:57 +00:00
Sebastien Pouliot 06882c4e64 2006-11-24 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Add support for (2.0) custom X.509 chains.


svn path=/trunk/mcs/; revision=68429
2006-11-24 14:45:18 +00:00
Sebastien Pouliot 78406f8413 2006-11-08 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Add support for (2.0) X.509 extensions in 
	CreateFromName method. This allows the framework to be extensible with
	new certificate extensions (syntax is missing from machine.config).


svn path=/trunk/mcs/; revision=67524
2006-11-08 14:26:00 +00:00
Sebastien Pouliot 436fc7d87a 2006-10-12 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Use SmallXmlParser with a custom handler to reduce
	memory requirements to process machine.config. Fix #79653 (beagle).


svn path=/trunk/mcs/; revision=66639
2006-10-13 00:58:50 +00:00
Sebastien Pouliot 7358d6140e 2006-10-11 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Accept lower/mixed-case algorithm names in 
	CreateFromName and MapNameToOID methods (fix bug #79641). Removed OID
	mappings in 2.0 for DSA and 3DES (they were part of the betas but not
	in the final 2.0 release of the framework).


svn path=/trunk/mcs/; revision=66547
2006-10-11 12:44:43 +00:00
Kornél Pál 431f1b3485 Moved assembly version and assembly reference constants to a common Consts.cs file. Updated 2.0.3600.0 assembly versions to 2.0.0.0. Updated some old beta version numbers to recent ones. Fixed hard coded assembly references to use constants with the appropriate version number.
svn path=/trunk/mcs/; revision=48519
2005-08-18 19:36:17 +00:00
Sebastien Pouliot ccfef2f152 2005-06-10 Sebastien Pouliot <[email protected]>
* all: 2.0 beta2 fixes, i.e. mostly added [ComVisible(true)]


svn path=/trunk/mcs/; revision=45759
2005-06-10 14:42:08 +00:00
Sebastien Pouliot 6d616545ae 2005-05-19 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Don't use the global hashtables until the 
	initialization is complete.


svn path=/trunk/mcs/; revision=44752
2005-05-19 14:30:23 +00:00
Sebastien Pouliot f52b213aba 2005-05-18 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Changed lock pattern to second version of
	http://www.skeet.org.uk/csharp/singleton.html


svn path=/trunk/mcs/; revision=44682
2005-05-18 14:07:55 +00:00
Sebastien Pouliot 5a4ca148d7 2005-05-16 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Initialization wasn't threadsafe as the "checked" 
	value was assigned at the start of the initialization.


svn path=/trunk/mcs/; revision=44560
2005-05-16 13:20:35 +00:00
Sebastien Pouliot d9979d9eb2 2005-04-25 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Removed RSA OID and added null check in EncodeOID
	in NET_2_0 to match beta2.
	* DES.cs: Added null check for IsWeakKey and IsSemiWeakKey in NET_2_0
	to match beta2.
	* SymmetricAlgorithm.cs: Throw CryptographicException when feedback is
	zero in NET_2_0 to match beta2
	* TripleDES.cs: Added null check for IsWeakKey in NET_2_0 to match 
	beta2.


svn path=/trunk/mcs/; revision=43554
2005-04-25 17:22:53 +00:00
Sebastien Pouliot c104d45fa3 2005-04-05 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Added Assert for FileIOPermission to LoadConfig so 
	the configuration can be read under partial trust.


svn path=/trunk/mcs/; revision=42585
2005-04-05 22:43:35 +00:00
Sebastien Pouliot 4c4bf86b0a 2005-03-24 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Added LinkDemand for unrestricted to CreateFromName
	when used to create instance with object[] parameters.
	* CryptoAPITransform.cs: Added Demand for UnmanagedCode to KeyHandle 
	property.


svn path=/trunk/mcs/; revision=42205
2005-03-24 13:16:29 +00:00
Sebastien Pouliot c9acd6f2a3 2005-01-11 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Added support to create RIPEMD160 and the new HMAC
	algorithms (HMACMD5, HMACRIPEMD160, HMACSHA256, HMACSHA384 and 
	HMACSHA512). This fix the unit tests failures in Mono.Security.dll in
	the NET_2_0 profile.


svn path=/trunk/mcs/; revision=38685
2005-01-11 13:00:12 +00:00
Sebastien Pouliot 856abd7608 2005-01-10 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Change the OID for SHA-2 algorithms to match 2.0
	and added new OID for asymmetric and symmetric algorithms.
	* CspKeyContainerInfo.cs: Added CryptoKeySecurity property. This will
	always return null until we support access control for key containers.
	* CspParameters.cs: Added new constructors and propertys for access 
	control and password (2.0).
	* DSASignatureDeformatter.cs: Throw ArgumentNullException in NET_2_0 
	if a null key is specified.
	* DSASignatureFormatter.cs: Throw ArgumentNullException in NET_2_0 if
	a null key is specified.
	* HashAlgorithm.cs: Fix the reported exceptions for output buffers.
	* HMAC.cs: Change the .Clear (which calls Dispose) to a .Initialize.
	* MACTripleDES.cs: Removed unrequired private field _padding.
	* PasswordDeriveBytes.cs: Added 4 new constructors where the password
	is a byte[] (as it seems MS won't be using SecureString for this).
	* RIPEMD160Managed.cs: Removed overriden Dispose method to match 2.0.
	Clear buffers when initializing (e.g. re-using the hash instance).
	* Rfc2898DeriveBytes.cs: Added a new constructor where the password
	is a byte[] (as it seems MS won't be using SecureString for this).
	* RSAPKCS1SignatureDeformatter.cs: Throw ArgumentNullException in
	NET_2_0 if a null key is specified.
	* RSAPKCS1SignatureFormatter.cs: Throw ArgumentNullException in
	NET_2_0 if a null key is specified.
	* ToBase64Transform.cs: Fix the reported exceptions for output buffers.


svn path=/trunk/mcs/; revision=38667
2005-01-11 01:18:39 +00:00
Tim Coleman e2a28894d0 2004-09-03 Tim Coleman ([email protected])
* CryptoConfig.cs: Add new Xml cryptography class info.

svn path=/trunk/mcs/; revision=33300
2004-09-03 17:59:00 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Sebastien Pouliot f40db6fe6c 2004-05-07 Sebastien Pouliot <[email protected]>
* 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
2004-05-07 11:35:22 +00:00
Sebastien Pouliot 24051a0107 2004-05-03 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Specify version and public key token when loading
	System.Security.dll for XML Digital Signature classes.

svn path=/trunk/mcs/; revision=26629
2004-05-03 19:41:11 +00:00
Sebastien Pouliot 7575d79067 2004-04-26 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Oops - forgot to commit

svn path=/trunk/mcs/; revision=26026
2004-04-26 22:58:32 +00:00
Martin Baulig dfedf08d98 2004-04-22 Martin Baulig <[email protected]>
Renamed the `NET_1_2' conditional to `NET_2_0' in all files.

svn path=/trunk/mcs/; revision=25877
2004-04-23 02:24:02 +00:00
Sebastien Pouliot aba1630c13 2003-12-15 Sebastien Pouliot <[email protected]>
* 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
2003-12-15 20:00:43 +00:00
Sebastien Pouliot df74b0caca 2003-11-09 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Updated for RIPEMD160 and HMAC.
	* CspKeyContainerInfo.cs: New (1.2). Information about CSP based key
	containers.
	* DataProtectionScope.cs: New (1.2). Enumeration for ProtectedData.
	* HMAC.cs: New (1.2). Base class for all HMAC. Code is mostly copied
	from internal Mono.Security.Cryptography.HMACAlgorith.cs.
	* HMACMD5.cs: New (1.2). HMAC implementation using MD5.
	* HMACRIPEMD160.cs: New (1.2). HMAC implementation using RIPEMD160.
	* HMACSHA1.cs: Modified to derive from HMAC for .NET 1.2.
	* HMACSHA256.cs: New (1.2). HMAC implementation using SHA256.
	* HMACSHA384.cs: New (1.2). HMAC implementation using SHA384.
	* HMACSHA512.cs: New (1.2). HMAC implementation using SHA512.
	* ICspAsymmetricAlgorithm.cs: New (1.2). Interface for CSP based
	asymmetric algorithm.
	* KeyNumber.cs: New (1.2). Enumeration for CspKeyContainerInfo.
	* MemoryProtectionScope.cs: New (1.2). Enumeration for ProtectedMemory.
	* PaddingMode.cs: Added two new padding modes to enumeration (for 1.2).
	* ProtectedData.cs: New (1.2). ProtectedData without protection (TODO).
	* ProtectedMemory.cs: New (1.2). Stub for ProtectedMemory.
	* Rfc2898DeriveBytes.cs: New (1.2). Stub for PKCS5 PBKDF2.

svn path=/trunk/mcs/; revision=19761
2003-11-09 14:35:28 +00:00
Sebastien Pouliot 0add9abe32 2003-07-05 Sebastien Pouliot <[email protected]>
* AsymmetricAlgorithm.cs: Removed AsymmetricParameters (IReader) class.
	Now uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
	* CryptoConfig.cs: Removed CorlibHandler and CorlibReader classes. Now
	uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
	* DSA.cs: Removed DSAHandler (IHandler) class. Now uses the new
	Mono.Xml.SecurityParser (xml -> SecurityElement)
	* DSACryptoServiceProvider.cs: Added ObjectDisposedException support
	and fixed bugs found in new unit tests.
	* RSA.cs: Removed DSAHandler (IHandler) class. Now uses the new
	Mono.Xml.SecurityParser (xml -> SecurityElement)
	* RSACryptoServiceProvider.cs: Added ObjectDisposedException support
	and fixed bugs found in new unit tests.

svn path=/trunk/mcs/; revision=15971
2003-07-06 02:48:57 +00:00
Sebastien Pouliot f032ef7fc5 2003-06-09 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Now support OID in machine.config.
	* DSACryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
	* KeySizes.cs: Changed USE_VERSION_1_0 for NET_1_0.
	* MD5CryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
	* RNGCryptoServiceProvider.cs: Changed USE_VERSION_

svn path=/trunk/mcs/; revision=15255
2003-06-10 00:47:37 +00:00
Sebastien Pouliot 66e393eccc 2003-02-08 Sebastien Pouliot <[email protected]>
* Changes to refer Mono.Xml

svn path=/trunk/mcs/; revision=11353
2003-02-08 16:31:12 +00:00
Sebastien Pouliot 3f9d0cab18 2003-03-04 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Added initital support for "machine.config"
	(limited to algorithms, not OIDs). Modified CreateFromName to use
	the fully qualified class names (and removed xmldsig hack). Added
	algorithm names documented in book ".NET Framework Security".

svn path=/trunk/mcs/; revision=11228
2003-02-05 03:38:17 +00:00
Sebastien Pouliot a207a19f3b 2002-11-17 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Added full classes name for MapNameToOID.
	* PKCS1.cs: New. Internal class for the various primitives defined
	in PKCS#1 v.2.1.
	* PKCS1MaskGenerationFunction.cs: Modified to use PKCS1.cs.
	* RSA.cs: Added internal class RSAHandler (which implements IHandler
	interface for MiniParser) to import RSA keypairs from XML strings.
	* RSACryptoServiceProvider.cs: Crypto implemented using BigInteger.
	Key generation is VERY LONG.
	* RSAOAEPKeyExchangeDeformatter.cs: Completed using PKCS1. Not sure
	of the results as this is not available in all versions of Windows.
	* RSAOAEPKeyExchangeFormatter.cs: Completed using PKCS1. Not sure
	of the results as this is not available in all versions of Windows.
	* RSAPKCS1KeyExchangeDeformatter.cs: Completed using PKCS1.
	* RSAPKCS1KeyExchangeFormatter.cs: Completed using PKCS1.
	* RSAPKCS1SignatureDeformatter.cs: Completed using PKCS1.
	* RSAPKCS1SignatureFormatter.cs: Completed using PKCS1.

svn path=/trunk/mcs/; revision=9035
2002-11-17 21:49:53 +00:00
Sebastien Pouliot db91d39fd8 *** empty log message ***
svn path=/trunk/mcs/; revision=9023
2002-11-17 03:46:31 +00:00
Sebastien Pouliot fcc5d5158d Initial version.
svn path=/trunk/mcs/; revision=8124
2002-10-10 02:50:10 +00:00