Skip to content

Conversation

@willieyz
Copy link
Contributor

@willieyz willieyz commented Nov 13, 2025

@willieyz willieyz force-pushed the custom-backend branch 8 times, most recently from 57c9f4f to d4f46ac Compare November 14, 2025 10:29
@willieyz willieyz marked this pull request as ready for review November 14, 2025 10:34
@willieyz willieyz requested a review from a team as a code owner November 14, 2025 10:34
Copy link
Contributor

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @willieyz.

A few things still have to be changed. We'll also have to rebase this, but maybe wait until #711 is merged.

Copy link
Contributor

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please squash your commits. This is one logical change.

@willieyz willieyz force-pushed the custom-backend branch 2 times, most recently from 3ba2351 to 38aa3f0 Compare November 25, 2025 03:29
Copy link
Contributor

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @willieyz

Copy link
Contributor

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, noticed something late.

- This commit add custom backend example, for this example, we add the
  arithmetic part but skip the arithmetic backend
  (remove `native` folder), since we decide to disable it.

- This commit add a pseudo random number generator, implementing
  randombytes.h(reference from tests/test_only_rng).
- WARNING: The randombytes() implementation used here is for
  TESTING ONLY. You MUST NOT use this implementation outside of testing.

- This commit add custom backend fips202, we use tiny_sha3 here

- This commit add `main.c` and symlink `expected_signatures.h` to
  custom_backend, generate `custom_config.h` from `configs.yml`,
  also add auto.mk and Makefile.
- Add custom_backend to `tests` and `lint` scripts
- Add `Readme.md` to custom_backend, reference from mlkem-native

Signed-off-by: willieyz <willie.zhao@chelpis.com>
@mkannwischer mkannwischer merged commit 062405a into main Dec 2, 2025
328 checks passed
@mkannwischer mkannwischer deleted the custom-backend branch December 2, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example: Add custom_backend

3 participants