What blocksize do I need to perform RSA encryption?
843810Jun 19 2002 — edited Oct 13 2003I am implementing RSA crypto on a smart card and get Cryptoexception.ILLEGAL_USE when trying to do the ciphering with doFinal()-method. Now this is probably due to my indatas blocksize I figure.
I am using a 1024-bit key and I guess there is some rule saying what blocksize is allowed.
For example, in my documentation it says that when using DES the blocksize must be modulo 8, that is 8,16,...,n*8 bytes in size. Is there a similar rule using RSA?
Also, what would be the maximum size of the indata if that is possible to find out?
Sincerely