Also make a copy of length value before calculating the current digest()