Skip to content
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

Add crc32 jet #653

Merged
merged 8 commits into from
Jun 26, 2024
Merged

Add crc32 jet #653

merged 8 commits into from
Jun 26, 2024

Conversation

nathanlever
Copy link
Contributor

@nathanlever nathanlever commented May 22, 2024

Adds crc32 jet. This will be used to validate uncompressed gzip data.
urbit/urbit#6997

@nathanlever nathanlever requested a review from a team as a code owner May 22, 2024 15:12
u3_atom head = u3h(input_octs);
u3_atom tail = u3t(input_octs);
c3_w tel_w = u3r_met(3, tail);
c3_w hed_w = u3r_met(3, head);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hed_w should be the value of head as a c3_w, not its byte-width.

c3_w hed_w;
if ( c3n == u3r_safe_word(head, &hed_w) ) {
  return u3m_bail(c3__fail);
}

Copy link
Member

@joemfb joemfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will do

@pkova pkova merged commit d4e2b6f into urbit:next/kelvin/410 Jun 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants