Skip to content

[wip] Port some keystore functions to Rust #1425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

benma
Copy link
Collaborator

@benma benma commented Apr 24, 2025

No description provided.

benma added 2 commits April 27, 2025 22:28
Until the relevant keystore.c functions are ported too, we keep the
cipher.c/cipher.h interface but have it call into Rust.

The test_cipher.c tests were ported and the test generator script
adatped to produce Rust output.
It causes a long delay before the orientation animation. It's a sanity
check only, so doing it as part of the factory setup only suffices.

We also enable it in debug builds, so it catches a misconfigured
device (e.g. if you forgot to run factorysetup on a new PCB).
benma added 5 commits April 28, 2025 22:54
No caller ran into this, but good to make sure.
So C tests can be shown to pass with the Rust impl.
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.

1 participant