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!

too much data for RSA block using BouncyCastle

843811May 24 2006 — edited May 25 2006
HI everybody.... I have a problem with I try to encrypt a document with Cypher and Bouncycastle as a provider...

java.lang.ArrayIndexOutOfBoundsException: too much data for RSA block
at org.bouncycastle.jce.provider.JCERSACipher.engineDoFinal(Unknown Source)
at javax.crypto.Cipher.doFinal(DashoA12275)

I thinks it happens because the document is very big....
Anyone knows how encrypt with Streams at BouncyCastle....

THANKS....

Andres
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2006
Added on May 24 2006
1 comment
2,392 views