CryptoSys PKI Pro Manual

Cms.ReadEnvDataToFile Method

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

Syntax

[C#]
public static int ReadEnvDataToFile(
	string outputFile,
	string inputFile,
	string x509File,
	string privateKey,
	Cms.ReadOptions opts
)
[VB.NET]
Public Shared Function ReadEnvDataToFile ( _
	outputFile As String, _
	inputFile As String, _
	x509File As String, _
	privateKey As String, _
	opts As Cms.ReadOptions _
) As Integer

Parameters

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

Return Value

Zero if successful; otherwise it returns an error code.

See Also

VB6/C equivalent: CMS_ReadEnvData

[Contents] [Index]

[PREV: Cms.ReadEnvDataToBytes Method...]   [Contents]   [Index]   
   [NEXT: Cms.ReadEnvDataToString Method...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.