@@ -127,15 +127,10 @@ memcpy(&buffer[j], &buf[i], length - i); } @implementation OFSHA1Hash -+ SHA1Hash -{ - return [[[self alloc] init] autorelease]; -} - + (size_t)digestSize { return 20; } @@ -155,11 +150,11 @@ state[4] = 0xC3D2E1F0; return self; } -- (void)updateWithBuffer: (const char*)buffer_ +- (void)updateWithBuffer: (const void*)buffer_ length: (size_t)length { if (length == 0) return;