Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VCpw9-0001WD-0V for mharc-grub-devel@gnu.org; Fri, 23 Aug 2013 07:53:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCpw2-0001Vv-Uj for grub-devel@gnu.org; Fri, 23 Aug 2013 07:53:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCpvy-0003l6-Ql for grub-devel@gnu.org; Fri, 23 Aug 2013 07:53:46 -0400 Received: from gg6.genua.de ([2001:a60:f08e:c000::1]:31686 helo=gg.genua.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCpvy-0003kg-Bu for grub-devel@gnu.org; Fri, 23 Aug 2013 07:53:42 -0400 Received: from gg.genua.de (localhost.genua.de [127.0.0.1]) by gg.genua.de (8.14.5/8.14.5) with ESMTP id r7NBrct5020182 for ; Fri, 23 Aug 2013 13:53:38 +0200 (CEST) Received: (from localhost) by gg.genua.de (MSCAN) id 3/gg.genua.de/smtp-gw/mscan; Fri Aug 23 13:53:38 2013 From: Ilya Bakulin To: grub-devel@gnu.org Subject: Re: GRUB2 on OpenBSD 5.3-amd64: linking problem Date: Fri, 23 Aug 2013 13:53:33 +0200 User-Agent: KMail/1.9.10 (enterprise35 20120322.0d8ab49a133482885a7a6ae00ec4472b1859206f) References: <201308091537.37473.Ilya_Bakulin@genua.de> <201308231126.22583.Ilya_Bakulin@genua.de> <52172BDA.4030409@gmail.com> In-Reply-To: <52172BDA.4030409@gmail.com> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <201308231353.33748.Ilya_Bakulin@genua.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:a60:f08e:c000::1 Cc: Vladimir =?utf-8?q?=27=CF=86-coder/phcoder=27?= Serbinenko 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, 23 Aug 2013 11:53:51 -0000 On Friday 23 August 2013 11:31:06 Vladimir '=CF=86-coder/phcoder' Serbinenk= o wrote: > > 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. On OpenBSD, all random pseudo-devices (random, arandom, srandom, urandom)=20 provide cryptographically good random. =46rom the random(4) man page: DESCRIPTION The various random devices produce high quality random output data. Entropy data is collected from system activity (like disk, network, and clock device interrupts and such), and then run through various hash or message digest functions to generate the output. All the random devic= es are expected to provide high quality pseudo-random output data. The arc4random(3) function in userland libraries seeds itself from this device (or with the sysctl(3) interface), providing a second level of ARC4 hashed data without the need to access these devices every time. =2D- Ilya