summaryrefslogtreecommitdiff
path: root/gosthash94.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-04-25 22:12:36 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-04-25 22:12:36 +0200
commitd22bac823e653bb6b04079e7ad1e8bc06a2342ca (patch)
tree451ebe588182ea671653fcfdbb434808f969c5d3 /gosthash94.h
parent1e79b7221f9883530a5c6459e2018b887e39d314 (diff)
downloadnettle-d22bac823e653bb6b04079e7ad1e8bc06a2342ca.tar.gz
Rename *_DATA_SIZE to *_BLOCK_SIZE.
Diffstat (limited to 'gosthash94.h')
-rw-r--r--gosthash94.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gosthash94.h b/gosthash94.h
index 5a1978e6..8e9d49fe 100644
--- a/gosthash94.h
+++ b/gosthash94.h
@@ -72,14 +72,16 @@ extern "C" {
#define gosthash94_update nettle_gosthash94_update
#define gosthash94_digest nettle_gosthash94_digest
-#define GOSTHASH94_DATA_SIZE 32
+#define GOSTHASH94_BLOCK_SIZE 32
#define GOSTHASH94_DIGEST_SIZE 32
+/* For backwards compatibility */
+#define GOSTHASH94_DATA_SIZE GOSTHASH94_BLOCK_SIZE
struct gosthash94_ctx
{
uint32_t hash[8]; /* algorithm 256-bit state */
uint32_t sum[8]; /* sum of processed message blocks */
- uint8_t message[GOSTHASH94_DATA_SIZE]; /* 256-bit buffer for leftovers */
+ uint8_t message[GOSTHASH94_BLOCK_SIZE]; /* 256-bit buffer for leftovers */
uint64_t length; /* number of processed bytes */
};