Mark all non-static declarations as internal or external#951
Open
hanno-becker wants to merge 1 commit intomainfrom
Open
Mark all non-static declarations as internal or external#951hanno-becker wants to merge 1 commit intomainfrom
hanno-becker wants to merge 1 commit intomainfrom
Conversation
ea4a609 to
9470dbe
Compare
Contributor
CBMC Results (ML-DSA-44)Full Results (174 proofs)
|
Contributor
CBMC Results (ML-DSA-87)
Full Results (174 proofs)
|
Contributor
CBMC Results (ML-DSA-65)
Full Results (174 proofs)
|
5302946 to
cd7a440
Compare
mkannwischer
approved these changes
Feb 6, 2026
Contributor
mkannwischer
left a comment
There was a problem hiding this comment.
Thanks @hanno-becker. The changes look good to me.
Strictly speaking you are not resolving #936 though.
Open
1 task
cd7a440 to
009f8a2
Compare
009f8a2 to
038f696
Compare
This commit ensures that all non-static, non-assembly symbols declared by mldsa-native are explicitly marked as internal or external via the MLD_CONFIG_INTERNAL_API_QUALIFIER / MLD_CONFIG_EXTERNAL_API_QUALIFIER configuration options. In particular, when mldsa-native is being built in a monobuild and MLD_CONFIG_INTERNAL_API_QUALIFIER set to `static`, only the FIPS204 API should be of external linkage. If mldsa-native is being built in a monobuild, directly included into another compilation unit, and both MLD_CONFIG_INTERNAL_API_QUALIFIER and MLD_CONFIG_EXTERNAL_API_QUALIFIER set to `static`, no non-assembly symbols should be generated. Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>
038f696 to
e45d93a
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.
This commit ensures that all non-static, non-assembly symbols declared by mldsa-native are explicitly marked as internal or external via the MLD_CONFIG_INTERNAL_API_QUALIFIER / MLD_CONFIG_EXTERNAL_API_QUALIFIER configuration options.
In particular, when mldsa-native is being built in a monobuild and MLD_CONFIG_INTERNAL_API_QUALIFIER set to
static, only the FIPS204 API should be of external linkage.If mldsa-native is being built in a monobuild, directly included into another compilation unit, and both MLD_CONFIG_INTERNAL_API_QUALIFIER and MLD_CONFIG_EXTERNAL_API_QUALIFIER set to
static, no non-assembly symbols should be generated.