Checksum by a stream