Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Elliptic Curve Encryption in Java 7, Is it implemented?

 
Yoram Halberstam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to this documentation JAVA 7 supports Elliptic Curve encryption.

Standard Algorithm Name Documentation

I've tried



but I get



I can't see it listed when I run that code either:



I'm using the Unlimited Strength downloaded from Sun Website. I've generated a key pair using

keytool -genkeypair -keyalg EC -keysize 160 -keystore test-ie.jks -storepass password -alias ec160 -dname "CN=Yoram Halberstam, OU=Test EC 160, O=MPI, L=London, ST=London, C=GB"
 
greg stark
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, but "support" means something different here. Java will support new algorithms in the JCE by provider standard names that provider implementers may use to provide actual implementations. The standard names are only half the battle, you must then check and see if there are any JCE providers that implement that algorithm. As you can see here, none of the Oracle providers supports this algorithm.

I believe the bouncycastle provider supports ECIES.
 
Yoram Halberstam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
greg stark wrote:Ah, but "support" means something different here. Java will support new algorithms in the JCE by provider standard names that provider implementers may use to provide actual implementations. The standard names are only half the battle, you must then check and see if there are any JCE providers that implement that algorithm. As you can see here, none of the Oracle providers supports this algorithm.

I believe the bouncycastle provider supports ECIES.


Ah ok thanks - oh well at least you can generate the key with keytool!
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic