www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:to:from:subject:mime-version | |
:content-type; q=dns; s=default; b=M58fxKMuP7t1ls0jO4L+++msv2/Hb | |
HIC4rEsZdmNxrOKkE19RUnvZFiNje/nVR3/aEPSpssFwhfX9prFl/M48zO/tv6cX | |
3zL+T8tAEmOBM905x36TOIEbvAvdrugBJTgfvrxMprPcNrXJQLmPcITeVfGTnv/y | |
DXjnko7SFcW+6w= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:to:from:subject:mime-version | |
:content-type; s=default; bh=Ce2+yD3LhAzxazW51zb5eov23wM=; b=Ct9 | |
jV8hf73JRWAAOO990Hwkh4AWtAmnA+6LBN/ywMMpuMVXzulg36Jdgi1OTFNdY4zC | |
Jdw5bF4InHdhdhFWgC8YWzlPqRbi9LKdasIRkCgIai7sQ4HzAwa6YHtpu6bX5DOP | |
nmhIhwlUlkCjL99AjXcLxSlGfFWDcIXPEVIFFy48= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=3.8 required=5.0 tests=BAYES_50,POKER_BODY,SPF_FAIL autolearn=no version=3.3.2 |
X-HELO: | mx.binnacle.cx |
Message-Id: | <6.2.5.6.2.20130918141146.03a25770@binnacle.cx> |
Date: | Wed, 18 Sep 2013 14:19:10 -0400 |
To: | cygwin AT cygwin DOT com |
From: | starlight DOT 2013z3 AT binnacle DOT cx |
Subject: | /dev/random does not block, emits poor entropy |
Mime-Version: | 1.0 |
X-Spam-Score: | -1 () ALL_TRUSTED |
Received-SPF: | pass (mx.binnacle.cx: 172.29.87.10 is whitelisted by SPF-milter whitelist entry) |
Hello, While poking around TRNG quality I came across this apparent issue: /dev/random does not block, emits poor entropy Running 1.7.17 but see no updates in the 1.7.18 thru 1.7.25 Changelog entries regarding /dev/random. Due to 'argp' library issues I could not compile 'rngtest' under Cygwin. Worked around it by running netcat -l -p 8989 172.29.88.18 </dev/random on the Windows side and ncat 172.29.88.10 8989 | rngtest -t 10 on the Linux machine. Output looks like rngtest: FIPS tests speed: (min=389.946; avg=74898.778; max=94811.893)Kibits/s rngtest: Program run time: 60032020 microseconds rngtest: bits received from input: 3088523264 rngtest: FIPS 140-2 successes: 154295 rngtest: FIPS 140-2 failures: 131 rngtest: FIPS 140-2(2001-10-10) Monobit: 17 rngtest: FIPS 140-2(2001-10-10) Poker: 15 rngtest: FIPS 140-2(2001-10-10) Runs: 53 rngtest: FIPS 140-2(2001-10-10) Long run: 47 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0 rngtest: input channel speed: (min=393.292; avg=188386.332; max=887784.091)Kibits/s rngtest: FIPS tests speed: (min=389.946; avg=74949.192; max=94811.893)Kibits/s rngtest: Program run time: 69528238 microseconds which I think would qualify as "not great." Is similar to what I see when running rngtest -t 10 /dev/urandom on Linux. My guess is that the /dev/random driver needs an adjustment to block when the MS crypto function calls indicate a lack of available entropy --assuming that the MS libraries support entropy qualification of some kind. I don't subscribe to the list (though I do look at the archives), so please CC me on any requests for my input. Regards -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |