summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ccree/cc_crypto_ctx.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef2018-01-07 13:14:14 +0100
committerGreg Kroah-Hartman2018-01-08 16:27:22 +0100
commita3ddcf660419ce0ad9ef79de95c28476977f32a3 (patch)
tree89416d38056804e0d394e2e8369d8a17f0e2e4e3 /drivers/staging/ccree/cc_crypto_ctx.h
parentstaging: ccree: fold hash defs into queue defs (diff)
downloadkernel-qcow2-linux-a3ddcf660419ce0ad9ef79de95c28476977f32a3.tar.gz
kernel-qcow2-linux-a3ddcf660419ce0ad9ef79de95c28476977f32a3.tar.xz
kernel-qcow2-linux-a3ddcf660419ce0ad9ef79de95c28476977f32a3.zip
staging: ccree: fold reg common defines into driver
Fold the 2 macro defined in dx_reg_common.h into the file they are used in and delete the file. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/cc_crypto_ctx.h')
-rw-r--r--drivers/staging/ccree/cc_crypto_ctx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h
index 02e14f3e0e97..eb16842d7db9 100644
--- a/drivers/staging/ccree/cc_crypto_ctx.h
+++ b/drivers/staging/ccree/cc_crypto_ctx.h
@@ -8,7 +8,7 @@
/* context size */
#ifndef CC_CTX_SIZE_LOG2
-#if (CC_SUPPORT_SHA > 256)
+#if (CC_DEV_SHA_MAX > 256)
#define CC_CTX_SIZE_LOG2 8
#else
#define CC_CTX_SIZE_LOG2 7
@@ -59,7 +59,7 @@
#define CC_SHA384_BLOCK_SIZE 128
#define CC_SHA512_BLOCK_SIZE 128
-#if (CC_SUPPORT_SHA > 256)
+#if (CC_DEV_SHA_MAX > 256)
#define CC_DIGEST_SIZE_MAX CC_SHA512_DIGEST_SIZE
#define CC_HASH_BLOCK_SIZE_MAX CC_SHA512_BLOCK_SIZE /*1024b*/
#else /* Only up to SHA256 */