The PR adds a new crypto backend based on mbedtls Rust crate. This is still a WIP draft.
I was able to make the vanilla mbedtls crate compile for both embedded and native targets. On native, most tests pass, except for the complete test_handshake which fails due to the absence of RNG.
TODO:
[x] complete RNG-related functions in crypto/edhoc-crypto-mbedtls/src/lib.rs for std
[ ] complete RNG-related functions in crypto/edhoc-crypto-mbedtls/src/lib.rs for no_std
[ ] figure out how to build for nrf52840-dk (no_std example) without custom free() and calloc() functions.
The PR adds a new crypto backend based on mbedtls Rust crate. This is still a WIP draft.
I was able to make the vanilla mbedtls crate compile for both embedded and native targets. On native, most tests pass, except for the complete
test_handshake
which fails due to the absence of RNG.TODO:
crypto/edhoc-crypto-mbedtls/src/lib.rs
for stdcrypto/edhoc-crypto-mbedtls/src/lib.rs
for no_stdfree()
andcalloc()
functions.