From cb83bd331e5774027bcab965ccf9bcbe798ad167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Sat, 28 Sep 2013 09:43:12 +0200 Subject: Made hash functions use an uint64_t for the block count. --- sha2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sha2.h') diff --git a/sha2.h b/sha2.h index 3a0b449a..f095dad1 100644 --- a/sha2.h +++ b/sha2.h @@ -55,7 +55,7 @@ extern "C" { struct sha256_ctx { uint32_t state[_SHA256_DIGEST_LENGTH]; /* State variables */ - uint32_t count_low, count_high; /* 64-bit block count */ + uint64_t count; /* 64-bit block count */ uint8_t block[SHA256_DATA_SIZE]; /* SHA256 data buffer */ unsigned int index; /* index into buffer */ }; -- cgit v1.2.1