From: Herbert Xu Date: Sat, 12 Apr 2025 10:57:26 +0000 (+0800) Subject: crypto: hash - Update HASH_MAX_DESCSIZE comment X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a58d1c0be43b9f21da16471f9786d5d1fc3a2aa7;p=users%2Fjedix%2Flinux-maple.git crypto: hash - Update HASH_MAX_DESCSIZE comment The biggest context is not sha3_generic (356), but sha-s390 (360). Signed-off-by: Herbert Xu --- 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