2

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

  1. 它是否遵循RFC-2898中使用的方法?我只能假设它确实遵循 RFC-2898,因为 Rfc2898DeriveBytes 也是 System.Security.Cryptography 命名空间中的一个类。
4

1 回答 1

2

GenerateIV 方法和 GenerateKey 方法都只生成所需长度的随机字节序列。他们不使用 KDF。

于 2011-05-26T15:02:35.817 回答