@@ -20,10 +20,14 @@ #include #import "OFSHA384Or512Hash.h" #import "OFHashAlreadyCalculatedException.h" + +@interface OFSHA384Or512Hash () +- (void)of_resetState; +@end static const uint64_t table[] = { 0x428A2F98D728AE22, 0x7137449123EF65CD, 0xB5C0FBCFEC4D3B2F, 0xE9B5DBA58189DBBC, 0x3956C25BF348B538, 0x59F111F1B605D019, 0x923F82A4AF194F9B, 0xAB1C5ED5DA6D8118, 0xD807AA98A3030242, @@ -145,11 +149,11 @@ if ([self class] == [OFSHA384Or512Hash class]) { [self doesNotRecognizeSelector: _cmd]; abort(); } - [self OF_resetState]; + [self of_resetState]; } @catch (id e) { [self release]; @throw e; } @@ -232,17 +236,17 @@ return (const uint8_t *)_state; } - (void)reset { - [self OF_resetState]; + [self of_resetState]; memset(_bits, 0, sizeof(_bits)); memset(&_buffer, 0, sizeof(_buffer)); _bufferLength = 0; _calculated = false; } -- (void)OF_resetState +- (void)of_resetState { OF_UNRECOGNIZED_SELECTOR } @end