Implementation of ECC in Java

Posted by Rookie_22 on Stack Overflow See other posts from Stack Overflow or by Rookie_22
Published on 2010-06-01T14:00:06Z Indexed on 2010/06/01 14:03 UTC
Read the original article Hit count: 605

Filed under:
|

While trying to encrypt a given input using Elliptic Curve Cryptography in Java I'm using the following algorithms for generating the cipher and the key:

KeyPairGenerator g = KeyPairGenerator.getInstance("ECDSA"); Cipher cipher = Cipher.getInstance("ECIES");

Now as expected, the cipher isn't accepting the keys generated by the ECDSA algorithm. I get the error as - must be passed IE key.

I searched for the ciphers being supported by these 2 methods here: http://java.sun.com/javase/6/docs/technotes/guides/security/StandardNames.html#Cipher

Unfortunately no else algo is supported for ECC. Has anyone used ECC generated keys to encrypt/decrypt an input? Which algo should I use for both so that they don't clash with each other?

© Stack Overflow or respective owner

Related posts about java

Related posts about jce