IntelliJ Java IDE
The moose likes Other JSE/JEE APIs and the fly likes CRC32 Specifications Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "CRC32 Specifications" Watch "CRC32 Specifications" New topic
Author

CRC32 Specifications

Wilfried LAURENT
Ranch Hand

Joined: Jul 13, 2001
Posts: 269
Does anybody know if there are at least two different algorithm hiding under this name?
I have to check the CRC32 on an incoming byte array. The CRC32 which comes with this frame has been calculated with an algorithm written in C (and generated by myself).
I use the java.util.zip.CRC32 class from the jdk 1.3 to calculate the CRC32 on the byte array and match it with the CRC32 at the end of the frame.
But I do not find the same result. Looking at the source does not help since native methods are called. The javadoc is not much clearer since there are no link on the CRC32 specifications.
W.
John Harby
Greenhorn

Joined: Jan 04, 2002
Posts: 20
It looks like someone has filed a bug on this lack of documentation issue for JDK 1.4. You might want to add 1.3 to it.
Bug Id 4493869
John Harby
JCP Member
JSR 155 Expert Group
 
 
subject: CRC32 Specifications
 
Threads others viewed
CheckSum implemantation details for a file
CRC algorithm
Checksum crc 16 modbus
CRC-32
Right bit Shift Operator In Java
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com