diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2015-10-14 15:11:00 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-10-15 09:05:11 -0400 |
commit | 19b14e7e224f1c119a1756fde02ccacefd280212 (patch) | |
tree | f5759497a0c777fe2c587a818be267ad3b5bc020 | |
parent | 353519887ca3df97c0e60be4fdf05c44e2faca22 (diff) |
crypto: s390/sha - replace raw value by their coresponding define
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>
-rw-r--r-- | arch/s390/crypto/sha.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/crypto/sha.h b/arch/s390/crypto/sha.h index f4e9dc71675f..10f200790079 100644 --- a/arch/s390/crypto/sha.h +++ b/arch/s390/crypto/sha.h | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <crypto/sha.h> | 19 | #include <crypto/sha.h> |
20 | 20 | ||
21 | /* must be big enough for the largest SHA variant */ | 21 | /* must be big enough for the largest SHA variant */ |
22 | #define SHA_MAX_STATE_SIZE 16 | 22 | #define SHA_MAX_STATE_SIZE (SHA512_DIGEST_SIZE / 4) |
23 | #define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE | 23 | #define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE |
24 | 24 | ||
25 | struct s390_sha_ctx { | 25 | struct s390_sha_ctx { |