From patchwork Sat Nov 7 14:30:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandy Harris X-Patchwork-Id: 7575661 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 55D25C05C6 for ; Sat, 7 Nov 2015 14:32:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 77E4920647 for ; Sat, 7 Nov 2015 14:32:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1E43203F3 for ; Sat, 7 Nov 2015 14:32:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753862AbbKGOcW (ORCPT ); Sat, 7 Nov 2015 09:32:22 -0500 Received: from mail-qg0-f49.google.com ([209.85.192.49]:36108 "EHLO mail-qg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753422AbbKGOar (ORCPT ); Sat, 7 Nov 2015 09:30:47 -0500 Received: by qgad10 with SMTP id d10so112168989qga.3; Sat, 07 Nov 2015 06:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zoAl0iFB8WLERG296eP6Ipmny3ZiH5XK0+p6Ol82qeg=; b=Uu9BpU8foDoVRYuFcDCHRcpOoGJgJVre8LTM2F/wZwgQH4b+Tbkh7Qni+csCFJF+ie 6BMkb5FBnQJK6kADdbsHxdAzF27KBGK/1Z4Km9Z2FCcykQFBLJMpgces1ZqnMlzJ8nFD ARmn07eVeJhf9Vyzx5cwH2jnrVv5D10qqQ0DG2Iz0M9olHl6MKpS8QusaTQzg9lGZkKj CJX3gDlXZj59BWevYcBKLkKgG2r9RChegAbznxfs793WuaaeIcivMbr8jn0/u71Eops5 jwEKGLxGh90ZrvxivHTtSIXIu6pudYDzuSjsnxhrzRmtsswVbMBH2tjQ/sEKhLcN8CTO iw+A== X-Received: by 10.140.246.69 with SMTP id r66mr20176272qhc.56.1446906646296; Sat, 07 Nov 2015 06:30:46 -0800 (PST) Received: from Sandy-laptop.hitronhub.home (CPE00fc8d085973-CM00fc8d085970.cpe.net.cable.rogers.com. [99.224.153.28]) by smtp.gmail.com with ESMTPSA id d8sm1367697qgd.34.2015.11.07.06.30.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 Nov 2015 06:30:45 -0800 (PST) From: Sandy Harris To: "Theodore Ts\\'o" , Jason Cooper , "H. Peter Anvin" , John Denker Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH 2/7] Two new CONFIG options for the random(4) driver Date: Sat, 7 Nov 2015 09:30:37 -0500 Message-Id: <1446906642-19372-2-git-send-email-sandyinchina@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1446906642-19372-1-git-send-email-sandyinchina@gmail.com> References: <1446906642-19372-1-git-send-email-sandyinchina@gmail.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Sandy Harris --- drivers/char/Kconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index a043107..0e0e6b5 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -603,5 +603,28 @@ config TILE_SROM source "drivers/char/xillybus/Kconfig" + +config RANDOM_INIT + bool "Initialise random(4) pools with random data (NEW)" + default n + help + Use /dev/urandom on development machine to set + up pools, different for each compile. + Compiles scripts/gen_random_init.c + Creates include/generated/random_init.h + +config RANDOM_GCM + bool "modified random(4) driver (EXPERIMENTAL)" + depends on RANDOM_INIT + default n + help + New version using the hash from AES-GCM. + Main goal decoupling so that heavy use of + /dev/urandom cannot deplete entropy for + /dev/random. + Should not be used in production before much + more analysis and testing is done. + When in doubt, say "N". + endmenu