EnvelopedData Constructor
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9147)
EnvelopedData()
Creates an instance of Enveloped
Declaration
public EnvelopedData()
EnvelopedData(ContentInfo)
Creates an instance of Signed
Declaration
public EnvelopedData(ContentInfo contentInfo)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentInfo | The inner content of the encrypted message. |
EnvelopedData(ContentInfo, ObjectIdentifier)
Creates an instance of Enveloped
Declaration
public EnvelopedData(ContentInfo contentInfo, ObjectIdentifier encryptionAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentInfo | The inner content of the encrypted message. |
Object |
encryptionAlgorithm | Encryption algorithm identifier (see remarks). Can be null for 3DES. |
Remarks
Currently, 3DES ("1.2.840.113549.3.7"), AES ("2.16.840.1.101.3.4.1.2" for 128-bit, "2.16.840.1.101.3.4.1.22" for 192-bit and "2.16.840.1.101.3.4.1.42" for 256-bit), DES ("1.3.14.3.2.7") and RC2 ("1.2.840.113549.3.2") algorithms are supported.
EnvelopedData(ContentInfo, ObjectIdentifier, Int32)
Creates an instance of Enveloped
Declaration
public EnvelopedData(ContentInfo contentInfo, ObjectIdentifier encryptionAlgorithm, int keyLength)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentInfo | The inner content of the encrypted message. |
Object |
encryptionAlgorithm | Encryption algorithm identifier (see remarks). Can be null for 3DES. |
Int32 | keyLength | The effective key length in bits (only used by RC2 algorithm). |
Remarks
Currently, 3DES ("1.2.840.113549.3.7"), AES ("2.16.840.1.101.3.4.1.2" for 128-bit, "2.16.840.1.101.3.4.1.22" for 192-bit and "2.16.840.1.101.3.4.1.42" for 256-bit), DES ("1.3.14.3.2.7") and RC2 ("1.2.840.113549.3.2") algorithms are supported.