Commit Graph
21 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Marek Safar f0f4f4ae51 More mobile tests update 2013-02-14 13:06:49 +01:00
Marek Safar afa79435aa Update for mobile profile 2013-02-07 16:34:21 +01:00
Miguel de Icaza 2852ed0b59 Update copyrights 2011-09-13 18:26:13 -04:00
Sebastien Pouliot 0466ae48a3 Adjust corlib unit tests to reduce failures when executed on the NET_2_1 profile 2011-09-09 13:43:15 -04:00
Sebastien Pouliot 25280a542d Allow RSACryptoServiceProvider.SignHash to work with SHA-2 family
* System.Security.Cryptography/CryptoConfig.cs: Add OID for RIPEMD160
* System.Security.Cryptography/RSACryptoServiceProvider.cs: Update
GetHashNameFromOID to include SHA2-family OIDs. Remove historical
comments about 1.x FX behavior.

* Test/System.Security.Cryptography/CryptoConfigTest.cs: Add test cases
wrt RIPEMD160 OID
* Test/System.Security.Cryptography/RSACryptoServiceProviderTest.cs: Add
test case for SignHash with all FX-provided hash implementations (all
working except RIPEMD160). Remove some NET_2_0/NET_1_1 defines.
* Test/System.Security.Cryptography/RSAPKCS1SignatureFormatterTest.cs:
Remove hacks that were needed for running the tests under FX 1.x. Remove
some NET_2_0/NET_1_1 defines.
2011-01-11 10:01:56 -05:00
Sebastien Pouliot 2890567651 2008-09-17 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Add test cases for HMAC URI.


svn path=/trunk/mcs/; revision=113342
2008-09-17 18:23:59 +00:00
Sebastien Pouliot b7f96e7ff3 2007-03-22 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Fix upper/lower/mixed cases tests as they work 
	only for 2.0.


svn path=/trunk/mcs/; revision=74810
2007-03-22 14:51:08 +00:00
Roei Erez 42930a5f97 Adding some TARGET_JVM tags.
svn path=/trunk/mcs/; revision=74388
2007-03-15 15:38:38 +00:00
Sebastien Pouliot a3f776bbdd 2007-02-14 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Adjust line-endings.
	* CryptoStreamTest.cs: Adjust line-endings.
	* DESTest.cs: Adjust line-endings.
	* DSACryptoServiceProviderTest.cs: Adjust line-endings.
	* DSATest.cs: Adjust line-endings.
	* RSACryptoServiceProviderTest.cs: Adjust line-endings.


svn path=/trunk/mcs/; revision=72893
2007-02-15 02:00:27 +00:00
Sebastien Pouliot fd0689388f 2006-11-24 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Added test case for X509Chain.


