コード例 #1
0
 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));
 }
コード例 #2
0
 public static uint Compute(uint seed, byte[] buffer)
 {
     return(Crc32.Compute(3988292384U, seed, buffer));
 }
コード例 #3
0
 public static uint Compute(byte[] buffer)
 {
     return(Crc32.Compute(uint.MaxValue, buffer));
 }
コード例 #4
0
 protected override byte[] HashFinal()
 {
     byte[] numArray = Crc32.a22(~this.d);
     this.HashValue = numArray;
     return(numArray);
 }
コード例 #5
0
 protected override void HashCore(byte[] buffer, int start, int length)
 {
     this.d = Crc32.a22(this.c, this.d, (IList <byte>)buffer, start, length);
 }
コード例 #6
0
 public Crc32(uint polynomial, uint seed)
 {
     this.c = Crc32.b_m_c(polynomial);
     this.d = seed;
     this.b = seed;
 }