EnvelopedData Constructor
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9083)
EnvelopedData()
Creates an instance of EnvelopedData class. It must be initialized using Load(Stream) or Decode(Byte[]) methods before any other methods and properties can be accessed.
Declaration
public EnvelopedData()
EnvelopedData(ContentInfo)
Creates an instance of SignedData class using the specified content information as the inner content.
Declaration
public EnvelopedData(ContentInfo contentInfo)
Parameters
Type | Name | Description |
---|---|---|
ContentInfo | contentInfo | The inner content of the encrypted message. |
EnvelopedData(ContentInfo, ObjectIdentifier)
Creates an instance of EnvelopedData class using the specified content information and encryption algorithm.
Declaration
public EnvelopedData(ContentInfo contentInfo, ObjectIdentifier encryptionAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
ContentInfo | contentInfo | The inner content of the encrypted message. |
ObjectIdentifier | 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 EnvelopedData class using the specified content information and encryption algorithm.
Declaration
public EnvelopedData(ContentInfo contentInfo, ObjectIdentifier encryptionAlgorithm, int keyLength)
Parameters
Type | Name | Description |
---|---|---|
ContentInfo | contentInfo | The inner content of the encrypted message. |
ObjectIdentifier | 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.