diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2017-12-02 22:10:47 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2017-12-02 22:10:47 +0100 |
commit | b499c7305cee6942dc037f34b2e37489f501da47 (patch) | |
tree | e4557a1d8189189aa91430152ff95954e55b88ca /md5.h | |
parent | c5b0c7e5aa15cd14c1fd47fe2404a71ef6578543 (diff) |
ptunnel-ng:
* option parsing
* refactoring
Diffstat (limited to 'md5.h')
-rwxr-xr-x | md5.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" */ |