checkSignature
suspend fun Crypto.checkSignature(publicKey: PublicKey, message: ByteArray, algorithm: Algorithm, signature: Signature)
Checks signature validity for a generic PublicKey and Signature.
Parameters
publicKey
the public key the signature was made with.
message
the data that was signed.
algorithm
the signature algorithm to use.
signature
the signature.
Throws
if the signature check fails.
if an error occurred during the check, for example if data is malformed.