]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - crypto/api.c
crypto: introduce crypto wait for async op
authorGilad Ben-Yossef <gilad@benyossef.com>
Wed, 18 Oct 2017 07:00:38 +0000 (08:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:18 +0000 (22:11 +0800)
commitada69a1639eca54ff74d839a6513c43db8d57d70
treef22353657a65c0b90d9412224ee508898d9c874a
parent3d549e325e3c7dd294b96720f22cbc39ec2e02e9
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