toCoseAlgorithm

Tries to find a matching COSE algorithm. Note that COSE imposes curve restrictions on ECDSA based on the digest.