Using size_t for lengths (also remove most warnings when compiling for x64)

This commit is contained in:
Ley0k 2017-02-19 21:14:27 +01:00
parent a0f2dccd07
commit 85b7ac3ed5
53 changed files with 814 additions and 514 deletions

View file

@ -61,7 +61,7 @@
*/
typedef unsigned char md5_byte_t; /* 8-bit byte */
typedef unsigned int md5_word_t; /* 32-bit word */
typedef size_t md5_word_t; /* 32-bit word */
/* Define the state of the MD5 Algorithm. */
typedef struct md5_state_s {
@ -79,7 +79,7 @@ extern "C"
void md5_init(md5_state_t *pms);
/* Append a string to the message. */
void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);
void md5_append(md5_state_t *pms, const md5_byte_t *data, size_t nbytes);
/* Finish the message and return the digest. */
void md5_finish(md5_state_t *pms, md5_byte_t digest[16]);