熵池生成器
好的,所以我想开始为 Linux 编写一个熵池生成器。我一直在阅读熵生成源,但似乎最强大的熵源来自读取硬件。我是否可以访问我需要的资源,或者操作系统是否阻止我这样做?另外,如果可以的话,我将如何开始与这些设备进行通信。我将尝试了解更多信息,但如果有人能指出我正确的方向,我将不胜感激。
Ok, so I want to begin programming an entropy pool generator for linux. I've been reading up on sources of entropy generation, but its seems like most powerful entropy sources come from reading hardware. Would I even have access to the sources I need, or does the operating system prevent me from doing that? Also, if I could, how would I begin to communicate with these devices. I'm going to try to find out more, but if anyone could even point me in the right direction it would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 http://sourceforge.net/projects/gkernel/files/rng-tools/ 查看如何添加硬件生成器。
可以使用 insmod 随时加载用于访问 hw_random 内容的模块。
另一种选择是将随机数据写入字符设备节点并使用 rngd 使其成为熵源。简单易行:
您可以以管理员身份创建并直接访问设备节点。
这里唯一的问题实际上是将一些随机的东西放入随机节点中......如果您没有使用板载硬件,那么那就完全是另一回事了。
希望这有帮助
Check out http://sourceforge.net/projects/gkernel/files/rng-tools/ to see how to add a hardware generator.
The modules for accessing the hw_random stuff can be loaded at any time using insmod.
Another option is to write random data to a character device node and use rngd to make that an entropy source. easy as pie:
You can create and directly access device nodes as admin.
The only problem here is actually getting some random stuff into your random node thing...if you aren't using on-board hardware then that's a whole other story.
Hope this helped