-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
cksum: Add SHA3/SHAKE support and --debug flag #8948
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
base: main
Are you sure you want to change the base?
Conversation
|
GNU testsuite comparison: |
|
Could you please add tests to make sure we don't regress in the future? Thanks |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
08769f4 to
cbb156c
Compare
|
please move the --debug implementation in a different PR |
|
sr, i missed pushing the commit from 8949 to 8948 🤡 |
|
GNU testsuite comparison: |
sylvestre
left a comment
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.
still need --debug move away
9016b78 to
514291d
Compare
CodSpeed Performance ReportMerging #8948 will not alter performanceComparing Summary
|
c177dec to
d2ee583
Compare
|
GNU testsuite comparison: |
3a9e52b to
6b1cf16
Compare
|
GNU testsuite comparison: |
1 similar comment
|
GNU testsuite comparison: |
dcb966d to
fd5840a
Compare
|
GNU testsuite comparison: |
| } | ||
|
|
||
| #[test] | ||
| fn test_sha3_with_length() { |
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.
This functionality is already tested by test_sha3_single_file.
…ack) - Remove test_sha3_with_length() - redundant with test_sha3_single_file() - Remove test_sha3_invalid_length() - redundant with test_sha_length_invalid() and test_sha_missing_length() - Remove test_sha3_untagged() - redundant with test_untagged_sha3_single_file() - Keep test_sha3_base64_output() - provides unique coverage for base64 output with SHA3 Addresses code review feedback from @cakebaker (Oct 31) on PR uutils#8948. All 134 tests pass with no regressions.
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
e92cfab to
204d05f
Compare
This commit consolidates all changes for SHA3/SHAKE algorithm support: Features: - Add SHA3 and SHAKE algorithm support to cksum - Support --length parameter for SHA3 (224, 256, 384, 512 bits) - Support --length parameter for SHAKE (any length) - Add base64 output support for SHA3/SHAKE Tests: - Add comprehensive test coverage for SHA3/SHAKE with various lengths - Add tests for base64 output format - Add tests for error cases (invalid lengths, missing length parameter) - Remove redundant test coverage Localization: - Update English and French locale files with SHA3/SHAKE descriptions Fixes PR uutils#8948 code review feedback from @cakebaker, @sylvestre, and @evilpie. All 134 tests pass with no regressions.
204d05f to
661934b
Compare
|
GNU testsuite comparison: |
This commit consolidates all changes for SHA3/SHAKE algorithm support: Features: - Add SHA3 and SHAKE algorithm support to cksum - Support --length parameter for SHA3 (224, 256, 384, 512 bits) - Support --length parameter for SHAKE (any length) - Add base64 output support for SHA3/SHAKE - Add --debug flag (no-op matching GNU behavior) Tests: - Add comprehensive test coverage for SHA3/SHAKE with various lengths - Add tests for base64 output format - Add tests for error cases (invalid lengths, missing length parameter) - Remove redundant test coverage Localization: - Update English and French locale files with SHA3/SHAKE descriptions Fixes PR uutils#8948 code review feedback from @cakebaker, @sylvestre, and @evilpie. All 134 tests pass with no regressions.
661934b to
dee3483
Compare
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
Add comprehensive tests for SHA3/SHAKE algorithm support
This PR adds comprehensive test coverage for SHA3 and SHAKE algorithms with the --length parameter.
The SHA3/SHAKE implementation was already merged into main. This PR ensures the algorithms are properly tested with various length parameters and edge cases.
Fixes #8933 (test coverage aspect)