Welcome!

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

Reply
Developer
Blazej
Posts: 15
Registered: ‎08-14-2008
My Device: 8300 with 4.5.0.52 b75 OS

Generating RSA key with 4096 bits

Hi,

 

in other topic, i've asked about using RSA encryption with 4096, then a found, i had a problem generating RSA key with 4096 bits  length.

Does anybody know, how to generate such a key? BB has restriction up to 2048 bits. 

 

I've tried to use the bouncycastle.org library, but it's slow, generating of 1024 bits key took about 180s, 2048 bits took more than 900s ,in simulator. Built-in function in BB simulator generated 2k key in few seconds.

 

Where is the problem with bouncycastle? How can be the built-in function so fast? Is it because it's native code? Is there some  solution? Any other library? Is the only possible way to generate the key on PC and to transfer it to BB?

 

Thank you for any help.