]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: drbg - move to generic async completion
authorGilad Ben-Yossef <gilad@benyossef.com>
Wed, 18 Oct 2017 07:00:41 +0000 (08:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:19 +0000 (22:11 +0800)
commitc54f1fe929bf69b79906904b12eb2b0cfdc75fdc
tree7dc78fee7b511e9a26664cc3b25d0be9a6d35d97
parent96aa73f9fd34395928dd57836dc811799101aea0
crypto: drbg - move to generic async completion

DRBG is starting an async. crypto op and waiting for it complete.
Move it over to generic code doing the same.

The code now also passes CRYPTO_TFM_REQ_MAY_SLEEP flag indicating
crypto request memory allocation may use GFP_KERNEL which should
be perfectly fine as the code is obviously sleeping for the
completion of the request any way.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c
include/crypto/drbg.h