summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2019-06-20 09:17:24 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-06-20 09:17:24 +0300
commitbdb275bb6486d19888cb669fedd7d3eea2031669 (patch)
treea6d78624f1e8d7a797803636d1d92e6ae584949b /include/crypto
parentb0d765219fb3308638754e28f71377d3752f1266 (diff)
parent7829a0c1cb9c80debfb4fdb49b4d90019f2ea1ac (diff)
downloadlinux-bdb275bb6486d19888cb669fedd7d3eea2031669.tar.xz
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Merge crypto tree to pick up vmx changes.
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/hash.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/crypto/hash.h b/include/crypto/hash.h
index d21bea2c4382..d6702b4a457f 100644
--- a/include/crypto/hash.h
+++ b/include/crypto/hash.h
@@ -150,7 +150,13 @@ struct shash_desc {
};
#define HASH_MAX_DIGESTSIZE 64
-#define HASH_MAX_DESCSIZE 360
+
+/*
+ * Worst case is hmac(sha3-224-generic). Its context is a nested 'shash_desc'
+ * containing a 'struct sha3_state'.
+ */
+#define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360)
+
#define HASH_MAX_STATESIZE 512
#define SHASH_DESC_ON_STACK(shash, ctx) \