CryptoSys PKI Pro Manual

cmsReadEnvDataToBytes

Read and decrypt a CMS enveloped-data object to a byte array.

Syntax

[VBA]
Public Function cmsReadEnvDataToBytes ( _
    szFileIn As String, _
    szCertFile As String, _
    szPrivateKey As String, _
    Optional nOptions As Long = 0 _
) As Byte()

Parameters

szFileIn
Name of file containing CMS enveloped-data object (binary or base64-encoded) or the data as a base64 or PEM string.
szCertFile
Filename of the recipient's X.509 certificate (optional).
szPrivateKey
Internal representation of private key.
nOptions
For future use.

Return Value

Byte(): Decrypted content in a byte array, or empty array on error.

Remarks

Use this if the content contains non-ASCII characters, e.g. UTF-8 encoded.
[PREV: cmsQuerySigData...]   [Contents]   [Index]   
   [NEXT: cmsReadEnvDataToString...]

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