我很好奇,因为 RSA 不是分组密码,但 Encrypt() 方法可以采用任意数量的数据进行加密。
是否使用AES+RSA混合加密?或者它只是简单地(错误地)使用 RSA 作为分组密码?
最佳答案
yet the Encrypt() method can take an arbitrary amount of data to encrypt
根据 MSDN不能
Maximum Length of rgb Parameter
Modulus size -2 -2*hLen, where hLen is the size of the hash.
它甚至有一个 CryptographicException
,内容为“rgb 参数的长度大于允许的最大长度。”。
关于c# - C# RSACryptoServiceProvider Encrypt() 方法如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6442191/