to Cose Algorithm
Tries to find a matching COSE algorithm. Note that COSE imposes curve restrictions on ECDSA based on the digest.
Tries to find a matching COSE algorithm. Note that CoseAlgorithm.MAC.HS256_64 cannot be mapped automatically.
fun SymmetricEncryptionAlgorithm<*, *, *>.toCoseAlgorithm(): KmmResult<CoseAlgorithm.SymmetricEncryption>
Tries to find a matching COSE algorithm. Note that only AES-GCM and ChaCha/Poly are supported.