41 Commits
Author SHA1 Message Date
Maxim Lipnin b5071e868d CoreFX import for Pkcs9SigningTime type (#9236)
as part of #7589
2018-07-16 10:44:30 +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
Filip Navara 6db2c5a1f8 Import System.Security.Cryptography.Pkcs from CoreFX. (#8994)
* Import System.Security.Cryptography.Pkcs from CoreFX.

* Change 'as' operator to a cast.

* Add missing EnvelopedCms overloads.

* Include CMS signing classes in all builds.

* [csproj] Update project files

* Add missing DSACertificateExtensions class.

* Update references.

* Rename EnvelopedCms.Overloads.cs to EnvelopedCms.cs.

* Enable some of the System.Security.Cryptography.Pkcs xunit tests.

* Update references.

* Bump API snapshot submodule

* Disable xunit tests that may depend on Windows PAL.

Contributes to https://github.com/mono/mono/issues/7589
2018-06-18 09:39:19 +02:00
Maxim Lipnin 3deca0e19d [System.Security] Revert the change for AlgorithmIdentifier type due to unresolved API breaking change on corefx side. 2018-06-05 17:09:12 +03:00
Maxim Lipnin 42459ca99d [System.Security] CoreFX import for SubjectIdentifierOrKeyType type. 2018-05-14 15:42:27 +03:00
Maxim Lipnin 342b1df757 [System.Security] CoreFX import for SubjectIdentifierOrKey type. 2018-05-14 15:42:22 +03:00
Maxim Lipnin 52d85bbe08 [System.Security] CoreFX import for RecipientInfoType type. 2018-05-14 15:42:12 +03:00
Maxim Lipnin 78bcca7505 [System.Security] CoreFX import for PublicKeyInfo type. 2018-05-14 15:42:08 +03:00
Maxim Lipnin eb5534eb5c [System.Security] CoreFX import for SubjectIdentifierType type. 2018-05-14 15:42:03 +03:00
Maxim Lipnin b338b6a128 [System.Security] CoreFX import for CmsRecipient, CmsRecipientCollection and CmsRecipientEnumerator classes. 2018-05-14 15:41:58 +03:00
Maxim Lipnin c12803841c [System.Security] CoreFX import for AlgorithmIdentifier class 2018-05-14 15:41:53 +03:00
Marek Safar 62c8557a7a [System.Security] Fixes decoding of CMS/PKCS #7 messages with an explicit cryptographic object identifier 2018-03-06 15:45:59 +01:00
Alexander Köplinger 03c249026e [System.Security] Rename method parameters to match .NET contract 2017-03-16 13:02:09 +01:00
Alexander Köplinger c4692001a9 [bcl] Fix method parameter names to match .NET
The names were fixed only for the subset of methods that are included in netstandard,
and in cases where netstandard differs from Desktop .NET we match with .NET.
2016-08-26 17:49:03 +02:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Sebastien Pouliot 29cbc706f4 Fixed decoding of PKCS/CMS message with detached ContentInfo. Pull request from Pablo Ruiz Garcia <[email protected]> 2011-07-25 09:58:14 -04:00
Marek Safar 2d36f50709 2009-06-05 Marek Safar <[email protected]>
* Makefile: Fixed NET_2_0 conditional to actually handle Mono.Security
	dependency.


svn path=/trunk/mcs/; revision=135540
2009-06-05 16:27:11 +00:00
Sebastien Pouliot 899b4184dc 2008-11-01 Sebastien Pouliot <[email protected]>
* CmsRecipientCollection.cs: Add comment about compatibility-NRE
	[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]


svn path=/trunk/mcs/; revision=117621
2008-11-02 00:22:45 +00:00
Sebastien Pouliot dcb051c81a 2008-10-12 Sebastien Pouliot <[email protected]>
* EnvelopedCms.cs, SignedCms.cs: Remove unneeded field 
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115569
2008-10-12 15:05:08 +00:00
Sebastien Pouliot 77cbf17b0d 2006-12-15 Sebastien Pouliot <[email protected]>
* SignedCms.cs: Add missing TODO. Some code exists but depends on 
	other, unimplemented, stuff.


svn path=/trunk/mcs/; revision=69542
2006-12-15 19:29:32 +00:00
Sebastien Pouliot 75d42ff58a 2005-09-27 Sebastien Pouliot <[email protected]>
* Pkcs9Attribute.cs: Added new CopyFrom method overrides (2.0 RC).
	* Pkcs9SigningTime.cs: Don't call base.CopyFrom anymore.


svn path=/trunk/mcs/; revision=50854
2005-09-27 13:18:35 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Sebastien Pouliot 7a598992b0 2005-05-03 Sebastien Pouliot <[email protected]>
* CmsSigner.cs: Removed old FIXME.
	* ContentInfo.cs: Better detection (but still less strict than MS).
	* EnvelopedCms.cs: Avoid possible NullReferenceException in Encrypt.
	* KeyTransRecipientInfo.cs: Minor editing updates.
	* Pkcs9ContentType.cs: Added encoding/decoding of the content 
	information (OID).
	* Pkcs9MessageDigest.cs: Added encoding/decoding of the digest.
	* SignedCms.cs: Version set to 0 (default). Serial numbers are 
	reversed here (Fx isn't very consistant in this regard).
	* SignerInfo.cs: Convert the hash name to an OID.
	* SignerInfoCollection.cs: Completed class.


svn path=/trunk/mcs/; revision=43970
2005-05-03 17:55:44 +00:00
Sebastien Pouliot a7e797ce40 2005-04-26 Sebastien Pouliot <[email protected]>
* AlgorithmIdentifier.cs: Removed FIXME - seems "by design".
	* ContentInfo.cs: Applied fix for ArgumentNullException (was fixed in 
	beta2).
	* Pkcs9ContentType.cs: Added new override for CopyFrom.
	* Pkcs9DocumentDescription.cs: Added new override for CopyFrom. 
	Applied fix for ArgumentNullException (was fixed in beta2).
	* Pkcs9DocumentName.cs: Added new override for CopyFrom. 
	Applied fix for ArgumentNullException (was fixed in beta2).
	* Pkcs9MessageDigest.cs: Added new override for CopyFrom.
	* Pkcs9SigningTime.cs: Added new override for CopyFrom.


svn path=/trunk/mcs/; revision=43615
2005-04-26 18:52:43 +00:00
Sebastien Pouliot 70a9dde615 2005-04-25 Sebastien Pouliot <[email protected]>
* SignedCms.cs: Fix compiler warning (unused variable).


svn path=/trunk/mcs/; revision=43538
2005-04-25 11:48:14 +00:00
Sebastien Pouliot 9e6c973211 2005-04-24 Sebastien Pouliot <[email protected]>
* SubjectIdentifierType.cs: Removed (really) obsolete enum value and
	[Serializable] attribute.


svn path=/trunk/mcs/; revision=43513
2005-04-24 15:42:31 +00:00
Sebastien Pouliot cac21fb340 2005-04-23 Sebastien Pouliot <[email protected]>
* CmsRecipient.cs, CmsRecipientCollection.cs, CmsSigner.cs, 
	EnvelopedCms.cs, KeyAgreeRecipientInfo.cs, Pkcs9Attribute.cs,
	Pkcs9ContentType.cs, Pkcs9DocumentDescription.cs, Pkcs9DocumentName.cs,
	Pkcs9MessageDigest.cs, Pkcs9SigningTime.cs, SignedCms.cs, 
	SignerInfo.cs: Adapted for changes in class names in beta2.


svn path=/trunk/mcs/; revision=43482
2005-04-23 14:19:12 +00:00
Sebastien Pouliot 7c165e8649 2005-01-17 Sebastien Pouliot <[email protected]>
* Pkcs9Attribute.cs: Fixed wrt unit tests.
	* Pkcs9ContentType.cs: Completed public part. Internals are still
	todo later.
	* Pkcs9DocumentDescription.cs: Completed implementation.
	* Pkcs9DocumentName.cs: Completed implementation.
	* Pkcs9SigningTime.cs: Completed implementation.
	* Pkcs9MessageDigest.cs: Completed public part. Internals are still
	todo later.


svn path=/trunk/mcs/; revision=39052
2005-01-17 21:15:44 +00:00
Tim Coleman 4a30007182 2004-09-04 Tim Coleman <[email protected]>
* Pkcs9ContentType.cs Pkcs9MessageDigest.cs:
                New classes for 2.0

svn path=/trunk/mcs/; revision=33347
2004-09-04 19:56:30 +00:00
Sebastien Pouliot 081fb00ba2 2004-07-08 Sebastien Pouliot <[email protected]>
* Remove old files from Fx 1.2 preview
		CryptographicAttribute.cs
		EnvelopedPkcs7.cs
		Pkcs7Recipient.cs
		Pkcs7RecipientCollection.cs
		Pkcs7RecipientEnumerator.cs
		Pkcs7Signer.cs
		Pkcs9AttributeCollection.cs
		Pkcs9AttributeEnumerator.cs
		RecipientSubType.cs
		SignedPkcs7.cs

svn path=/trunk/mcs/; revision=30911
2004-07-09 02:14:46 +00:00
Sebastien Pouliot b030a1037f 2004-07-08 Sebastien Pouliot <[email protected]>
* PublicKeyInfo.cs: Sealed class (forgotten in previous commit).

svn path=/trunk/mcs/; revision=30909
2004-07-09 02:08:50 +00:00
Sebastien Pouliot 5639cacb2c 2004-07-08 Sebastien Pouliot <[email protected]>
* ContentInfo.cs: Added finalizer.
	* CmsRecipient.cs: New. Replace Pkcs7Recipient (from 1.2).
	* CmsRecipientCollection.cs: New. Replace Pkcs7RecipientCollection
	(from 1.2).
	* CmsRecipientEnumerator.cs: New. Replace Pkcs7RecipientEnumerator
	(from 1.2).
	* CmsSigner.cs: New. Replace Pkcs7Signer (from 1.2).
	* EnvelopedCms.cs: New. Replace EnvelopedPkcs7 (from 1.2).
	* KeyAgreeRecipientInfo.cs: Fixed internal constructor.
	* Pkcs9Attribute.cs: Now inherit from AsnEncodedData. Fixed
	constructors.
	* Pkcs9DocumentDescription.cs: Sealed class and fixed API.
	* Pkcs9DocumentName.cs: Sealed class and fixed API.
	* Pkcs9SigningTime.cs: Sealed class and fixed API.
	* PublicKeyInfo.cs: Sealed class.
	* RecipientInfo.cs: Removed protected constructor.
	* RecipientInfoCollection.cs: Sealed class.
	* RecipientInfoEnumerator.cs: Sealed class.
	* SignedCms.cs: New. Replace SignedPkcs7 (from 1.2).
	* SignerInfo.cs: Sealed class and fixed API.
	* SignerInfoCollection.cs: Sealed class and fixed CopyTo.
	* SignerInfoEnumerator.cs: Sealed class.
	* SubjectIdentifier.cs: Sealed class.
	* SubjectIdentifierOrKey.cs: Sealed class.
	* SubjectIdentifierType.cs: Fixed enum and added [Serializable].

svn path=/trunk/mcs/; revision=30907
2004-07-09 01:58:38 +00:00
Sebastien Pouliot 2251d1dcd8 2004-07-07 Sebastien Pouliot <[email protected]>
* AlgorithmIdentifier.cs: Added missing #if NET_2_0.
	* ContentInfo.cs: Fixed OID due to changes in Mono.Security.
	* EnvelopedPkcs7.cs: Fixed OID due to changes in Mono.Security.
	* SignedPkcs7.cs: Fixed OID due to changes in Mono.Security.

svn path=/trunk/mcs/; revision=30852
2004-07-07 19:34:25 +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
Sebastien Pouliot a7dc35c1f9 2003-12-07 Sebastien Pouliot <[email protected]>
* ContentInfo.cs: Modified default Oid not to include description.
	Added basic support for static GetContentType.
	* EnvelopedPkcs7.cs: New. Partial implementation of PKCS#7 envelopes
	(encrypted data).
	* KeyAgreeRecipientInfo.cs: New. Stub for key agreement informations.
	Note that key agreement algorithms (DH) are absent from the framework.
	* KeyTransRecipientInfo.cs: New. Implementation for key transport
	informations.
	* Pkcs7Recipient.cs: New. Implementation of "recipients" - how it
	links to a X.509 certificate (issuer and serial key or subject key
	info).
	* Pkcs7RecipientCollection.cs: New. Collection of Pkcs7Recipient.
	* Pkcs7RecipientEnumerator.cs: New. Enumerator for Pkcs7Recipient.
	* Pkcs7AttributeCollection.cs: New. Collection of Pkcs9Attributes.
	* Pkcs7AttributeEnumerator.cs: New. Enumerator for Pkcs9Attributes.
	* PublicKeyInfo.cs: New. Handle public key informations.
	* RecipientInfoCollection.cs: New. Collection of RecipientInfo (and
	inherited classes).
	* RecipientInfoEnumerator.cs: New. Enumerator for RecipientInfo (and
	inherited classes).
	* SignedPkcs7.cs: New. Partial implementation of PKCS#7 signed
	structures.
	* SignerInfo.cs: New. Information (certificate and attributes) about
	the signer. Actual signature/verification stuff is missing.
	* SignerInfoCollection.cs: New. Collection of SignerInfo.
	* SignerInfoEnumarator.cs: New. Enumerator for SignerInfo.
	* SubjectIdentifier.cs: New. Contains the type of identifier linking
	to a subject.
	* SubjectIdentifierOrKey.cs: New. Contains the subject's public key or
	an information linking to a subject public key.

svn path=/trunk/mcs/; revision=20843
2003-12-08 01:20:50 +00:00
Sebastien Pouliot 63b44ab9f1 2003-11-08 Sebastien Pouliot <[email protected]>
* ContentInfo.cs: New. Class to encapsulate PKCS7 ContentInfo. Static
	method GetContentType need to be completed (requires some test vectors).
	* Pkcs7Signer.cs: New. Class to add attributes (authenticated and/or
	authenticated),	certificates and other informations to the signature.
	* RecipientInfo.cs: New. Abstract class to encpasulate recipient
	informations.

svn path=/trunk/mcs/; revision=19742
2003-11-08 23:12:23 +00:00
Sebastien Pouliot 3e442ce6ff 2003-11-07 Sebastien Pouliot <[email protected]>
* AlgorithmIdentifier.cs: New. Class to encapsulate PKCS7 AlgorithmIdentifier.
	* CryptographicAttribute.cs: Basic class for attributes.
	* KeyAgreeKeyChoice.cs: New. Enumeration for key agreement.
	* Pkcs9Attribute.cs: New. Base class for Pkcs#9 attributes.
	* Pkcs9DocumentDescription.cs: New. Pkcs#9 DocumentDescription attribute.
	* Pkcs9DocumentName.cs: New. Pkcs#9 DocumentName attribute.
	* Pkcs9SigningTime.cs: New. Pkcs#9 SigningTime attribute.
	* RecipientInfoType.cs: New. Enumeration for RecipientInfo.
	* RecipientSubType.cs: New. Enumeration for RecipientInfo.
	* SubjectIdentifierOrKeyType.cs: New. Enumeration for SubjectIdentifier.
	* SubjectIdentifierType.cs: New. Enumeration for SubjectIdentifier.

svn path=/trunk/mcs/; revision=19709
2003-11-07 12:49:29 +00:00