Check whether the provided signature is valid for the given data.

{{#if (and key.supportsSigning key.derived (not hmac))}}
{{/if}} {{#if key.supportsSigning}}
{{#unless (eq verification 'HMAC')}}
{{/unless}}
{{#if (and keyIsRSA (or (and verification (eq verification 'Signature')) signature))}}
{{/if}}
{{#if (or (and verification (eq verification 'HMAC')) hmac)}}
{{else}}
{{/if}}
{{else}}
{{/if}}