CryptoSys PKI Pro Manual

cmsQueryEnvData

Query a CMS enveloped-data object file for selected information.

Syntax

[VBA]
Public Function cmsQueryEnvData ( _
    szFileIn As String, _
    szQuery As String, _
    Optional nOptions As Long = 0 _
) As String

Parameters

szFileIn
Name of file containing CMS enveloped-data object (binary or base64-encoded) or the data as a base64 or PEM string.
szQuery
Query string (case insensitive). Valid queries are:
"version"
"recipientInfoVersion"
"recipientInfoType"
"CountOfRecipientInfos"
"recipientIssuerName"
"recipientSerialNumber"
"keyEncryptionAlgorithm"
"keyEncryptionFlags"
"SizeofEncryptedKey"
"encryptedKey"
"oaepParams"
"kemParams"
"keyWrapAlgorithm"
"originatorKeyAlgorithm"
"originatorPublicKey"
"keyid"
"ukm"
"contentEncryptionAlgorithm"
"SizeofEncryptedContent"
"encryptedContent"
"iv"
"HASsubjectKeyIndentifier"
"recipientIdentifier"
nOptions
For future use.

Return Value

String: String containing the result or an empty string if not found or error.

Remarks

By default, the function queries the first recipientInfo in the file. To query the nth recipientInfo append "/n" to the query string, e.g. "recipientInfoVersion/2" to find the version number of the second recipientInfo in the file.
[PREV: cmsMakeSigDataFromString...]   [Contents]   [Index]   
   [NEXT: cmsQuerySigData...]

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