public static uint Compute(uint polynomial, uint seed, byte[] buffer) { return(~Crc32.a22(Crc32.b_m_c(polynomial), seed, (IList <byte>)buffer, 0, buffer.Length)); }
public static uint Compute(uint seed, byte[] buffer) { return(Crc32.Compute(3988292384U, seed, buffer)); }
public static uint Compute(byte[] buffer) { return(Crc32.Compute(uint.MaxValue, buffer)); }
protected override byte[] HashFinal() { byte[] numArray = Crc32.a22(~this.d); this.HashValue = numArray; return(numArray); }
protected override void HashCore(byte[] buffer, int start, int length) { this.d = Crc32.a22(this.c, this.d, (IList <byte>)buffer, start, length); }
public Crc32(uint polynomial, uint seed) { this.c = Crc32.b_m_c(polynomial); this.d = seed; this.b = seed; }