Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1672156

Re: [PATCH] crypto: sun4i-ss: support the Security System PRNG

From Herbert Xu <herbert@gondor.apana.org.au>
Newsgroups linux.kernel
Subject Re: [PATCH] crypto: sun4i-ss: support the Security System PRNG
Date 2017-06-22 01:50 +0200
Message-ID <tUXxL-4Ng-5@gated-at.bofh.it> (permalink)
References <tUnkE-6DB-65@gated-at.bofh.it> <tUo71-6Xh-55@gated-at.bofh.it> <tUpPr-84z-13@gated-at.bofh.it> <tUHCG-2z2-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] crypto: sun4i-ss: support the Security System PRNG Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-06-20 11:10 +0200
  Re: [PATCH] crypto: sun4i-ss: support the Security System PRNG Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-20 12:00 +0200
    Re: [PATCH] crypto: sun4i-ss: support the Security System PRNG Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-06-20 13:50 +0200
      Re: [PATCH] crypto: sun4i-ss: support the Security System PRNG Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-21 08:50 +0200
        Re: [PATCH] crypto: sun4i-ss: support the Security System PRNG Herbert Xu <herbert@gondor.apana.org.au> - 2017-06-22 01:50 +0200

csiph-web