Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The PQXDH Key Agreement Protocol
This pull request implements the new post-quantum safe PQXDH Key Agreement Protocol.
The PQXDH Key Agreement Protocol is a hybrid protocol building on top of the the classical X3DH Key Agreement protocol. In addition to the three to four Diffie-Hellman steps in X3DH it includes a shared secret calculated using a post-quantum key encapsulation mechanism that has IND-CCA post-quantum security.
The pull request has picked Kyber as the key encapsulation mechanism, the exact Kyber implementation can be found here.
Missing pieces
Warning: This PR is in a early draft stage, while PQXDH is implemented and a higher level
Session
initialized using the PQXDH Key Agreement Protocol can be established, this PR does not use an AEAD to encrypt messages itself.The use of an AEAD is required in the PQXDH specification.
Furthermore, encoding the new message types into and from a byte-stream is missing. Generating a Kyber fallback key is not supported as of now. Finally, pickling compatibility with libolm is currently broken.
Tasks