item = '04010034587C1F0C6D51B6D33B78CA63C1CC7E5910006C5600000000000000'
'%08X' % (binascii.crc32(binascii.a2b_hex(item)) & 0xffffffff)
I can't get the crc32 to give me the correct 32 bits. I have tried several different algorithms. I have been getting '3228F9E4' with this code, but the correct crc32 should be 'E42FDBEC' according to another program used. The polynomial is '04C11DB7' and the initial remainder is '00000000'.
How can I calculate this correctly?