Skip to content

feat: Post-Quantum Cryptography support (ML-KEM + ML-DSA) - #1994

Closed
boxdot wants to merge 21 commits into
openmls:mainfrom
boxdot:dima/post-quantum-support
Closed

boxdot wants to merge 21 commits into
openmls:mainfrom
boxdot:dima/post-quantum-support

Conversation

@boxdot

@boxdot boxdot commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Co-authored-by: Konrad Kohbrok [email protected]

boxdot added 2 commits April 13, 2026 15:16
Added two new ciphersuites:

- `MLS_192_MLKEM1024_AES256GCM_SHA384_P384`: ML-KEM1024 + AES-256-GCM +
  SHA-384 + ECDSA P-384
- `MLS_256_MLKEM1024_AES256GCM_SHA512_MLDSA87`: ML-KEM1024 + AES-256-GCM
  + SHA-512 + ML-DSA87
Also don't copy keys and signatures to byte arrays, instead use
references to encoded types.
@boxdot

boxdot commented Apr 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Waiting for celabshq/hpke-rs#150 before ready for review.

@p-barabas

Copy link
Copy Markdown

Hi,

is there any progress with PQC support? Is there any deadline for it?

Thanks in advance.

@kkohbrok

Copy link
Copy Markdown
Member

@p-barabas OpenMLS generally already supports the experimental XWING-based ciphersuite MLS_256_XWING_CHACHA20POLY1305_SHA256_Ed25519, for example, via the libcrux crypto provider. This PR is about adding support for the pure PQ ciphersuites. All of this support is somewhat experimental, however, as we're waiting for the PQ ciphersuites draft to be finalized in the MLS WG. I believe that draft is again waiting for the draft introducing the necessary HPKE ciphersuites.

But all of this is somewhat off-topic for this issue. Please file a new issue, or join our Zulip instance if you have more questions.

@boxdot
boxdot marked this pull request as ready for review May 22, 2026 08:58
@boxdot
boxdot requested a review from a team as a code owner May 22, 2026 08:58
@boxdot

boxdot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

I will split this PR in 4 parts:

  • P384, ML-DSA and general PQ ciphersuite support for RustCrypto provider
  • missing processing functions for PublicGroup
  • unwrap-style functions for skipping validation
  • new PSK-type

The encoded signing key format has changed to a new format. It is the
seed of the signing key which is always 32 bytes long. The actual
signing key is derived from the seed. The change is *not* backwards
inside of this branch.
@boxdot

boxdot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

@boxdot boxdot closed this Jun 2, 2026
AlchemiistCreative pushed a commit to AlchemiistCreative/air that referenced this pull request Jun 24, 2026
…col (phnx-im#1195)

Add full-stack support for APQ groups -- paired traditional +
post-quantum MLS groups that provide post-quantum forward secrecy for
messaging.

* Proto: new `CreateApqGroup` and `ApqGroupOperation` RPCs on
  `DeliveryService`; `PublishApqKeyPackages` / `FetchApqKeyPackage` on
  `QueueService`; `ApqAssistedMlsMessage`, `GroupSessionData`,
  `ApqAddUsersInfo` message types; `RequestGroupId` extended to
  optionally return a paired PQ group ID
* Backend/Server: DS handlers for APQ group creation and group
  operations (commit fanout for both T and PQ groups); QS handlers for
  publishing and fetching APQ key packages; new apq migration adding
  `apq_key_packages` table
* Coreclient: `ApqGroup` wrapper type, APQ group persistence, key
  package generation and timed upload, APQ welcome bundle handling,
  add-users flow for APQ groups; new apq_group migration; pending chat
  operations extended to carry APQ state
* Common: new `ApqGroupConfig`, `ApqKeyPackage`, and associated message
  types in `client_ds`/`client_ds_out`

This PR is accompanied by:
* openmls/openmls#1994
* phnx-im/apqmls#12

---------

Co-authored-by: Gabriel Féron <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants