@@ -117,15 +117,10 @@ buffer[2] += c; buffer[3] += d; } @implementation OFMD5Hash -+ MD5Hash -{ - return [[[self alloc] init] autorelease]; -} - + (size_t)digestSize { return 16; } @@ -144,14 +139,15 @@ buffer[3] = 0x10325476; return self; } -- (void)updateWithBuffer: (const char*)buffer_ +- (void)updateWithBuffer: (const void*)buffer__ length: (size_t)length { uint32_t t; + const char *buffer_ = buffer__; if (length == 0) return; if (calculated)