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

Clear up confusion about label encoding #4201

Merged
merged 2 commits into from Oct 15, 2020
Merged

Clear up confusion about label encoding #4201

merged 2 commits into from Oct 15, 2020

Conversation

martinthomson
Copy link
Member

This was, I think clear, but the use of HKDF-Expand-Label and the
encoding of labels into octets could be even more explicit.

Closes #4197.

This was, I think clear, but the use of HKDF-Expand-Label and the
encoding of labels into octets could be even more explicit.

Closes #4197.
@martinthomson martinthomson added editorial An issue that does not affect the design of the protocol; does not require consensus. -tls labels Oct 14, 2020
Copy link
Contributor

@janaiyengar janaiyengar left a comment

Choose a reason for hiding this comment

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

nits

be used with QUIC.
cipher suite. Note that labels, which are described using strings, are encoded
as bytes using ASCII {{?ASCII=RFC0020}} without quotes or any trailing NUL
byte. Other versions of TLS MUST provide a similar function in order to be
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
byte. Other versions of TLS MUST provide a similar function in order to be
bytes. Other versions of TLS MUST provide a similar function in order to be

Copy link
Member Author

Choose a reason for hiding this comment

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

This is singular intentionally, to avoid problems like might arise from:

const char* label = "quic key";
hkdf_expand_label(...., label, strlen(label), ...);

draft-ietf-quic-tls.md Outdated Show resolved Hide resolved
Co-authored-by: Jana Iyengar <jri.ietf@gmail.com>
@martinthomson martinthomson merged commit d7e3231 into master Oct 15, 2020
@martinthomson martinthomson deleted the hkdf-label branch October 15, 2020 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-tls editorial An issue that does not affect the design of the protocol; does not require consensus.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TLS-31: Usage of HKDF is vague
4 participants