prepareCoseSignatureInput

fun <P : Any> prepareCoseSignatureInput(protectedHeader: CoseHeader, payload: P?, serializer: KSerializer<P>, externalAad: ByteArray = byteArrayOf()): ByteArray

Called by COSE signing implementations to get the bytes that will be used as the input for signature calculation of a COSE_Sign1 object