CmsGetSigDataDigest Method |
Extract the message digest from a signed-data CMS object file and verify the signature.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static string GetSigDataDigest(
string inputFile,
string certFile
)
Public Shared Function GetSigDataDigest (
inputFile As String,
certFile As String
) As String
Parameters
- inputFile String
- name of file containing CMS signed-data object
- certFile String
- an (optional) X.509 certificate file to be used to identify the signer
Return Value
StringHash value in hex format or an empty string if error
RemarksIf no certificate is given, it will use the first valid SignerInfo and certificate pair it finds in the SignedData.
RSASSA-PKCS1V1_5 only.
See Also