Is it possible to use Elliptic Curve Cryptography in Java 6 by default? I don't want use any third party providers like Bouncy castle.
The answer is a simple no, ECC functionality was not added until Java 7. Java 6 simply provided the API interface - a pretty well defined one at that - but not an actual implementation. That said, it may be usable through a PKCS#11 module (using the Sun PKCS#11 provider). But in that case you need a PKCS#11 compatible .dll which is probably unacceptable unless you are able to install a third party native library.
In OpenJDK7 and Java 7 SE, basic ECC is fully supported according to this page. You still might have to add the JCA and export policy from an external .jar though because of US encryption export laws, it can't be in standard releases of Java but it is not technically a 3rd party provider since it is made by Oracle. Also note if you're not using NIST named curves, you'll most likely have to use a separate library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With