summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/sha.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/crypto/sha.h b/include/crypto/sha.h
index 45b25ccf7cc6..069e85ba97e1 100644
--- a/include/crypto/sha.h
+++ b/include/crypto/sha.h
@@ -77,9 +77,9 @@ struct sha256_state {
};
struct sha512_state {
- u64 state[8];
- u32 count[4];
- u8 buf[128];
+ u64 count[2];
+ u64 state[SHA512_DIGEST_SIZE / 8];
+ u8 buf[SHA512_BLOCK_SIZE];
};
#endif