@@ -22,11 +22,11 @@ #import "OFSecureData.h" #import "OFHashAlreadyCalculatedException.h" #import "OFOutOfRangeException.h" -#define BLOCK_SIZE 128 +static const size_t blockSize = 128; @interface OFSHA384Or512Hash () - (void)of_resetState; @end @@ -135,11 +135,11 @@ OF_UNRECOGNIZED_SELECTOR } + (size_t)blockSize { - return BLOCK_SIZE; + return blockSize; } + (instancetype)hashWithAllowsSwappableMemory: (bool)allowsSwappableMemory { return [[[self alloc] initWithAllowsSwappableMemory: @@ -193,11 +193,11 @@ OF_UNRECOGNIZED_SELECTOR } - (size_t)blockSize { - return BLOCK_SIZE; + return blockSize; } - (id)copy { OFSHA384Or512Hash *copy = [[[self class] alloc] of_init];