verify method

bool verify(
  1. List<int> data,
  2. List<int> signature, {
  3. String? algorithm,
})

Verify digital signature or MAC

Implementation

bool verify(List<int> data, List<int> signature, {String? algorithm}) {
  _assertCanDo('verify');
  var verifier = _keyPair.publicKey!.createVerifier(_getAlgorithm(algorithm));
  return verifier.verify(
      Uint8List.fromList(data), Signature(Uint8List.fromList(signature)));
}