grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB2 on OpenBSD 5.3-amd64: linking problem


From: Douglas Ray
Subject: Re: GRUB2 on OpenBSD 5.3-amd64: linking problem
Date: Sat, 31 Aug 2013 03:33:45 +1000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

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:
-----------------------------------------------------
address@hidden:  ./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
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]