toCoseAlgorithm
fun SpecializedDataIntegrityAlgorithm.toCoseAlgorithm(): KmmResult<CoseAlgorithm.DataIntegrity>(source)
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>(source)
Tries to find a matching COSE algorithm. Note that only AES-GCM and ChaCha/Poly are supported.