PQ Python

Twisted

Terminates TLS through pyOpenSSL on the cryptography wheel’s OpenSSL 4.1.1, so it negotiated X25519MLKEM768 even on an OpenSSL 3.0 interpreter.

PyPI
twisted
Version cited
26.10.0
Downloads
n/a

Key exchange and encryption

PQ by default

PQ via cryptography wheel (tested)

Signatures and identity

Unknown

Not reported

What to do

Keep cryptography on official wheels (48 or later) so Twisted inherits a PQ-capable OpenSSL; there is no group API, so require the hybrid at a proxy if needed.

Since 1 Dec 2026 Nothing found as of 3 Dec 2026.

Details

Twisted 26.10.0 uses pyOpenSSL, not stdlib ssl (twisted _sslverify.py).

  • even on OpenSSL 3.0 Tested on a Python 3.10.16 / OpenSSL 3.0.16 interpreter with pyOpenSSL 26.5.1 and cryptography 51.0.0 (OpenSSL 4.1.1): negotiated X25519MLKEM768 Claude.
  • Neither Twisted nor pyOpenSSL exposes set_groups() (AGY report). pyOpenSSL exposes Connection.get_group_name() for observation, and its set_tmp_ecdh sets a single curve, which would remove the hybrid.
  • Whether OPENSSL_CONF affects the OpenSSL statically linked in the cryptography wheel was not determined (open questions).

daphne runs on the same stack.

Sources cited on this page 1
  1. twisted _sslverify.py github.com

All sources across the guide