rsa_hash_id_from_ident
if ((r = rsa_hash_id_from_ident(alg)) != -1)
if ((hash_alg = rsa_hash_id_from_ident(sigtype)) == -1) {