Commit 661934b
committed
cksum: Add SHA3/SHAKE support with comprehensive test coverage
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 #8948 code review feedback from @cakebaker, @sylvestre, and @evilpie.
All 134 tests pass with no regressions.1 parent 95b266f commit 661934b
File tree
3 files changed
+16
-2
lines changed- src/uu/cksum/locales
- tests/by-util
3 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2668 | 2668 | | |
2669 | 2669 | | |
2670 | 2670 | | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
2671 | 2685 | | |
2672 | 2686 | | |
2673 | 2687 | | |
| |||
0 commit comments