OSDN Git Service

crypto: introduce crypto wait for async op
authorGilad Ben-Yossef <gilad@benyossef.com>
Wed, 18 Oct 2017 07:00:38 +0000 (08:00 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 Jan 2018 02:20:28 +0000 (18:20 -0800)
commit4ecacbed6e1ca727c1df55b231b3a7247ac38c4f
tree97dd16ccdcfe7adb5c9e8643d2a99bc9a7d21c7a
parent42d89da82b25f2d2e6bc062c1181d1fdd3926446
crypto: introduce crypto wait for async op

Invoking a possibly async. crypto op and waiting for completion
while correctly handling backlog processing is a common task
in the crypto API implementation and outside users of it.

This patch adds a generic implementation for doing so in
preparation for using it across the board instead of hand
rolled versions.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
CC: Eric Biggers <ebiggers3@gmail.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c
include/linux/crypto.h