The size is used as a seed for the start of the MD5 rountine and must be cast to the correct type.
@@ -416,7 +416,7 @@ md5_append(md5_state_t *pms, const md5_byte_t *data, size_t nbytes)
return;
/* Update the message length. */
- pms->count[1] += nbytes >> 29;
+ pms->count[1] += (md5_word_t)(nbytes >> 29);
pms->count[0] += nbits;
if (pms->count[0] < nbits)
pms->count[1]++;