Skip to content

crypto/tls: earlyTrafficSecret should use ClientHelloInner if ECH enabled #76283

@rbqvq

Description

@rbqvq

Go version

go1.25

Output of go env in your module/workspace:

N/A

What did you do?

I create a crypto/tls fork.
During resolving my fork earlyData issue.

I found a bug in crypto/tls.

What did you see happen?

I found earlyTrafficSecret use ClientHelloOuter instead of ClientHelloInner.

https://github.com/golang/go/blob/master/src/crypto/tls/handshake_client.go#L317-L325

What did you expect to see?

If ECH is enabled, it should use ClientHelloInner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions