summaryrefslogtreecommitdiff
path: root/sha2.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-09-28 09:43:12 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-09-28 09:44:22 +0200
commitcb83bd331e5774027bcab965ccf9bcbe798ad167 (patch)
tree3bbf1e2ee88e1ff1a27c877bd6cd21dc65f1d4a6 /sha2.h
parent89755c916c84f722f081b5d53e8472d963cfbfe4 (diff)
downloadnettle-cb83bd331e5774027bcab965ccf9bcbe798ad167.tar.gz
Made hash functions use an uint64_t for the block count.
Diffstat (limited to 'sha2.h')
-rw-r--r--sha2.h2
1 files changed, 1 insertions, 1 deletions
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 */
};