D
D
DEVELOPER2020-06-27 01:03:36
Hashing
DEVELOPER, 2020-06-27 01:03:36

Why is the CRC32 of the file not calculated and is FFFFFFFF?

Dear colleagues. A few questions on the topic of the question:

1. Why is CRC32 of a file, regardless of the extension, not calculated at a time when other algorithms work properly?
2. What does the result "FFFFFFFF" mean?
3. How to calculate the CRC32 of a 11-12 MB file in alternative ways?
4. What can be changed in the file if the results of its CRC32 calculation are equal to FFFFFFFF?

I assume that there is some kind of mine in the file that prevents the CRC32 algorithm from working and loops it. Or am I wrong? These are just my speculations.
Thank you all for your detailed and informative replies.
Remember that this topic can help not only me, but also many interested coders and others like them, so please answer as fully as possible.

5ef670b39c59f279017820.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2020-06-27
@SSLHTML

1. Why is the CRC32 of a file, regardless of the extension, not calculated at a time when other algorithms work properly?

He is calculated.
2. What does the result "FFFFFFFF" mean?

Number 0xFFFFFFFF, decimal 4294967295
3. How to calculate the CRC32 of a 11-12 MB file in alternative ways?

you can take another polynomial, for example, CRC-32 CCIT, then you get a different result
4. What can be changed in the file if the results of its CRC32 calculation are equal to FFFFFFFF?

Changing the value of any byte in the file will result in a different CRC32 value. The name and extension are not the contents of the file and do not affect the hash.
I assume that there is some kind of mine in the file that prevents the CRC32 algorithm from working and loops it. Or am I wrong? These are just my speculations.

No, most likely at the end of the file the CRC32 value of all previous bytes is already written, which is why this effect is obtained. Think of it as a kind of integrity check. If the CRC32 of the file is not equal to 0xFFFFFFFF, the file will be considered corrupt. I saw this in device firmware.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question