Skip to content

Implement Digest::CRC32 #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

casperisfine
Copy link

Ref: #77

CRC32 is relatively commonly needed for network protocol (e.g. erro checking in AWS-s3, etc) and some archive formats like zip. As such it would be helpful to have a reasonably efficient implementation built-in.

This is a clean implementation derived from the Wikipedia article, there are more optimized implementations out there, but not sure it's really worth including complicated code. I mostly meant this as a way to familiarize myself with digest before I attempt to write a PR for BLAKE-3.

About JRuby, I tried to figure out how to implement another Java digest, but I couldn't figure it out. It seems like the digest them isn't actually doing any digest and the actual code is in jruby itself? @headius is that correct? If so, how am I supposed to add crc32 support?

Ref: ruby#77

`CRC32` is relatively commonly needed for network protocol and
some archive formats like `zip`.

This is a clean implementation derived from the Wikipedia article.
@casperisfine casperisfine requested a review from knu as a code owner April 24, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants