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

C_x only support u8 #258

Closed chrysn closed 5 months ago

chrysn commented 5 months ago

We currently only support C_x as u8. Given that the peer may choose a longer one, this is an interoperability hazard.

As far as I have found, there is no limit to their length in EDHOC, so the implementation will need to pick a limit, which can be reasonably 1, but right now this is not configurable.

chrysn commented 5 months ago

As a first step, I'll start wrapping the u8 in a newtype that'll allow changing this later.