static bool isEccAlgorithm(Algorithm a) { return a == Algorithm.ES256 || a == Algorithm.ES384 || a == Algorithm.ES512 || a == Algorithm.ECDH; }