Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5689612pxb; Wed, 26 Jan 2022 18:56:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhY58qIuYXjesFHD3AYsnuzC/rdGu3pvGbWI7UneaorSrLV+/nT0SqYrFx78o212slw+JV X-Received: by 2002:a05:6402:5189:: with SMTP id q9mr1824122edd.314.1643252196743; Wed, 26 Jan 2022 18:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643252196; cv=none; d=google.com; s=arc-20160816; b=0YheSnh8uFv690IaNbW29yixaCtTYuxhbOvysDNFqjI2LwJ+Cm4HawSn7RltKBqzl5 Oyvodv+Rs2c7eGulE31DaO+oUVGDn9xk+0JPwoa2zIRz894umVl1I6UfdRoihqm1tyc/ JwkX/hkVjbmir9yvemHMJoDjEl2FlIyrU3zea4OWU80t1NP3ueJYO+b01UM9mtTc40al k+abL4SH7tIfO1QfUnwh7uPxQNhfJ4+9hJZJFIXntY3I104TRaVZX5BLqTgM3WlyLU15 fulEF15Dyh29/5jdlq+5FWHiSHHnexZ9ICAiAB5I5sPvraAaz9eHrHGmZ6ORAjuPn66x z8Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QthA4VnJuuhg1vXytX6lpMOpUQ+6nIBK61JvSJIkk0Y=; b=vj4WU93bZaFf4ej/vR58ARLcIhxljlQBmNJvvJcCqhLhWi8LKvqWHr9P/a4t2Px+nv FMLj0p1FUinO2WougNJstxbSVzxAJ6Dxma4FEBYis2Fdkvc4rSMTYg24shX2ZtFJS3ew PBxkFhptIEG5sqMUsCa2pSSGVsUw+fB7pnadSsH+NF00gAdHXoMPy4d6yKTlKsq6dtwr NAIqi0q9j52Fx/Y3M83tmC9e0enG8JCQWUpNleQm0e6kCoc6fgBh5gQu3Q+6NbietDbd OcezmJ1fIcw+6TL/qLkAjbx41qLBT/wEUKlQqb7NtuwRc5meyjxvvn3tFUnUprRZY0Ji G/Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="e/zjxvE3"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 9si665596ejk.838.2022.01.26.18.56.02; Wed, 26 Jan 2022 18:56:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="e/zjxvE3"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230339AbiAZWtH (ORCPT + 99 others); Wed, 26 Jan 2022 17:49:07 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:52902 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229672AbiAZWtH (ORCPT ); Wed, 26 Jan 2022 17:49:07 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3C3F4B82059 for ; Wed, 26 Jan 2022 22:49:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D202EC340E3; Wed, 26 Jan 2022 22:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643237345; bh=QthA4VnJuuhg1vXytX6lpMOpUQ+6nIBK61JvSJIkk0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e/zjxvE3L4HYT1/VT6aF0MCF9MdYTIaWd8tUmEc8hE1ecP5LDb7XXEj4r5UZYk76u AkJufI4XSbLzPI1sjY9TbWZiU56KXx41dvFKMFjwxAM+NyarC02iQgoswTcJdCtV+Z BqPkLfYC3v9oNWMRu4TaDTP9FWC5sPCz2yEjUB5ngOWf0uOXXynyrmUzf5LFvwG+HM hFd1URYyC6pyGvctri2OwwozodLmE+NhulPzOhjfDfJtdC1pKH74C0Qbyo0klotyDk XsJwvfGZtcDGLhhYY4nCwpJ87EHpBslkCWmBzg3cjtswNtj100dDy0SBvCCBYOaH0x RhLORmgCSKmsg== Date: Wed, 26 Jan 2022 14:49:03 -0800 From: Eric Biggers To: Stephan =?iso-8859-1?Q?M=FCller?= Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, simo@redhat.com, Nicolai Stange Subject: Re: [PATCH 0/7] Common entropy source and DRNG management Message-ID: References: <2486550.t9SDvczpPo@positron.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2486550.t9SDvczpPo@positron.chronox.de> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Jan 26, 2022 at 08:02:54AM +0100, Stephan M?ller wrote: > The current code base of the kernel crypto API random number support > leaves the task to seed and reseed the DRNG to either the caller or > the DRNG implementation. The code in crypto/drbg.c implements its own > seeding strategy. crypto/ansi_cprng.c does not contain any seeding > operation. The implementation in arch/s390/crypto/prng.c has yet > another approach for seeding. Albeit the crypto_rng_reset() contains > a seeding logic from get_random_bytes, there is no management of > the DRNG to ensure proper reseeding or control which entropy sources > are used for pulling data from. ansi_cprng looks like unused code that should be removed, as does the s390 prng. With that being the case, what is the purpose of this patchset? - Eric