Skip to content

Add new crypto backend based on mbedtls#115

Draft
malishav wants to merge 3 commits intolake-rs:mainfrom
malishav:mbedtls
Draft

Add new crypto backend based on mbedtls#115
malishav wants to merge 3 commits intolake-rs:mainfrom
malishav:mbedtls

Conversation

@malishav
Copy link
Member

@malishav malishav commented Oct 6, 2023

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:

  • 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.

@geonnave geonnave added the blocked:help wanted Extra attention is needed label Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants