method webcrypto.SubtleCrypto.verify
Jump to headingSubtleCrypto.verify(): Promise<boolean>
Using the method and parameters given in algorithm
and the keying material provided by key
,
subtle.verify()
attempts to verify that signature
is a valid cryptographic signature of data
.
The returned promise is resolved with either true
or false
.
The algorithms currently supported include:
'RSASSA-PKCS1-v1_5'
'RSA-PSS'
'ECDSA'
'Ed25519'
'Ed448'
'HMAC'
Parameters Jump to heading
Jump to headingalgorithm:
Jump to headingsignature: BufferSource
Return Type Jump to heading
Promise<boolean>