Click or drag to resize

CmsVerifySigData Method

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

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int VerifySigData(
	string inputFile,
	string certFile = "",
	string hexDigest = "",
	CmsSigDataOptions advOptions = CmsSigDataOptions.Default
)

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  CmsSigDataOptions  (Optional)
Use for BigFile option, otherwise ignored

Return Value

Int32
Zero if successfully verified; otherwise it returns a non-zero error code
See Also