Tuesday, November 15, 2016

[jzmyrjkx] cksum of zeroes

Results of cksum on files consisting only of null bytes.  File sizes 1, 3, or 5 times a power of 2. File sizes up to 8796093022208 bytes (8 TiB) were generated in their entirety with dd if=/dev/zero .  It turns out a null byte does not change the internal state of the checksum algorithm (CRC-32), so sizes larger than 8 TiB were simulated with this program which processes only the size appended as a suffix to the (null) data.

Not sure what this is useful for: a file of zeros can easily be verified by reading it.

Previously, with MD5 and SHA1.

4294967295 0
4215202376 1
4135437457 2
4072462630 3
3975907619 4
3896153236 5
3849957965 6
3656847943 8
3497339177 10
3404948635 12
3018728591 16
2699711059 20
2514929975 24
1742489887 32
1104454823 40
734892655 48
3413741448 64
2271761656 80
1398421864 96
2532515601 128
248556017 160
2725605222 192
4215202376 256
3128462852 320
2041723600 384
4135437457 512
1961958409 640
4072462630 768
3975907619 1024
3896153236 1280
3849957965 1536
3656847943 2048
3497339177 2560
3404948635 3072
3018728591 4096
2699711059 5120
2514929975 6144
1742489887 8192
1104454823 10240
734892655 12288
3413741448 16384
2271761656 20480
1398421864 24576
2532515601 32768
248556017 40960
2725605222 49152
4215202376 65536
3128462852 81920
2041723600 98304
4135437457 131072
1961958409 163840
4072462630 196608
3975907619 262144
3896153236 327680
3849957965 393216
3656847943 524288
3497339177 655360
3404948635 786432
3018728591 1048576
2699711059 1310720
2514929975 1572864
1742489887 2097152
1104454823 2621440
734892655 3145728
3413741448 4194304
2271761656 5242880
1398421864 6291456
2532515601 8388608
248556017 10485760
2725605222 12582912
4215202376 16777216
3128462852 20971520
2041723600 25165824
4135437457 33554432
1961958409 41943040
4072462630 50331648
3975907619 67108864
3896153236 83886080
3849957965 100663296
3656847943 134217728
3497339177 167772160
3404948635 201326592
3018728591 268435456
2699711059 335544320
2514929975 402653184
1742489887 536870912
1104454823 671088640
734892655 805306368
3413741448 1073741824
2271761656 1342177280
1398421864 1610612736
2532515601 2147483648
248556017 2684354560
2725605222 3221225472
4215202376 4294967296
3128462852 5368709120
2041723600 6442450944
4135437457 8589934592
1961958409 10737418240
4072462630 12884901888
3975907619 17179869184
3896153236 21474836480
3849957965 25769803776
3656847943 34359738368
3497339177 42949672960
3404948635 51539607552
3018728591 68719476736
2699711059 85899345920
2514929975 103079215104
1742489887 137438953472
1104454823 171798691840
734892655 206158430208
3413741448 274877906944
2271761656 343597383680
1398421864 412316860416
2532515601 549755813888
248556017 687194767360
2725605222 824633720832
4215202376 1099511627776
3128462852 1374389534720
2041723600 1649267441664
4135437457 2199023255552
1961958409 2748779069440
4072462630 3298534883328
3975907619 4398046511104
3896153236 5497558138880
3849957965 6597069766656
3656847943 8796093022208
3497339177 10995116277760
3404948635 13194139533312
3018728591 17592186044416
2699711059 21990232555520
2514929975 26388279066624
1742489887 35184372088832
1104454823 43980465111040
734892655 52776558133248
3413741448 70368744177664
2271761656 87960930222080
1398421864 105553116266496
2532515601 140737488355328
248556017 175921860444160
2725605222 211106232532992
4215202376 281474976710656
3128462852 351843720888320
2041723600 422212465065984
4135437457 562949953421312
1961958409 703687441776640
4072462630 844424930131968
3975907619 1125899906842624
3896153236 1407374883553280
3849957965 1688849860263936
3656847943 2251799813685248
3497339177 2814749767106560
3404948635 3377699720527872
3018728591 4503599627370496
2699711059 5629499534213120
2514929975 6755399441055744
1742489887 9007199254740992
1104454823 11258999068426240
734892655 13510798882111488
3413741448 18014398509481984
2271761656 22517998136852480
1398421864 27021597764222976
2532515601 36028797018963968
248556017 45035996273704960
2725605222 54043195528445952
4215202376 72057594037927936
3128462852 90071992547409920
2041723600 108086391056891904
4135437457 144115188075855872
1961958409 180143985094819840
4072462630 216172782113783808
3975907619 288230376151711744
3896153236 360287970189639680
3849957965 432345564227567616
3656847943 576460752303423488
3497339177 720575940379279360
3404948635 864691128455135232
3018728591 1152921504606846976
2699711059 1441151880758558720
2514929975 1729382256910270464
1742489887 2305843009213693952
1104454823 2882303761517117440
734892655 3458764513820540928
3413741448 4611686018427387904
2271761656 5764607523034234880
1398421864 6917529027641081856
2532515601 9223372036854775808
248556017 11529215046068469760
2725605222 13835058055282163712

No comments :