coseSign1Sign
fun coseSign1Sign(s: Signature, data: ByteArray?, detachedContent: ByteArray?, certificateChain: Collection<X509Certificate>?): DataItem
fun coseSign1Sign(key: PrivateKey, algorithm: String, data: ByteArray?, additionalData: ByteArray?, certificateChain: Collection<X509Certificate>?): DataItem
Note: this uses the default JCA provider which may not support a lot of curves, for example it doesn't support Brainpool curves. If you need to use such curves, use .coseSign1Sign instead with a Signature created using a provider that does have support.
Currently only ECDSA signatures are supported.
TODO: add support and tests for Ed25519 and Ed448.