Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding functions for message_4 #312

Merged
merged 20 commits into from
Nov 25, 2024

Conversation

ElsaLopez133
Copy link
Contributor

Adding trait to call the edhoc_exporter and edhoc_prk_update either when in state in message 3 or 4.
Adding functions to prepare, parse, and process message 4.
Corrected examples (coap and lakers-nrf52840).
Added tests.

Copy link
Collaborator

@geonnave geonnave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on your first PR, it looks very good!

Did a first very quick review round, I will let you have CI passing for the test matrix and then do a more detailed one.

.gitignore Outdated Show resolved Hide resolved
examples/coap/src/bin/coapclient.rs Outdated Show resolved Hide resolved
examples/coap/src/bin/coapserver.rs Outdated Show resolved Hide resolved
lib/src/edhoc.rs Outdated Show resolved Hide resolved
lib/src/edhoc.rs Outdated Show resolved Hide resolved
lib/src/edhoc.rs Outdated Show resolved Hide resolved
lib/src/edhoc.rs Outdated Show resolved Hide resolved
@geonnave
Copy link
Collaborator

Please also follow the project's convention for commit messages. We use a format loosely based on Conventional Commits. For example, you may change your first commit message to edhoc: add support for message_4. I recommend you take a look at git log and follow the style we use in the project.

Copy link
Collaborator

@geonnave geonnave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the examples code, looks good, left a few nitpick comments.

examples/coap/src/bin/coapclient.rs Outdated Show resolved Hide resolved
examples/coap/src/bin/coapserver.rs Outdated Show resolved Hide resolved
examples/lakers-nrf52840/src/bin/initiator.rs Show resolved Hide resolved
Adding functions for message_4
Adding trait to call the edhoc_exporter and edhoc_prk_update
either when in state in message 3 or 4.
Adding functions to prepare, parse, and process message 4
Copy link
Collaborator

@geonnave geonnave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update, my main comment is about prk_exporter. Let's discuss it offline.

lib/src/edhoc.rs Outdated Show resolved Hide resolved
examples/coap/src/bin/coapserver-coaphandler.rs Outdated Show resolved Hide resolved
lib/src/edhoc.rs Outdated Show resolved Hide resolved
lib/src/edhoc.rs Outdated Show resolved Hide resolved
lib/src/lib.rs Outdated Show resolved Hide resolved
lib/src/lib.rs Outdated Show resolved Hide resolved
lib/src/lib.rs Outdated Show resolved Hide resolved
lib/src/lib.rs Outdated Show resolved Hide resolved
Added test_handshake for 3 and 4 messages to derive prk_exporter in both cases
Added a function completed_without_message4 for handshake with 3 messages
Removed the trait for Done
Fix minor mistakes
lib/src/lib.rs Outdated Show resolved Hide resolved
remove test_handshake_message_4 in lib.rs
@chrysn
Copy link
Collaborator

chrysn commented Nov 4, 2024

Using this with aiocoap broke interoperability; before I dig further in: Is this supposed to be a breaking API change on the Python side, or merely an extension?

@chrysn chrysn mentioned this pull request Nov 4, 2024
Copy link
Collaborator

@geonnave geonnave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there @ElsaLopez133 ! Left a few more comments :)

lakers-python/src/initiator.rs Outdated Show resolved Hide resolved
lakers-python/test/test_lakers.py Outdated Show resolved Hide resolved
examples/coap/src/bin/coapserver.rs Outdated Show resolved Hide resolved
lakers-c/src/initiator.rs Show resolved Hide resolved
@geonnave
Copy link
Collaborator

@ElsaLopez133 congrats on finishing your first PR on lakers! And it was a big one! Merging now.

@geonnave geonnave merged commit 975010e into openwsn-berkeley:main Nov 25, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants