From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VFSZW-00019I-VY for mharc-grub-devel@gnu.org; Fri, 30 Aug 2013 13:33:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFSZS-00015t-LM for grub-devel@gnu.org; Fri, 30 Aug 2013 13:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFSZP-0002ay-N6 for grub-devel@gnu.org; Fri, 30 Aug 2013 13:33:18 -0400 Received: from ipmail05.adl6.internode.on.net ([2001:44b8:8060:ff02:300:1:6:5]:24614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFSZP-0002ac-0o for grub-devel@gnu.org; Fri, 30 Aug 2013 13:33:15 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQBAC3WIFJ20QAD/2dsb2JhbAANTYM8iVW3T4E0gxgBAQEEAQEBawoRCxgJFg8JAwIBAgEVAS8GDQYCAQGICaZUkyiPdYQcA5UsgkmBL5Np Received: from ppp118-209-0-3.lns20.mel4.internode.on.net (HELO [192.168.0.25]) ([118.209.0.3]) by ipmail05.adl6.internode.on.net with ESMTP; 31 Aug 2013 03:03:11 +0930 Message-ID: <5220D779.9040106@cpan.org> Date: Sat, 31 Aug 2013 03:33:45 +1000 From: Douglas Ray User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: GRUB2 on OpenBSD 5.3-amd64: linking problem References: <201308091537.37473.Ilya_Bakulin@genua.de> <52150FC5.3040109@gmail.com> <52165590.4050207@gmail.com> <201308231126.22583.Ilya_Bakulin@genua.de> <52172BDA.4030409@gmail.com> In-Reply-To: <52172BDA.4030409@gmail.com> Content-Type: multipart/alternative; boundary="------------060803010202080000000401" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:44b8:8060:ff02:300:1:6:5 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Aug 2013 17:33:21 -0000 This is a multi-part message in MIME format. --------------060803010202080000000401 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 23/08/13 7:31 PM, Vladimir '?-coder/phcoder' Serbinenko wrote: > On 23.08.2013 11:26, Ilya Bakulin wrote: >> On Thursday 22 August 2013 20:16:48 Vladimir '?-coder/phcoder' Serbinenko >> wrote: >>> On 21.08.2013 21:06, Vladimir '?-coder/phcoder' Serbinenko wrote: >>>> Based on your work, current WIP patch. I've committed some parts of your >>>> patch as well as my own fixes. Remainder is attached >>>> Current problems: >>>> -double/float is mostly a kludge >>>> -build-grub-mkfont >>>> -nm on OpenBSD doesn't accept same options as GNU one. >>> Only the first problem still remains. >> I have just tested the compilation of the latest revision (5148) and confirm >> that it compiles OK! >> There is a warning about random generator not being secure in >> util/grub-mkpasswd-pbkdf2.c, which may be supressed by adding "&& ! defined >> (__OpenBSD__)" to the defines list. > To do this we need a confirmation that reading from /dev/urandom is > indeed the right way to access PRNG on OpenBSD and that it gives us > cryptographically good random. > What would you consider adequate confirmation? I understand there was a problem with random and urandom in OpenBSD up to 4.9, though arandom was good. calomel.org asserts that, as of OpenBSD 5.1, all their random devices use the arc4 library; /dev/urandom now gives as good as /dev/arandom. The following 'ent' analysis is presented for /dev/arandom: ----------------------------------------------------- user@machine: ./ent output Entropy = 7.999956 bits per byte. Optimum compression would reduce the size of this 419430400 byte file by 0 percent. Chi square distribution for 419430400 samples is 257.21, and randomly would exceed this value 44.95 percent of the times. Arithmetic mean value of data bytes is 127.5178 (127.5 = random). Monte Carlo value for Pi is 3.144255776 (error 0.08 percent). Serial correlation coefficient is -0.000120 (totally uncorrelated = 0.0). ----------------------------------------------------- > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --------------060803010202080000000401 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 23/08/13 7:31 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
On 23.08.2013 11:26, Ilya Bakulin wrote:
On Thursday 22 August 2013 20:16:48 Vladimir 'φ-coder/phcoder' Serbinenko 
wrote:
On 21.08.2013 21:06, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
Based on your work, current WIP patch. I've committed some parts of your
patch as well as my own fixes. Remainder is attached
Current problems:
-double/float is mostly a kludge
-build-grub-mkfont
-nm on OpenBSD doesn't accept same options as GNU one.
Only the first problem still remains.
I have just tested the compilation of the latest revision (5148) and confirm 
that it compiles OK!
There is a warning about random generator not being secure in 
util/grub-mkpasswd-pbkdf2.c, which may be supressed by adding "&& ! defined 
(__OpenBSD__)" to the defines list.
To do this we need a confirmation that reading from /dev/urandom is
indeed the right way to access PRNG on OpenBSD and that it gives us
cryptographically good random.

What would you consider adequate confirmation?

I understand there was a problem with random and urandom in
OpenBSD up to 4.9, though arandom was good.

calomel.org asserts that, as of OpenBSD 5.1, all their random devices
use the arc4 library;  /dev/urandom now gives as good as /dev/arandom.

The following 'ent' analysis is presented for /dev/arandom:
-----------------------------------------------------
user@machine:  ./ent output 
Entropy = 7.999956 bits per byte.

Optimum compression would reduce the size
of this 419430400 byte file by 0 percent.

Chi square distribution for 419430400 samples is 257.21, and randomly
would exceed this value 44.95 percent of the times.

Arithmetic mean value of data bytes is 127.5178 (127.5 = random).
Monte Carlo value for Pi is 3.144255776 (error 0.08 percent).
Serial correlation coefficient is -0.000120 (totally uncorrelated = 0.0).

-----------------------------------------------------


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

--------------060803010202080000000401--