crypto: drbg - add async seeding operation
authorStephan Mueller <smueller@chronox.de>
Mon, 25 May 2015 13:09:36 +0000 (15:09 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 09:51:53 +0000 (17:51 +0800)
commit4c7879907eddd5b3ec09489bc980aab4f44e38dd
tree8d1c5d0b32e923d233b2ba66f0eb51d873e7a6ae
parent3d6a5f75d1340539dcdcec4609761fa4b836a1f2
crypto: drbg - add async seeding operation

The async seeding operation is triggered during initalization right
after the first non-blocking seeding is completed. As required by the
asynchronous operation of random.c, a callback function is provided that
is triggered by random.c once entropy is available. That callback
function performs the actual seeding of the DRBG.

CC: Andreas Steffen <andreas.steffen@strongswan.org>
CC: Theodore Ts'o <tytso@mit.edu>
CC: Sandy Harris <sandyinchina@gmail.com>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c
include/crypto/drbg.h