Commit Graph
20 Commits
Author SHA1 Message Date
Sebastien Pouliot bd6370ad74 2008-11-01 Sebastien Pouliot <[email protected]>
* EncryptedXml.cs: Add proper null check inside methods.
	* SignedXml.cs: GetIdElement returns null if either of its parameter
	is null.
	* Transform.cs: Comment compatibility-NRE in GetDigestedOutput.
	* XmlDecryptionTransform.cs: IsTargetElement returns null if either
	of its parameter is null.
	* XmlDsigC14NTransform.cs: Comment compatibility-NRE in 
	GetDigestedOutput.
	* XmlDsigExcC14NTransform.cs: Comment compatibility-NRE in 
	GetDigestedOutput.
	[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]


svn path=/trunk/mcs/; revision=117622
2008-11-02 00:25:45 +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 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 bab5d554e1 2006-09-07 Atsushi Enomoto <[email protected]>
* EncryptedXml.cs : DecryptData() should not pass block size to
	  Transform() as the index.


svn path=/trunk/mcs/; revision=65071
2006-09-07 17:20:19 +00:00
Sebastien Pouliot 801c89f75e 2005-04-24 Sebastien Pouliot <[email protected]>
* SignedInfo.cs: Added [ComVisible (false)] to new property.
	* SignedXml.cs: Added [ComVisible (false)] to new properties and 
	methods.
	* ReferenceList.cs: Fixed members signatures for beta2.
	* Reference.cs: Added [ComVisible (false)] to new set_TransformChain.
	* EncryptedType.cs: Fix compilation with EncryptionPropertyCollection
	changes.
	* DataObject.cs: Fix compilation warnings.
	* EncryptedKey.cs: Fix compilation with ReferenceList and 
	EncryptionPropertyCollection changes.
	* EncryptionProperties.cs: Class has been renamed to 
	EncryptionPropertyCollection.
	* Transform.cs: Added [ComVisible (false)] to new properties and 
	methods.
	* EncryptedXml.cs: Changed XmlEncRSA1_5Url to XmlEncRSA15Url.
	* KeyInfoRetrievalMethod.cs: Added [ComVisible (false)] to Type 
	property.
	* KeyInfoX509Data.cs: Added [ComVisible (false)] to AddSubjectKeyId
	(string) method and implemented it.
	* EncryptedData.cs: Changed EncryptionProperties to new 
	EncryptionPropertyCollection.
	* XmlDsigC14NTransform.cs: Added [ComVisible (false)] to 
	GetDigestedOutput method and added a basic implementation.
	* X509IssuerSerial.cs: IssuerName and SerialNumber are now properties.


svn path=/trunk/mcs/; revision=43514
2005-04-24 16:16:23 +00:00
Sebastien Pouliot ff497e2d08 2005-04-23 Sebastien Pouliot <[email protected]>
* EncryptedXml.cs, SignedXml.cs: Changed X509CertificateEx to 
	X509Certificate2 to match beta2.


svn path=/trunk/mcs/; revision=43484
2005-04-23 14:23:41 +00:00
Tim Coleman a80897d945 2004-09-03 Tim Colmean <[email protected]>
* EncryptedXml.cs: Add support for RSA for key formatting
        * Reference.cs: Include XmlDecryptionTransform
        * SignedXml.cs:
                Set the EncryptedKey on the XmlDecryptionTransform when
                loading XML
        * XmlDecryptionTransform.cs:
                Clean up decryption transformation to work without ugly hack.
        * XmlDsigExcC14NTransform.cs:
                Add algorithm identifier.
        * XmlSignature.cs:
                Add namespaces for various classes.

