diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-22 00:22:43 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-07-22 02:38:13 -0400 |
commit | 13887ed6888dad1608eb9530ebd83b6ba29db577 (patch) | |
tree | fcaaed11dc4812bd5754894a5f55462fa85f6698 /include | |
parent | 1f38ad8389bbca038d320c29d30aa1d6ed96b48d (diff) |
crypto: sha512_generic - Use 64-bit counters
This patch replaces the 32-bit counters in sha512_generic with
64-bit counters. It also switches the bit count to the simpler
byte count.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/sha.h | 6 |
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 { | |||
77 | }; | 77 | }; |
78 | 78 | ||
79 | struct sha512_state { | 79 | struct sha512_state { |
80 | u64 state[8]; | 80 | u64 count[2]; |
81 | u32 count[4]; | 81 | u64 state[SHA512_DIGEST_SIZE / 8]; |
82 | u8 buf[128]; | 82 | u8 buf[SHA512_BLOCK_SIZE]; |
83 | }; | 83 | }; |
84 | 84 | ||
85 | #endif | 85 | #endif |