title: Can you do basic EC operations in Java 7 without a third-party library?
body: <p>Java 7 comes with <a href="http://download.oracle.com/javase/7/docs/technotes/guides/security/SunProviders.html#SunEC" rel="nofollow">SunEC</a>, which provides ECDH and ECDSA operations.  I was attempting to do basic EC operations (point addition, scalar multiplication).</p>
  
  <p>I start with</p>
  
  <pre><code>ECParameterSpec p256 = NamedCurve.getECParameterSpec("secp256r1");
  ECPoint generator = p256.getGenerator();
  BigInteger scalar = new BigInteger("23"); 
  </code></pre>
  
  <p>But from there, I do not see the next step.  There is no <code>ECPoint.scalarMultiply()</code> or <code>ECPoint.add()</code> or <code>EllipticCurve.multiply()</code>.</p>
  
  <p>Am I missing something, or is the answer just "you can't do it without a third-party library?"</p>