• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

CRC32 Specifications

 
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Looky! I'm being abducted by space aliens! Me and this tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic