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

Parsing message 3 from longer slice #255

Open
chrysn opened this issue Apr 15, 2024 · 1 comment
Open

Parsing message 3 from longer slice #255

chrysn opened this issue Apr 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@chrysn
Copy link
Collaborator

chrysn commented Apr 15, 2024

When implementing the EDHOC option for CoAP, the user of this library needs to do some CBOR parsing of the message3 structure on their own, just to hand the whole thing over to Lakers, possibly pulling in an own CBOR library.

I don't have a precise plan yet for how to best do this; possibly, a parse_message_3_from_stream() convenience method would do like parse_message_3, but return the consumed length as part of the Ok. (Technically there are some error states in which it could still indicate a parsed length; practically, this is irrelevant because what comes after the EDHOC option can only be used through a successful EDHOC operation anyway).

@geonnave
Copy link
Collaborator

I am also not sure on the best way. We could either have a parse_message_3_from_stream() or something like edhoc_with_oscore::parse_comb_payload that directly returns the split msg3 and oscore items.

@geonnave geonnave added the enhancement New feature or request label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants