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 /md2.h | |
parent | 1e79b7221f9883530a5c6459e2018b887e39d314 (diff) | |
download | nettle-d22bac823e653bb6b04079e7ad1e8bc06a2342ca.tar.gz |
Rename *_DATA_SIZE to *_BLOCK_SIZE.
Diffstat (limited to 'md2.h')
-rw-r--r-- | md2.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -46,13 +46,15 @@ extern "C" { #define md2_digest nettle_md2_digest #define MD2_DIGEST_SIZE 16 -#define MD2_DATA_SIZE 16 +#define MD2_BLOCK_SIZE 16 +/* For backwards compatibility */ +#define MD2_DATA_SIZE MD2_BLOCK_SIZE struct md2_ctx { - uint8_t C[MD2_DATA_SIZE]; - uint8_t X[3 * MD2_DATA_SIZE]; - uint8_t block[MD2_DATA_SIZE]; /* Block buffer */ + uint8_t C[MD2_BLOCK_SIZE]; + uint8_t X[3 * MD2_BLOCK_SIZE]; + uint8_t block[MD2_BLOCK_SIZE]; /* Block buffer */ unsigned index; /* Into buffer */ }; |