diff mbox series

[4/8] crypto: hash - Update HASH_MAX_DESCSIZE comment

Message ID eaa0a6cc57d9dd33e7db0651f4fa0fb4203115c6.1744455146.git.herbert@gondor.apana.org.au (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series crypto: hash - Preparation for block-only shash | expand

Commit Message

Herbert Xu April 12, 2025, 10:57 a.m. UTC
The biggest context is not sha3_generic (356), but sha-s390 (360).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
 include/crypto/hash.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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