Commit Graph
14 Commits
Author SHA1 Message Date
Marc-Andre Ferland 6354f74888 Missing setting disposed to true 2014-09-14 00:27:25 -04:00
Sebastien Pouliot 4526c6c27b For HMAC avoid using the hash names to create instances (since it bring CryptoConfig) when under FULL_AOT_RUNTIME. Also simplify the 'legacy' support for 384/512 2013-05-15 16:37:27 -04:00
Rodrigo Kumpera bbb7592661 Make the Crypto stack work with Full AOT.
* System.Security.Cryptography.*cs: To make Crypto work with
	Full AOT we remove the usage of providers and reflection. We hardcode
	the default algorithms for hashing, rng and symmetric cyphers.
2012-11-06 18:18:16 -05:00
Juho Vähä-Herttua 6fd492dcfb Fix HMACSHA384 and HMACSHA512 for key length of [65, 128] bytes. 2011-09-21 17:16:01 +03: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 647714a2f4 2007-02-14 Sebastien Pouliot <[email protected]>
* HMAC.cs: Handle BlockSizeValue correctly.
	* HMACSHA384.cs: Add support for forthcoming ProduceLegacyHmacValues
	property (in the next service pack).
	* HMACSHA512.cs: Add support for forthcoming ProduceLegacyHmacValues
	property (in the next service pack).


svn path=/trunk/mcs/; revision=72894
2007-02-15 02:03:38 +00:00
Sebastien Pouliot 1f0adb6ab6 2005-06-09 Sebastien Pouliot <[email protected]>
* HMAC.cs: BlockSizeValue has changed from a protected member to
	a protected property.


svn path=/trunk/mcs/; revision=45704
2005-06-09 14:38:34 +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
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
Zoltan Varga 24ed89dca9 2003-12-10 Zoltan Varga <[email protected]>
* HMAC.cs: Fix compilation warnings.

svn path=/trunk/mcs/; revision=20999
2003-12-10 22:25:44 +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