public static KeyPair generateKeyPair(CurveType curve) throws GeneralSecurityException {
    return generateKeyPair(getCurveSpec(curve));
  }
Generates a new key pair for {@code curve}.
java_src/src/main/java/com/google/crypto/tink/subtle/EllipticCurves.java