Commit Graph
9 Commits
Author SHA1 Message Date
Pablo Ruiz Garcia 6276334d1b [API] X509 related enhacemnts to allow 1) associating keystore's private keys with their corresponding public certificates found at X509Stores, and 2) importing private keys to X509Stores along with certificates.
mcs/class/corlib/Mono.Security.X509/X509Store.cs:
mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs:
mcs/class/corlib/Mono.Security.X509/X509StoreManager.cs:
mcs/class/Mono.Security/Mono.Security.X509/X509StoreManager.cs:
	Modified MSX.X509Store to allow importing privateKeys along certificates (by using RSACryptoServiceProvider and KeyPairPersister).
	Fixed X509Store to use certificate's hash as CspParameters.KeyContainerName.

mcs/tools/security/certmgr.cs:
	Added a new -importKey action to certmgr, which allows importing a PKCS12 contained key into our KeyPair store.
	Added a more (verbose) output to certmgr's -list action.

man/certmgr.1:
	Updated certmgr man page ti reflect -importKey addition.

mcs/class/corlib/System.Security.Cryptography/CspParameters.cs:
mcs/class/corlib/System.Security.Cryptography/RSACryptoServiceProvider.cs:
	Implemented RSACryptoServiceProvider.CspKeyContainerInfo getter
	RSACryptoServiceProvider will not take into account CspParameterFlags.UseExistingKey by throwing a CryptographicException if keyset identified by KeyContainerName does not exists.
2010-11-02 19:26:22 -04:00
Miguel de Icaza 3c39ac4586 Jumbo patch for NET_2_0, mscorlib is now clean
svn path=/trunk/mcs/; revision=145621
2009-11-06 22:23:59 +00:00
Andreas N ca4b3b3ea2 2008-07-03 Andreas Nahr <[email protected]>
* SHA512Managed.cs:
	* SHA384Managed.cs:
	* SHA256Managed.cs:
	* SHA1Managed.cs:
	* SHA1CryptoServiceProvider.cs:
	* RSAPKCS1KeyExchangeDeformatter.cs:
	* RSACryptoServiceProvider.cs:
	* RSA.cs:
	* RIPEMD160Managed.cs:
	* RC2.cs:
	* PKCS1MaskGenerationMethod.cs:
	* MD5CryptoServiceProvider.cs:
	* MD5.cs:
	* MACTripleDES.cs:
	* HMACSHA512.cs:
	* HMACSHA384.cs:
	* HMACSHA256.cs:
	* HMACSHA1.cs:
	* HMACRIPEMD160.cs:
	* HMACMD5.cs:
	* HMAC.cs:
	* HashAlgorithm.cs:
	* FromBase64Transform.cs:
	* DSACryptoServiceProvider.cs:
	* DES.cs:
	* CspParameters.cs: Fix parameter names

svn path=/trunk/mcs/; revision=107126
2008-07-02 23:56:08 +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
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +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
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 56a1dfe6e8 2004-04-26 Sebastien Pouliot <[email protected]>
* 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
2004-04-26 22:42:53 +00:00
Thomas Neidhart f0b7d41fb9 * Initial versions of several classes, including
DSA base classes and CSP base classes

svn path=/trunk/mcs/; revision=1141
2001-10-11 15:30:20 +00:00