Is it possible to configure the DCP block for different flavours of CRC?
From this link it appears the configuration is:
/* Expected CRC-32 for the message.
* CRC-32 params:
* width=32 poly=0x04c11db7 init=0xffffffff refin=false refout=false xorout=0x00000000
* http://reveng.sourceforge.net/crc-catalogue/
*/
But I would like to use:
width=32 poly=0x04c11db7 init=0xffffffff refin=true refout=true xorout=0xffffffff
Well I say that... I think I do anyway if you follow the reveng link above for the CRC-32/ISO-HDLC variant which is what I already have a software implementation for.
If you run "12345678" through ISO-HDLC you will get a crc of 0x9ae0daaf but when I run it through the DCP I am getting 0xF954FCFE.
There is a 'swapConfig' field in the dcp_handle_t struct that looks promising but people always seem to set it to kDCP_NoSwap and I am not sure what kDCP_InputByteSwap and others are used for.
I've just run a quick test for SHA1 as well and that also doesn't match what I am expecting.
Hi Gary,
Did you find some information for this?
I posted similar question in this topic:
Unfortunately I did not get any reply.
Best regards.