From a58d1c0be43b9f21da16471f9786d5d1fc3a2aa7 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 12 Apr 2025 18:57:26 +0800 Subject: [PATCH] crypto: hash - Update HASH_MAX_DESCSIZE comment The biggest context is not sha3_generic (356), but sha-s390 (360). Signed-off-by: Herbert Xu --- include/crypto/hash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/crypto/hash.h b/include/crypto/hash.h index b00ea8407f9c..58ac1423dc38 100644 --- a/include/crypto/hash.h +++ b/include/crypto/hash.h @@ -166,8 +166,8 @@ struct shash_desc { #define HASH_MAX_DIGESTSIZE 64 /* - * Worst case is hmac(sha3-224-generic). Its context is a nested 'shash_desc' - * containing a 'struct sha3_state'. + * Worst case is hmac(sha-224-s390). Its context is a nested 'shash_desc' + * containing a 'struct s390_sha_ctx'. */ #define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + 360) #define MAX_SYNC_HASH_REQSIZE HASH_MAX_DESCSIZE -- 2.50.1