Open
Description
Our interop testing with mvfst started failing once check of order of the received key shares in regards to the received supported groups from the client was added.
Citing RFC 8446
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.
Clients can offer as many KeyShareEntry values as the number of
supported groups it is offering, each representing a single set of
key exchange parameters. For instance, a client might offer shares
for several elliptic curves or multiple FFDHE groups. The
key_exchange values for each KeyShareEntry MUST be generated
independently. Clients MUST NOT offer multiple KeyShareEntry values
for the same group. Clients MUST NOT offer any KeyShareEntry values
for groups not listed in the client's "supported_groups" extension.
Servers MAY check for violations of these rules and abort the
handshake with an "illegal_parameter" alert if one is violated.
See also: openssl/project#1106
Metadata
Assignees
Labels
No labels
Activity