@@ -87,10 +87,12 @@ state[3] += new[3]; state[4] += new[4]; } @implementation OFSHA1Hash +@synthesize calculated = _calculated; + + (size_t)digestSize { return 20; } @@ -174,19 +176,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