public static ECParameterSpec getCurveSpec(CurveType curve) throws NoSuchAlgorithmException {
    switch (curve) {
      case NIST_P256:
        return getNistP256Params();
      case NIST_P384:
        return getNistP384Params();
      case NIST_P521:
        return getNistP521Params();
    }
    throw new NoSuchAlgorithmException("curve not implemented:" + curve);
  }
Returns the ECParameterSpec for a named curve.

@param curve the curve type
@return the ECParameterSpec for the curve.
java_src/src/main/java/com/google/crypto/tink/subtle/EllipticCurves.java