How to calculate SFV style CRC32 on Linux command line?

Is there an equivalent md5sum / sha1sum on Linux to calculate SFV-style CRC32? I checked cksum, but it seems to be calculating a different amount (maybe a different polynomial? Or am I interpreting the cksum output incorrectly). It is preferable not to use cfv / cksfv (both of which seem deprecated, and I would prefer not to download / compile a not-so-new tool every time I want to calculate this.

In addition, he prefers not to perform manual coding in C / C ++ / Java himself (that is, he would prefer not to implement CRC32 personally) for the same reason as above.

If someone knows exactly which polynomial SFV CRC32 uses (IEEE, Castagnoli, non-CRC Adler, etc.), this would also be a great start.

Anyway, thanks a lot in advance!

EDIT: It looks like it's not an adler based on a Windows hash tool that implements both Adler32 and something that it just calls "CRC32".

+4
source share
1 answer

CheckSFV is a good open source tool and has a -c option to generate in stdout. But even more importantly, you can just take the CRC32 calculation code if you want to use it in Appendix C (provided that it has to undergo proper licensing and credits).

http://zakalwe.fi/~shd/foss/cksfv/

Hope this helps.

+3
source

All Articles