Skip to Main Content

Java Security

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!

What blocksize do I need to perform RSA encryption?

843810Jun 19 2002 — edited Oct 13 2003
I 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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2003
Added on Jun 19 2002
7 comments
1,090 views