summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-12-14 21:27:09 +0100
committerAdrian Bunk <bunk@stusta.de>2006-12-14 21:27:09 +0100
commit5f486864691e8875f32bd4b368eb654bbee9a697 (patch)
treeb4dd040f44d775fb7bd627db8b6aa0269b714423 /crypto
parentf56983ef991e770274d482e3a78afc95395fea36 (diff)
[CRYPTO] sha512: Fix sha384 block size
The SHA384 block size should be 128 bytes, not 96 bytes. This was spotted by Andrew Donofrio. This breaks HMAC which uses the block size during setup and the final calculation. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/sha512.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/sha512.c b/crypto/sha512.c
index 3e6e9392310c..c957481ef8c2 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 {