← engineering notebook

Post-quantum in the Cube: what it means, and what it costs

18 November 2026 · updated 4 December 2026 · 9 min read · cryptography · firmware · security · quantum
The Cube, royal blue with black edges and two round eyes, looks at an atom; to its right, a shield with a padlock.

A large enough quantum computer could recover the keys that almost all connected devices exchange, and forge their signatures. “Post-quantum” algorithms are designed to resist it. This article explains what they protect, what they cost a small radio box, what the assessment published by a group of cryptographers on 30 November 2026 says about them, and where the Cube stands.

The general explanation is on Trust-Buster: Quantum computers: what they really threaten in your equipment. This is the technical version. The Cube talks to a phone over Bluetooth and to our server over 4G, through its Walter board (an ESP32-S3 microcontroller and a modem).

Why a device installed today is already affected

Nobody knows when such a computer will exist, but two reasons force us to act now. The first is harvesting: an attacker can record a device’s radio traffic today and decrypt it on the day they have the machine. The second is service life: equipment installed in 2026 will still be in service after 2030. Yet NIST (National Institute of Standards and Technology, the US standards body), in its report IR 8547, deprecates RSA and elliptic curves, which almost every connected device uses today, after 2030, and disallows them after 2035.

todayrecordingarchivewaitingtomorrowdecrypting202620302035RSA and elliptic curves deprecateddisallowedservice life of equipment installed todaydeadlines: NIST IR 8547 (RSA, ECDSA, EdDSA)
Harvest now, decrypt later: the equipment outlives the deadlines.

Key exchange therefore comes first: it is what gets recorded today to be broken tomorrow. A signature that has already been verified cannot be forged after the fact. The only signatures that must change early are those that will still have to prove something years from now, such as those on a retained log or on an update.

What a quantum computer breaks, and what it leaves standing

Public-key algorithms are used to agree on a secret key over a channel that others can listen to, and to sign. Symmetric algorithms encrypt with the agreed key or compute hashes.

In 1994, Peter Shor showed that a large enough quantum computer would efficiently recover the private key from the public key, for RSA and elliptic curves alike: key exchange and signatures both fall. Against symmetric cryptography, Grover’s algorithm only halves the security of a key measured in bits. A 256-bit key keeps 128, which is out of reach, and the usual hash functions hold. “Post-quantum” therefore means replacing key exchange and signatures, not re-encrypting everything. The replacements run on today’s processors: only the mathematical problem on which their security rests changes.

ML-KEM and ML-DSA: problems on lattices

NIST standardised the replacements in August 2024, in two US federal standards (FIPS, Federal Information Processing Standards): ML-KEM (Module-Lattice Key Encapsulation Mechanism, FIPS 203) for key exchange, and ML-DSA (Module-Lattice Digital Signature Algorithm, FIPS 204) for signatures. In an encapsulation mechanism, one party draws a secret and encrypts it to the other’s public key (it “encapsulates” it). Only the holder of the private key can “decapsulate” this “ciphertext”, and both parties then hold the same secret.

Both rest on lattices: regular grids of points in hundreds of dimensions, on which certain problems are believed to be hard even for a quantum computer. The main one, LWE (Learning With Errors), is to recover a secret from linear equations perturbed by small, deliberate errors. ML-KEM and ML-DSA use a structured, “module” version of it, in which the numbers become polynomials with 256 coefficients (degree n = 256). The keys are more compact, but this algebraic structure may offer avenues for attack; unstructured lattices, which are less efficient, may offer fewer. The security level is set by the number of polynomials, the rank k, at fixed degree.

The price is in bytes: a post-quantum public key or ciphertext weighs more than a kilobyte, a signature two to four, against a few dozen bytes with elliptic curves. Working memory, for its part, stays modest.

Two locks: hybrid key exchange

ML-KEM is young, and a weakness in its design or in a library remains possible. Hence hybrid key exchange: we run two exchanges, one classical and one post-quantum, and derive the session key from both secrets. Recovering it means breaking both. Without a quantum computer, the classical exchange protects even if the post-quantum one gives way; with one, the post-quantum exchange protects. ANSSI, the French national cybersecurity agency, recommends this approach in its opinion on the post-quantum migration (in French).

What it protects in the Cube

The Cube uses this hybrid exchange wherever its data travels: the Bluetooth session with the phone, 4G messages in both directions, and update images. The post-quantum algorithms come from the PQ Code Package libraries, in portable C; the Cube’s open-source building blocks are listed on the open-source credits page.

The real cost: bytes

A post-quantum key exceeds what a single Bluetooth Low Energy write can carry, and a 4G message with a post-quantum signature weighs several kilobytes: messages have to be split, reassembled and sent in batches. On a radio device, this is where post-quantum costs, far more than in computation.

Signing post-quantum: the authority, not yet the Cube

What our server orders the Cube to do carries two signatures, one classical and one post-quantum, over Bluetooth and over 4G alike. The signatures the Cube itself produces, and the update manifest’s, remain classical: a post-quantum signature weighs kilobytes, and the Cube signs a lot. The manifest will move first, because updates are how we will change algorithms; the log kept as evidence will follow. See Four questions before installing an update.

What cannot change: the chip’s ROM

The Walter’s secure boot starts from the ESP32-S3’s ROM, memory fixed at manufacture, which verifies the bootloader with RSA, an algorithm fixed in silicon. On our test-bench board, the free key slots have also been revoked: it will never accept any key other than the original one. No update will make this first link in the chain post-quantum.

Hence our rule of cryptographic agility: everything that must be able to change algorithm is handled above the chip: changing algorithm takes an update, not new hardware. On longevity, see When the network or the service stops and Making a connected device last.

The CIRG report on lattices

On 16 November 2026, Anthropic, the company that develops the Claude AI models, shared mathematical results about lattice cryptography with several members of the Cryptography Incident Review Group (CIRG), a group of cryptographers. On 30 November, the CIRG published its initial assessment.

What Anthropic proved, and what it did not

The repository published by Anthropic holds four mathematics papers, whose results “were discovered by an internal research Claude model”. Their main theorems are proved in Lean 4, a proof assistant (software that mechanically checks every step of a proof), by a formalisation that was itself “written by AI models”. It assumes no conjecture: the cited results that the proofs use are formalised as well, with their proofs, from Lean’s three basic axioms. Algorithms are programs of a quantum word RAM, an abstract machine, and time is the number of its steps.

  • Proved, paper 1: for certain problems on structured lattices, including some versions of Ring-LWE and Module-LWE (the structured variants of LWE, those behind ML-KEM and ML-DSA), a quantum program solves almost all instances in quasi-polynomial time, for every fixed rank and all large enough degrees n. The paper’s title calls these algorithms “galactic”.
  • Proved, papers 2 to 4: reductions, that is, proofs that being able to solve one problem makes it possible to solve another. According to the CIRG, these other findings “strengthen the theoretical foundation for cryptography based on unstructured lattices”, and are evidence in support of their post-quantum security.
  • Neither proved nor claimed: a practical algorithm against ML-KEM or ML-DSA. The repository says so: “The results are asymptotic, and the algorithms are not practical for the parameter sets of ML-KEM and ML-DSA.”
  • What Lean does not guarantee: that the statements written in Lean say exactly what the papers say, which the repository leaves “for the reader to judge” (“AI readers have compared them with the text”, and the repository lists the differences); nor the cost at a given size, because the proved bound contains a constant whose value is not specified.

Three terms worth knowing:

  • Quasi-polynomial: a running time that grows faster than any polynomial (such as n³, considered efficient) but much more slowly than an exponential (such as 2n, out of reach). Here n is the degree of the polynomials, and the time is of the order of nc·log n for fixed rank, where the constant c is not specified: no cost for n = 256 can be derived from it.
  • Asymptotic: describes how the cost evolves as the size grows without limit, not what it is at a given size, such as n = 256.
  • Galactic: said of an algorithm that beats the others only at sizes so large that it will never be run. According to the CIRG, which used AI models to help estimate the cost, “even (say) 21000 quantum operations would be far below its cost for the smallest parameter sets (ML-KEM-512 and ML-DSA-44), even under assumptions favorable to the attacker” (that number has 302 digits). For comparison, ML-KEM-512 must be at least as hard to break as a 128-bit AES (Advanced Encryption Standard) key, that is, of the order of 2128 attempts (NIST category 1, FIPS 203).

What the CIRG says

Applied to ML-KEM and ML-DSA, the attack “requires vastly more computation than the best previously known attacks”, which are themselves “already far beyond practical reach”. And this quantum computation is “far more costly to carry out than classical computation of comparable scale”. Its asymptotic speedup comes from the algebraic structure of these standards and applies as the degree n grows: “if these standards were scaled up in a certain way, their quantum security would increase much more slowly than previously believed”. But ML-KEM and ML-DSA reach higher security levels by increasing the rank k, keeping n = 256 fixed. The group expects the attack to be improved in the near future; “a key question is whether such improvements will actually reduce the cost of breaking the NIST standards”. Anthropic, for its part, said it found no improvement in classical (non-quantum) attacks on either flavour of lattice, or in quantum attacks on the unstructured ones.

The CIRG’s recommendations: continue the transition, because RSA and elliptic curves can be broken with far fewer quantum resources than this new attack requires; choose “the highest security level each application can support”; combine “schemes based on different mathematical foundations”; be able to replace a scheme quickly. It also recommends that NIST and other bodies standardise “additional public-key cryptosystems based on diverse designs, even at some cost in efficiency”.

Lattices: two flavoursstructured latticesML-KEM · ML-DSAunstructured latticesless efficientQuantum attacknew, quasi-polynomialon the standards, costlierthan the known attacks,already out of reachno improvement foundtheoretical foundationstrengthenedClassical attacksno improvement in this work, on either flavour
Lattices under test: a new attack that, at present, falls far short of threatening the standards.

What this changes for the Cube

  • Nothing for now: at present, the attack “falls far short of compromising the current NIST standards”. But the assessment is only an initial one, and improvements are expected.
  • Our second lock is classical. The classical and post-quantum exchanges do rest on different mathematical foundations, but the classical one does not resist a quantum computer: against one, everything rests on structured lattices. Adding a second post-quantum family has not been studied.
  • We can change algorithm through an update, above the chip.

Where we stand

Use in the CubePost-quantum?
Bluetooth session with the phoneyes, hybrid
4G messages, both directionsyes, hybrid
Update imagesyes
Our authority’s ordersyes, dual signature
The Cube’s signatures (identity, log)no, to do
Update manifestno, next
Secure boot (chip ROM)no, frozen
Symmetric encryption and hashesnot needed: holds

Still to do: measure the time and memory cost on the board, and start post-quantum signing of the manifest and of archived logs. A version on STM32 is in preparation, with an EAL5+ secure element that will keep the identity key without ever releasing it; post-quantum key exchange will remain in software there.

Milestones

  • 18 November 2026. First hybrid Bluetooth session on the test-bench board. First version of this article.
  • 20 November. 4G link in service.
  • 22 November. Dual signature by our authority.
  • 28 November. Messages and update images protected with hybrid exchange in both directions over 4G.
  • 1 December. Note on the CIRG assessment, published on 30 November.
  • 2 December. Article reorganised, CIRG report detailed.
  • 4 December. Implementation details removed from the article.

Sources

A question, an objection? contact@ops-devices.eu, or on Bluesky.