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

Clarifications of KeyUpdate and Exporter #278 #310

Closed
wants to merge 1 commit into from

Conversation

gselander
Copy link
Collaborator

No description provided.

@emanjon
Copy link
Collaborator

emanjon commented Jun 29, 2022

PRK_exporter MUST be derived anew from PRK_out if EDHOC-KeyUpdate is used

This is very wrong

PRK_out = EDHOC-KDF( PRK_out, 11, context, hash_length )

This overwriting is also very wrong.

Not sure that the changes in this PR are worth making now when these paragraphs need a complete rewrite.....

@emanjon
Copy link
Collaborator

emanjon commented Jun 29, 2022

#313

@@ -789,7 +789,7 @@ PRK_exporter = EDHOC-KDF( PRK_out, 10, h'', hash_length )

where hash_length denotes the output size in bytes of the EDHOC hash algorithm of the selected cipher suite.

PRK_exporter MUST be derived anew from PRK_out if EDHOC-KeyUpdate is used, see {{keyupdate}}.
PRK_exporter MUST be derived anew from PRK_out if EDHOC-KeyUpdate is used, see {{keyupdate}}. A typical mode of operation of an application is that PRK_exporter is derived from PRK_out generated by EDHOC, and application keys in turn from PRK_exporter. Later, when key update is required by the application, PRK_out is updated from which new PRK_exporter and application keys are derived.
Copy link
Collaborator

Choose a reason for hiding this comment

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

"A typical mode of operation of an application is that PRK_exporter is derived from PRK_out generated by EDHOC, and application keys in turn from PRK_exporter."

Isn't this always the case?

@gselander
Copy link
Collaborator Author

Replaced by #314

@gselander gselander closed this Jul 10, 2022
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.

None yet

2 participants