@@ -139,11 +139,11 @@ + (instancetype)cryptoHash { return [[[self alloc] init] autorelease]; } -- init +- (instancetype)init { self = [super init]; @try { if ([self class] == [OFSHA384Or512Hash class]) { @@ -165,11 +165,11 @@ [self reset]; [super dealloc]; } -- copy +- (id)copy { OFSHA384Or512Hash *copy = [[[self class] alloc] init]; memcpy(copy->_state, _state, sizeof(_state)); memcpy(copy->_bits, _bits, sizeof(_bits));