7475767778798081828384
} public static Digest getDigestForParams(ECParameterSpec params) { int size = getCurveSize(params); if (size <= 256) { return new SHA256(); } else if (size <= 384) { return new SHA384(); } else { return new SHA512(); }