76777879808182838485
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(); } }