Repository navigation
ML-DSA support - #2767
Merged
Merged
ML-DSA support#2767
Conversation
Add a signer backed by OpenSSL's ML-DSA-87 implementation, available when pkg is built against OpenSSL 3.5 or later. Keys may be generated with pkg key --create -t mldsa or with: openssl genpkey -algorithm ML-DSA-87 -out repo.key -outpubkey repo.pub The signer signs the hex-encoded SHA512 of the repository catalog and reports SHA512 as its digest, so signing_command (with --sign-type mldsa) and local key signing produce signatures that verify the same way. Verification works for both PUBKEY and FINGERPRINTS repositories, and only ML-DSA-87 keys are accepted.
Describe the mldsa signer in pkg-repo(8) and pkg-key(8): the digest it signs, generating keys with pkg key or OpenSSL, signing a repository with a local key or a signing server via --sign-type mldsa, and the OpenSSL 3.5 requirement.
tetlowgm
force-pushed
the
mldsa-support
branch
from
October 24, 2026 20:25
46237f7 to
03f0dc3
Compare
Cover key creation, public key export and signing (with OpenSSL interop when openssl(1) supports ML-DSA), signing and verifying a repository with a public key, rejection of a mismatched key and of a non-ML-DSA-87 key, and signing via a signing command with fingerprint verification. Add atf_require_signer so these are skipped when pkg is built against an OpenSSL without ML-DSA.
tetlowgm
force-pushed
the
mldsa-support
branch
from
October 24, 2026 20:58
03f0dc3 to
59bfe09
Compare
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 support for ML-DSA-87 signing of packages. This supports both key based and signing_command based methods of signing and verification. Code was cribbed from the ossl provider, modernized for current OpenSSL releases, and added test coverage for the signing type.