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

Ability to prepare and process more than one EAD field #177

Open
geonnave opened this issue Dec 21, 2023 · 0 comments
Open

Ability to prepare and process more than one EAD field #177

geonnave opened this issue Dec 21, 2023 · 0 comments
Labels
help wanted Extra attention is needed new feature

Comments

@geonnave
Copy link
Collaborator

Currently one either 0 or 1 EAD fields can be added to a message. This is not complete according to the EDHOC RFC, which specifies 0 or N EAD fields.

From the API perspective, here is one possible way to implement it (see this review comment):

let (state, msg1) = start.prepare_message1(x, g_x, c_i)
    .add_ead1(id, Some(bytes))?
    .add_ead1(more_id, None)?
    .finish(&mut crypto);
@geonnave geonnave mentioned this issue Dec 21, 2023
7 tasks
@geonnave geonnave added the help wanted Extra attention is needed label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed new feature
Projects
None yet
Development

No branches or pull requests

1 participant