summaryrefslogtreecommitdiff
path: root/md4.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 /md4.h
parent1e79b7221f9883530a5c6459e2018b887e39d314 (diff)
downloadnettle-d22bac823e653bb6b04079e7ad1e8bc06a2342ca.tar.gz
Rename *_DATA_SIZE to *_BLOCK_SIZE.
Diffstat (limited to 'md4.h')
-rw-r--r--md4.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/md4.h b/md4.h
index d90ff2fa..f199a80e 100644
--- a/md4.h
+++ b/md4.h
@@ -46,7 +46,9 @@ extern "C" {
#define md4_digest nettle_md4_digest
#define MD4_DIGEST_SIZE 16
-#define MD4_DATA_SIZE 64
+#define MD4_BLOCK_SIZE 64
+/* For backwards compatibility */
+#define MD4_DATA_SIZE MD4_BLOCK_SIZE
/* Digest is kept internally as 4 32-bit words. */
#define _MD4_DIGEST_LENGTH 4
@@ -56,7 +58,7 @@ struct md4_ctx
{
uint32_t state[_MD4_DIGEST_LENGTH];
uint64_t count; /* Block count */
- uint8_t block[MD4_DATA_SIZE]; /* Block buffer */
+ uint8_t block[MD4_BLOCK_SIZE]; /* Block buffer */
unsigned index; /* Into buffer */
};