.NET System.Security.Cryptography 密钥派生问题 (AES/Rijndael)

发布于 2024-11-10 04:54:09 字数 355 浏览 5 评论 0原文

当使用 System.Security.Cryptography.Rijndael 或 System.Security.Cryptography.Aes 类中的方法GenerateKey()、CreateEncryptor(Byte[]、Byte[])或CreateEncryptor()时,密钥是如何生成的?

  1. 它是否遵循 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?

  1. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠栀 2024-11-17 04:54:09

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文