Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp389242ybk; Wed, 20 May 2020 02:11:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4C0xHuH+v2JU6x/PUQyupCMJvCMd4vjpogPmwLubD4D67WKZGh5yRTcBNC8Q5VE/NPSnP X-Received: by 2002:a50:c60c:: with SMTP id k12mr2423098edg.111.1589965918460; Wed, 20 May 2020 02:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589965918; cv=none; d=google.com; s=arc-20160816; b=w+q2RkFUxwpHhDqrAQAbIhUXqxBAcWY6LDyvgMxY6Zz7BjEMr25OOGaKlKSaVVbMie 9MOZmc0GiNQ5mdyzY23teJd+Hvx4si3a5HViCX237477IQXmEpzlwFrJhODG85OeKpvd rUqkI/UjFsbhNRxA7673cjHlNGOzOo8yrS0Y/v0H9S6DQ7Zi5jy3u4Y+MobSzCkUVJ13 oLKFFk6EnyJmw2Ez9SuKiGfXwiNgCXGc/sOxZLxXTs8q6rvhwW8AINqjcWIdrQ0Hp3au tjltS8X80uAXolCK5XKg5e4TmGcKzuveeePTh9iMw/1NwrZdy2oFBJtZYJE5qpwtB6/5 eh4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:mime-version :user-agent:message-id:in-reply-to:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=Ik7IIZgBVxkfBPHIlJ3FcRHTlQPWyYIvhW9LFSW2QiU=; b=OlnCbL7rtRBKMzY8dJKXsbWAJqVGwSziQsPxm2aL7X26SEYOC8yqmQOY308088G6+m GdwZWMvakQCYwXjjcUcRt2NjoJbnIe/Ro2e1XuOs2ieWcR7oRWf3UMJtbW7+QZaFtSNY AeQd+qwH98dVbyAN5RS6eiuNWfVU/8x1xNGgJaWZj8CzbNLUiyEW9Rtyj38DpeAO3epZ PYsxs9nOaazoHiwtwYpjgCO79HlV2B9Du+hVN+gbqpBME8acd9Hc1BfIdJaJohdmGmQQ fWo22kF9GLq4hum9UUewEGYE8Mzo7J3tOI1RgSRLZ9ufTYNSAx8pFDkTqUXiyPlg2XsC fcxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=h9Ygwzog; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si1320877edk.162.2020.05.20.02.11.26; Wed, 20 May 2020 02:11:58 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b=h9Ygwzog; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726510AbgETJKr (ORCPT + 99 others); Wed, 20 May 2020 05:10:47 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49132 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726403AbgETJKq (ORCPT ); Wed, 20 May 2020 05:10:46 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200520091044euoutp026770d90a495d56eae89d8f08b9ce172c~QsYLhZv8n3274832748euoutp02l; Wed, 20 May 2020 09:10:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200520091044euoutp026770d90a495d56eae89d8f08b9ce172c~QsYLhZv8n3274832748euoutp02l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1589965844; bh=Ik7IIZgBVxkfBPHIlJ3FcRHTlQPWyYIvhW9LFSW2QiU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h9YgwzogO14ift6H3+DtTgO5V8CO8+OX8SUlRjjCXfM1m2p1PTSjccjH8rdEQn9ld Yea9ogRG+9ugtkCxPFyxIFWBXRY3sv5+z0Jwf1RigXL0WI6ytNRVrBye5lI6Q3Yowp BJSmi/ViPMn+MIYMjjCCTp+UCpFzs2+UD0ye/p4Q= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200520091043eucas1p2feac347997dc632e3b3b5346272c37d8~QsYLO7TWK1590115901eucas1p2_; Wed, 20 May 2020 09:10:43 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 16.61.61286.314F4CE5; Wed, 20 May 2020 10:10:43 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200520091043eucas1p15ecae108007382a95b01e42241cc7a26~QsYK5aUP42199621996eucas1p18; Wed, 20 May 2020 09:10:43 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200520091043eusmtrp2a5bec9df1163088b2990b5c13058c987~QsYK4a7mJ0336803368eusmtrp2f; Wed, 20 May 2020 09:10:43 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-f1-5ec4f4134ab7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 73.0B.08375.314F4CE5; Wed, 20 May 2020 10:10:43 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200520091043eusmtip22c1a46ce2665b5a87a3ba9c950895c30~QsYKpzAhc3121631216eusmtip2b; Wed, 20 May 2020 09:10:43 +0000 (GMT) From: Lukasz Stelmach To: Stephan Mueller Cc: 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, Bartlomiej Zolnierkiewicz Subject: Re: [PATCH v2 1/2] hwrng: iproc-rng200 - Set the quality value Date: Wed, 20 May 2020 11:10:32 +0200 In-Reply-To: <1748331.j7eDFAdTc1@tauon.chronox.de> (Stephan Mueller's message of "Wed, 20 May 2020 08:23:59 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Brightmail-Tracker: H4sIAAAAAAAAA02SbUyTVxTHc/u80tn6UDCedMQsHSZTY8FI9BoVp1ni/bYtyxbjIlrlGRBp Ma34ljlwKgyVQoBlUmvAKS8BC1hqo8xR0qEgKN14UYwKibAMqsOkxSBF5vp4NfHb75zz/9/z kisyunpeL2ZZ9stWiynbwKtZ763ZwMq46c60ZHu5Ec+X3RLwlbPNHHYV32RxoKiOwZGpTgEf v9jM49PBBFwy9pTBgUCLgN1j9zg8OjKrwgNtTh6fDbSrcHX5OIervXaE/65s5fFU4zjCP/e6 WNzVXcR8GkfmImWIOEbv8iQ0OKgi1x2PBXLR7eOJt2MpcTcU8cR3/rJAWi/lEbunARH7ZAsi zZ4hlvzYU8iRsHvJF9rt6g3pcnbWAdmalLpLnXkmMK3aVxV7aK5mmMtHYe0pFCOClAKBohlW YZ1Uj6Bv6rtTSB3laQSD7S6BBmE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EM2NbuTt0rzxFpzXo2VUFWk6fKsuhUbycTkby+MRkOZ2g2L8xPkkWm5aSx6qOFLO6 2LSD8oJzrlle0TVxyXyTmygHM6EmIBRAKhG+HhgmTCBEIKGaAPzhPoGZgMAfSOGt+vygEwYX Rkxk0PEC6Og/AwIOScmh1ZodcMKpdXC44tqig1E9BPxQOUIEgjBqB2x0N+MBllA0vGP5DgKM U2uhr+7roiOkDNDZbMUCLKIU8N3pKn6AI6hk2OXz8IN1MXxWN7E4B6MK4c/Wz9hFQJmXROYl kdm/Hubfqb0nNlheD5sbJ7Egp8K2tmm8ARAWEM4aOHW+mqPlnFLNGTT58sNatQ34X6L7yZz9 LnjTmeUAlADIloniHvTlSghlMVeqdoA1/jGfOlpfASmu0WpYWbjoos+RKxHlKUuPsTrtAZ1B xXIOkOS/8xImjTis9T+bRn+ATqIVKJlWJCgSNiBZpOgs9XifhMpX6tlCli1idf/7eAKhtBzs qVFt7zn6gKn9eLzx8/JSVVlnrqdl0juZGjudvqlV3DYVM/Jo9ND2QdM3X+Wz8r66im3OuKlv C6PO5TDeLVYVRD5MvyHdNe0tO7Tzft+QN8Oe0TS4Int174zwReTVjK0/FZnZ9qiNJRfsxTVb kp4aDRs8We9bJJkmY050qTsmcVaGcwVKOhrTccp/YUqeCDQDAAA= X-CMS-MailID: 20200520091043eucas1p15ecae108007382a95b01e42241cc7a26 X-Msg-Generator: CA X-RootMTR: 20200520091043eucas1p15ecae108007382a95b01e42241cc7a26 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200520091043eucas1p15ecae108007382a95b01e42241cc7a26 References: <1748331.j7eDFAdTc1@tauon.chronox.de> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org --=-=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable It was <2020-05-20 =C5=9Bro 08:23>, when Stephan Mueller wrote: > Am Dienstag, 19. Mai 2020, 23:25:51 CEST schrieb =C5=81ukasz Stelmach: > >> 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. > > I am sorry, but I think I did not make myself clear: testing random numbe= rs=20 > post-processing with the statistical tools does NOT give any idea about t= he=20 > entropy rate. Thus, all that was calculated is the proper implementation = of=20 > the post-processing operation and not the actual noise source. > > What needs to happen is that we need access to raw, unconditioned data fr= om=20 > the noise source that is analyzed with the statistical methods. I did understand you and I assure you the data I tested were obtained directly from RNGs. As I pointed before[1], that is how /dev/hwrng works[2]. If I am wrong, do show me the code that processes the data from a HW RNG before copying them to user provided buffer[3]. [1] https://lkml.org/lkml/2020/5/15/252 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree= /Documentation/admin-guide/hw_random.rst?h=3Dv5.6 [3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree= /drivers/char/hw_random/core.c?h=3Dv5.6#n251 Kind regards, =2D-=20 =C5=81ukasz Stelmach Samsung R&D Institute Poland Samsung Electronics --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEXpuyqjq9kGEVr9UQsK4enJilgBAFAl7E9AgACgkQsK4enJil gBDKOggAoVfZTiIxpvV2zbs8NraxS44nLMlX476LHniFWu6Rurw1WrepnIi5HGp3 J5YcE/eOtH8dciy9fHz2NFgXG6711U8pgqDV0A31xSPlJj9effjLVEbROl4oDc4Y O6Rl6WMjUKnetl/nWNMhi39JuxYZnRPLnnmawxPUPjR7DiO2TxO9yPqBY2verjFp AQQWy3/fw1H3mS4sg7eRbN5zZHtmCFQoKvFn5C1xoiMchWu66kERk3vUJtpGw0UV d51Ro2X1gBbvV8ZfZkG1jmgI2Q4mL314gfQ0xIogF7HQECELHZ7qKU35tT6LjA3C jrAmmuMFHtUEgK9hjq6X4hCon2i8OA== =hppL -----END PGP SIGNATURE----- --=-=-=--