svn path=/trunk/mcs/; revision=33317
2004-09-03 22:06:23 +00:00
Tim Coleman 16a536b789 2004-09-02 Tim Coleman <[email protected]>
* CipherReference.cs: Add XmlDecryptionTransform for 2.0
        * EncryptedType.cs: Fix type initialization to conform to .NET
        * EncryptedXml.cs:
                Add support for RSA key decryption and "cloning" for Transform
        * KeyInfoX509Data Reference.cs SignedInfo.cs XmlDsigC14NTransform.cs:
                Add 2.0 stubs
        * Signature.cs:
                Create internal GetXml function if we already have a doc
        * SignedXml.cs: Fix the transformation when we get an XmlDocument out
        * XmlDecryptionTransform.cs: Implemented Xml Decryption
        * XmlSignature.cs: Add namespace for Xml Decryption

svn path=/trunk/mcs/; revision=33236
2004-09-02 17:20:35 +00:00
Tim Coleman 1b4a5c9cf4 2004-08-31 Tim Coleman <[email protected]>
* EncryptedXml.cs SymmetricKeyWrap.cs:
                Get symmetric key wrap to work for AES keys.

svn path=/trunk/mcs/; revision=33071
2004-08-31 02:29:44 +00:00
Tim Coleman 9263bae3cd 2004-08-30 Tim Coleman <[email protected]>
* EncryptedXml.cs: Implement lots of XML Encryption code.

svn path=/trunk/mcs/; revision=33053
2004-08-30 17:49:26 +00:00
Tim Coleman 56df8d8a7b 2004-08-30 Tim Coleman <[email protected]>
* EncryptedXml.cs: Implement lots of XML Encryption code.
        * SymmetricKeyWrap.cs: Fix TripleDES keywrap algorithm.
        * XmlSignature.cs: Add NET_2_0 check around EncryptedKey

svn path=/trunk/mcs/; revision=33049
2004-08-30 16:02:17 +00:00
Tim Coleman 74bc359484 2004-08-29 Tim Coleman <[email protected]>
* EncryptedKey.cs: Fix element name when generating XML.
        * EncryptedXml.cs: Implement more of encryption/decryption routines for .NET 2.0
        * KeyInfo.cs: Support for EncryptedKey KeyInfoClause.
        * KeyInfoName.cs: Add missing constructor
        * SymmetricKeyWrap.cs: Add untested TripleDES key wrap
        algorithms for encryption/decryption
        * XmlSignature.cs: Add EncryptedKey constant.

svn path=/trunk/mcs/; revision=33007
2004-08-30 00:23:11 +00:00
Tim Coleman a9869c59af 2004-08-29 Tim Coleman <[email protected]>
* EncryptedData.cs EncryptedXml.cs:
                Add .NET 2.0 method stubs.

svn path=/trunk/mcs/; revision=32996
2004-08-29 17:35:53 +00:00
Sebastien Pouliot ab83dcf609 2004-07-07 Sebastien Pouliot <[email protected]>
* EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and
	XmlEncElementContentUrl.
	* X509IssuerSerial.cs: Make constructor internal so it doesn't show up
	in corcompare results for NET_2_0 profile.

svn path=/trunk/mcs/; revision=30853
2004-07-07 19:36:05 +00:00
Duncan Mak 25e1e7ccfd Add MIT license to System.Security.DLL
svn path=/trunk/mcs/; revision=30060
2004-06-21 18:32:17 +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
Tim Coleman 002583484f 2004-02-19 Tim Coleman <[email protected]>
* SymmetricKeyWrap.cs:
                Add AES Key Wrap
        * EncryptedXml.cs:
                Add calls to SymmetricKeyWrap

svn path=/trunk/mcs/; revision=23253
2004-02-19 15:48:07 +00:00
Tim Coleman da4f97eae4 2004-02-10 Tim Coleman <[email protected]>
* DataReference.cs EncryptedKey.cs EncryptedXml.cs
        * KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
        * X509IssuerSerial.cs XmlDecryptionTransform.cs:
                Add new classes for Xml Encryption in 1.2
        * CipherData.cs CipherReference.cs EncryptedData.cs
        * EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
                Change NamespaceURI reference to EncryptedXml class.
                Make compliant with 1.2
        * XmlEncryption.cs:
                Add new entity names.

svn path=/trunk/mcs/; revision=22962
2004-02-10 22:55:52 +00:00