private static void UpdateKeys(byte byteval) { Keys[0] = (UInt32)crcgen.ComputeCrc32(Keys[0], byteval); Keys[1] += (byte)Keys[0]; Keys[1] = Keys[1] * 134775813 + 1; Keys[2] = (UInt32)crcgen.ComputeCrc32(Keys[2], (byte)(Keys[1] >> 24)); }
private static void UpdateKeys(byte byteval) { Keys[0] = (UInt32)crcgen.ComputeCrc32(Keys[0], byteval); Keys[1] = Keys[1] + (byte)Keys[0]; Keys[1] = Keys[1] * 0x08088405 + 1; Keys[2] = (UInt32)crcgen.ComputeCrc32(Keys[2], (byte)(Keys[1] >> 24)); }
private UInt32[] UpdateKeys(byte byteval, UInt32[] Keys, CRC32 crcgen) { Keys[0] = (UInt32)crcgen.ComputeCrc32(Keys[0], byteval); Keys[1] = Keys[1] + (byte)Keys[0]; Keys[1] = Keys[1] * 0x08088405 + 1; Keys[2] = (UInt32)crcgen.ComputeCrc32(Keys[2], (byte)(Keys[1] >> 24)); return Keys; }
private UInt32[] UpdateKeys(byte byteval, UInt32[] Keys, CRC32 crcgen) { Keys[0] = (UInt32)crcgen.ComputeCrc32(Keys[0], byteval); Keys[1] = Keys[1] + (byte)Keys[0]; Keys[1] = Keys[1] * 0x08088405 + 1; Keys[2] = (UInt32)crcgen.ComputeCrc32(Keys[2], (byte)(Keys[1] >> 24)); return(Keys); }