diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-04-25 22:12:36 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-04-25 22:12:36 +0200 |
commit | d22bac823e653bb6b04079e7ad1e8bc06a2342ca (patch) | |
tree | 451ebe588182ea671653fcfdbb434808f969c5d3 /md4.h | |
parent | 1e79b7221f9883530a5c6459e2018b887e39d314 (diff) | |
download | nettle-d22bac823e653bb6b04079e7ad1e8bc06a2342ca.tar.gz |
Rename *_DATA_SIZE to *_BLOCK_SIZE.
Diffstat (limited to 'md4.h')
-rw-r--r-- | md4.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ }; |