Commit Graph
23 Commits
Author SHA1 Message Date
Miguel de Icaza 93b810834d [class libraries] drop ONLY_1_1 2012-06-02 21:31:50 -04:00
Sebastien Pouliot a4bdc71082 2010-05-10 Sebastien Pouliot <[email protected]>
* DES.cs:
	* DESCryptoServiceProvider.cs:
	* RC2.cs:
	* RC2CryptoServiceProvider.cs:
	* TripleDES.cs:
	* TripleDESCryptoServiceProvider.cs:
		Remove !MOONLIGHT check since we need those for SSL


svn path=/trunk/mcs/; revision=157053
2010-05-10 19:50:31 +00:00
Jb Evain a3f7ce80a7 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153667
2010-03-16 12:19:11 +00: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
Jb Evain 288e614ea4 bring Mono Security to monotouch
svn path=/trunk/mcs/; revision=141615
2009-09-09 15:34:58 +00:00
Sebastien Pouliot a55f339a8f In Mono.Security.Cryptography:
2009-04-29  Sebastien Pouliot  <[email protected]>

	* PKCS1.cs: Make this work under NET_2_1 where SHA384 and SHA512
	are not available in the BCL.

In System.Security.Cryptography:
2009-04-29  Sebastien Pouliot  <[email protected]> 

	* DES.cs, DESCryptoServiceProvider.cs: Do not include in NET_2_1
	* HMACMD5.cs, HMACRIPEMD160.cs, HMACSHA384.cs, HMACSHA512.cs: Do 
	not include in NET_2_1
	* MACTripleDES.cs: Do not include in NET_2_1
	* RC2.cs, RC2CryptoServiceProvider.cs: Do not include in NET_2_1
	* Rijndael.cs, RijndaelManaged.cs, RijndaelManagedTransform.cs:
	Do not include in NET_2_1 (AES is available in System.Core.dll)
	* RIPEMD160.cs, RIPEMD160Managed.cs: Do not include in NET_2_1
	* SHA1CryptoServiceProvider.cs: Do not include in NET_2_1, however
	SHA1Managed is available.
	* SHA384.cs, SHA384Managed.cs: Do not include in NET_2_1
	* SHA512.cs, SHA512Managed.cs: Do not include in NET_2_1
	* TripleDES.cs, TripleDESCryptoServiceProvider.cs: Do not include
	in NET_2_1


svn path=/trunk/mcs/; revision=133013
2009-04-29 14:23:19 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Sebastien Pouliot a1b49ce673 2005-10-21 Sebastien Pouliot <[email protected]>
* DESCryptoServiceProvider.cs: Don't change the instance key/iv when
	creating an encryptor or decryptor specifying them. Generate a new key
	if null is specified (not really useful but compatible with MS 
	behaviour). Check for weak/semi-weak key when creating transforms.
	* RC2CryptoServiceProvider.cs: Don't change the instance key/iv when 
	creating an encryptor or decryptor specifying them. Check legal key
	sizes when creating transforms.
	* RijndaelManaged.cs: Don't change the instance key/iv when creating 
	an encryptor or decryptor specifying them. Check legal key sizes when
	creating transforms.
	* TripleDESCryptoServiceProvider.cs: Don't change the instance key/iv
	when creating an encryptor or decryptor specifying them. Generate a 
	new key if null is specified (not really useful but compatible with MS
	behaviour). Check for weak key when creating transforms.


svn path=/trunk/mcs/; revision=52043
2005-10-21 19:09:44 +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 b86b6aa365 2004-11-26 Sebastien Pouliot <[email protected]>
* CryptoAPITransform.cs: 
	* DSACryptoServiceProvider.cs: 
	* MACTripleDES.cs:
	* RC2CryptoServiceProvider.cs: 
	* RSACryptoServiceProvider.cs: 
		Added ComVisible attributes to match 2.0 October Preview.


svn path=/trunk/mcs/; revision=36637
2004-11-26 14:46:30 +00:00
Sebastien Pouliot 15ed7fe07d 2004-07-07 Sebastien Pouliot <[email protected]>
* DES.cs: Fixed FeedbackSizeValue to 8.
	* RC2.cs: Fixed FeedbackSizeValue to 8.
	* RC2CryptoServiceProvider.cs: When key size is different from
	effective key size we throw CryptographicUnexpectedOperationException.
	* TripleDES.cs: Fixed FeedbackSizeValue to 8.

