CSharp · Console
using System;
//namespace crc323_fake
//{
public class Program
{
public static void Main(/*string[] args*/)
{
long c, c2, p2, pol = 0xEDB88320;
long n, k;
{
n = 3440;
k = 3436;
n = (n - k) << 3;
c = 0x73CBFFB5;
c2 = 0x7D096252;
c ^= c2;
p2 = (pol << 1) | 1;
while (n != 0)
{
n = n - 1;
if( (c & 0x80000000) != 0) // getting error here can't implicitly convert long to bool
{
}
}
Console.WriteLine("XOR masks:{0:X} {0:X} {0:X} {0:X}\n", c & 0xff, (c >> 8) & 0xff, (c >> 16) & 0xff, c >> 24);
//while (true) ;
}
}
}
//}