coseSign1Check
fun coseSign1Check(publicKey: EcPublicKey, detachedData: ByteArray?, signature: CoseSign1, signatureAlgorithm: Algorithm)
Checks a COSE_Sign1 signature.
Parameters
publicKey
the public to check with.
detachedData
detached data, if any.
signature
the COSE_Sign1 object.
signatureAlgorithm
the signature algorithm to use.
Throws
if not exactly one of detachedData
and signature.payload
are non-null
.
if the signature check fails.