VerifyFileSignature
Sub
VerifyFileSignature ( Filename As String,
SignMethod As SIGN_METHODS,
Sign As String, Key As Variant) As Boolean |
VerifyFileSignature function checks the content of the file and given
signature. It identify if this content was really signed by the
MakeFileSignature function and valid private key. Key parameter must be valid loaded
public key and corresponds to the private key used for signing. Available
values for SignMethod parameter see here.
If the sign is correct the return value is True and False
otherwise.
If an error
happens, the return value is 0 and the Error property of the
ActiveCrypt component differs from ERR_OK. Analyzing this property
you can find the reason of the failure.
|