summaryrefslogtreecommitdiff
path: root/md2.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 /md2.h
parent1e79b7221f9883530a5c6459e2018b887e39d314 (diff)
downloadnettle-d22bac823e653bb6b04079e7ad1e8bc06a2342ca.tar.gz
Rename *_DATA_SIZE to *_BLOCK_SIZE.
Diffstat (limited to 'md2.h')
-rw-r--r--md2.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/md2.h b/md2.h
index fe7013f6..560b2cbc 100644
--- a/md2.h
+++ b/md2.h
@@ -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 */
};