-
Notifications
You must be signed in to change notification settings - Fork 185
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
Correct digest lengths #2068
Correct digest lengths #2068
Conversation
@david-waltermire, per our desire to coordinate a patch release with NIST, can we please target this PR on main, not develop? I will ping you in an upcoming discussion topic. Thanks! |
That would be fine with me ( As for the merits of the PR, 👍 to backward-compatible improvements and corrections - if the constraint is to be included at all it should be correct. (Removing it into a different layer of constraint checking is also a good solution in my view.) |
According to the contributing guidelines it looks like I should target release-1.1 for a patch release. I am going to rebase and change the PR to point there. |
5298fce
to
4019d57
Compare
This is correct and everything we merged already in |
I am happy to rebase to I do want to point out that what you are suggesting is not consistent with the practices for a patch release identified in the contributing guidelines for the repository which states:
Inconsistent application of these guidelines makes the process confusing, difficult to predict, and more labor intensive for contributors. It would be helpful to have a more consistent approach. |
4019d57
to
728af69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The values for the hashes are correct now per NIST examples:
https://csrc.nist.gov/csrc/media/projects/cryptographic-standards-and-guidelines/documents/examples/sha224.pdf
https://csrc.nist.gov/csrc/media/projects/cryptographic-standards-and-guidelines/documents/examples/sha256.pdf
https://csrc.nist.gov/csrc/media/projects/cryptographic-standards-and-guidelines/documents/examples/sha384.pdf
https://csrc.nist.gov/csrc/media/projects/cryptographic-standards-and-guidelines/documents/examples/sha512.pdf
The proposed IDs for the constraints are new, but they are not causing OSCAL backwards compatibility issues per local testing.
Committer Notes
Based on some testing, the required digest lengths should be twice their current size to be correct. This PR adjusts the values to be the correct size.
Resolves #2053
All Submissions:
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.
(For reviewers: The wiki has guidance on code review and overall issue review for completeness.)
Changes to Core Features: