using System;
public class Test
{
public static void Main()
{
uint crc32 = 0x7601A9C5;
int length = 17;
var checksum = (uint)((~(ushort)crc32) ^ (length * ~crc32));
// expected 0xD0EF1CD6
Console.WriteLine(BitConverter.ToString(BitConverter.GetBytes(checksum)));
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJIAl1aW50IGNyYzMyID0gMHg3NjAxQTlDNTsKICAgICAgICBpbnQgbGVuZ3RoID0gMTc7CiAgICAgICAgCiAgICAgICAgdmFyIGNoZWNrc3VtID0gKHVpbnQpKCh+KHVzaG9ydCljcmMzMikgXiAobGVuZ3RoICogfmNyYzMyKSk7CiAgICAgICAgCiAgICAgICAgLy8gZXhwZWN0ZWQgMHhEMEVGMUNENgogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKEJpdENvbnZlcnRlci5Ub1N0cmluZyhCaXRDb252ZXJ0ZXIuR2V0Qnl0ZXMoY2hlY2tzdW0pKSk7Cgl9Cn0=