summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorWilliam Qiu <william.qiu@starfivetech.com>2023-06-15 14:35:12 +0300
committerWilliam Qiu <william.qiu@starfivetech.com>2023-06-15 14:44:10 +0300
commitdfcb40d70e09bb85f07feaa878df4fe1b2032cfb (patch)
treec3193c8e7aa47b61a07a933ed4a6d01682f328dc /include/crypto
parent1e73d9b50446c6dcf62b5804a1adaf2806cd12cd (diff)
downloadlinux-dfcb40d70e09bb85f07feaa878df4fe1b2032cfb.tar.xz
crypto: AF_ALG -- add asymmetric cipher
This patch adds the user space interface for asymmetric ciphers. The interface allows the use of sendmsg as well as vmsplice to provide data. The akcipher interface implementation uses the common AF_ALG interface code regarding TX and RX SGL handling. Signed-off-by: Stephan Mueller <smueller@chronox.de>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/if_alg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/if_alg.h b/include/crypto/if_alg.h
index 09f57ebb45e1..1b78ab01c301 100644
--- a/include/crypto/if_alg.h
+++ b/include/crypto/if_alg.h
@@ -18,6 +18,7 @@
#include <crypto/aead.h>
#include <crypto/skcipher.h>
+#include <crypto/akcipher.h>
#define ALG_MAX_PAGES 16
@@ -111,6 +112,7 @@ struct af_alg_async_req {
union {
struct aead_request aead_req;
struct skcipher_request skcipher_req;
+ struct akcipher_request akcipher_req;
} cra_u;
/* req ctx trails this struct */