From: Herbert Xu Date: Fri, 8 Dec 2006 02:59:52 +0000 (+1100) Subject: [CRYPTO] sha512: Fix sha384 block size X-Git-Tag: v2.6.20-rc1~146^2~12^2~31 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=686106ff5ed2cbcd3fc12a22e53c880cf0943eff;p=linux-2.6 [CRYPTO] sha512: Fix sha384 block size The SHA384 block size should be 128 bytes, not 96 bytes. This was spotted by Andrew Donofrio. Fortunately the block size isn't actually used anywhere so this typo has had no real impact. Signed-off-by: Herbert Xu --- diff --git a/crypto/sha512.c b/crypto/sha512.c index 2dfe7f170b..15eab9db9b 100644 --- a/crypto/sha512.c +++ b/crypto/sha512.c @@ -24,7 +24,7 @@ #define SHA384_DIGEST_SIZE 48 #define SHA512_DIGEST_SIZE 64 -#define SHA384_HMAC_BLOCK_SIZE 96 +#define SHA384_HMAC_BLOCK_SIZE 128 #define SHA512_HMAC_BLOCK_SIZE 128 struct sha512_ctx {