Closed achim1 closed 10 months ago
The docstring for libscrc.crc32 says the following:
libscrc.crc32
❯ libscrc.crc32? Docstring: Calculate CRC (WinRAR, File) of CRC32 [Poly=0xEDB88320, Init=0xFFFFFFFF, Xorout=0xFFFFFFFF Refin=True Refout=True] Type: builtin_function_or_method
However, looking into the implementation of _crc32_crc32 it says the used polynomial is CRC32_POLYNOMIAL_04C11DB7 which is defined as 0x04C11DB7L. This is for version 1.8.1.
_crc32_crc32
CRC32_POLYNOMIAL_04C11DB7
0x04C11DB7L
The docstring is incorrect. Thank you for your reminder.
The docstring for
libscrc.crc32
says the following:However, looking into the implementation of
_crc32_crc32
it says the used polynomial isCRC32_POLYNOMIAL_04C11DB7
which is defined as0x04C11DB7L
. This is for version 1.8.1.