-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Provide linkable functions of PSA getters and setters #3230
Comments
It is possible to use the There's a related problem with preprocessor symbols. With Rust, if the C header contains |
It would be good for |
There is more discussion on this topic in #6400 |
It looks like bindgen is working to support this kind of thing - see recent activity in rust-lang/rust-bindgen#1090 |
Getters and setters in the PSA API are declared as
static inline
. That's great if you're programming in C or C++, but if you're writing a wrapper for a high-level language, you may well need a linkable function. This has come up with Rust wrappers for example.Mbed TLS, and possibly the PSA Crypto API, should be able to provide a linkable version of these functions.
Initializers are also
static inline
, but these might not be necessary since they can officially be replaced by all-bits-zero initialization.The text was updated successfully, but these errors were encountered: