linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DRBG parallel requests
@ 2015-04-16 14:44 Herbert Xu
  2015-04-16 15:13 ` Stephan Mueller
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Xu @ 2015-04-16 14:44 UTC (permalink / raw)
  To: Stephan Mueller, Linux Crypto Mailing List

Hi Stephan:

Currently you can have two users of DRBG issuing requests in
parallel and end up using the same internal state.  The only
difference between them is the cycle counter that you inject
into the DRBG.

I can't see how this is safe as the cycle counter contains minimal
entropy.  The whole DRBG scheme depends on the fact that states
are not reused so surely this is a very bad thing?

I think we should just stick with locking the entire generation
function.

The only users of RNG in the crypto API do so in process context
so we can make it a rule that all users RNG must be in process
context.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-16 15:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 14:44 DRBG parallel requests Herbert Xu
2015-04-16 15:13 ` Stephan Mueller
2015-04-16 15:30   ` Herbert Xu
2015-04-16 15:36     ` Stephan Mueller

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).