The verify() operation verifies a digital signature. It ensures that some data was signed by a known key and that the data has not been tampered with since it was signed.
|algorithm||string or object with a single name string property||The algorithm to use. Currently supported: HMAC.|
|key||CryptoKey||The key that will be used to verify the signature.|
|signature||ArrayBuffer||The signature to verify.|
|data||ArrayBuffer||The data whose signature is to be verified.|
A Promise that resolves to a boolean value indicating if the signature is valid.
|InvalidAccessError||Raised when the key either does not support the verify operation, or is incompatible with the selected algorithm.|