Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10114982rwr; Fri, 12 May 2023 04:09:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fr2XfkzL7Li39gwhKtCtik6BLFsiwYQlp9w4JA8dK3bcQHREjWDBhesRxGyz8xRimgLuQ X-Received: by 2002:a17:90b:4b11:b0:250:d12d:1a1 with SMTP id lx17-20020a17090b4b1100b00250d12d01a1mr11189221pjb.12.1683889778479; Fri, 12 May 2023 04:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683889778; cv=none; d=google.com; s=arc-20160816; b=wpTGX655PIui0/tKb4H2RQxLb4QdABJgJCsrUXHWZjd/rf0KasgG4s8kyKUZt0wGfp 5teDGFJv7yddI/S5W7iNkzzgUNIgbqimnmEVObeoyWipsN+FWdrVdr+utAP6jKW1f/rd V3IEhtvSwijjgF8/EJ4d8fO8hgdg8jt8nm2ndPMg9qgNWBDNqmbLlkwIcoeY0aJt4/ev fjXG4Xrr8lZPPvLZVwdDIqptbaj0I2VP+lHL0YHCRhEfk37MHU2UAUaNPP3Ir+kRG8DQ CrdnwV7z7Neh1xv7pmEDeIk2++mJkJA3Tx+HS0nSHGbXKCKkzKqvC0HXRqpMpz7wTk8r HT8Q== 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; bh=uNhZ9NCCU3G4AjFdTGDIjQu58/5uUGQOTItilRUGdNk=; b=kHtM7nCkbJ4PrlMGjyDekLmjfbq/wDQhBFSsLW+ulVoUdxDYm8inLYQgJ3aGIM3waP Z41YJLCIgrCZr9TuFEYIeIjq/AqRTzUVCspxsfnXo4prAok5fBiUNkKLkc3gZRJS46Xt o7SMGqhG7F0yStwn5J4EwjwRpzFzDeHruThS7ZJ53l0NVmnbeDy0NEFK5r0WrFmEAthL nDD0ZU0JqbAzb6+VDwWqrXs5Dzc+cmt6Jgy4clnmvEIPYL7stD24CU5+nEf7qpBtKUIM EaPAPXqZ3EDZuhui0GnhSWgtT4eaePauRzMadG8DpU988KxOGD9TyChQ+rN2959ws/pc gsWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a17090a4b4700b00250c9a70af9si7782655pjl.63.2023.05.12.04.09.26; Fri, 12 May 2023 04:09:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240466AbjELK7S (ORCPT + 99 others); Fri, 12 May 2023 06:59:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240810AbjELK6v (ORCPT ); Fri, 12 May 2023 06:58:51 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D2C12E9D for ; Fri, 12 May 2023 03:58:46 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pxQTv-008CA1-Aj; Fri, 12 May 2023 18:58:41 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 12 May 2023 18:58:40 +0800 Date: Fri, 12 May 2023 18:58:40 +0800 From: Herbert Xu To: Stephan =?iso-8859-1?Q?M=FCller?= Cc: linux-crypto@vger.kernel.org, Vladis Dronov , Marcelo Cerri Subject: Re: [PATCH v3 0/2] crypto: jitter - SHA-3 conditioner and test interface Message-ID: References: <2684670.mvXUDI8C0e@positron.chronox.de> <4825604.31r3eYUQgx@positron.chronox.de> <2687238.mvXUDI8C0e@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: <2687238.mvXUDI8C0e@positron.chronox.de> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Apr 21, 2023 at 08:07:39AM +0200, Stephan M?ller wrote: > The patch set replaces the LFSR conditioning function of the Jitter RNG > with SHA-3 256. This change requires also a new test interface to > analyze the raw unconditioned noise data. > > Albeit the test interface can be used directly with dd, a small helper > tool is provided at [1] which can be used to perform the collection > of raw entropy. The analysis of the data can be done with your favorite > tool. Or you may use the helper in [2] which uses the NIST SP800-90B > tool for entropy rate measurement. > > [1] https://github.com/smuellerDD/jitterentropy-library/tree/master/tests/raw-entropy/recording_runtime_kernelspace > > [2] https://github.com/smuellerDD/jitterentropy-library/tree/master/tests/raw-entropy/validation-runtime-kernel > > Changes v3: > > - fix jent_kcapi_init: error code for jent_entropy_collector_alloc now > properly cleans up the state > > - fix jent_kcapi_init: initialize lock at the beginning as it is used in > error code path function jent_kcapi_cleanup > > - editorial change: update description in MODULE_PARM_DESC in patch 0002 > > Changes v2: > > - fix use-after-free by switching shash_desc_zero and crypto_free_shash > in jent_mod_init reported by kernel-test-robot > > Stephan Mueller (2): > crypto: jitter - replace LFSR with SHA3-256 > crypto: jitter - add interface for gathering of raw entropy > > crypto/Kconfig | 21 +++ > crypto/Makefile | 1 + > crypto/jitterentropy-kcapi.c | 190 ++++++++++++++++++--- > crypto/jitterentropy-testing.c | 294 +++++++++++++++++++++++++++++++++ > crypto/jitterentropy.c | 145 ++++++---------- > crypto/jitterentropy.h | 20 ++- > 6 files changed, 551 insertions(+), 120 deletions(-) > create mode 100644 crypto/jitterentropy-testing.c > > -- > 2.40.0 All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt