-
Notifications
You must be signed in to change notification settings - Fork 27
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
Move the Mbed TLS/Mbed Crypto specific code in its own crate #90
Comments
See #88 |
I am trying to understand what the relationship between rust-psa-crypto and https://github.com/fortanix/rust-mbedtls . |
Hi @mcr - we have no affiliation with the
My guess would be that you're better served by this crate ( May I ask what your overarching use-case/project is, if it's something public? Another option would be for you to offload the low-level interactions to Parsec, and use the Rust native Parsec client to then implement your high-level objectives. |
Hi, sorry to take so long to get back you. I want/need to use psa-crypto to sign RFC8366 vouchers, which are then sent across a TLS connection. So I need the psa functions, and I need mbedtls ones too. When I link both rust-psa-crypto and mbedtls(-sys-auto), I get duplicate symbols. A reason to want PSA is so that, on embedded M-class systems, I'll get whatever accelerations that PSA/etc. can provide. I'm rather unclear why PARSEC enters the discussion. Since the mbedtls-sys-auto crate also provides all the mbedtls code, I wonder if I can convince the rust-psa-crypto to not compile the mbedtls code itself. This would "easy" if I just cared about native builds, I could use "-lmbedtls", etc. but I need the entire cross features of cargo. |
The
psa-crypto
crate should ideally be a generic wrapper around the PSA Crypto API. Currently we are also offering in that crate the building and linking with Mbed Crypto (in Mbed TLS), one of its implementation.We should maybe try to separate those two things with maybe a
mbedcrypto
crate that contains the finding, building and linking with Mbed Crypto. It could also contain the bindings for Mbed Crypto so will remove the need ofbindgen
!The text was updated successfully, but these errors were encountered: