Mark Nelson Guest
|
Posted: Fri Jun 06, 2008 1:59 pm Post subject: Re: About CRC-32 checksum |
|
|
On Jun 5, 5:18 am, lokar...@gmail.com wrote:
[quote]I am implementing algorithm to calculating CRC-32 checksum value for a
data.While calculating,wheather I have to consider terms Big endian or
little endian?
In Big endian or Little endian CRC-32 checksum value is same or not?
[/quote]
Most CRC and checksum algorithms used in compression operate on a
stream of bytes, reading and processing one byte at a time. When that
is the case, you will arrive at identical results regardless of byte
ordering on your machine - the algorithm is not affected by the
machine that is hosting it.
If you read your source file a word at a time, where a 'word' is some
multiple-byte entity, the value you calculate for a checksum or CRC
will be different depending on the word ordering.
There may be some algorithms out there that operate on words but
produce the same result regardless of ordering, yet retain some of the
efficiency gained by clumping, but I am not aware of them.
|
| Mark Nelson - http://marknelson.us
| |
|