-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config; Configure namespace prefix instead of namespace macro
Previously, the user could customize namespacing by providing macros `MLKEM_NAMESPACE(sym)` and `FIPS202_NAMESPACE(sym)`. This mode of configuration is slightly inconvenient in that it the namespace cannot be controlled from CFLAGS. This commit addresses this, as follows: Instead of making the namespace macro configurable, make the namespace _prefix_ configurable, and derive the namespace macro: The config provides MLKEM_NAMESPACE_PREFIX and FIPS202_NAMESPACE_PREIFX, and then the derived MLKEM_NAMESPACE(sym) and FIPS202_NAMESPACE(sym) are the concatenation of that, an underscore `_`, and the symbol name `sym`. All configs and examples are adjusted accordingly.
- Loading branch information
1 parent
81cb722
commit dd588fe
Showing
8 changed files
with
116 additions
and
86 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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