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

Does PSA Crypto belong in this crate #164

Closed
mcr opened this issue Sep 23, 2021 · 3 comments
Closed

Does PSA Crypto belong in this crate #164

mcr opened this issue Sep 23, 2021 · 3 comments

Comments

@mcr
Copy link

mcr commented Sep 23, 2021

The PSA API https://armmbed.github.io/mbed-crypto/html/about.html is implemented by mbedtls.
As far as I can see (I might have missed stuff), the mbedtls-auto-sys module is not wrapping the psa_* functions, but rather the underlying mbedtls functions. If this is wrong, and I've missed stuff, please say so.
If I'm right, then I guess I need to understand how to make bindgen do it's thing.

@mcr
Copy link
Author

mcr commented Sep 23, 2021

Okay, I now found:
https://github.com/fortanix/rust-mbedtls/blob/master/mbedtls-sys/build/headers.rs#L21

      grep '^#include' *|grep -v '<'|grep -v MBEDTLS_|sed 's/:#include//;s/"//g'|sed 's#mbedtls/##g'| egrep -v ' (psa/crypto.h|psa/crypto_config.h|everest/everest.h|zlib.h|.*_alt.h)$

so, it appears that psa/crypto.h has been explicitely excluded. Is there a reason for that?

@mcr mcr closed this as completed Sep 23, 2021
@mcr mcr reopened this Sep 23, 2021
mcr pushed a commit to mcr/rust-mbedtls that referenced this issue Aug 10, 2023
@Taowyoo
Copy link
Collaborator

Taowyoo commented Feb 9, 2024

PSA is more heavily used in mbedtls 3.X, but because of #320, we are not planning to add/export PSA API in mbedtls-sys 2.28.X

@Taowyoo Taowyoo closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2024
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

No branches or pull requests

2 participants