summaryrefslogtreecommitdiff
path: root/drivers/char/random.c
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2015-06-09 13:55:38 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2015-06-10 11:14:01 (GMT)
commit57225e6797885e31302e76fc5926c0bedd7e5ad4 (patch)
tree8cdb966886dcc891cb8c5dd8fd0a90a6f4437983 /drivers/char/random.c
parent205a525c334295e3cd4cc7755fd2c0398e3a787f (diff)
downloadlinux-57225e6797885e31302e76fc5926c0bedd7e5ad4.tar.xz
crypto: drbg - Use callback API for random readiness
The get_blocking_random_bytes API is broken because the wait can be arbitrarily long (potentially forever) so there is no safe way of calling it from within the kernel. This patch replaces it with the new callback API which does not have this problem. The patch also removes the entropy buffer registered with the DRBG handle in favor of stack variables to hold the seed data. Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/random.c')
0 files changed, 0 insertions, 0 deletions