pextlib: Add SHA3-256 as a supported checksum type#397
Open
herbygillot wants to merge 1 commit intomacports:masterfrom
Open
pextlib: Add SHA3-256 as a supported checksum type#397herbygillot wants to merge 1 commit intomacports:masterfrom
herbygillot wants to merge 1 commit intomacports:masterfrom
Conversation
Member
Author
|
Need help testing this on older platforms, like PPC. |
b4cc0f8 to
b61d97d
Compare
Add sha3-256 alongside the existing rmd160 and sha256 checksum types. SHA3-256 (Keccak, FIPS 202) is structurally independent from the SHA-2 family, providing genuine defense-in-depth rather than two variants of the same algorithm design. The Keccak-f[1600] permutation is taken from the XKCP reference implementation by the SHA3 designers (CC0 public domain), wrapped in a streaming Init/Update/Final API for compatibility with md_wrappers.h. The bundled implementation is used unconditionally since CommonCrypto lacks SHA3 before macOS 10.15 and the OpenSSL low-level SHA3 API is inconsistent across versions. For now, rmd160 remains in default_checksum_types and secure_checksum_types to allow the release containing this change to propagate before nudging maintainers to transition. The portfile(7) man page documents the recommended set as sha256, sha3-256 and size. See: https://trac.macports.org/ticket/63885 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Add sha3-256 alongside the existing rmd160 and sha256 checksum types. SHA3-256 (Keccak, FIPS 202) is structurally independent from the SHA-2 family, providing genuine defense-in-depth rather than two variants of the same algorithm design.
The Keccak-f[1600] permutation is taken from the XKCP reference implementation by the SHA3 designers (CC0 public domain), wrapped in a streaming Init/Update/Final API for compatibility with md_wrappers.h. The bundled implementation is used unconditionally since CommonCrypto lacks SHA3 before macOS 10.15 and the OpenSSL low-level SHA3 API is inconsistent across versions.
For now, rmd160 remains in default_checksum_types and secure_checksum_types to allow the release containing this change to propagate before nudging maintainers to transition. The portfile(7) man page documents the recommended set as sha256, sha3-256 and size.
See: https://trac.macports.org/ticket/63885