Verify the signature(s) of the OpenPGP key
For verifying different types of key signatures, use one of the following TElPGPCustomPublicKey methods: Verify(), DirectVerify(), RevocationVerify() or DirectRevocationVerify() with appropriate parameter sets. These methods result True if the signature was successfully verified, and False otherwise.
To verify a direct key signature, call TElPGPCustomPublicKey.DirectVerify() method and pass the key and the signature as corresponding parameters.
To verify a standalone signature, simply pass it as the only parameter to TElPGPCustomPublicKey.Verify().
To verify a subkey/primary key binding signature, you should pass the two parameters to the TElPGPCustomPublicKey.Verify(): Key (the binding sub-key) and Signature (the binding signature).
To verify a counter-signature over some signature (a third-party certification), call TElPGPCustomPublicKey.Verify() with the following parameters: SubjectSignature (the counter-signature), and Signature (the signature over which a counter-signature is computed).
To verify a user certification signature, pass the following parameters to the TElPGPCustomPublicKey.Verify(): PublicKey, User (TElPGPUserID or TElPGPUserAttr object specifying the owner of the PublicKey), and Signature (the signature to be verified).
Signing of OpenPGP keys with different kinds of signatures is described in the corresponding article.
To verify a direct-key revocation signature (i.e. revocation signature calculated over the direct-key signature), call TElPGPCustomPublicKey.DirectRevocationVerify() method, and pass two parameters: the Key to be revoked, and Signature, into which the revocation signature will be placed.
To verify a subkey/primary key binding revocation signature, call TElPGPCustomPublicKey.RevocationVerify() with the following parameters: Key (a binding subkey), and Signature (the signature to be verified).
To verify a key/user binding revocation signature, call TElPGPCustomPublicKey.RevocationVerify() and pass three parameters: Key (a binding key), User (the TElPGPUserID or TElPGPUserAttr object that specifies the owner of the PublicKey) and Signature (the signature to be verified).
For information about how to revoke a signature see the corresponding article.