CryptoSys PKI Toolkit Manual
Cms.ReadEnvDataToFile Method
Reads and decrypts CMS enveloped-data object using the recipient's private key.
Syntax
[C#]
public static int ReadEnvDataToFile(
string outputFile,
string inputFile,
string x509File,
string privateKey,
Cms.Options options
)
[VB.NET]
Public Shared Function ReadEnvDataToFile ( _
outputFile As String, _
inputFile As String, _
x509File As String, _
privateKey As String, _
options As Cms.Options _
) As Integer
Parameters
- outputFile
- Name of output file to be created
- inputFile
- File that contains the CMS-enveloped data
- x509File
- (optional) specifies the filename of the recipient's X.509 certificate
- privateKey
- Internal representation of private key
- options
- Type: Cms.Options
Option flags. See Cms.Options.
Return Value
Zero if successful; otherwise it returns an
error code
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: CMS_ReadEnvData
[Contents] [Index]