CmsReadEnvDataToFile Method |
Read and decrypt a CMS enveloped-data object to a file.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int ReadEnvDataToFile(
string outputFile,
string inputFile,
string x509File,
string privateKey,
CmsReadOptions opts = CmsReadOptions.None
)
Public Shared Function ReadEnvDataToFile (
outputFile As String,
inputFile As String,
x509File As String,
privateKey As String,
Optional opts As CmsReadOptions = CmsReadOptions.None
) As Integer
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
Int32Zero if successful; otherwise it returns an
error code.
See Also