Index: src/OFHashes.h ================================================================== --- src/OFHashes.h +++ src/OFHashes.h @@ -19,11 +19,11 @@ */ @interface OFMD5Hash: OFObject { uint32_t buf[4]; uint32_t bits[2]; - char in[64]; + uint8_t in[64]; BOOL calculated; } /** Index: src/OFHashes.m ================================================================== --- src/OFHashes.m +++ src/OFHashes.m @@ -157,11 +157,11 @@ /* Bytes already in shsInfo->data */ t = (t >> 3) & 0x3F; /* Handle any leading odd-sized chunks */ if (t) { - char *p = in + t; + uint8_t *p = in + t; t = 64 - t; if (size < t) { memcpy(p, buffer, size); @@ -192,11 +192,11 @@ return self; } - (char*)digest { - char *p; + uint8_t *p; size_t count; if (calculated) return (char*)buf; @@ -231,11 +231,11 @@ /* Append length in bits and transform */ ((uint32_t*)in)[14] = bits[0]; ((uint32_t*)in)[15] = bits[1]; md5_transform(buf, (uint32_t*)in); - OF_BSWAP_V((char*)buf, 4); + OF_BSWAP_V((uint8_t*)buf, 4); calculated = YES; return (char*)buf; }