1

Resolved

CRC64 Polynomial definitions swapped

description

Propose correction of hashlib CRC64 "constants", in conflict with definitions published elsewhere.
Wikipedia (http://en.wikipedia.org/wiki/Crc32) lists the polynomials for CRC64 ISO and ECMA respectively as 0xD800000000000000 and 0xC96C5795D7870F42, whereas HashLib 2.0.1 CRC64.cs declares
    public static class CRC64Polynomials
    {
        public static ulong ISO = 0xC96C5795D7870F42;
        public static ulong ECMA_182 = 0xD800000000000000;
    }
RPM API (http://rpm5.org/docs/api/digest_8c-source.html) (line 131) appears to support Wikipedia definition.

comments