VerifyFunction
An incremental verification function that accumulates data and checks a signature on finalization.
Data is fed via update and verification is performed by calling one of the finalization methods:
tryVerify — returns
falseif the signature does not match.verify — throws an exception if the signature does not match.
After finalization, the function can be reset and reused, or closed to release resources.
Obtained via SignatureVerifier.createVerifyFunction.
Functions
Checks whether the signature (or its subrange from startIndex to endIndex) is valid for the data fed so far. Returns true if the signature is valid, false otherwise.
Reads all available data from the source and feeds it into this function.
Feeds data from the source byte array into this function. Only the portion from startIndex (inclusive) to endIndex (exclusive) is processed.
Feeds data from the source byte string into this function. Only the portion from startIndex (inclusive) to endIndex (exclusive) is processed.
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.