custom CRC

Help on how to use HxD.
Post Reply
poposhka
Posts: 1
Joined: 30 Apr 2012 22:45

custom CRC

Post by poposhka » 30 Apr 2012 22:47

Hello. I'm trying to calculate a custom CRC on a file. The instructions aren't very clear, would it be possible to add how to do this in a manual or something?

I'm trying to use the polynomial: x^24 + 4x^3 + 3x + 1

Thanks for any help.

Maël
Site Admin
Posts: 1124
Joined: 12 Mar 2005 14:15

Re: custom CRC

Post by Maël » 03 May 2012 01:45

Have a look at wikipedia http://en.wikipedia.org/wiki/Cyclic_redundancy_check especially the sections "Specification of CRC" and "Commonly used and standardized CRCs". They tell you how you can determine the params for the Custom CRC in HxD.

For example, for CRC-32 the values are: polynomial = 0x04C11DB7, InitialValue = 0xFFFFFFFF, FinalXorValue = 0xFFFFFFFF, ReflectIn = True, ReflectOut = True. In case you only know the polynomial try playing with ReflectIn, ReflectOut (can be true or false) and InitialValue and FinalXorValue (most likely either 0xFFFFFFFF or 0x00000000).

See also here: http://regregex.bbcmicro.net/crc-catalogue.htm

Post Reply