@@ -113,10 +113,12 @@ state[2] += new[2]; state[3] += new[3]; } @implementation OFMD5Hash +@synthesize calculated = _calculated; + + (size_t)digestSize { return 16; } @@ -199,19 +201,14 @@ _calculated = true; return (const uint8_t*)_state; } -- (bool)isCalculated -{ - return _calculated; -} - - (void)reset { [self OF_resetState]; _bits = 0; memset(&_buffer, 0, sizeof(_buffer)); _bufferLength = 0; _calculated = false; } @end