CryptoSys PKI .NET Class Library

Cms.VerifySigData Method 

Verifies the signature and content of a signed-data CMS object file.

[Visual Basic]
Public Shared Function VerifySigData( _
   ByVal inputFile As String, _
   ByVal certFile As String, _
   ByVal hexDigest As String, _
   ByVal inputIsBase64 As Boolean _
) As Integer
[C#]
public static int VerifySigData(
   string inputFile,
   string certFile,
   string hexDigest,
   bool inputIsBase64
);

Parameters

inputFile
file containing CMS signed-data object
certFile
an (optional) X.509 certificate file of the signer
hexDigest
(optional) digest of eContent to be verified
inputIsBase64
true if input is in base64 encoding; false for binary BER-encoded

Return Value

Zero if successfully verified; otherwise it returns an error code

See Also

Cms Class | CryptoSysPKI Namespace