RSA Performance with key length 768 and 1024
811808Nov 11 2010 — edited Nov 12 2010Hi,
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.