I'm trying to get the results I expect from my custom crcmod in Python 3.
I currently have the following
# poly, initCrc, rev, xorOut crc32 = mkCrcFun(0x104c11db7, 0xFFFFFFFF, False, 0xFFFFFFFF) print(hex(crc32(b'\x0f\x0f\x0f\x0f'))) This prints 0x94913aa6. However, I expect to see 0x5395e7dd, which I calculated here with the following settings:
- CRC width - CRC-32
- CRC parametrization - Custom
- Input reflected - unchecked
- Result reflected - unchecked
- Polynomial -
0x4c11db7 - Initial Value -
0xFFFFFFFF - Final Xor Value -
0xFFFFFFFF - Input - Bytes
0f0f0f0f
I'm certain that the website is generating the expected checksum. I just can't get crcmod to duplicate it for the life of me. Any insight?