CryptoSys PKI Toolkit Manual

Cms.QueryEnvData Method

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

Syntax

[C#]
public static string QueryEnvData(
	string inputFile,
	string query,
	bool inputIsBase64
)
[VB.NET]
Public Shared Function QueryEnvData ( _
	inputFile As String, _
	query As String, _
	inputIsBase64 As Boolean _
) As String

Parameters

inputFile
file containing CMS enveloped-data object
query
Query string (case insensitive)
inputIsBase64
true if input is in base64 encoding; false for binary BER-encoded

Return Value

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

Remarks

The user must specify the type of encoding used for the input file.

Valid queries are:

"version"envelopedData CMSVersion value, e.g. "0".
"countOfRecipientInfos"Number of RecipientInfos included in the data.
"contentEncryptionAlgorithm"contentEncryptionAlgorithm, e.g. "des-EDE3-CBC".
"sizeofEncryptedContent"Size (in bytes) of the EncryptedContent.
"recipientInfoVersion"recipientInfo version (riVer) value.
"keyEncryptionAlgorithm"keyEncryptionAlgorithm, e.g. "rsaEncryption".
"keyEncryptionFlags"Bit flags used for the key encryption algorithm.
"sizeofEncryptedKey"Size (in bytes) of the EncryptedKey.
"recipientIssuerName"Distinguished Name of recipient's certificate issuer.
"recipientSerialNumber"serialNumber of recipient's certificate in hex format

See Also

VB6/C equivalent: CMS_QueryEnvData

[Contents] [Index]

[HOME]   [NEXT: Cms.QuerySigData Method...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.