/// <summary> /// Computes a CRC32C hash /// </summary> /// <param name="data">Data to hash</param> /// <returns>CRC32C hash as a base64-encoded string</returns> public string ComputeCRC32CHash(byte[] data) { return(ChecksumCRTWrapper.Crc32C(data)); }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { byte[] buffer = new byte[cbSize]; Buffer.BlockCopy(array, ibStart, buffer, 0, cbSize); _rollingResult = ChecksumCRTWrapper.Crc32(buffer, _rollingResult); }