10 Commits
Author SHA1 Message Date
Alexander Köplinger 01f56e7d4e [System.Security] Switch tests to use embedded test resources 2018-09-27 22:47:05 +02:00
Vladimir Kazakov d036958986 XMLDSIG from .NET Core. (#6154) 2018-01-04 23:20:13 +01:00
Manuel de la Pena b73480af34 [Tests] Ensure that only a subset of the System.Security tests are ran on mobile platforms.
(cherry picked from commit 9f696f0eab)
2017-11-01 03:18:15 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Sebastien Pouliot 1bad75202f 2008-11-01 Sebastien Pouliot <[email protected]>
* EncryptedXmlTest.cs: Add null check test cases for many methods.
	* SignedXmlTest.cs: New. Check that GetIdElement returns null when
	either parameter is null.
	* TransformTest.cs: New. Check null check behavior.
	* XmlDecryptionTransformTest.cs: New. Check null check behavior.
	* XmlDsigC14NTransformTest.cs: Confirm MS.NET NRE behavior inside
	GetDigestedOutput method.
	* XmlDsigExcC14NTransformTest.cs: Confirm MS.NET NRE behavior inside
	GetDigestedOutput method.


svn path=/trunk/mcs/; revision=117620
2008-11-02 00:21:25 +00:00
Atsushi Eno 24da8a2f2a 2006-09-22 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs : use Padding member instead of const ISO10126 (though
	  I doubt it should be there). Use it in DecryptData().

	* EncryptedXmlTest.cs, EncryptedXmlSample3.xml :
	  another decryption test for padding sanity.

	* Makefile:
	  Added Test/S.S.C.Xml/EncryptedXmlSample3.xml to EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=65804
2006-09-22 04:32:02 +00:00
Atsushi Eno 614d7f4d2f 2006-09-21 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs : implement orthodox padding on encryption.

	* EncryptedXmlTest.cs : added roundtrip sample i.e. encryption test.


svn path=/trunk/mcs/; revision=65800
2006-09-22 01:16:12 +00:00
Atsushi Eno 8d2ce38aae 2006-09-21 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs :
	  Handle orthodox padding (xmlenc spec section 5.2). However, like 
	  EncryptedXmlSample1, it might not exist, so make it optional.

	* EncryptedXmlTest.cs, EncryptedXmlSample2.xml :
	  Added another case that expects correct padding processing which is 
	  specified in W3C xmlenc spec section 5.2.

	* Makefile:
	  Added Test/S.S.C.Xml/EncryptedXmlSample2.xml to EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=65766
2006-09-21 14:10:41 +00:00
Atsushi Eno 323f2b939c 2006-09-21 Atsushi Enomoto <[email protected]>
* EncryptedXmlTest.cs :
	  removed problematic culture change (was for debugging).


svn path=/trunk/mcs/; revision=65760
2006-09-21 12:50:51 +00:00
Atsushi Eno eb9e570294 2006-09-21 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs : True fix for DecryptData(). It indeed uses block size
	  (or possibly IV size) in Transform(), but only for stripping the heading
	  n bytes garbage.

	* EncryptedXmlTest.cs : new file. Added practical example.
	* EncryptedXmlSample1.xml, sample.pfx : support files for the above test.

	* System.Security_test.dll.sources: added EncryptedXmlTest.cs.
	* Makefile: added some extra test support files as EXTRA_DISTFILES.


svn path=/trunk/mcs/; revision=65750
2006-09-21 07:25:48 +00:00