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
12 stars 10 forks source link

Apply CBORDecoder to ead-zeroconf #156

Closed geonnave closed 7 months ago

geonnave commented 7 months ago

Parsing routines made simpler with the CBORDecoder.

Since the ead crate is not being hax-checked at least for now, I am making use of early returns. Also, I introduced some unwraps, but it is mostly safe since it's normally loading a smaller buffer into a bigger one.