CryptGen随机熵
CryptGenRandom 是 Windows 中 CryptoAPI 中的随机数生成器函数。该随机数生成器有多少熵?我已经找了很多了,但还是没找到。
CryptGenRandom is a random number generator function in CryptoAPI in Windows. How much entropy has that random number generator ? I have already looked a lot, but I couldn't find it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Windows CryptGenRandom 的确切算法从未公开,因此,一些安全专家建议根本不要使用它。
进行了一些逆向工程和密码分析。
已发表的研究 (Windows 随机密码分析数字生成器 - Leo Dorrendorf,2007)检查了 Windows 2000 RNG 并发现了一些
设计和实施方面的弱点。
该文档还描述了该算法的熵收集器机制(第 4.2.3 节)。熵源是:
由于我们讨论的是伪数生成器而不是实数生成器,因此您可能会说根本不存在真正的熵,或者只计算您可能认为是“熵”的源(伪熵)。
我无法找到有关 Windows 上较新版本的信息。
The exact algorithm of Windows CryptGenRandom was never published, therefore, some security experts suggest not to use it at all.
Some reverse-engineering and cryptanalysis was made.
A published research (Cryptanalysis of the Windows Random Number Generator - Leo Dorrendorf, 2007) examined Windows 2000 RNG and found a number of
weaknesses in the design and implementation.
The document also describes the entropy collector mechanism of the algorithm (section 4.2.3). The Entropy sources are:
Since we are talking about a pseudo-number-generator and not a real-number-generator, you may say that there is no real entropy at all, or count only the sources that you may consider as "entropy" (pseudo-entropy).
I was unable to find information regarding newer versions on Windows.