Converted hashSize to uint8_t