tlswg / tls13-spec

TLS 1.3 Specification
565 stars 157 forks source link

Say even more clearly that you can't trust the client to send their most preferred shares #1330

Closed ekr closed 6 months ago

ekr commented 10 months ago

This vector MAY be empty if the client is requesting a HelloRetryRequest. Each KeyShareEntry value MUST correspond to a group offered in the "supported_groups" extension and MUST appear in the same order. However, the values MAY be a non-contiguous subset of the "supported_groups" extension and MAY omit the most preferred groups. Such a situation could arise if the most preferred groups are new and unlikely to be supported in enough places to make pregenerating key shares for them efficient.

But see: https://datatracker.ietf.org/doc/draft-davidben-tls-key-share-prediction/

ekr commented 6 months ago

Fixed by #1331.