From 4f9e1f5c2983895457de49d36db521f61f02ca12 Mon Sep 17 00:00:00 2001 From: Steve Cornelius Date: Thu, 1 Aug 2013 20:06:05 -0700 Subject: MLK-9710-13 Correct size in BLOB_OVERHEAD definition Increase the size of BLOB_OVERHEAD. Signed-off-by: Steve Cornelius (cherry picked from commit 32aced88dedf1c1c11170d125d3cc546ffefb366) Signed-off-by: Dan Douglass --- drivers/crypto/caam/sm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/crypto') diff --git a/drivers/crypto/caam/sm.h b/drivers/crypto/caam/sm.h index 2f97f69120f6..51020de82edb 100644 --- a/drivers/crypto/caam/sm.h +++ b/drivers/crypto/caam/sm.h @@ -31,7 +31,8 @@ */ #define AES_BLOCK_PAD(x) ((x % 16) ? ((x >> 4) + 1) << 4 : x) -#define BLOB_OVERHEAD (16 + 8) /* BKEK + MAC tag storage in any blob */ +/* Define space required for BKEK + MAC tag storage in any blob */ +#define BLOB_OVERHEAD (32 + 16) /* Keystore maintenance functions */ void sm_init_keystore(struct device *dev); -- cgit v1.2.3