Java – CRC-16 with 0xa001 polynomial
•
Java
I want to calculate CRC - 16 checksum of byte array with 0xa001 polynomial But I really don't know how to use it in Java and how to use a given polynomial Is it some special value (0xa001)? Can you point me to a library that can calculate checksums for me, or give me some useful resources?
Thank you in advance, M. @ H_ 403_ 4@
Solution
It seems that you want crc-16-ibm polynomial, x16 x15 x2 1, inversion (0xa001) The Java implementation of crc-16-ccitt polynomial x16 X12 X5 1 can be found here; The corresponding unit test is here These should start you moving in the right direction
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码