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:15:43 +0000 (18:15 -0800)
commita2985b1c98e5e9111d5fe33c503fe95064711ca4
tree2398e4f04213be108e8441fc10666e37960447e8
parent4bb665c7e388a1ea9770d8b40fc7f48a6e9c4438
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