Verifying with Message Recovery
The order of operations for verifying a signed message is as follows:
- The user initializes the
signatureobject with signature at the very beginning so it can get the recoverable data at the earliest. - The user invokes a combination of the
updateandverifymethods to verify the signature based on the message data provided by the user. - The
verifymethod verifies the signature by comparing the accumulated hash with the hash in the message representative recovered during initialization.