verifySignatureBlocking

open fun verifySignatureBlocking(data: ByteArray, signature: ByteArray)(source)

Verifies that signature is valid for the given data. Throws an exception if the signature is not valid.

Use verifySignature when calling from suspending code. For a non-throwing variant that returns a Boolean, use tryVerifySignatureBlocking.


open fun verifySignatureBlocking(data: RawSource, signature: ByteString)(source)

Verifies that signature is valid for the given data read from a RawSource. Throws an exception if the signature is not valid.

Use verifySignature when calling from suspending code. For a non-throwing variant that returns a Boolean, use tryVerifySignatureBlocking.