@@ -106,11 +106,11 @@ + (instancetype)cryptoHash { return [[[self alloc] init] autorelease]; } -- init +- (instancetype)init { self = [super init]; [self of_resetState]; @@ -122,11 +122,11 @@ [self reset]; [super dealloc]; } -- copy +- (id)copy { OFSHA1Hash *copy = [[OFSHA1Hash alloc] init]; memcpy(copy->_state, _state, sizeof(_state)); copy->_bits = _bits;