Skip to content

tls: wolfssl: fixes for PQC key shares#22030

Closed
Frauschi wants to merge 1 commit into
curl:masterfrom
Frauschi:wolfssl_pqc_fixes
Closed

tls: wolfssl: fixes for PQC key shares#22030
Frauschi wants to merge 1 commit into
curl:masterfrom
Frauschi:wolfssl_pqc_fixes

Conversation

@Frauschi

Copy link
Copy Markdown
Contributor

This PR makes the wolfssl TLS backend work properly for PQC key exchanges. The following issues are fixed:

  • WOLFSSL_HAVE_KYBER is not present anymore in upstream wolfssl (for a long time actually), so it has no use and the ML-KEM functionality was never turned on properly.
  • Key share group selection (via --curves) is now handled via the generic wolfSSL_CTX_set1_groups_list() method instead of the prior wolfSSL_CTX_set1_curves_list() + additional PQC handling. This removes a lot of PQC-related special handling and the behavior now matches the OpenSSL backend.
  • The default QUIC group setting has been removed. For QUIC, the key share as well as the list in the supported_groups extension is now handled all within wolfssl. This also supports --curves properly now.

This fixes wolfssl issue #10670.

This PR makes the wolfssl TLS backend work properly for PQC key
exchanges. The following issues are fixed:
* WOLFSSL_HAVE_KYBER is not present anymore in upstream wolfssl (for a
  long time actually), so it has no use and the ML-KEM functionality was
  never turned on properly.
* Key share group selection (via --curves) is now handled via the
  generic wolfSSL_CTX_set1_groups_list() method instead of the prior
  wolfSSL_CTX_set1_curves_list() and the additonal PQC handling. This
  removes a lot of PQC related special handling and the behavior now
  matches the OpenSSL backend.
* The default QUIC group setting has been removed. For QUIC, the key
  share as well as the list in the supported_groups extension is now
  handled all within wolfssl. This also supports --curves properly now.
@bagder

bagder commented Jun 15, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

curl-wolfssl quic-X25519MLKEM768 connection fails to nginx-aws-lc X25519MLKEM768:x25519-only server

3 participants