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.

Cheers,
-- 
Email: Herbert Xu <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to