code: public static final KeyPair createKeyPair(AlgorithmParameterSpec spec) throws GeneralSecurityException {
  		KeyPairGenerator keyGen = KeyPairGenerator.getInstance(ALGORITHM);
  	    keyGen.initialize(spec, new SecureRandom());
  		return keyGen.generateKeyPair();
  	}
docs: <p>Creates and returns an ECDH key pair for the given parameter specification.</p>
  @param spec
  @return
  @throws GeneralSecurityException