Verifies a signed file using a certificate in the system store.
Syntax:
Parameters:
Returns:
Returns 1 if the operation is successful; otherwise returns 0 if the operation fails.
Remarks:
The parameter requirements of sSignedFileName, sSignatureFile and sVerifiedFileName depend on the format type being used and are explained as follows:
SignatureFormat_SignedHash - Not supported in this mode.
SignatureFormat_SignedData - When a file is signed using this format, the digital signature both contains the signature and the file being signed. When verifying, only the digital signature is required, and if the verification is successful, the verified file is extracted and saved to a target file.
sSignedFileName - NOT REQUIRED
sSignatureFile - REQUIRED
sVerifiedFileName - REQUIRED
SignatureFormat_SignedData_Detached - When a file is signed using this format, the digital signature is in the same format as the SignatureFormat_SignedData, but only the signed file is not embedded with the digital signature in the same file. When verifying, the signed file is verified against the separate SignedData signature.
sSignedFileName - REQUIRED
sSignatureFile - REQUIRED
sVerifiedFileName - NOT REQUIRED
For additional information on the signed-data content type, please refer to RFC 2315 - PKCS #7: Cryptographic Message Syntax Version 1.5.