.NET System.Security.Cryptography 密钥派生问题 (AES/Rijndael)
当使用 System.Security.Cryptography.Rijndael 或 System.Security.Cryptography.Aes 类中的方法GenerateKey()、CreateEncryptor(Byte[]、Byte[])或CreateEncryptor()时,密钥是如何生成的?
- 它是否遵循 RFC-2898 中使用的方法?我只能假设它确实遵循 RFC-2898,因为 Rfc2898DeriveBytes 也是 System.Security.Cryptography 命名空间中的一个类。
When using the methods GenerateKey(), CreateEncryptor(Byte[], Byte[]), or CreateEncryptor() found in System.Security.Cryptography.Rijndael or System.Security.Cryptography.Aes class, how are the the keys generated?
- Does it follow the methods used in RFC-2898? I can only make an assumption that it does follow RFC-2898 since Rfc2898DeriveBytes is also a class in the System.Security.Cryptography namespace.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GenerateIV 方法和GenerateKey 方法都只是生成所需长度的随机字节序列。他们不使用 KDF。
Both the GenerateIV Method and the GenerateKey Method just generate a sequence of random bytes of the required length. They do not use a KDF.