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

Set up a code generation framework for driver wrappers #3342

Closed
gilles-peskine-arm opened this issue May 22, 2020 · 1 comment
Closed

Set up a code generation framework for driver wrappers #3342

gilles-peskine-arm opened this issue May 22, 2020 · 1 comment
Assignees
Labels
component-crypto Crypto primitives and low-level interfaces enhancement

Comments

@gilles-peskine-arm
Copy link
Contributor

gilles-peskine-arm commented May 22, 2020

The unified driver interface framework in #3313 is designed to be implemented with generated code to call the drivers.

We need a framework to generate this wrapper code for Mbed TLS. The generation code will be in Python 3 since this is our scripting language. This is an investigation task; the outcome is not precisely defined, but will likely be Python code that can handle at least one smoke-test driver, as well as guidelines for the interface (types and function prototypes) between the hand-written code and the generated code.

#3313 has some ad hoc string writing code. This may or may not be the correct answer.

3rd March 2021: We have an hand-made driver wrapper to test the driver delegations we support. For multi-part operations (only multi-part cipher operations supported as time of writing but more to come soon), the driver operation context is dynamically allocated. This should be revisited to avoid dynamic allocations (see #4157 (comment)).

@gilles-peskine-arm gilles-peskine-arm added component-crypto Crypto primitives and low-level interfaces enhancement labels May 22, 2020
@danh-arm danh-arm added this to the July 2020 Sprint milestone Jun 22, 2020
@bensze01 bensze01 modified the milestones: September 2020 Sprint, Driver interface: API design and prototype Jul 28, 2021
@bensze01 bensze01 removed this from the Driver interface: API design and prototype milestone Aug 11, 2021
@gilles-peskine-arm
Copy link
Contributor Author

Fulfilled by #5193 and its follow-ups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-crypto Crypto primitives and low-level interfaces enhancement
Projects
None yet
Development

No branches or pull requests

4 participants