projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e45116b
)
[CRYPTO] sha512: Fix sha384 block size
author
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 8 Dec 2006 02:59:52 +0000
(13:59 +1100)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 11 Dec 2006 22:34:33 +0000
(14:34 -0800)
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>
crypto/sha512.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/sha512.c
b/crypto/sha512.c
index 2dfe7f170b4893bc6b5bdf5870c9ac3b77b89c9d..15eab9db9be410dfe12d990b4bdc2b417e798050 100644
(file)
--- 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 {