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 missing encodings for CleartextCredentials and CustomLabel #471

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

kevinlewi
Copy link
Collaborator

Addresses #469

@@ -1586,7 +1593,7 @@ Expand-Label(Secret, Label, Context, Length) =
Expand(Secret, CustomLabel, Length)
~~~

Where CustomLabel is specified as:
Where CustomLabel is specified and encoded (following Section 3.4 of {{?RFC8446}}) as:

Choose a reason for hiding this comment

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

A reference to RFC8446 might potentially be overkill here.

You might also specify CustomLabel as the concatenation of I2OSP(Length, 2), I2OSP(len("OPAQUE-" + Label), 2), "OPAQUE-", Label, I2OSP(len(Context)), and Context. This would also match how Preamble is specified in 6.4.2.1.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! I contemplated doing it this way, but ultimately decided that referencing the section in RFC8446 was a more concise way to describe the concatenation. Hope that this is still clear enough.

@kevinlewi kevinlewi merged commit bc85917 into cfrg:master Nov 21, 2024
1 check 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.

2 participants