Cms.VerifySigData Method
Verify the signature and content of a signed-data CMS object file.
Syntax
[C#]
public static int VerifySigData(
string inputFile,
string certFile = "",
string hexDigest = "",
Cms.SigDataOptions advOptions = Cms.SigDataOptions.Default
)
[VB]
Public Shared Function VerifySigData (
inputFile As String,
Optional certFile As String = "",
Optional hexDigest As String = "",
Optional advOptions As Cms.SigDataOptions = Cms.SigDataOptions.Default
) As Integer
Parameters
- inputFile String
- file containing CMS signed-data object
- certFile String (Optional)
- an (optional) X.509 certificate file of the signer
- hexDigest String (Optional)
- (optional) digest of eContent to be verified (use for "detached-signature" form)
- advOptions Cms.SigDataOptions (Optional)
- Use for BigFile option, otherwise ignored
Return Value
Zero if successfully verified; otherwise it returns a non-zero
error code
See Also
VB6/C equivalent: CMS_VerifySigData
[Contents] [Index]