Creating an EC Public Key using Named Curves

Anders Rundgren anders.rundgren.net at gmail.com
Tue Oct 8 12:53:24 UTC 2013


If you have the X and Y points and the name of a public key you can create a ECPublicKey using BouncyCastle.
I cannot find any counterpart in JDK 7.  What am I missing?

BC:

return KeyFactory.getInstance ("EC").generatePublic (new ECPublicKeySpec (new ECPoint (x, y), new ECNamedCurveSpec (name,...)));

Cheers
Anders



More information about the security-dev mailing list