summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mlkem/mlkem_internal.c
diff options
context:
space:
mode:
authorjsing <>2025-10-16 14:42:21 +0000
committerjsing <>2025-10-16 14:42:21 +0000
commit07ac085cccf13625ee0512126e736b8da8ed0dad (patch)
tree8cd9f82e2b82fe6cd09d3184bc6a6b3931c35c1d /src/lib/libcrypto/mlkem/mlkem_internal.c
parentf690640165ccfa300db43b4a8e0d48a2ac660993 (diff)
downloadopenbsd-master.tar.gz
openbsd-master.tar.bz2
openbsd-master.zip
Ensure that we specify the correct group when creating a HelloRetryRequest.HEADmaster
When processing the client supported groups and key shares extensions, the group selection is currently based on client preference. However, when building a HRR the preferred group is identified by calling tls1_get_supported_group(). If SSL_OP_CIPHER_SERVER_PREFERENCE is enabled, group selection will be based on server instead of client preference. This in turn can result in the server sending a HRR for a group that the client has already provided a key share for, violating the RFC. Avoid this issue by storing the client preferred group when processing the key share extension, then using this group when creating the HRR. Thanks to dzwdz for identifying and reporting the issue. ok beck@ tb@
Diffstat (limited to 'src/lib/libcrypto/mlkem/mlkem_internal.c')
0 files changed, 0 insertions, 0 deletions