Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RSA Performance with key length 768 and 1024

811808Nov 11 2010 — edited Nov 12 2010
Hi,

I have made a RSA Encryption testa with keys that have length 768 and 1024.
I have seen in debuggin window, ~4000 us for 768, ~3000 us for 1024 length key.

For other keys the time duration increases arithmeticaly(512..1984). But for these keys...

Does anyone have any idea,


private final static short RSA_KEY_SIZE = KeyBuilder.LENGTH_RSA_768;
...
rsa_KeyPair = new KeyPair(KeyPair.ALG_RSA_CRT, RSA_KEY_SIZE);
...
cipherRSA = Cipher.getInstance(Cipher.ALG_RSA_NOPAD, false);

cipherRSA.init(rsa_PrivateCrtKey, Cipher.MODE_ENCRYPT);
short cyphertext = cipherRSA.doFinal(inpBuffer,(short) 0, (short) (RSA_KEY_SIZE/8), buf, ISO7816.OFFSET_CDATA);

thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2010
Added on Nov 11 2010
3 comments
568 views