checkSignature
expect fun checkSignature(publicKey: EcPublicKey, message: ByteArray, algorithm: Algorithm, signature: EcSignature)
Checks signature validity.
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.
actual fun checkSignature(publicKey: <Error class: unknown class>, message: ByteArray, algorithm: <Error class: unknown class>, signature: <Error class: unknown class>)
actual fun checkSignature(publicKey: EcPublicKey, message: ByteArray, algorithm: Algorithm, signature: EcSignature)
Checks signature validity.
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.