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

前端 未结 7 822
予麋鹿
予麋鹿 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

    0 讨论(0)
提交回复
热议问题