DCP calculation CRC32 value is incorrect

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DCP calculation CRC32 value is incorrect

895 Views
limingchen
Contributor I

Why do I use the DCP Hash function on i.mx287 to compute the CRC32 check of the string "1234" to 0xa685c4aa, but the result I calculated using the calculator is 0x9be3e0a3? Is the algorithm different?

为什么我使用i.mx287上的DCP功能计算字符串“1234”的CRC32校验值为0xa685c4aa,但是我使用计算器算出的结果是0x9be3e0a3?是算法不一样吗?

Labels (1)
0 Kudos
5 Replies

767 Views
igorpadykov
NXP Employee
NXP Employee

Hi li

it uses slightly different algorithm as described below

pastedImage_1.jpg

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

767 Views
limingchen
Contributor I

No, he said Unix cksum() is another algorithm, I used the algorithm should be the same as the DCP, but the results are not the same.

CRC32 is X32+X26+X23+X22+X16+X12+X11+X10+X8+X7+X5+X4+X2+X1+1。

0 Kudos

767 Views
igorpadykov
NXP Employee
NXP Employee

seems algorithm using the calculator was different from DCP

described in Reference Manual.

Please look at DCP driver in linux-2.6.35.3/drivers/crypto/dcp.c.

~igor

0 Kudos

767 Views
limingchen
Contributor I

Do you know how the crc algorithm of DCP is specific? Is there a documentation? If not the same, what is its application scenario?

0 Kudos

767 Views
igorpadykov
NXP Employee
NXP Employee

sorry there is no additional documentation except provided in reference manual.

0 Kudos