Fix CRC-64/XZ polynomial representation in PCF spec#6
Merged
Conversation
The constant 0x42F0E1EBA9EA3693 is the normal (non-reflected) polynomial of CRC-64/XZ, not the reflected one. Replace it with the actual reflected polynomial 0xC96C5795D7870F42 to match the convention already used for the two CRC-32 rows, and add a note mentioning the normal form for readers who need it (e.g. libraries that accept the normal poly). No on-disk format change; the check value 0x995DC9BBDF1939FA is unchanged. Fixes #2 https://claude.ai/code/session_01WvDqtNsESPu2XM4RuFWJ38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Corrected the CRC-64/XZ polynomial representation in the PCF specification to use the reflected form as the primary value, with clarification about the normal (non-reflected) polynomial.
Changes
0x42F0E1EBA9EA3693to0xC96C5795D7870F420x42F0E1EBA9EA3693is the normal (non-reflected) polynomialDetails
The CRC-64/XZ specification now correctly documents the reflected polynomial (
0xC96C5795D7870F42) as the primary value used in the algorithm, since the parameters specifyrefin=trueandrefout=true. The normal polynomial form is now explicitly noted for reference, making the specification clearer for implementers.https://claude.ai/code/session_01WvDqtNsESPu2XM4RuFWJ38