[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] javax.crypto.BadPaddingException



Hi, all:
 
javax.crypto.BadPaddingException: PKCS#1 requires data at least 11 bytes shorter
 than the modulus!
javax.crypto.BadPaddingException: PKCS#1 requires data at least 11 bytes shorter
 than the modulus!
        at iaik.pkcs.pkcs1.RSACipher.b(Unknown Source)
        at iaik.pkcs.pkcs1.RSACipher.engineDoFinal(Unknown Source)
        at javax.crypto.Cipher.doFinal(Unknown Source)
        at Test.main(Test.java:58)
 
I can't understand what the exception means...
 
Does RSACipher.dofinal(byte[]) have some restrictions on the byte array???
 
How can I resolve it?
 
Thank you~~~~~