public static boolean isNistEcParameterSpec(ECParameterSpec spec) {
    return isSameEcParameterSpec(spec, NIST_P256_PARAMS)
        || isSameEcParameterSpec(spec, NIST_P384_PARAMS)
        || isSameEcParameterSpec(spec, NIST_P521_PARAMS);
  }
Returns whether {@code spec} is a {@link ECParameterSpec} of one of the NIST curves.
java_src/src/main/java/com/google/crypto/tink/internal/EllipticCurvesUtil.java