openwsn-berkeley / lakers

EDHOC implemented in Rust, optimized for microcontrollers, with bindings for C and Python.
https://crates.io/crates/lakers
BSD 3-Clause "New" or "Revised" License
13 stars 10 forks source link

Implement crypto interface using PSA backend #34

Closed malishav closed 1 year ago

malishav commented 1 year ago

The PR adds the support for PSA crypto backend based on mbedtls library. Because HKDF-Extract and HKDF-Expand are not exposed, this PR implements them using the hash function call from the PSA library.

The implementation of Elliptic Curve Diffie-Hellman operation is dependent on a custom fix to this library and mbedtls.