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

#133: Avoid code duplication in process_message_2 and process_message_3 #134

Closed malishav closed 11 months ago

malishav commented 11 months ago

The PR removes common code between process_message_2 and process_message_3 into a single credential_check_or_fetch function. This is a first step to modularizing the steps that need to be done by the application code in terms of authentication credential processing.