fun verify(content: ByteArray): Boolean
fun verify(content: OpaqueBytes): Boolean
Utility to simplify the act of verifying a signature.
InvalidKeyException
- if the key to verify the signature with is not valid (i.e. wrong key type for the
signature).
SignatureException
- if the signature is invalid (i.e. damaged), or does not match the key (incorrect).