23 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
Martin Baulig 0a5e437519 Move generated resource files from System and System.Security into corlib. (#9665)
* Make `corlib` internals visible to `System.Security` on all profiles, not just monotouch watch.
  
* Moves all generated `SR` files and their generation logic from `System` and `System.Security` into `corlib`.  Since `corlib` internals are visible to these assemblies, we don't need to duplicate the resource strings.

* Cleanup the `RESX_RESOURCE_STRING` is `corlib` and sort them alphabetically.

* Add the internal `Internal.Cryptography.Helpers` helper class from CoreFX to `corlib` (currently unused, but "Blue" will need it).
2018-07-25 12:06:24 +02:00
Maxim Lipnin 7c3304b529 CoreFX import for AlgorithmIdentifier type (#9500)
* bump CoreFX

* CoreFX import for AlgorithmIdentifier type

* Update CoreFX submodule

* [csproj] Update project files
2018-07-13 22:46:50 +02:00
Vladimir Kazakov b39878bbda Finalize the implementation of SignedXml.ComputeSignature(). (#4452)
* Finalize the implementation of SignedXml.ComputeSignature().

The implementation was taken from Reference Source, which makes the behaviour of this method the same as in .NET Framework, as well as makes it possible to use custom signature descriptions.
2017-03-06 11:12:04 +01:00
Sebastien Pouliot 54587bcdea 2008-11-01 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Add new tests to build
		System.Security.Cryptography.Pkcs/CmsRecipientCollectionTest.cs
		System.Security.Cryptography.Xml/TransformTest.cs
		System.Security.Cryptography.Xml/XmlDecryptionTransformTest.cs


svn path=/trunk/mcs/; revision=117623
2008-11-02 00:29:40 +00:00
Gert Driesen 19098dd864 * XmlDsigXsltTranformTest.cs: Added test for .ctor (bool).
* XmlDsigEnvelopedTransformTest.cs: Added test for .ctor (bool). Use
Assert class. Improved properties tests.
* XmlDsigC14TransformTest.cs: Added test for .ctor (bool).
* XmlDsigExcC14NTransformTest.cs: Added .ctor tests and added asserts
IncludsiveNamespacesPrefixList
* XmlDsigExcC14NWithCommentsTransformTest.cs: Added basic .ctor and
properties tests.
* XmlDsigC14NWithCommentsTransformTest.cs: Fixed line endings.
* XmlLicenseTransformTest.cs: Added basic .ctor and properties tests.
* XmlDsigBase64Transform.cs: Use constant for Algorithm namespace.
* XmlDsigExcC14NTransform.cs: Fixed ctors to use WithComments
algorithm if includeComments is true. Assign includeNamespacesPrefixList
to instance field.
* XmlDsigExcC14NWithCommentsTransform.cs: Remove unnecessary
assignment to Algorithm now that base ctor is fixed.
* XmlDsigC14NWithCommentsTransform.cs: Remove unnecessary assignment
to Algorithm now that base ctor is fixed.
* XmlDsigC14NTransform.cs: In default ctor, just invoke .ctor (bool).
In .ctor (bool), assign WithComments algorithm if includeComments is
true. Use constants for Algorithm namespace.
* XmlDsigEnvelopedSignatureTransform.cs: Use constant for Algorithm
namespace.
* XmlDsigXPathTransform.cs: Use constant for Algorithm namespace.
* XmlDsigXsltTransform.cs: Use constant for Algorithm namespace.
* XmlLicenseTransform.cs: Assign Algorithm in ctor.
* XmlSignature.cs: Added constant for XmlLicenseTransform algorithm.
* System.Security_test.dll.sources: Added XmlLicenseTransformTest.cs
and XmlDsigExcC14NWithCommentsTransformTest.cs.

svn path=/trunk/mcs/; revision=115803
2008-10-14 18:33:13 +00:00
Atsushi Eno a0c14ae0ea 2007-01-17 Atsushi Enomoto <[email protected]>
* XmlCanonicalizer.cs : don't output default namespace when the node's
	  namespace is not empty. Check "visibly utilized" namespace nodes in
	  exc-c14n. Also, in exc-c14n, rendered namespaces are not written.
	  Added InclusiveNamespaces PrefixList field (not in use yet).

	* XmlDsigExcC14NTransform.cs :
	  re-imported from XmlDsigC14NTransform.cs.

	* System.Security_test.dll.sources : added
	  XmlDsigExcC14NTransformTest.cs.

	* XmlDsigExcC14NTransformTest.cs : new tests, mostly copied from
	  non-exc test.

	* xmldsig.cs : exc-c14n tests could be run under 2.0 profile (and
	  they are not working correctly yet).
	* Makefile : Added net_2_0 profile support.


svn path=/trunk/mcs/; revision=71220
2007-01-17 17:30:12 +00:00
Sebastien Pouliot f9313c73a5 2006-12-15 Sebastien Pouliot <[email protected]>
* Makefile: Execute PKITS tests only if the data is installed locally.
	See System.dll unit tests for details.
	* System.Security_test.dll.sources: Add some PKITS unit tests to the
	build.


svn path=/trunk/mcs/; revision=69543
2006-12-15 19:30:52 +00:00
Sebastien Pouliot a7fa1e7330 2006-11-08 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Added unit and CAS tests for 
	System.Security.Cryptography.X509Certificates.X509Certificate2UI


svn path=/trunk/mcs/; revision=67535
2006-11-08 14:52:43 +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
Atsushi Eno 690296b936 2006-09-06 Atsushi Enomoto <[email protected]>
* CipherReference.cs, EncryptedReference.cs : unify duplicate code.
	  Remove incorrect name check in the latter class so that it works
	  for DataReference and KeyReference as well.

	* DataReferenceTest.cs : new test.

	* System.Security_test.dll.sources: added DataReferenceTest.cs.


svn path=/trunk/mcs/; revision=64990
2006-09-06 10:30:58 +00:00
Sebastien Pouliot 79edec6fa6 Added new unit/CAS tests for System.Security.Cryptography namespace. Ignore some warnings during tests compilation. Added internal ManagedProtection class to the build.
svn path=/trunk/mcs/; revision=52001
2005-10-20 19:15:32 +00:00
Sebastien Pouliot 6a080fe2bd In Test/System.Security.Cryptography:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* Asn*.cs, Oid*.cs: Moved to System.dll

In Test/System.Security.Permissions:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* StorePermissionAttributeTest.cs: Moved in System.dll

In Test/System.Security.Cryptography.X509Certificates:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* All tests moved to System.dll assembly.
In System.Security.Cryptography:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* Asn*.cs, Oid*.cs: Moved to System.dll
In System.Security.Permissions:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* Store*.cs: Moved in System.dll

In .:
2005-09-26  Sebastien Pouliot  <[email protected]>

	* System.Security.dll.sources: Remove all X509 related classes.
	* System.Security_test.dll.sources: Remove all X509 related tests.
	* System.Security.Cryptography.X509Certificates/*.cs: moved to 
	System.dll assembly.
	* Test/System.Security.Cryptography.X509Certificates/*.cs: moved to
	System.dll assembly.

In System.Security.Cryptography.X509Certificates:
2005-09-26  Sebastien Pouliot  <[email protected]>
	* All classes moved in System.dll

svn path=/trunk/mcs/; revision=50770
2005-09-26 14:08:58 +00:00
Sebastien Pouliot d692be14f4 2005-05-18 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Added unit tests for System.
	Security.Permissions.StorePermissionAttribute class.


svn path=/trunk/mcs/; revision=44673
2005-05-18 11:58:54 +00:00
Sebastien Pouliot c408ffa245 2005-05-03 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Added unit tests for System.
	Security.Cryptography.Pkcs.SignerInfoCollection class.


svn path=/trunk/mcs/; revision=43972
2005-05-03 17:58:08 +00:00
Sebastien Pouliot 26af24ffb3 2005-01-17 Sebastien Pouliot <[email protected]>
* System.Security.dll.sources: Added System.Security.Cryptography.
	X509Certificates/X509EnhancedKeyUsageExtension.cs and 
	X509SubjectKeyIdentifierHashAlgorithm.cs to the build.
	* System.Security_test.dll.sources: Added System.Security.Cryptography
	.Pkcs/Pkcs9ContentTypeTest.cs, Pkcs9MessageDigestTest.cs and System.
	Security.Cryptography.X509Certificates/X509BasicConstraintsExtensionTest.cs,
	X509EnhancedKeyUsageExtensionTest.cs, X509ExtensionTest.cs, 
	X509KeyUsageExtensionTest.cs and X509SubjectKeyIdentifierExtensionTest.cs
	to the unit test assembly.


svn path=/trunk/mcs/; revision=39055
2005-01-17 21:37:48 +00:00
Sebastien Pouliot 6eec88875f 2005-01-05 Sebastien Pouliot <[email protected]>
* Makefile: Don't ignore the CS0119 warnings (private field not used) 
	when building the assembly (the code is already clean for this).
	* System.Security.dll.sources: Add DataProtectionPermission, Attribute
	and Flags to the assembly (moved from corlib).
	* System.Security_test.dll.sources: Add DataProtectionPermission
	Attribute unit tests (moved from corlib unit tests).


svn path=/trunk/mcs/; revision=38362
2005-01-05 15:42:50 +00:00
Sebastien Pouliot bbc7ffba39 2004-12-23 Sebastien Pouliot <[email protected]>
* System.Security.dll.sources: Added System.Security.Cryptography/
	ProtectedData.cs, ProtectedMemory.cs, DataProtectionScope.cs and
	MemoryProtectionScope.cs as they been moved from mscorlib to here.
	* System.Security_test.dll.sources : Added Test/System.Security.
	Cryptography/ProtectedDataTest.cs and ProtectedMemoryTest.cs for the 
	same reason.


svn path=/trunk/mcs/; revision=38060
2004-12-23 13:50:47 +00:00
Sebastien Pouliot 1620eac119 2004-07-09 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Fixed unit tests to work with Fx
	2.0 beta 1.

svn path=/trunk/mcs/; revision=30949
2004-07-09 15:05:12 +00:00
Sebastien Pouliot b47097ea6a 2004-07-07 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Added a lot of existing tests
	(from 1.2 documentation) that were never compiled.

svn path=/trunk/mcs/; revision=30859
2004-07-07 20:00:39 +00:00
Atsushi Eno fccfc83559 2004-03-26 Atsushi Enomoto <[email protected]>
* System.Security_test.dll.sources :
	  Added XmlDsigEnvelopedSignatureTest.cs.

svn path=/trunk/mcs/; revision=24640
2004-03-26 16:24:04 +00:00
Sebastien Pouliot ce4af61c71 2004-02-11 Sebastien Pouliot <[email protected]>
* System.Security_test.dll.sources: Added unit tests for
	XmlDsigXPathTransform.

svn path=/trunk/mcs/; revision=22987
2004-02-11 18:59:24 +00:00
Gonzalo Paniagua Javier 9aba3f2578 New build system
svn path=/trunk/mcs/; revision=16200
2003-07-14 11:55:32 +00:00