aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2015-08-02 03:18:59 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-08-28 07:14:06 +0200
commit3786c3f8d8e6791ad02664680ab593efeb7f8b09 (patch)
treedbf62c9d0ae6df9399f0e7537f3bd7eb2bd191da
parent4d1db22b714cf3bd96027a5a4863271ae646f26f (diff)
downloadktls-3786c3f8d8e6791ad02664680ab593efeb7f8b09.tar.gz
crypto: af_alg - add sig gen / verify API
As a prerequisite to add the asymmetric cipher AF_ALG API, this patch adds the user space interface identifier to tell the kernel about performing a signature generation and verification operation in addition to the existing encryption / decryption operation. CC: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--include/uapi/linux/if_alg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/if_alg.h b/include/uapi/linux/if_alg.h
index f2acd2fde1f3ab..d81dcca5bdd7c3 100644
--- a/include/uapi/linux/if_alg.h
+++ b/include/uapi/linux/if_alg.h
@@ -38,5 +38,7 @@ struct af_alg_iv {
/* Operations */
#define ALG_OP_DECRYPT 0
#define ALG_OP_ENCRYPT 1
+#define ALG_OP_SIGN 2
+#define ALG_OP_VERIFY 3
#endif /* _LINUX_IF_ALG_H */