svn path=/trunk/mcs/; revision=68430
2006-11-24 14:45:55 +00:00
Sebastien Pouliot c7ce314e54 2006-10-11 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Added test cases to ensure lower/mixed-case of 
	algorithm names are supported by CreateFromName and MapNameToOID (fix 
	bug #79641). Updated some OID that were changed (well nulled) in the 
	final 2.0 release of MS framework.


svn path=/trunk/mcs/; revision=66548
2006-10-11 12:45:03 +00:00
Sebastien Pouliot 822235c4de 2005-04-25 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Check that ArgumentNullException is throw in
	EncodeOID for 2.0. Comment test for RSA OID (2.0).
	* DESTest.cs: Check that null keys throws CryptographicException in 
	IsWeakKey and IsSemiWeakKey for 2.0.
	* TripleDESTest.cs: Check that null keys throws CryptographicException
	in IsWeakKey for 2.0.
	* SymmetricAlgorithm2Test.cs: Check that a FeedbackSize of zero throws
	a CryptographicException in 2.0.


svn path=/trunk/mcs/; revision=43555
2005-04-25 17:26:14 +00:00
Sebastien Pouliot 09ad4137d8 2005-01-11 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Added new RIPEMD160 hash algorithm and new HMAC
	algorithms (HMACMD5, HMACRIPEMD160, HMACSHA256, HMACSHA384 and 
	HMACSHA512) to the tests.


svn path=/trunk/mcs/; revision=38684
2005-01-11 12:57:11 +00:00
Sebastien Pouliot 1d2f1d82f4 2004-07-07 Sebastien Pouliot <[email protected]>
* AllTests2.cs: Updated to NUnit 2.2 Assert.
	* CipherModeTest.cs: New. Tests supported CipherMode for all
	SymmetricAlgorithm included in the framework (enum contains two more
	modes that aren't implemented in any Fx version).
	* CryptoConfigTest.cs: Ajusted new OID (for old names) in Fx 2.0.
	* CryptoStreamTest.cs: Fixed different reported exception in Fx 2.0.
	Fixed a bad test.
	* CspProviderFlagsTest.cs: New. Test the values of the enum.
	* DSACryptoServiceProviderTest.cs: Added new tests for new public
	properties and methods added in Fx 2.0. Duplicated test to import a
	key pair into a disposed instance (works in Fx 2.0). Removed all
	[Ignore]s in NET_2_0 as the MS class/runtime has been fixed.
	* DSASignatureDeformatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
	different reported exception in Fx 2.0.
	* DSASignatureFormatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
	different reported exception in Fx 2.0.
	* HMACRIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
	* HMACSHA1Test.cs: Fixed tests so they work on both NET_1_1 and
	NET_2_0 profiles (as HMACSHA1 changed it's base class).
	* HashAlgorithmTest.cs: Fixed different reported exception in Fx 2.0.
	Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
	* MACTripleDESTest.cs: Fixed tests so they work on both NET_1_1 and
	NET_2_0 profiles.
	* PKCS1MaskGenerationMethodTest.cs: Removed [Ignore] in NET_2_0 as the
	MS class has been fixed.
	* PaddingModeTest.cs: Added new tests for the two new padding mode
	introduced in Fx 2.0. Converted to NUnit 2.2.
	* PasswordDeriveBytesTest.cs: Removed [ExpectedException] for
	StrangeBehaviour test as it is fixed in Fx 2.0.
	* RC2Test.cs: Changed exception from CryptographicException to
	CryptographicUnexpectedOperationException for Fx 1.1/2.0.
	* RIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
	* RSACryptoServiceProviderTest.cs: Added new tests for new public
	properties and methods added in Fx 2.0. Duplicated test to import a
	key pair into a disposed instance (works in Fx 2.0). Duplicated test
	to sign with a null OID (Fx 2.0 use SHA1 oid in this case).
	* RSAOAEPKeyExchangeDeformatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0).
	* RSAOAEPKeyExchangeFormatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0).
	* RSAPKCS1KeyExchangeFormatterTest.cs: Changed exception for a key
	exchange with no key (to match Fx 2.0). Removed [Ignore] in NET_2_0 as
	the MS class/runtime has been fixed.
	* RSAPKCS1SignatureDeformatterTest.cs: Null keys, in constructor or in
	SetKey method, now throw an ArgumentNullException in Fx 2.0.
	* RSAPKCS1SignatureFormatterTest.cs: Null keys, in constructor or in
	SetKey method, now throw an ArgumentNullException in Fx 2.0.
	* Rfc2898DeriveBytesTest.cs: Typecasted a null as a string.
	* SymmetricAlgorithm2Test.cs: In Fx 2.0 an empty IV now throws a
	CryptographicException.
	* ToBase64TransformTest.cs: Fixed different reported exception in Fx 2.0.
	Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.

svn path=/trunk/mcs/; revision=30836
2004-07-07 14:20:04 +00:00
Sebastien Pouliot 233eee3e86 2003-12-15 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Converted unit tests to NUnit2.

svn path=/trunk/mcs/; revision=21202
2003-12-15 20:06:24 +00:00
Sebastien Pouliot 572fe3eb74 2003-03-04 Sebastien Pouliot <[email protected]>
* CryptoConfigTest.cs: Added new tests for algorithms
	documented in book ".NET Framework Security".

svn path=/trunk/mcs/; revision=11229
2003-02-05 03:40:23 +00:00
Nick Drochak 99a25b98bd 2002-12-21 Nick Drochak <[email protected]>
* all: make tests build and run under nunit2

svn path=/trunk/mcs/; revision=9817
2002-12-21 14:15:43 +00:00
Sebastien Pouliot 619d5022f2 2002-11-16 Sebastien Pouliot <[email protected]>
* AllTests.cs: Added suites for DSASignatureDeformatter,
	DSASignatureFormatter.
	* CryptoConfigTest.cs: Tests new URLs. This test will fail
	if System.Security.dll isn't present (or not yet compiled).
	* DSACryptoServiceProviderTest.cs: New. Key generation (limited
	because it's too slow), Import/Export, Signature and Verification.
	* DSASignatureDeformatterTest.cs: New. Test signature verification.
	* DSASignatureFormatterTest.cs: New. Test signature creation.
	* DSATest.cs: Comment DSA-derived test class as DSA constructor
	is internal. Reworked the test suite.
	* SignatureDescriptionTest.cs: Added tests for
	DSASignatureDescription and RSAPKCS1SHA1SignatureDescription.

svn path=/trunk/mcs/; revision=9021
2002-11-17 03:41:06 +00:00
Nick Drochak 807460a70a 2002-10-16 Nick Drochak <[email protected]>
* CryptoConfigTest.cs (TestCreateFromName): Disable tests for
	algorithms that aren't in the build yet.

svn path=/trunk/mcs/; revision=8314
2002-10-16 13:55:10 +00:00
Sebastien Pouliot 19ef8e7c35 2002-10-09 Sebastien Pouliot <[email protected]>
svn path=/trunk/mcs/; revision=8125
2002-10-10 03:21:49 +00:00