<div dir="ltr"><div><div><div>Sure that makes sense. Historically there were no such service in the System.<br>I wanted to remind that crypto has to care that randomness comes from sufficiently random source, not just a random random source.<br>
</div>If the contract is explicit enough (Smalltalk cryptoLevelRandom?), then it can move to the System.<br></div>But would it serve other purpose than crypto?<br></div>I would rather implement a CryptoRandom class part of Crypto package, either via plugin or FFI to wrap over /dev/random or equivalent...<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/19 Frank Shearar <span dir="ltr">&lt;<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That&#39;s why I used the phrase &quot;better encapsulated&quot; :) I don&#39;t care<br>
particularly _where_ the randomness comes from (and on a Unix machine,<br>
/dev/random or /dev/urandom (I can&#39;t remember which) is the proper<br>
place). I just really, really don&#39;t want a Crypto package depending on<br>
a Sound package. So if System supplied a hook that declared &quot;get your<br>
randomness here&quot;, and the base image _happened_ to connect that to<br>
one&#39;s mic, that would be OK. But the direct dependency is bonkers.<br>
<br>
frank<br>
<br>
On 19 November 2013 21:27, Nicolas Cellier<br>
<div class="HOEnZb"><div class="h5">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt; wrote:<br>
&gt; It&#39;s because crypto must not rely on pseudo random generated numbers, they<br>
&gt; are considered too easy to crack.<br>
&gt; I guess that sound input was seen as a universal way to get some hardware<br>
&gt; noise...<br>
&gt; Nowadays, shouldn&#39;t it be something like /dev/random?<br>
&gt;<br>
&gt;<br>
&gt; 2013/11/19 Frank Shearar &lt;<a href="mailto:frank.shearar@gmail.com">frank.shearar@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Does anyone know the current state of play of the crypto team?<br>
&gt;&gt;<br>
&gt;&gt; We have a DSA implementation in &quot;System-Digital Signatures&quot; that<br>
&gt;&gt; should belong in a package called &quot;Crypto-Something&quot;, but if the other<br>
&gt;&gt; stuff was better I&#39;d rather delete this and use the proper stuff.<br>
&gt;&gt;<br>
&gt;&gt; Also, we need a better encapsulated source of randomness than<br>
&gt;&gt; &quot;SoundService default randomBitsFromSoundInput: 512&quot; because crypto<br>
&gt;&gt; shouldn&#39;t depend on a sound package. I don&#39;t care if something _plugs<br>
&gt;&gt; that in_, but the direct reference is suboptimal.<br>
&gt;&gt;<br>
&gt;&gt; frank<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>