Click or drag to resize

CmsReadEnvDataToFile Method

Read and decrypt a CMS enveloped-data object to a file.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int ReadEnvDataToFile(
	string outputFile,
	string inputFile,
	string x509File,
	string privateKey,
	CmsReadOptions opts = CmsReadOptions.None
)

Parameters

outputFile  String
Name of output file to be created.
inputFile  String
Name of file containing CMS enveloped-data object (binary or base64-encoded) or the data as a base64 or PEM string.
x509File  String
(optional) filename of the recipient's X.509 certificate.
privateKey  String
Internal representation of private key.
opts  CmsReadOptions  (Optional)
Use CmsReadOptions for faster handling of large files (binary only).

Return Value

Int32
Zero if successful; otherwise it returns an error code.
See Also