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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The biggest context is not sha3_generic (356), but sha-s390 (360).

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
---
 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.39.5





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux