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>
This commit is contained in:
Herbert Xu
2009-07-22 12:22:43 +08:00
parent 1f38ad8389
commit 13887ed688
2 changed files with 13 additions and 19 deletions

View File

@ -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