summaryrefslogtreecommitdiff
path: root/md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'md5.h')
-rwxr-xr-xmd5.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/md5.h b/md5.h
index e2804fe..f9fdeb4 100755
--- a/md5.h
+++ b/md5.h
@@ -62,6 +62,7 @@
typedef unsigned char md5_byte_t; /* 8-bit byte */
typedef unsigned int md5_word_t; /* 32-bit word */
+#define MD5_LEN 16
/* Define the state of the MD5 Algorithm. */
typedef struct md5_state_s {
@@ -82,7 +83,7 @@ void md5_init(md5_state_t *pms);
void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);
/* Finish the message and return the digest. */
-void md5_finish(md5_state_t *pms, md5_byte_t digest[16]);
+void md5_finish(md5_state_t *pms, md5_byte_t digest[MD5_LEN]);
#ifdef __cplusplus
} /* end extern "C" */