[From nobody Tue Feb 6 19:40:43 2018 Return-path: <uucp@wheatstone.g10code.de> Envelope-to: wk@wheatstone.g10code.de Delivery-date: Tue, 06 Feb 2018 16:15:07 +0100 Received: from uucp by wheatstone.g10code.de with local-rmail (Exim 4.84 #3 (Debian)) id 1ej4xf-0002YT-So for <wk@wheatstone.g10code.de>; Tue, 06 Feb 2018 16:15:07 +0100 Received: from lists.gnupg.org ([2001:aa8:fff1:2100::57]) by kerckhoffs.g10code.com with esmtps (Exim 4.89 #1 (Debian)) id 1ej52T-0001n6-US for <wk@gnupg.org>; Tue, 06 Feb 2018 16:20:05 +0100 Received: from localhost ([127.0.0.1] helo=trithemius.gnupg.org) by lists.gnupg.org with esmtp (Exim 4.84_2 #2 (Debian)) id 1ej4t3-0007lF-V1; Tue, 06 Feb 2018 16:10:21 +0100 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on trithemius.gnupg.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,MISSING_MID, RCVD_IN_DNSWL_HI autolearn=ham autolearn_force=no version=3.4.0 Received: from kerckhoffs.g10code.com ([217.69.77.222]) by lists.gnupg.org with esmtp (Exim 4.84_2 #2 (Debian)) id 1ej4sj-0007YH-Oh for <mm.gnupg-users@lists.gnupg.org>; Tue, 06 Feb 2018 16:10:01 +0100 Received: from pettijohn-web.com ([108.61.222.55] helo=mail.pettijohn-web.com) by kerckhoffs.g10code.com with esmtps (Exim 4.89 #1 (Debian)) id 1ej4sk-0000xe-By for <gnupg-users@gnupg.org>; Tue, 06 Feb 2018 16:10:02 +0100 Received: from [10.17.139.7] (mobile-107-107-191-142.mycingular.net [107.107.191.142]) by mail.pettijohn-web.com (OpenSMTPD) with ESMTPSA id 36ddb667 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Tue, 6 Feb 2018 09:09:56 -0600 (CST) Date: Tue, 06 Feb 2018 09:09:54 -0600 Subject: Re: [patches] add support for arc4random_buf() From: edgar@pettijohn-web.com To: Werner Koch <wk@gnupg.org>, Edgar Pettijohn <edgar@pettijohn-web.com> X-Priority: 3 Importance: Normal X-BeenThere: gnupg-users@gnupg.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Help and discussion among users of GnuPG <gnupg-users.gnupg.org> List-Unsubscribe: <http://lists.gnupg.org/mailman/options/gnupg-users>, <mailto:gnupg-users-request@gnupg.org?subject=unsubscribe> List-Archive: <https://lists.gnupg.org/pipermail/gnupg-users/> List-Post: <mailto:gnupg-users@gnupg.org> List-Help: <mailto:gnupg-users-request@gnupg.org?subject=help> List-Subscribe: <http://lists.gnupg.org/mailman/listinfo/gnupg-users>, <mailto:gnupg-users-request@gnupg.org?subject=subscribe> Cc: gnupg-users@gnupg.org Errors-To: gnupg-users-bounces@gnupg.org Sender: "Gnupg-users" <gnupg-users-bounces@gnupg.org> X-Sender-Host: lists.gnupg.org Message-Id: <E1ej4xf-0002YT-So@wheatstone.g10code.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Feb 6, 2018 6:35 AM, Werner Koch <wk@gnupg.org> wrote: > > On Tue,=C2=A0 6 Feb 2018 06:25, edgar@pettijohn-web.com said: > > Please see attached patches to add support for arc4random_buf() as an > > alternate to /dev/{u}random. I tried to be as unobtrusive as possible > > and maintain style. It should also allow the user to still define > > RANDOM_CONF_ONLY_URANDOM if they would prefer to use > > /dev/urandom. This will allow gpg to be used on filesystems mounted > > nodev while providing quick, quality randomness. > > Please describe what arc4random_buf is and where it is used. The manual is probably the best source of information. http://man.openbsd.org/arc4random However, the tldr. arc4random_buf() fills the buffer with nbytes of random data using the ChaC= ha20 cipher. It is thread safe. Every call stirs it more adding to it's ran= domness. Thanks, Edgar > > I also redirect this to the libgcrypt mailing list. > > > Salam-Shalom, > > =C2=A0=C2=A0 Werner > > --=20 > Die Gedanken sind frei.=C2=A0 Ausnahmen regelt ein Bundesgesetz. _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users ]