Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CRC32 Specifications  RSS feed

 
Wilfried LAURENT
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!