Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1742335pxb; Mon, 22 Feb 2021 09:43:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrLgUTuF3J3EZpD+R2wPxyXp2s7KmoDPTNEtOqLqMxWPhwaSXFNmKmKqr403jo6P2fqvo7 X-Received: by 2002:a50:fe89:: with SMTP id d9mr23997866edt.57.1614015819236; Mon, 22 Feb 2021 09:43:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614015819; cv=none; d=google.com; s=arc-20160816; b=wn8WywmLaNKj4wguBjNl/g8YmTdFSjv/OezHIYKXlwBO/BYKwOgsrSC1sOz0ZDscj6 LFSgkrAP89cuD9fw+tguQYTySLtVJUidvKdWbDUjES9YQZJf11sKVrctdGA+KZsaVY+D BDYtrUZBDgWFUzlL10WLnEOVf5Z2sDSfhP0MVqwgnvX4H0ZpHpxyshO+6uhuPKPFf8sz FzOMue5+6CP/rhigMBm9jbx1UWLnhphR2FoKxWaqzfqAPq5Y8VmYToBk1FSbkkLFqLrQ bii8XCKxgliKu0rFQeFORZsdgyBZ4WJ0euAp0u9Wty7oUgzqofPH9OllghNxvKUvXRKj LL1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=NY8kRpaCrPaUtks6bCFSY8Gi2GN5/EoW01JXpCz+8sE=; b=dwtrYF1ejmPtMtUn6NdmTevVqWpHoz5aFozkZRlGuB7jC6jAUlxG+sUqsSrIVnpT40 3tU32UNjwYW2YRAhdnKF3LhhuP+nDMqLELEIc1ece5lrvV76ThbvR/NAoc8RcposqNZI mBD0xe5Pi3N5fkFZnkc+gYvyYFD0PhFuZXbHcPD4dx7jsIc7MJH/GK+/qOVofZl+URSp HFPSt1SBZwi32upEt2D9QqbSrnIJPOnA32bqAkSusFkKSk/+zmqRfynAKzcr9j5fuafR 2sCWnZq9OyW55tcr6WZOc94URbAHP2BQLNfCBKz1xwIUeXqwCfjMoxwBtBGqzUXXUnv/ wFyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=GNw3epD+; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si11971363ejj.217.2021.02.22.09.43.07; Mon, 22 Feb 2021 09:43:38 -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=@broadcom.com header.s=google header.b=GNw3epD+; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231483AbhBVRkv (ORCPT + 99 others); Mon, 22 Feb 2021 12:40:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbhBVRku (ORCPT ); Mon, 22 Feb 2021 12:40:50 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 748D1C06174A for ; Mon, 22 Feb 2021 09:40:10 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id cx11so16147pjb.4 for ; Mon, 22 Feb 2021 09:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=NY8kRpaCrPaUtks6bCFSY8Gi2GN5/EoW01JXpCz+8sE=; b=GNw3epD+Hvt135vRotArkOTsNxWHHfHhoz1Hm8Dn5JjyPEZ2rgr2g41LVEHkTY8GW2 ybel0S6ZI1x3Ply53bWi3ogOzYsvrTwldgiNXmKoMCb+1xxWcYh8loXB1D78e0CBZtDD G7LZPisJHUVE/qPMI3itPmITfucQ0W3WxiuvU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=NY8kRpaCrPaUtks6bCFSY8Gi2GN5/EoW01JXpCz+8sE=; b=iga2zd0WxjybWh0YDjAeFJe958U52Q5eDI7A3mhIgsHceVaO3zDNyfQs8rRFQLXDbC nVyR7cvRh8DFUOu9cJti950gOzp6FYaUAiT46lfwL3nrQpZVEpERrV21vGrOYCFc3P3X kh6bjHKwZi3jjQtp9moKQTC0+/B8sA+sizGF7A1S9VIpCJu2VDa8n0VX1whU8yPhTrCL 2JXUo8AxCi+z6KcYyTgEcQIJIyHcqmDQE6mIy6nMJFk2MhJU2VeZaeqi9nHplTMqmFJb 2V8FvOG7vDGdSP8WcZp7hj9vUXB22f/d87dhB5dgjB9CNF0mKqNt2bRD+YP+Bcg+BNMz jcNA== X-Gm-Message-State: AOAM5332EMCJ4j6PiIafz5B78yXYWdTT/G+CwMUPAi80THywgbVM0mB4 OBHrdROf1NreTWzjg5CuTM3eEA== X-Received: by 2002:a17:90a:7405:: with SMTP id a5mr11134999pjg.13.1614015608352; Mon, 22 Feb 2021 09:40:08 -0800 (PST) Received: from lbrmn-lnxub113.ric.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id o127sm12642015pfg.202.2021.02.22.09.40.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Feb 2021 09:40:07 -0800 (PST) Subject: Re: [PATCH v2] hwrng: iproc: set quality to 1024 To: =?UTF-8?Q?=c3=81lvaro_Fern=c3=a1ndez_Rojas?= , mpm@selenic.com, herbert@gondor.apana.org.au, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, Julia.Lawall@inria.fr, f.fainelli@gmail.com, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210220182935.11247-1-noltari@gmail.com> <20210220200107.4833-1-noltari@gmail.com> From: Scott Branden Message-ID: <5a5888f0-5eb1-f796-8b85-daf159c1d9b3@broadcom.com> Date: Mon, 22 Feb 2021 09:40:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210220200107.4833-1-noltari@gmail.com> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000001cc0d005bbf04bfb" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org --0000000000001cc0d005bbf04bfb Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Looks ok to me. On 2021-02-20 12:01 p.m., Álvaro Fernández Rojas wrote: > This allows khwrngd to make use of iproc-rng200. > > Justification: > cat /dev/hwrng | rngtest -c 1000 > rngtest 6.10 > Copyright (c) 2004 by Henrique de Moraes Holschuh > This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > rngtest: starting FIPS tests... > rngtest: bits received from input: 20000032 > rngtest: FIPS 140-2 successes: 1000 > rngtest: FIPS 140-2 failures: 0 > rngtest: FIPS 140-2(2001-10-10) Monobit: 0 > rngtest: FIPS 140-2(2001-10-10) Poker: 0 > rngtest: FIPS 140-2(2001-10-10) Runs: 0 > rngtest: FIPS 140-2(2001-10-10) Long run: 0 > rngtest: FIPS 140-2(2001-10-10) Continuous run: 0 > rngtest: input channel speed: (min=107.179; avg=200.770; max=9765625.000)Kibits/s > rngtest: FIPS tests speed: (min=34.742; avg=39.905; max=66.458)Mibits/s > rngtest: Program run time: 97829648 microseconds > > 1000 successes and 0 failures -> 100% success rate > > Signed-off-by: Álvaro Fernández Rojas Acked-by: Scott Branden > --- > v2: set quality to 1024 and add justification > > drivers/char/hw_random/iproc-rng200.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/char/hw_random/iproc-rng200.c b/drivers/char/hw_random/iproc-rng200.c > index 01583faf9893..d22406528ac5 100644 > --- a/drivers/char/hw_random/iproc-rng200.c > +++ b/drivers/char/hw_random/iproc-rng200.c > @@ -199,6 +199,7 @@ static int iproc_rng200_probe(struct platform_device *pdev) > priv->rng.read = iproc_rng200_read; > priv->rng.init = iproc_rng200_init; > priv->rng.cleanup = iproc_rng200_cleanup; > + priv->rng.quality = 1024; > > /* Register driver */ > ret = devm_hwrng_register(dev, &priv->rng); > --0000000000001cc0d005bbf04bfb Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQRQYJKoZIhvcNAQcCoIIQNjCCEDICAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2aMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT Ckdsb2JhbFNpZ24wHhcNMTYwNjE1MDAwMDAwWhcNMjQwNjE1MDAwMDAwWjBdMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEzMDEGA1UEAxMqR2xvYmFsU2lnbiBQZXJzb25h bFNpZ24gMiBDQSAtIFNIQTI1NiAtIEczMIIBIjANBgkqhkiG9w0BAQE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