TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Critical PRNG Bug in NetBSD Kernel

122 点作者 tshtf大约 12 年前

8 条评论

yk大约 12 年前
<p><pre><code> Due to a misplaced parenthesis, if insufficient GOOD bits were available to satisfy a request, the keying/rekeying code requested either 32 or 64 ANY bits, rather than the balance of bits required to key the stream generator. </code></pre> I think this paragraph is a nice reminder, how hard crypto can be.
评论 #5420717 未加载
评论 #5420970 未加载
kilovoltaire大约 12 年前
I enjoyed the Thanks To section:<p><pre><code> Thor Lancelot Simon for causing, finding and fixing the bug</code></pre>
beering大约 12 年前
The advisory says that reading from /dev/random is fine, but reading from /dev/urandom is affected. Shouldn't cryptographic applications be using /dev/random to begin with? I was under the impression that /dev/urandom is only for when low-quality randomness is acceptable.
评论 #5420788 未加载
评论 #5420822 未加载
jimktrains2大约 12 年前
&#62; Due to a misplaced parenthesis...<p>I know this isn't the (main) take away message, but it does make me feel a little better about some errors I've made in the past to know that even heavily vetted code can have these types of errors.
评论 #5420809 未加载
jey大约 12 年前
Anyone have a link to the actual patch?
评论 #5420793 未加载
vincie大约 12 年前
Does vim have a plugin to detect unbalanced parens/brackets/braces etc?
评论 #5422376 未加载
评论 #5421434 未加载
xkcdfanboy大约 12 年前
Just in case anyone is curious, the error was having `sizeof(key - r)` instead of `sizeof(key) - r`<p>Rookie mistake!
评论 #5421651 未加载
martinced大约 12 年前
<i>"Due to a misplaced parenthesis..."</i><p>Is this RNG written in Lisp!?<p>Sorry, couldn't resist ; ) (big fan of Clojure and elisp here btw)
评论 #5421682 未加载