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

前端 未结 7 848
予麋鹿
予麋鹿 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:50

    RSA can only be used to encrypt, when the number of bits being used to encrypt is greater then the size of the thing you are tying to encrypt + 11 bytes

    Public-Key Cryptography Standards - PKCS

提交回复
热议问题