Solaris 开发/随机
你好,
哪种算法实现了 Solaris 的 dev/random?是 Yarrow-160 还是 Yarrow-256 还是算法与 Linux 中的相同?有文档/链接吗?我已经找了很多了,但还是没找到。提前致谢。
Hallo,
Which algorithm implements dev/random of Solaris? Is taht Yarrow-160 or Yarrow-256 or is the algorithm the same as in Linux? Is there documentation / link ? I have already looked a lot, but I couldn't find it. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许 OpenSolaris 源代码,特别是
/src/uts/common/crypto/io/swrand.c
,有一些线索:略读该文件:PRNG 从启动时使用高分辨率时间进行初始化,当前的 TOD 和物理内存状态和值是通过重复的 SHA1 散列和额外的熵池混合(yarrow 规范中的“搅动”)生成的。 SHA1 是 160 位。
该文件也具有相关性:
从该简要分析来看,Solaris 的
/dev/random
看起来像 Yarrow-160 实现。Perhaps the OpenSolaris source, in particular
/src/uts/common/crypto/io/swrand.c
, has some clues:Skimming that file: the PRNG is initialized with high-res time from boot, the current TOD and physical memory state and values are generated from repeated SHA1 hashing with additional entropy pool mixing ("churning" in the yarrow specification). SHA1 is 160 bit.
Also of relevance from that file:
From that brief analysis Solaris'
/dev/random
looks like a Yarrow-160 implementation.