Query a CMS enveloped-data object file for selected information.
public static string QueryEnvData( string inputFile, string query )
Public Shared Function QueryEnvData ( _ inputFile As String, _ query As String _ ) As String
Valid queries are:
"version" | envelopedData CMSVersion (edVer) value, e.g. "0". |
"recipientInfoVersion" | recipientInfo version (riVer) value. |
"recipientInfoType" | Type of recipientInfo, e.g. ktri, kari, ... |
"CountOfRecipientInfos" | Number of RecipientInfos included in the data. |
"recipientIssuerName" | Distinguished Name of recipient's certificate issuer. |
"recipientSerialNumber" | serialNumber of recipient's certificate in hex format |
"keyEncryptionAlgorithm" | keyEncryptionAlgorithm, e.g. "rsaEncryption". |
"keyEncryptionFlags" | Bit flags used for the key encryption algorithm (ktri only). |
"SizeOfEncryptedKey" | Size (in bytes) of the EncryptedKey. |
"encryptedKey" | EncryptedKey value encoded in hex. |
"oaepParams" | Parameters used for RSA-OAEP (if applicable). |
"keyWrapAlgorithm" | Key wrap algorithm, e.g. "aes128-wrap" (kari and kekri only). |
"originatorKeyAlgorithm" | OriginatorPublicKey algorithm, e.g. "ecPublicKey" (kari only). |
"originatorPublicKey" | OriginatorPublicKey publicKey value encoded in hex (kari only). |
"keyid" | keyIdentifier for KEKRecipientInfo (kekri) type. |
"contentEncryptionAlgorithm" | contentEncryptionAlgorithm, e.g. "des-EDE3-CBC". |
"SizeOfEncryptedContent" | Size (in bytes) of the EncryptedContent. |
"encryptedContent" | EncryptedContent encoded in hex. |
"iv" | Initialization vector encoded in hex. |
VB6/C equivalent: CMS_QueryEnvData