diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-04-19 16:24:13 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-04-19 16:24:13 +0200 |
commit | 03dd45f5ef8d0e05df07b4b1c7f1a0e773d793c1 (patch) | |
tree | 68213f8ce55f2166e7eacef23f51e46c64c452f6 /gosthash94.h | |
parent | 43b5a7275ec062ffe8a99066719a1cad4fa6a55f (diff) | |
download | nettle-03dd45f5ef8d0e05df07b4b1c7f1a0e773d793c1.tar.gz |
gosthash94: switch to using MD_UPDATE() macro
Diffstat (limited to 'gosthash94.h')
-rw-r--r-- | gosthash94.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gosthash94.h b/gosthash94.h index fb45c576..02fd3b33 100644 --- a/gosthash94.h +++ b/gosthash94.h @@ -89,8 +89,9 @@ struct gosthash94_ctx { uint32_t hash[8]; /* algorithm 256-bit state */ uint32_t sum[8]; /* sum of processed message blocks */ - uint64_t length; /* number of processed bytes */ - uint8_t message[GOSTHASH94_BLOCK_SIZE]; /* 256-bit buffer for leftovers */ + uint64_t count; /* Block count */ + unsigned index; /* Into buffer */ + uint8_t block[GOSTHASH94_BLOCK_SIZE]; /* 256-bit buffer for leftovers */ }; #define gosthash94cp_ctx gosthash94_ctx |