verify method

void verify(
  1. VerificationAlgorithm algorithm,
  2. Uint8List message,
  3. Uint8List signature
)

Checks that signature is the key's signature of message under algorithm, throwing RindError.badSignature if not, or RindError.keyRejected if the modulus is below algorithm's floor or too short for its PSS salt.

Implementation

void verify(
  VerificationAlgorithm algorithm,
  Uint8List message,
  Uint8List signature,
) {
  check(
    _publicKeyVerify(
      _pointer,
      algorithm._id,
      message.address,
      message.length,
      signature.address,
      signature.length,
    ),
  );
}