verify method

JSPromise<JSAny?> verify(
  1. AlgorithmIdentifier algorithm,
  2. CryptoKey key,
  3. BufferSource signature,
  4. BufferSource data,
)

The verify() method of the SubtleCrypto interface verifies a digital .

It takes as its arguments a to verify the signature with, some algorithm-specific parameters, the signature, and the original signed data. It returns a Promise which will be fulfilled with a boolean value indicating whether the signature is valid.

Implementation

external JSPromise<JSAny?> verify(
  AlgorithmIdentifier algorithm,
  CryptoKey key,
  BufferSource signature,
  BufferSource data,
);