Creates an instance of EnvelopedData class using the specified content information and encryption algorithm.

Namespace:  Rebex.Security.Cryptography.Pkcs
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Sub New ( _
	contentInfo As ContentInfo, _
	encryptionAlgorithm As ObjectIdentifier, _
	keyLength As Integer _
)
C#
public EnvelopedData(
	ContentInfo contentInfo,
	ObjectIdentifier encryptionAlgorithm,
	int keyLength
)

Parameters

contentInfo
Type: Rebex.Security.Cryptography.Pkcs..::..ContentInfo
The inner content of the encrypted message.
encryptionAlgorithm
Type: Rebex.Security.Cryptography..::..ObjectIdentifier
Encryption algorithm identifier (see remarks). Can be null for 3DES.
keyLength
Type: System..::..Int32
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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also