我正在尝试为这个64位系列位计算CRC-32。它为什么不出来? 我检查了我的CRC-32与一些在线计算器,但我的不匹配。而且,在线计算器也不能相互匹配......
我也附加了32个零。 我试图在这里计算简单的CRC32,不按照IEEE 802.3以太网的要求在前32位执行位翻转,并在传输之前翻转CRC-32位。
等待!!或者那是我的问题?我应该翻一下前32位吗?它没有在我提到的网站上提及它...
How is a CRC32 checksum calculated?
1010 1000 0 111 0100 1_011 0000 1_110 1100 0100 1111 1000 1000 0001 0100 0010 000
100000100110000010001110110110111 1010 1010 1010 1011 1110 0000 1010 1010 _ 1010 0001 0_101 1110 1_101 0001 1_101 1101 - 0000 0000 0000 0000 0000 0000 0000 0000
1000 0010 0110 0000 1000 1110 1101 1011 1
----------------------------------------------------------------------------------------------0
x010 1000 1100 1011 0110 1110 0111 0001 00
000 0000 0000 0000 0000 0000 0000 0000 00
----------------------------------------------------------------------------------------------1
x10 1000 1100 1011 0110 1110 0111 0001 001
10 0000 1001 1000 0010 0011 1011 0110 111
----------------------------------------------------------------------------------------------2
x0 1000 0101 0011 0100 1101 1100 0111 1100
0 0000 0000 0000 0000 0000 0000 0000 0000
----------------------------------------------------------------------------------------------3
x 1000 0101 0011 0100 1101 1100 0111 1100 0
1000 0010 0110 0000 1000 1110 1101 1011 1
----------------------------------------------------------------------------------------------4
x000 0111 0101 0100 0101 0010 1010 0111 10
000 0000 0000 0000 0000 0000 0000 0000 00
----------------------------------------------------------------------------------------------5
x00 0111 0101 0100 0101 0010 1010 0111 100
00 0000 0000 0000 0000 0000 0000 0000 000
----------------------------------------------------------------------------------------------6
x0 0111 0101 0100 0101 0010 1010 0111 1001
0 0000 0000 0000 0000 0000 0000 0000 0000
----------------------------------------------------------------------------------------------7
x 0111 0101 0100 0101 0010 1010 0111 1001 0
0000 0000 0000 0000 0000 0000 0000 0000 0
----------------------------------------------------------------------------------------------0
x111 0101 0100 0101 0010 1010 0111 1001 0_1
100 0001 0011 0000 0100 0111 0110 1101 1_1
----------------------------------------------------------------------------------------------1
x11 0100 0111 0101 0110 1101 0001 0100 1_00
10 0000 1001 1000 0010 0011 1011 0110 1_11
----------------------------------------------------------------------------------------------2
x1 0100 1110 1101 0100 1110 1010 0010 0_111
1 0000 0100 1100 0001 0001 1101 1011 0_111
----------------------------------------------------------------------------------------------3
x 0100 1010 0001 0101 1111 0111 1001 0_000 1
0000 0000 0000 0000 0000 0000 0000 0_000 0
----------------------------------------------------------------------------------------------4
x100 1010 0001 0101 1111 0111 1001 0_000 11
100 0001 0011 0000 0100 0111 0110 1_101 11
----------------------------------------------------------------------------------------------5
x00 1011 0010 0101 1011 0000 1111 1_101 001
00 0000 0000 0000 0000 0000 0000 0_000 000
----------------------------------------------------------------------------------------------6
x0 1011 0010 0101 1011 0000 1111 1_101 0010
0 0000 0000 0000 0000 0000 0000 0_000 0000
----------------------------------------------------------------------------------------------7
x 1011 0010 0101 1011 0000 1111 1_101 0010 1
1000 0010 0110 0000 1000 1110 1_101 1011 1
----------------------------------------------------------------------------------------------0
x011 0000 0011 1011 1000 0001 0_000 1001 0_1
000 0000 0000 0000 0000 0000 0_000 0000 0_0
----------------------------------------------------------------------------------------------1
x11 0000 0011 1011 1000 0001 0_000 1001 0_10
10 0000 1001 1000 0010 0011 1_011 0110 1_11
----------------------------------------------------------------------------------------------2
x1 0000 1010 0011 1010 0010 1_011 1111 1_011
1 0000 0100 1100 0001 0001 1_101 1011 0_111
----------------------------------------------------------------------------------------------3
x 0000 1110 1111 1011 0011 0_110 0100 1_100 0
0000 0000 0000 0000 0000 0_000 0000 0_000 0
----------------------------------------------------------------------------------------------4
x000 1110 1111 1011 0011 0_110 0100 1_100 00
000 0000 0000 0000 0000 0_000 0000 0_000 00
----------------------------------------------------------------------------------------------5
x00 1110 1111 1011 0011 0_110 0100 1_100 000
00 0000 0000 0000 0000 0_000 0000 0_000 000
----------------------------------------------------------------------------------------------6
x0 1110 1111 1011 0011 0_110 0100 1_100 0001
0 0000 0000 0000 0000 0_000 0000 0_000 0000
----------------------------------------------------------------------------------------------7
x 1110 1111 1011 0011 0_110 0100 1_100 0001 1
1000 0010 0110 0000 1_000 1110 1_101 1011 1
----------------------------------------------------------------------------------------------0
x110 1101 1101 0011 1_110 1010 0_001 1010 0_1
100 0001 0011 0000 0_100 0111 0_110 1101 1_1
----------------------------------------------------------------------------------------------1
x10 1100 1110 0011 1_010 1101 0_111 0111 1_00
10 0000 1001 1000 0_010 0011 1_011 0110 1_11
----------------------------------------------------------------------------------------------2
x0 1100 0111 1011 1_000 1110 1_100 0001 0_111
0 0000 0000 0000 0_000 0000 0_000 0000 0_000
----------------------------------------------------------------------------------------------3
x 1100 0111 1011 1_000 1110 1_100 0001 0_111 1
1000 0010 0110 0_000 1000 1_110 1101 1_011 1
----------------------------------------------------------------------------------------------4
x100 0101 1101 1_000 0110 0_010 1100 1_100 01
100 0001 0011 0_000 0100 0_111 0110 1_101 11
----------------------------------------------------------------------------------------------5
x00 0100 1110 1_000 0010 0_101 1010 0_001 100
00 0000 0000 0_000 0000 0_000 0000 0_000 000
----------------------------------------------------------------------------------------------6
x0 0100 1110 1_000 0010 0_101 1010 0_001 1001
0 0000 0000 0_000 0000 0_000 0000 0_000 0000
----------------------------------------------------------------------------------------------7
x 0100 1110 1_000 0010 0_101 1010 0_001 1001 - 0 <<<<<<<<<<<<<<<<
0000 0000 0_000 0000 0_000 0000 0_000 0000 - 0
----------------------------------------------------------------------------------------------------------------------------------0
x100 1110 1_000 0010 0_101 1010 0_001 1001 - 00
100 0001 0_011 0000 0_100 0111 0_110 1101 - 11
----------------------------------------------------------------------------------------------------------------------------------1
x00 1111 1_011 0010 0_001 1101 0_111 0100 - 110
00 0000 0_000 0000 0_000 0000 0_000 0000 - 000
----------------------------------------------------------------------------------------------------------------------------------2
x0 1111 1_011 0010 0_001 1101 0_111 0100 - 1100
0 0000 0_000 0000 0_000 0000 0_000 0000 - 0000
----------------------------------------------------------------------------------------------------------------------------------3
x 1111 1_011 0010 0_001 1101 0_111 0100 - 1100 0
1000 0_010 0110 0_000 1000 1_110 1101 - 1011 1
----------------------------------------------------------------------------------------------------------------------------------4
x111 1_001 0100 0_001 0101 1_001 1001 - 0111 10
100 0_001 0011 0_000 0100 0_111 0110 - 1101 11
----------------------------------------------------------------------------------------------------------------------------------5
x11 1_000 0111 0_001 0001 1_110 1111 - 1010 010
10 0_000 1001 1_000 0010 0_011 1011 - 0110 111
----------------------------------------------------------------------------------------------------------------------------------6
x1 1_000 1110 1_001 0011 1_101 0100 - 1100 1010
1 0_000 0100 1_100 0001 0_001 1101 - 1011 0111
----------------------------------------------------------------------------------------------------------------------------------7
x 1_000 1010 0_101 0010 1_100 1001 - 0111 1101 0
1_000 0010 0_110 0000 1_000 1110 - 1101 1011 1
----------------------------------------------------------------------------------------------------------------------------------0
x_000 1000 0_011 0010 0_100 0111 - 1010 0110 10
_000 0000 0_000 0000 0_000 0000 - 0000 0000 00
----------------------------------------------------------------------------------------------------------------------------------1
x00 1000 0_011 0010 0_100 0111 - 1010 0110 100
00 0000 0_000 0000 0_000 0000 - 0000 0000 000
----------------------------------------------------------------------------------------------------------------------------------2
x0 1000 0_011 0010 0_100 0111 - 1010 0110 1000
0 0000 0_000 0000 0_000 0000 - 0000 0000 0000
----------------------------------------------------------------------------------------------------------------------------------3
x 1000 0_011 0010 0_100 0111 - 1010 0110 1000 0
1000 0_010 0110 0_000 1000 - 1110 1101 1011 1
----------------------------------------------------------------------------------------------------------------------------------4
x000 0_001 0100 0_100 1111 - 0100 1011 0011 10
000 0_000 0000 0_000 0000 - 0000 0000 0000 00
----------------------------------------------------------------------------------------------------------------------------------5
x00 0_001 0100 0_100 1111 - 0100 1011 0011 100
00 0_000 0000 0_000 0000 - 0000 0000 0000 000
----------------------------------------------------------------------------------------------------------------------------------6
x0 0_001 0100 0_100 1111 - 0100 1011 0011 1000
0 0_000 0000 0_000 0000 - 0000 0000 0000 0000
----------------------------------------------------------------------------------------------------------------------------------7
x 0_001 0100 0_100 1111 - 0100 1011 0011 1000 0
0_000 0000 0_000 0000 - 0000 0000 0000 0000 0
----------------------------------------------------------------------------------------------------------------------------------0
x_001 0100 0_100 1111 - 0100 1011 0011 1000 00
_000 0000 0_000 0000 - 0000 0000 0000 0000 00
----------------------------------------------------------------------------------------------------------------------------------1
x01 0100 0_100 1111 - 0100 1011 0011 1000 000
00 0000 0_000 0000 - 0000 0000 0000 0000 000
----------------------------------------------------------------------------------------------------------------------------------2
x1 0100 0_100 1111 - 0100 1011 0011 1000 0000
1 0000 0_100 1100 - 0001 0001 1101 1011 0111
----------------------------------------------------------------------------------------------------------------------------------3
x 0100 0_000 0011 - 0101 1010 1110 0011 0111 0
0000 0_000 0000 - 0000 0000 0000 0000 0000 0
----------------------------------------------------------------------------------------------------------------------------------4
x100 0_000 0011 - 0101 1010 1110 0011 0111 00
100 0_001 0011 - 0000 0100 0111 0110 1101 11
----------------------------------------------------------------------------------------------------------------------------------5
x00 0_001 0000 - 0101 1110 1001 0101 1010 110
00 0_000 0000 - 0000 0000 0000 0000 0000 000
----------------------------------------------------------------------------------------------------------------------------------6
x0 0_001 0000 - 0101 1110 1001 0101 1010 1100
0 0_000 0000 - 0000 0000 0000 0000 0000 0000
----------------------------------------------------------------------------------------------------------------------------------7
x 0_001 0000 - 0101 1110 1001 0101 1010 1100 0
0_000 0000 - 0000 0000 0000 0000 0000 0000 0
----------------------------------------------------------------------------------------------------------------------------------0
x_001 0000 - 0101 1110 1001 0101 1010 1100 00
_000 0000 - 0000 0000 0000 0000 0000 0000 00
----------------------------------------------------------------------------------------------------------------------------------1
x01 0000 - 0101 1110 1001 0101 1010 1100 000
00 0000 - 0000 0000 0000 0000 0000 0000 000
----------------------------------------------------------------------------------------------------------------------------------2
x1 0000 - 0101 1110 1001 0101 1010 1100 0000
1 0000 - 0100 1100 0001 0001 1101 1011 0111
----------------------------------------------------------------------------------------------------------------------------------3
x 0000 - 0001 0010 1000 0100 0111 0111 0111 0
0000 - 0000 0000 0000 0000 0000 0000 0000 0
----------------------------------------------------------------------------------------------------------------------------------4
x000 - 0001 0010 1000 0100 0111 0111 0111 00
000 - 0000 0000 0000 0000 0000 0000 0000 00
----------------------------------------------------------------------------------------------------------------------------------5
x00 - 0001 0010 1000 0100 0111 0111 0111 000
00 - 0000 0000 0000 0000 0000 0000 0000 000
----------------------------------------------------------------------------------------------------------------------------------6
x0 - 0001 0010 1000 0100 0111 0111 0111 0000
0 - 0000 0000 0000 0000 0000 0000 0000 0000
----------------------------------------------------------------------------------------------------------------------------------7
x - 0001 0010 1000 0100 0111 0111 0111 0000 <<<<<<<<<<<<<<<