Log in

View Full Version : Help creating sfv files!


Leon.
17th June 2004, 23:04
I've searched the forums and the net but can not find the answer I seek so i try here :)

What I want to understand is how the checksum i calculated for big files.

Does it check chunks of data at the time and then do a new checksum for the original checksums or is there a way to partially create a checksum while reading the file?

Can someone please explain anything about this to me? I need to be able to calculate theese for a program I am writing :)

P0l1m0rph1c
19th June 2004, 04:28
It just calcs the CRC32 of a chunk at a time. When computing the next chunk's CRC, you just need to input the last chunk's CRC, instead of the initial value 0xFFFFFFFF. The last chunk's CRC will be the file's CRC32.

Good luck to your app :)

Leon.
19th June 2004, 16:18
You mean the chunks does not matter what size they are?

P0l1m0rph1c
19th June 2004, 20:35
No. You can read a byte at a time, 500 KB at a time, doesn't matter.