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

stray 0x21 in HKDF-Expand info construction #665

Closed
tatsuhiro-t opened this issue Jun 26, 2017 · 2 comments
Closed

stray 0x21 in HKDF-Expand info construction #665

tatsuhiro-t opened this issue Jun 26, 2017 · 2 comments
Labels
-tls editorial An issue that does not affect the design of the protocol; does not require consensus.

Comments

@tatsuhiro-t
Copy link
Contributor

https://quicwg.github.io/base-drafts/draft-ietf-quic-tls.html#rfc.section.5.2.2 describes info parameter for HKDF-Expand. The struct HKDFLabel does not contain 0x21 ("!"), but its example contains it:

 info = (HashLen / 256) || (HashLen % 256) || 0x21 ||
          "tls13 QUIC client 1-RTT secret" || 0x00

I couldn't find it in TLSv1.3 draft or RFC 5869.
Is it a practice to insert 0x21 after Length, or just a remnant of earlier draft?

@martinthomson
Copy link
Member

This value is incorrect, but it's necessary. The value changed in a recent PR and I missed the update. It should be 0x1f - the length of the label string.

@martinthomson martinthomson added -tls editorial An issue that does not affect the design of the protocol; does not require consensus. labels Jun 26, 2017
@tatsuhiro-t
Copy link
Contributor Author

tatsuhiro-t commented Jun 26, 2017

Thank you. That makes sense.

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

No branches or pull requests

2 participants