Home >

SDK Reference Guide > Java Interfaces > Elliptic Curve Problem in SUN JDK 1.6 and earlier

Elliptic Curve Problem in SUN JDK 1.6 and earlier

If you are using a version of SUN JDK earlier than 6 (JDK 1.6), avoid using these specific elliptic curves:

secp160k1

secp192k1

secp224k1

secp256k1

sect233k1

sect239k1

sect283k1

sect409k1

sect571k1

X9.62 c2pnb208w1

Due to a Java bug, those curves can result in errors if they (validly) have coefficients of zero.

If you must use those curves, then update to SUN Java 1.6, which fixes the problem.

The bug is acknowledged on the SUN website, here:

http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=1b1e7de9a9bde55460e50e7fbed5?bug_id=6542846