Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751547AbcLEM5r (ORCPT ); Mon, 5 Dec 2016 07:57:47 -0500 Received: from mail-wj0-f194.google.com ([209.85.210.194]:32999 "EHLO mail-wj0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750998AbcLEM5n (ORCPT ); Mon, 5 Dec 2016 07:57:43 -0500 Date: Mon, 5 Dec 2016 13:57:38 +0100 From: Corentin Labbe To: Herbert Xu Cc: davem@davemloft.net, maxime.ripard@free-electrons.com, wens@csie.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] crypto: sun4i-ss: support the Security System PRNG Message-ID: <20161205125738.GA13525@Red> References: <1480934922-20732-1-git-send-email-clabbe.montjoie@gmail.com> <20161205123705.GA10732@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161205123705.GA10732@gondor.apana.org.au> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 632 Lines: 18 On Mon, Dec 05, 2016 at 08:37:05PM +0800, Herbert Xu wrote: > On Mon, Dec 05, 2016 at 11:48:42AM +0100, Corentin Labbe wrote: > > From: LABBE Corentin > > > > The Security System have a PRNG. > > This patch add support for it as an hwrng. > > > > Signed-off-by: Corentin Labbe > > Please don't add PRNGs to hwrng. If we have existing PRNGs in > there please let me know so that we can remove them. > So how to expose PRNG to user space ? or more generally how to "use" a PRNG ? I found hisi-rng, crypto4xx_ and exynos-rng which seems to be PRNG used as hwrng. Regards