diff options
Diffstat (limited to 'arch/s390/crypto/sha.h')
-rw-r--r-- | arch/s390/crypto/sha.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/crypto/sha.h b/arch/s390/crypto/sha.h index b7a52ab5db97..1ceafa571eab 100644 --- a/arch/s390/crypto/sha.h +++ b/arch/s390/crypto/sha.h | |||
@@ -19,11 +19,12 @@ | |||
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_BLOCK_SIZE SHA256_BLOCK_SIZE | 22 | #define SHA_MAX_STATE_SIZE 16 |
23 | #define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE | ||
23 | 24 | ||
24 | struct s390_sha_ctx { | 25 | struct s390_sha_ctx { |
25 | u64 count; /* message length in bytes */ | 26 | u64 count; /* message length in bytes */ |
26 | u32 state[8]; | 27 | u32 state[SHA_MAX_STATE_SIZE]; |
27 | u8 buf[2 * SHA_MAX_BLOCK_SIZE]; | 28 | u8 buf[2 * SHA_MAX_BLOCK_SIZE]; |
28 | int func; /* KIMD function to use */ | 29 | int func; /* KIMD function to use */ |
29 | }; | 30 | }; |