summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-12-08 13:59:52 +1100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-11 14:34:33 -0800
commit16852672af15897ceacbffdb41f69134da3f988b (patch)
tree0b7d27dd1b373345f16df44376823d1ae7c944d2
parent5b59efbc3a58b39023116df15d61f86dd376f583 (diff)
downloadlinux-crypto-16852672af15897ceacbffdb41f69134da3f988b.tar.gz
linux-crypto-16852672af15897ceacbffdb41f69134da3f988b.zip
[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 <herbert@gondor.apana.org.au>
-rw-r--r--crypto/sha512.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha512.c b/crypto/sha512.c
index 2dfe7f17..15eab9db 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 {