Example: Add custom_backend #699
Open
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.
Resolves: Example: Add
custom_backend#622This PR adds a custom_backend to mldsa-native, referencing the mlkem-native example: https://github.com/pq-code-package/mlkem-native/tree/main/examples/custom_backend.
The
custom_backendexample creates a mldsa-native build and adds tiny_sha3 as a backend option.Currently,
MLD_NATIVE_FUNC_SUCCESSdoes not exist (prior to the merge of Add Runtime dispatch based on custom CPU capabilities function #607). It is temporarily added to theautogen's exception list with a TODO comment, and also change the macro incustom.hwith0. This should be removed after PR #607 is merged.