CryptoSys PKI Toolkit Manual
Cms.MakeEnvData Method (String, String, String, Cms.Options)
Creates an encrypted CMS enveloped-data object for one or more recipients using their x.509 certificates (default algorithms).
Syntax
[C#]
public static int MakeEnvData(
string outputFile,
string inputFile,
string certList,
Cms.Options options
)
[VB.NET]
Public Shared Function MakeEnvData ( _
outputFile As String, _
inputFile As String, _
certList As String, _
options As Cms.Options _
) As Integer
Parameters
- outputFile
- Output file to be created
- inputFile
- Input data file
- certList
- List of X509 certificate filename(s), separated by semi-colons
- options
- Type: Cms.Options
Option flags. See Cms.Options.
Return Value
Number of successful recipients or a negative
error code.
Remarks
This uses the default key-encryption algorithm rsaEncryption with triple DES des-ede3-cbc for content encryption. As of v3.7, it is an error if any specified certificate file in certList is missing or corrupted.
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: CMS_MakeEnvData
[Contents] [Index]