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.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions