too much data for RSA block using BouncyCastle
843811May 24 2006 — edited May 25 2006HI 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