linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephan Mueller <smueller@chronox.de>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-crypto@vger.kernel.org
Subject: Re: [PATCH 3/4] crypto: drbg - replace spinlock with mutex
Date: Sun, 19 Apr 2015 17:37:21 +0200	[thread overview]
Message-ID: <1695105.vT0DvueDZS@myon.chronox.de> (raw)
In-Reply-To: <20150419054803.GA11255@gondor.apana.org.au>

Am Sonntag, 19. April 2015, 13:48:03 schrieb Herbert Xu:

Hi Herbert,

> On Sat, Apr 18, 2015 at 01:35:40PM +0200, Stephan Mueller wrote:
> > When you do that, may I ask you to also update the crypto_alloc_rng. This
> > function has one major drawback at the moment: we are wasting precious
> > entropy. The testmgr must allocate the RNG for performing its testing
> > using
> > crypto_alloc_rng. As the RNG implementation has no knowledge at allocation
> > time that it will be used for testing, it will seed itself for the real
> > work. Then comes testing: the seeded RNG is now reset with the test
> > "entropy" and thereby wasting the initial seed.
> 
> Yes the DRBG will be unusable when first allocated and you must
> seed it to actually draw entropy and be able to use it.

I am not sure I understand you correctly: shall the DRBG have these 
precautions? If so, wouldn't we break the requirements in SP800-90A where the 
DRBG is intended to seed itself?

Or would you want to update the crypto_alloc_rng routine?
> 
> Cheers,


-- 
Ciao
Stephan

  reply	other threads:[~2015-04-19 15:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17 12:53 [PATCH 0/4] crypto: drbg - revamp locking Stephan Mueller
2015-04-17 12:54 ` [PATCH 1/4] cryoto: drbg - clear all temporary memory Stephan Mueller
2015-04-18 10:59   ` Herbert Xu
2015-04-17 12:54 ` [PATCH 2/4] crypto: drbg - do not create shadow copy Stephan Mueller
2015-04-18 10:49   ` Herbert Xu
2015-04-18 12:51     ` Stephan Mueller
2015-04-17 12:55 ` [PATCH 3/4] crypto: drbg - replace spinlock with mutex Stephan Mueller
2015-04-18 10:55   ` Herbert Xu
2015-04-18 11:35     ` Stephan Mueller
2015-04-19  5:48       ` Herbert Xu
2015-04-19 15:37         ` Stephan Mueller [this message]
2015-04-20  0:27           ` Herbert Xu
2015-04-20  0:45             ` Stephan Mueller
2015-04-20  0:48               ` Herbert Xu
2015-04-20  0:51                 ` Stephan Mueller
2015-04-17 12:56 ` [PATCH 4/4] crypto: drbg - leave cipher handles operational Stephan Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1695105.vT0DvueDZS@myon.chronox.de \
    --to=smueller@chronox.de \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).