消息是
attempt to process message to long for cipher
完整的调用堆栈是
Org.BouncyCastle.Crypto.DataLengthException was unhandled by user code
HResult=-2146233088
Message=attempt to process message to long for cipher
Source=BouncyCastle.Crypto
StackTrace:
at Org.BouncyCastle.Crypto.BufferedAsymmetricBlockCipher.ProcessBytes(Byte[] input, Int32 inOff, Int32 length)
at Org.BouncyCastle.Crypto.BufferedAsymmetricBlockCipher.DoFinal(Byte[] input, Int32 inOff, Int32 length)
at Org.BouncyCastle.Crypto.BufferedCipherBase.DoFinal(Byte[] input)
at MyCode.Bouncy.PublicEncrypt(String value, String pubKey) in c:\MyCode\Helpers\Bouncy.cs:line 80
InnerException:
尝试使用公钥加密长度为 360 的字符串时,密钥长度为 1024 位
该错误似乎表明可以使用此密钥加密的字符串的长度有限制
这个对吗 ?