From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761830AbcLUXPS (ORCPT ); Wed, 21 Dec 2016 18:15:18 -0500 Received: from frisell.zx2c4.com ([192.95.5.64]:37979 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758958AbcLUXNk (ORCPT ); Wed, 21 Dec 2016 18:13:40 -0500 MIME-Version: 1.0 In-Reply-To: <20161221230216.25341-4-Jason@zx2c4.com> References: <20161216030328.11602-1-Jason@zx2c4.com> <20161221230216.25341-1-Jason@zx2c4.com> <20161221230216.25341-4-Jason@zx2c4.com> From: "Jason A. Donenfeld" Date: Thu, 22 Dec 2016 00:13:34 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 3/6] random: use SipHash in place of MD5 To: Netdev , kernel-hardening@lists.openwall.com, LKML , Linux Crypto Mailing List , David Laight , Ted Tso , Hannes Frederic Sowa , Eric Dumazet , Linus Torvalds , Eric Biggers , Tom Herbert , Andi Kleen , David Miller , Andy Lutomirski , Jean-Philippe Aumasson Cc: "Jason A. Donenfeld" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ted, On Thu, Dec 22, 2016 at 12:02 AM, Jason A. Donenfeld wrote: > This duplicates the current algorithm for get_random_int/long I should have mentioned this directly in the commit message, which I forgot to update: this v7 adds the time-based key rotation, which, while not strictly necessary for ensuring the security of the RNG, might help alleviate some concerns, as we talked about. Performance is quite good on both 32-bit and 64-bit -- better than MD5 in both cases. If you like this, terrific. If not, I'm happy to take this in whatever direction you prefer, and implement whatever construction you think best. There's been a lot of noise on this list about it; we can continue to discuss more, or you can just tell me whatever you want to do, and I'll implement it and that'll be the end of it. As you said, we can always get something decent now and improve it later. Alternatively, if you've decided in the end you prefer your batched entropy approach using chacha, I'm happy to implement a polished version of that here in this patch series (so that we can keep the `rm lib/md5.c` commit.) Just let me know how you'd like to proceed. Thanks, Jason