[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170621234710.GA22306@gondor.apana.org.au>
Date: Thu, 22 Jun 2017 07:47:10 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Maxime Ripard <maxime.ripard@...e-electrons.com>
Cc: Corentin Labbe <clabbe.montjoie@...il.com>, davem@...emloft.net,
wens@...e.org, linux-kernel@...r.kernel.org,
linux-crypto@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] crypto: sun4i-ss: support the Security System PRNG
On Wed, Jun 21, 2017 at 08:48:55AM +0200, Maxime Ripard wrote:
> On Tue, Jun 20, 2017 at 01:45:36PM +0200, Corentin Labbe wrote:
> > On Tue, Jun 20, 2017 at 11:59:47AM +0200, Maxime Ripard wrote:
> > > Hi,
> > >
> > > On Tue, Jun 20, 2017 at 10:58:19AM +0200, Corentin Labbe wrote:
> > > > The Security System have a PRNG, this patch add support for it via
> > > > crypto_rng.
> > >
> > > This might be a dumb question, but is the CRYPTO_RNG code really
> > > supposed to be used with PRNG?
> > >
> >
> > Yes, see recently added drivers/crypto/exynos-rng.c
>
> It's still not really clear from the commit log (if you're talking
> about c46ea13f55b6) why and if using the RNG code for a PRNG is a good
> idea.
The hwrng interface is meant for true hardware RNGs. The crypto API
rng interface is primarily intended for PRNGs.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists