This project contains part of the experimental implementation used for A Post-Quantum End-to-End Secure Protocol for Instant Messaging Applications, published in Cryptography in 2026, which I co-authored.
From cryptographic components to an exchange#
The prototypes connect client and server processes to explore key establishment, signatures and message transmission. Historical versions use Kyber and Dilithium, alongside symmetric encryption. Their code exposes the exchange sequence and where verification occurs.
The Python implementation organizes communication through sockets and threads. The C version also uses sockets, thread synchronization, reference primitive implementations and OpenSSL functions. They provide two ways to inspect the experiment, with different implementation and execution costs.
What is measured#
The programs vary message size and verification policy: no signature checking, checking at one endpoint or checking at both. They record timing and CPU and memory information for later analysis.
The purpose is to observe the cost of operations and authentication choices. Comparisons depend on hardware, libraries, parameters and measurement procedures; results cannot be separated from that context.
Connection to the scientific paper#
The paper presents an end-to-end messaging protocol under an untrusted-relay server model. Its construction uses ML-KEM and ML-DSA, explicit context binding and a Double-KEM pattern. It also includes symbolic verification with ProVerif and experimental evaluation.
The project retains the name Post-Quantum TLS, but these programs are research prototypes. The scientific paper is the reference for the final construction, threat model and analyzed guarantees. This page connects experimental code to that collective work without presenting the repository as a production implementation of the complete protocol.