From patchwork Tue May 19 21:25:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 197736 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 258FCC433E0 for ; Tue, 19 May 2020 21:26:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EFAD6207FB for ; Tue, 19 May 2020 21:26:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="H7F9ahBC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727860AbgESV0Y (ORCPT ); Tue, 19 May 2020 17:26:24 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:35643 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727825AbgESV0X (ORCPT ); Tue, 19 May 2020 17:26:23 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200519212621euoutp013ff48141c05fe3a8095c9fb5959df98e~QixLbiOfh2114821148euoutp011 for ; Tue, 19 May 2020 21:26:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200519212621euoutp013ff48141c05fe3a8095c9fb5959df98e~QixLbiOfh2114821148euoutp011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1589923581; bh=8xXZu8KwJk4sk0qFMS95EUYNTZd+JYVuM8QsDA9u3E4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H7F9ahBCKUGfCGmWulahyKuCVWR6GajpYRHuKK9hI62/af0WJG+94344PjlUbgOVG VYLDHdc7tIJgvORIJ8G666jnMk4x8SYYcOMiz/WoEDldCbpVgv4rx9O8H+XU65/U6F ywRl+SHicya9BfxC3k5hvuNLqhQd4sw4I9uZqTVE= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200519212620eucas1p19083ebe06068f2df9d92c89dd411c130~QixKJrBRv2659526595eucas1p1U; Tue, 19 May 2020 21:26:20 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 1B.EB.60679.CFE44CE5; Tue, 19 May 2020 22:26:20 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200519212619eucas1p22fa5d3db2521096dc4b79f6e53016d17~QixJiNzIA1745917459eucas1p2P; Tue, 19 May 2020 21:26:19 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200519212619eusmtrp12c03ca924274527851ee90af96fc896a~QixJhaGtF2223622236eusmtrp1M; Tue, 19 May 2020 21:26:19 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-31-5ec44efc18f7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F8.D4.07950.BFE44CE5; Tue, 19 May 2020 22:26:19 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200519212619eusmtip2245d2c1bb185ae2415f0e2571978fc74~QixJUQ9CC0582005820eusmtip2b; Tue, 19 May 2020 21:26:19 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Kukjin Kim , Krzysztof Kozlowski , Florian Fainelli , Markus Elfring , Matthias Brugger , Stefan Wahren , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Stephan Mueller Cc: Bartlomiej Zolnierkiewicz , =?utf-8?b?xYF1?= =?utf-8?q?kasz_Stelmach?= Subject: [PATCH v2 1/2] hwrng: iproc-rng200 - Set the quality value Date: Tue, 19 May 2020 23:25:51 +0200 Message-Id: <20200519212552.11671-2-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200519212552.11671-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRjm2zk7O0qz0zR8maU18kdKXkriAyW0gk50wR/9qEhr1UHDbeqW lhEomZl3USpdViMVxXsnnTWkbK20vKzyVmFJtKiWinkhNcvajpH/nvf9nud5nwc+mpBlUnL6 lOY0p9UoVQrKlTQ+nevdtLDfEh30vYHCv4qeSvCdkkYxrs97QmJrVhWB58ctEpxe3kjhHPsa XPDxG4Gt1iYJfmOuRpj/OCjGI+/nRLjPVEbhEusDETYU28TYYMxH+FPpXQqP19oQvtJVT+KO ziwi3IP9OV+EWP1ID8VO9veL2Pv6dxK2nH9IscZ2X5avyaLYhzfqJOzdilQ2v7kGsflfmxDb 2DxAsheeZ4rZKd470u2wa9hJTnUqmdMGbjvmGts03EskFNJn+9pziDR0UZKNXGhgQuCycZbK Rq60jKlGYK/4iYRhGkHuYD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kvmEhMWzC2RRW 4xt2WhpnfPscS8qlLrxou46lg8t8PaAoSO+B40P79MCVEtL3AJzJ6COcdTF8UByrBy7L6AYX hvSk0zMG4P3e16RDIOn9MOdeD+EQRHQTARuHs3gOAaPPwyuf7ISD3eiDMH2wboVx2hv++WHE HSyg90J9yR/MOcEDXiuvX2nqQofAjt+/VlhIq2DewgDh9G+Ez4rsuGM5jN4Bq0uEjvIG2gdW 6l7hzrEeMOPxLSwXCA2rEob/CcMqVynAKoCITeZUsSrOT8opVVxyYqw0Wq0ygeW3MHfN1jUA /cRRC6ApIFkn2N1kVQgJZQqXqrIASGESkSD3i0UhFMQoU9NYjTpKk5zAchYQsHxmHibeFK1e frJEbZQsQCZHQTK5v9w/EEk2CzLp9pNCOlapZc+xbBKr+ZfjUS7idPCqOfBIttLglVOepu87 gK95EzC4wNs53b/o3tAiaA+enGqm+iPBnUeeBV46RdPHGZ21v3JkMvKzSMHIc7vlHuPD1uNJ 8REa4yc7DL96xjwaGaYSh8/GL83/fN2m22KV0ws69dpQc+ah+l7bVIaofKbTahurmbj0zlx5 zG1bowTn4pQyH0zDKf8CFUGULSwDAAA= X-CMS-MailID: 20200519212619eucas1p22fa5d3db2521096dc4b79f6e53016d17 X-Msg-Generator: CA X-RootMTR: 20200519212619eucas1p22fa5d3db2521096dc4b79f6e53016d17 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200519212619eucas1p22fa5d3db2521096dc4b79f6e53016d17 References: <20200514190734.32746-1-l.stelmach@samsung.com> <20200519212552.11671-1-l.stelmach@samsung.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The value was estimaded with ea_iid[1] using on 10485760 bytes read from the RNG via /dev/hwrng. The min-entropy value calculated using the most common value estimate (NIST SP 800-90P[2], section 6.3.1) was 7.964464. [1] https://github.com/usnistgov/SP800-90B_EntropyAssessment [2] https://csrc.nist.gov/publications/detail/sp/800-90b/final Signed-off-by: Łukasz Stelmach --- 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 32d9fe61a225..95669ece050f 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 = 1000, /* Register driver */ ret = devm_hwrng_register(dev, &priv->rng); From patchwork Thu May 14 19:07:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 197746 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE921C433E1 for ; Thu, 14 May 2020 19:07:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9BAB220675 for ; Thu, 14 May 2020 19:07:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="L72k8lV6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729497AbgENTHx (ORCPT ); Thu, 14 May 2020 15:07:53 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57893 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730198AbgENTHm (ORCPT ); Thu, 14 May 2020 15:07:42 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200514190741euoutp013c6df0928e6c1bf6ce9ade3f9e189a2e~O_prY_IbN1335313353euoutp01U for ; Thu, 14 May 2020 19:07:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200514190741euoutp013c6df0928e6c1bf6ce9ade3f9e189a2e~O_prY_IbN1335313353euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1589483261; bh=ZtfxDhdLs90OyvVegf5gSIpg3nb7fV8VW4Z3SaViPnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L72k8lV60AbOjZg4Ks2+xX2iK3uN69F1iHAeMmo4D7spNYxMf2Blvth3ZPDEEneU9 il3Jyq0CqykA+cqzRud5bB9/6A4Sjrw+MdE4NgD1koZYJt30BBbe54oGaI5EUBhQxh omjPKPB4HL462umdcropg/8mf4yx1V6zd30p3i9s= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200514190740eucas1p1b78f50aa2a8c350a702be990ef03efe9~O_pqww51q0232902329eucas1p1_; Thu, 14 May 2020 19:07:40 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 7B.D4.61286.CF69DBE5; Thu, 14 May 2020 20:07:40 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200514190740eucas1p293129b2ef3ba706652a9327e55db9649~O_pqCM4Hi0297902979eucas1p21; Thu, 14 May 2020 19:07:40 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200514190740eusmtrp1551cbba1be4f614ee676bbff1259ef18~O_pqBgBsy2577025770eusmtrp1o; Thu, 14 May 2020 19:07:40 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-df-5ebd96fc26b3 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 16.BE.07950.BF69DBE5; Thu, 14 May 2020 20:07:39 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200514190739eusmtip2b58bea1e9cfb3ef1c0fcca3c010eee29~O_pp2e-ro1760217602eusmtip2F; Thu, 14 May 2020 19:07:39 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Kukjin Kim , Krzysztof Kozlowski , Florian Fainelli , Markus Elfring , Matthias Brugger , Stefan Wahren , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz , =?utf-8?b?xYF1?= =?utf-8?q?kasz_Stelmach?= Subject: [PATCH 2/2] hwrng: exynos - Set the quality value Date: Thu, 14 May 2020 21:07:34 +0200 Message-Id: <20200514190734.32746-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200514190734.32746-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA01SfUzMcRjf934v9+vW1a+L9ayMuZVN81Jj7RstjM1vtuRPY+Lwk+htd73Q H6S63lC5K9UVWoXW2+XkKJGu00mrNiEqFHkpFIWUMt39zvjveZ7P2/NsD0PIEml3JiwyhldG Ks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Hof/ya2eL8+Q3sFjcPrWC02PT4GqvF/Xs/mSwu 75rDZjHj/D4miwWTn7BaLNjWx2jxdOZmNot3q58wWhw/0cnsIOzx+9ckRo9Z98+yeeycdZfd Y/Gm/Wwe2w6oemxa1cnmsX/uGnaPzUvqPfq2rGL06Hu5gdFj/ZarLB5Np9pZPT5vkgvgjdKz KcovLUlVyMgvLrFVija0MNIztLTQMzKx1DM0No+1MjJV0rezSUnNySxLLdK3S9DLuPv3CGNB P3vF7TnPWBoYm9i6GDk5JARMJOavamftYuTiEBJYyijxbMlvpi5GDqCElMTKuekQNcISf651 gdULCTxllHh8Rw/EZhNwlOhfegKsV0RgMqvEmz2tTCAJZoFyidaHT1hBbGEBK4m+c3uYQWwW AVWJlts/wQbxClhLnPx9gB1igbzE7MbTYHFOARuJ6y9+MUEss5a482UuK0S9oMTJmU9YQG5j FlCXWD9PCCTML6AlsabpOgvEWnmJ5q2zmScwCs1C0jELoWMWkqoFjMyrGEVSS4tz03OLjfSK E3OLS/PS9ZLzczcxAhPDtmM/t+xg7HoXfIhRgINRiYfXYOreOCHWxLLiytxDjBIczEoivH7r d8cJ8aYkVlalFuXHF5XmpBYfYjQFenMis5Rocj4waeWVxBuaGppbWBqaG5sbm1koifN2CByM ERJITyxJzU5NLUgtgulj4uCUamA0yDu9I/q3DtOHdw8nizxJWCC3YXNlQ9jxECu9IxZMR7PU wkNarYL+CZcUfwh94Ln33O/Px68LfFt2+JmU3W7O2buN3nktPq+yNi0v89Ldl2fey14OX+xV 2uDQ8iUz+tyjjqyMRxHXZQ22zelcGTJX6P3RSIY/5+07Dz2UvbhDcn3GHiGlOw/UlFiKMxIN tZiLihMBTXD5ViIDAAA= X-CMS-MailID: 20200514190740eucas1p293129b2ef3ba706652a9327e55db9649 X-Msg-Generator: CA X-RootMTR: 20200514190740eucas1p293129b2ef3ba706652a9327e55db9649 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200514190740eucas1p293129b2ef3ba706652a9327e55db9649 References: <20200514190734.32746-1-l.stelmach@samsung.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The value has been estimaded by obtainig 1024 chunks of data 128 bytes (1024 bits) each from the generator and finding chunk with minimal entropy using the ent(1) tool. The value was 6.332937 bits of entropy in each 8 bits of data. Signed-off-by: Łukasz Stelmach --- drivers/char/hw_random/exynos-trng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_random/exynos-trng.c index 8e1fe3f8dd2d..ff6739272bf5 100644 --- a/drivers/char/hw_random/exynos-trng.c +++ b/drivers/char/hw_random/exynos-trng.c @@ -123,6 +123,7 @@ static int exynos_trng_probe(struct platform_device *pdev) trng->rng.init = exynos_trng_init; trng->rng.read = exynos_trng_do_read; trng->rng.priv = (unsigned long) trng; + trng->rng.quality = 800; platform_set_drvdata(pdev, trng); trng->dev = &pdev->dev;