Verifies an HMAC signature against the provided data and secret using constant-time comparison.
The signature buffer to verify
The original data
The secret key as a string or binary buffer
The hash algorithm to use (default: 'SHA-256')
A promise resolving to true if the HMAC signature matches
Verifies an HMAC signature against the provided data and secret using constant-time comparison.