Closed mullermp closed 1 month ago
In zlib? No. the zlib, gzip, and zip formats all use CRC-32/ISO-HDLC. There is no application for CRC-32/ISCSI in zlib.
You can look to crcany for the generation of C code to compute any CRC. Also this answer on stackoverflow has my fast code to use the Intel hardware instruction for CRC-32C.
Thanks for your prompt response. I am trying to find the best place to put a CRC32C implementation in the Ruby ecosystem. There is a gem called zlib
that interfaces with this library that has CRC32 checksum code and it felt natural to put CRC32C there. I'm not sure how much you've used Ruby, but do you have any opinions on where that would live?
I don't know where it would best live in the standard gems. A quick google search turned up this: https://github.com/postmodern/digest-crc
Yep, I've seen that one. I try to avoid dependencies for our library (AWS SDK for Ruby), which is why my motivation was for it to exist in a bundled/standard gem such as zlib.
Hello. Is there planned support for CRC32C?