projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3535198
)
crypto: s390/sha - replace raw value by their coresponding define
author
LABBE Corentin
<clabbe.montjoie@gmail.com>
Wed, 14 Oct 2015 19:11:00 +0000
(21:11 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 15 Oct 2015 13:05:11 +0000
(21:05 +0800)
SHA_MAX_STATE_SIZE is just the number of u32 word for SHA512.
So replace the raw value "16" by their meaning (SHA512_DIGEST_SIZE / 4)
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/s390/crypto/sha.h
patch
|
blob
|
history
diff --git
a/arch/s390/crypto/sha.h
b/arch/s390/crypto/sha.h
index f4e9dc71675f7e5d572c2e6d97312b097e5d89a2..10f2007900790919f41ac6f3d3bd425c9decebb6 100644
(file)
--- a/
arch/s390/crypto/sha.h
+++ b/
arch/s390/crypto/sha.h
@@
-19,7
+19,7
@@
#include <crypto/sha.h>
/* must be big enough for the largest SHA variant */
-#define SHA_MAX_STATE_SIZE
16
+#define SHA_MAX_STATE_SIZE
(SHA512_DIGEST_SIZE / 4)
#define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE
struct s390_sha_ctx {