CryptoSys PKI Toolkit Manual
Cms.GetSigDataDigest Method (String, String)
Extracts the message digest from a signed-data CMS object file and verifies the signature
Syntax
[C#]
public static string GetSigDataDigest(
string inputFile,
string certFile
)
[VB.NET]
Public Shared Function GetSigDataDigest ( _
inputFile As String, _
certFile As String _
) As String
Parameters
- inputFile
- file containing CMS signed-data object
- certFile
- an (optional) X.509 certificate file to be used to identify the signer
Return Value
Hash value in hex format or an empty string if error
Remarks
If no certificate is given, it will use the first valid SignerInfo and certificate pair it finds in the SignedData.
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: CMS_GetSigDataDigest
[Contents] [Index]