Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elliptic Curve Cryptography in Java 6

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.

like image 868
Aslam Avatar asked Feb 18 '26 13:02

Aslam


2 Answers

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.

like image 104
Maarten Bodewes Avatar answered Feb 20 '26 02:02

Maarten Bodewes


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.

like image 32
Jim Avatar answered Feb 20 '26 01:02

Jim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!