Too much data for RSA block fail. What is PKCS#7?

前端 未结 7 865
予麋鹿
予麋鹿 2020-11-30 07:11

Talking about javax.crypto.Cipher

I was trying to encrypt data using Cipher.getInstance(\"RSA/None/NoPadding\", \"BC\") but I got the excep

7条回答
  •  情话喂你
    2020-11-30 07:38

    This error indicates that the input data size is greater than the key modulus size. You will need a bigger key size to encrypt the data. If changing the key length is not an option, alternatively you may need to investigate if you are really expecting that big input data.

提交回复
热议问题