verify
abstract fun verify(signature: ByteArray, startIndex: Int = 0, endIndex: Int = signature.size)(source)
Checks whether the signature (or its subrange from startIndex to endIndex) is valid for the data fed so far. Throws an exception if the signature is not valid.
For a non-throwing variant that returns a Boolean, use tryVerify.