summaryrefslogtreecommitdiff
path: root/drivers/crypto/ccree/cc_crypto_ctx.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2019-04-18 16:38:40 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-04-25 10:38:13 +0300
commitcadfd8987af0e3d5dd74254a302d019a3b369d2d (patch)
treea39069f940de0a6bea48d69408bc67e44447d354 /drivers/crypto/ccree/cc_crypto_ctx.h
parentf98f6e2134bd3ee5db0594dc399f9562ecc2d08a (diff)
downloadlinux-cadfd8987af0e3d5dd74254a302d019a3b369d2d.tar.xz
crypto: ccree - add CPP completion handling
Add the logic needed to track and report CPP operation rejection. The new logic will be used by the CPP feature introduced later. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree/cc_crypto_ctx.h')
-rw-r--r--drivers/crypto/ccree/cc_crypto_ctx.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/crypto/ccree/cc_crypto_ctx.h b/drivers/crypto/ccree/cc_crypto_ctx.h
index c8dac273c563..97e56e9af01e 100644
--- a/drivers/crypto/ccree/cc_crypto_ctx.h
+++ b/drivers/crypto/ccree/cc_crypto_ctx.h
@@ -55,6 +55,14 @@
#define CC_DRV_ALG_MAX_BLOCK_SIZE CC_HASH_BLOCK_SIZE_MAX
+#define CC_CPP_NUM_SLOTS 8
+#define CC_CPP_NUM_ALGS 2
+
+enum cc_cpp_alg {
+ CC_CPP_SM4 = 1,
+ CC_CPP_AES = 0
+};
+
enum drv_engine_type {
DRV_ENGINE_NULL = 0,
DRV_ENGINE_AES = 1,