Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 5
Registered: ‎09-21-2009
My Device: Not Specified

ECPublicKey exception

I'm getting an invalidKeyException when I'm trying to do this:


ret = new ECPublicKey(cryptoSystem, data);


the weird part is that I've implemented another function exactly the same with:


ret = new ECPrivateKey(cryptoSystem, data);


which throws no errors.


Has someone experienced this or know what's going wrong?



All Replies
Posts: 14
Registered: ‎04-23-2012
My Device: Bold
My Carrier: 2063103963

Re: ECPublicKey exception

Did you manage to get this resolved?  I'm trying to the same thing for ECDSA using a public key saved from Crypto++ on Windows.  The key is in X.509 format.  I've tried using the PublicKeyDecoder, but that fails as well.


Thanks much