Skip to content
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

Python libraries to generate wrapper code for PSA functions #8961

Open
gilles-peskine-arm opened this issue Mar 20, 2024 · 0 comments · May be fixed by #9224
Open

Python libraries to generate wrapper code for PSA functions #8961

gilles-peskine-arm opened this issue Mar 20, 2024 · 0 comments · May be fixed by #9224
Assignees
Labels
component-test Test framework and CI scripts enhancement size-s Estimated task size: small (~2d)

Comments

@gilles-peskine-arm
Copy link
Contributor

gilles-peskine-arm commented Mar 20, 2024

Write generic Python libraries that can be used to generate wrapper code for PSA functions. We intend to use them for several purposes:

  • Generate driver wrappers (replacing the current implementation using Jinja2 templates)
  • Generate client-side and server-side IPC code to test client-server usage
  • Tracing helpers
  • etc.

We have merged the core libraries as part of a security fix:

As part of the security fix, we only reviewed the output of the generator, not the generator code (which was only reviewed for non-harmfulness, not for correctness and maintainability). As a consequence, the goals of this task are:

  1. Review c_wrapper_generator.py and c_parsing_helper.py.
  2. Extract the code from tests/scripts/generate_psa_wrappers.py that's generically useful for all PSA wrapper code into a new module and review it fully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-test Test framework and CI scripts enhancement size-s Estimated task size: small (~2d)
Projects
EPICs for Mbed TLS
PSA client-server testing
Development

Successfully merging a pull request may close this issue.

2 participants