svn path=/trunk/mcs/; revision=30846
2004-07-07 17:06:02 +00:00
Sebastien Pouliot 7c32587fbf 2004-07-07 Sebastien Pouliot <[email protected]>
* CryptoAPITransform.cs: Added the new Reset method for NET_2_0. This
	is a NOP as this class isn't used by Mono (all crypto transforms are
	managed).
	* CryptographicException.cs: Added _Exception interface for NET_2_0
	profile.
	* CspProviderFlags.cs: Added new enum's members for NET_2_0.
	* DSA.cs: Changed constructor to protected for NET_2_0. It is now
	possible to inherit from DSA in other assemblies.
	* DSACryptoServiceProvider.cs: NET_2_0 cleanup. Added interface
	ICspAsymmetricAlgorithm (stub),	removed (unrequired) LegalKeySizes
	override, fixed visibility of PublicOnly property.
	* HMACSHA1.cs: Fixed #if for NET_2_0 profile.
	* KeyNumber.cs: Fixed values for new enum in Fx 2.0.
	* MACTripleDES.cs: Added new Padding property to NET_2_0 profile.
	* ProtectedData.cs: Added missing private constructor.
	* ProtectedMemory.cs: Added missing private constructor.
	* RC2CryptoServiceProvider.cs: Added UseSalt property to NET_2_0
	profile. Salt usage must be added to the transforms.
	* RIPEMD160Managed.cs: Removed unrequired [CLSCompliant] attributes.
	* RSACryptoServiceProvider.cs: NET_2_0 cleanup. Added interface
	ICspAsymmetricAlgorithm (stub),	fixed visibility of PublicOnly
	property.
	* RijndaelManaged.cs: Use the new RijndaelManagedTransform for Fx 2.0.
	* RijndaelManagedTransform.cs: New. Class is now public in Fx 2.0.

svn path=/trunk/mcs/; revision=30833
2004-07-07 14:02:27 +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 340663a90a 2004-05-06 Sebastien Pouliot <[email protected]>
* 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
2004-05-06 16:19:57 +00:00
Ben Maurer 645621c057 const/readonly lovin'
svn path=/trunk/mcs/; revision=26349
2004-04-29 22:01:06 +00:00
Sebastien Pouliot 5e535232a9 2003-02-08 Sebastien Pouliot <[email protected]>
* Changes to refer Mono.Math and Mono.Security.Cryptography

svn path=/trunk/mcs/; revision=11347
2003-02-08 12:55:27 +00:00
Sebastien Pouliot 42f3785d41 2003-01-03 Sebastien Pouliot <[email protected]>
* RC2CryptoServiceProvider.cs: Now about 2 time faster by inlining
	methods and changing to UInt16 (instead of UInt32).

svn path=/trunk/mcs/; revision=10091
2003-01-03 03:27:10 +00:00
Sebastien Pouliot 1d085448a2 2002-12-27 Sebastien Pouliot <[email protected]>
* CryptoTools.cs: New. Shared classes for cryptography. Now
	includes a KeyBuilder to generate symmetric keys and IV.
	* DES.cs: Modified Key validation.
	* DESCryptoServiceProvider.cs: Implemented Key and IV using
	KeyBuilder.
	* RC2CryptoServiceProvider.cs: Implemented Key and IV using
	KeyBuilder (and removed TODO).
	* RijndaelManaged.cs: Implemented Key and IV using KeyBuilder
	(and removed TODO).
	* SHA384Managed.cs: Changed code to remove compiler warning.
	* SHA512Managed.cs: Changed code to remove compiler warning.
	* SymmetricAlgorithm.cs: Removed TODO on IV.
	* TripleDESCryptoServiceProvider.cs: Implemented Key and IV
	using KeyBuilder (and removed TODO).

