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
Option flags. See Cms.Options.

Return Value

Zero if successful; otherwise it returns an error code

[Contents] [Index]


[HOME]   [NEXT: Cms.ReadEnvDataToString Method...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.