toJwsAlgorithm

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