svn path=/trunk/mcs/; revision=9933
2002-12-27 18:32:44 +00:00
Sebastien Pouliot 55a6430bfb 2002-11-15 Sebastien Pouliot <[email protected]>
* CryptographicUnexpectedOperationException.cs: Forgot it last time!
	* FromBase64Transform.cs: Added missing virtual to CanReuseTransform.
	Changed Dispose().
	* HashAlgorithm.cs: Changed Dispose().
	* MD5CryptoServiceProvider.cs: Added destructor and Dipose(bool).
	* PasswordDeriveBytes.cs: Changed some declaration from
	protected to private.
	* RC2.cs: Added valid keysize check in EffectiveKeySize.
	* RC2CryptoServiceProvider.cs: Overriden EffectiveKeySize to match
	corlib declarations.
	* RSAOAEPKeyExchangeDeformatter.cs: Changed some declaration from
	protected to private.
	* RSAOAEPKeyExchangeFormatter.cs: Changed some declaration from
	protected to private.
	* RSAPKCS1KeyExchangeDeformatter.cs: Changed some declaration from
	protected to private.
	* RSAPKCS1KeyExchangeFormatter.cs: Changed some declaration from
	protected to private.
	* RSAPKCS1SignatureDeformatter.cs: Changed some declaration from
	protected to private.
	* RSAPKCS1SignatureFormatter.cs: Changed some declaration from
	protected to private.
	* SHA1CryptoServiceProvider.cs: Moved SHA1 code to SHA1Internal.
	SHA1CryptoServiceProvider now use SHA1Internal. Added Dispose and
	destructor.
	* SHA1Managed.cs: New. Use SHA1Internal. Same as
	SHA1CryptoServiceProvider but is required for binary compatibility.
	* SHA256Managed.cs: Changed some declaration from protected to private.
	* SHA384Managed.cs: Changed some declaration from protected to private.
	* SHA512Managed.cs: Changed some declaration from protected to private.
	* SymmetricAlgorithm.cs: Added Clear(), changed Dispose() and added
	virtual to Dispose(bool).
	* ToBase64Transform.cs: Added missing virtual to CanReuseTransform.
	Changed Dispose().
	* TripleDESCryptoServiceProvider.cs: Added missing sealed to class
	declaration.

svn path=/trunk/mcs/; revision=8998
2002-11-15 14:39:21 +00:00
Gonzalo Paniagua Javier 15119aee06 2002-10-21 Gonzalo Paniagua Javier <[email protected]>
* RC2CryptoServiceProvider.cs: fixed end of lines (changed from \r
	to \n).

svn path=/trunk/mcs/; revision=8450
2002-10-21 17:04:53 +00:00
Sebastien Pouliot 2472188b6f 2002-10-20 Sebastien Pouliot <[email protected]>
* SymmetricAlgorithm.cs: Added better Dispose support
	* DES.cs: Now only contains the abstract DES class.
	* DESCryptoServiceProvider.cs: Added the DESTransform class (inherited
	from SymmetricTransform) based the old DESCore and DESTransformBase code
	* RC2.cs: Fixed EffectiveKeySize == 0
	* RC2CryptoServiceProvider.cs: Added the RC2Transform class (inherited
	from SymmetricTransform) based on the old RC2lImpl code. Unrolled some loops.
	* RjindaelManaged.cs: Few more optimizations while looking for decrypting bug
	* TripleDESCryptoServiceProvider.cs: New. Implement TripleDESTransform from
	DESTransform (non-optimal but working :-).

svn path=/trunk/mcs/; revision=8423
2002-10-20 18:11:27 +00:00
Sebastien Pouliot da82e0e5cb 2002-10-12 Sebastien Pouliot <[email protected]>
* ICryptoTransform.cs: Now inherits from IDisposable
	* RC2CryptoServiceProvider.cs: Added Dispose() to RC2Impl because it inherits ICryptoTransform
        * CryptoAPITransform.cs: Added Dispose() to CryptoAPITransform... ICryptoTransform
        * RijndaelManaged.cs: Added Dispose() to RijndaelController...ICryptoTransform
        * FromBase64Transform.cs: Added Dispose() to FromBase64Transform...ICryptoTransform
        * ToBase64Transform.cs: Added Dispose() to ToBase64Transform...ICryptoTransform
        * DESCryptoServiceProvider.cs: Added Dispose() to DESTransformBase...ICryptoTransform

svn path=/trunk/mcs/; revision=8199
2002-10-12 16:22:31 +00:00
Andrew Birkett 598ec44596 2002-10-05 Andrew Birkett <[email protected]>
* RC2CryptoServiceProvider.cs: New implementation
	* RC2.cs: New implementation

svn path=/trunk/mcs/; revision=8001
2002-10-05 18:32:20 +00:00