Use a more reliable selection method for digest algorithms that work with HMAC