<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Parag Mali - tag: crypto-migration</title><description>Posts tagged crypto-migration.</description><link>https://paragmali.com/</link><language>en-US</language><lastBuildDate>Sat, 25 Jul 2026 08:57:59 GMT</lastBuildDate><atom:link href="https://paragmali.com/tags/crypto-migration/rss.xml" rel="self" type="application/rss+xml"/><item><title>You Cannot Rotate What You Cannot See: Crypto-Agility and the Cryptographic Bill of Materials</title><link>https://paragmali.com/blog/you-cannot-rotate-what-you-cannot-see-crypto-agility-and-the/</link><guid isPermaLink="true">https://paragmali.com/blog/you-cannot-rotate-what-you-cannot-see-crypto-agility-and-the/</guid><description>The hard part of post-quantum is not the new algorithms -- it is finding the old ones. A field guide to crypto-agility, discovery, and the CycloneDX CBOM.</description><pubDate>Tue, 14 Jul 2026 03:13:06 GMT</pubDate><content:encoded>
Post-quantum migration is two problems wearing one name: being able to ROTATE your cryptography, and being able to SEE where it all lives. The new algorithms are the easy part -- ML-KEM is a `pip install` away and already ships inside Windows. The hard part is finding the old RSA, ECDH, and ECDSA, which is &quot;typically buried deep within components.&quot; Crypto-agility (RFC 7696, 2015) is the design-time discipline for rotating. The Cryptography Bill of Materials (CBOM), upstreamed into CycloneDX v1.6 in April 2024, is the machine-readable substrate for seeing: it models cryptography as a first-class asset with `implements` and `uses` dependencies you can prioritize as a graph. Executive Order 14412 makes the stack binding -- key establishment by 2030, signatures by 2031 -- and directs CISA to define CBOM&apos;s minimum elements. But both halves have a provable ceiling: complete automated discovery is undecidable, and long-lived signatures, trust anchors, and firmware cannot be rotated after the fact. This is the field guide to both verbs, and to why you cannot rotate what you cannot see.
&lt;h2&gt;1. You Cannot Rotate What You Cannot See&lt;/h2&gt;
&lt;p&gt;In November 2022, the White House told every federal civilian agency to do something that sounds almost trivial: make a list. OMB Memorandum M-23-02 directed each agency to produce a &lt;em&gt;prioritized inventory&lt;/em&gt; of the cryptographic systems most vulnerable to a future quantum computer, to submit the first version by May 4, 2023, and to keep it current every year through 2035 [@omb-m2302]. Not to migrate anything yet. Just to write down where the vulnerable cryptography was, and to name a migration lead within thirty days to own the effort [@omb-m2302].&lt;/p&gt;
&lt;p&gt;Agencies discovered they could not do it. They could not reliably answer the question &quot;where does our RSA-2048 actually live?&quot; -- because, as IBM&apos;s own documentation for the Cryptography Bill of Materials puts it, cryptography &quot;is typically buried deep within components that are used to compose and build systems and applications&quot; [@ibm-cbom]. The mandate assumed a list any competent organization could produce. The list turned out to be the hard part.&lt;/p&gt;
&lt;p&gt;Now the deadlines are real. Executive Order 14412, signed June 22, 2026, orders agencies to move their high-value and high-impact systems to post-quantum key establishment by December 31, 2030 and to post-quantum digital signatures by December 31, 2031 [@eo14412]. And here is the asymmetry that reframes the entire migration: &lt;strong&gt;the new algorithm is the easy part.&lt;/strong&gt; NIST finalized the replacements in FIPS 203, 204, and 205 on August 13, 2024 [@fips203].&lt;/p&gt;
&lt;p&gt;ML-KEM, the standardized replacement for the key exchange that Shor&apos;s algorithm dooms, is a &lt;code&gt;pip install&lt;/code&gt; away in Python and already ships inside Windows&apos; SChannel and SymCrypt [@pyca-changelog] [@ms-pqc-windows], as the sibling posts in this series show.The two &quot;migrate to what&quot; endpoints are covered in companion posts: ML-KEM arriving in the default &lt;code&gt;pyca/cryptography&lt;/code&gt; wheels, and ML-KEM plus ML-DSA landing in Windows SChannel and SymCrypt. This article is deliberately the other half -- finding the old cryptography, not adopting the new.&lt;/p&gt;
&lt;p&gt;You can adopt the replacement this afternoon. What you cannot do this afternoon -- or this quarter, or perhaps by the deadline -- is enumerate every place your organization still relies on the cryptography it replaces.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; FIPS 203, 204, and 205 were finalized in August 2024 [@fips203], and quantum-safe primitives now ship in mainstream libraries and operating systems [@pyca-changelog] [@ms-pqc-windows]. Yet the 2030 and 2031 deadlines are hard [@eo14412]. The binding constraint is not availability. It is visibility -- knowing where the quantum-vulnerable cryptography is.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Post-quantum migration is really two problems wearing one name. One is being &lt;em&gt;able to change&lt;/em&gt; your cryptography -- the discipline of &lt;strong&gt;crypto-agility&lt;/strong&gt;, which the field has refined since the 1990s and formalized in 2015. The other is &lt;em&gt;knowing where your cryptography is&lt;/em&gt; -- the inventory problem, which almost nobody was forced to take seriously until a mandate arrived with a deadline attached.&lt;/p&gt;
&lt;p&gt;The two-verb diagnostic runs through everything that follows. &lt;strong&gt;ROTATE:&lt;/strong&gt; can a system change its algorithms at all, without being re-architected? &lt;strong&gt;SEE:&lt;/strong&gt; does the organization actually know where its RSA, ECDH, and ECDSA are deployed? The thesis of this field guide is one line: &lt;em&gt;you cannot rotate what you cannot see.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Why does the split matter so precisely, and why do the two deadlines differ by a year? Because the threat driving the confidentiality deadline is not a quantum computer that exists today. It is an adversary recording your encrypted traffic today to decrypt it later, once a capable quantum machine is built.&lt;/p&gt;

The threat model in which an adversary records encrypted data today and stores it, intending to decrypt it once a sufficiently capable quantum computer exists. Because captured ciphertext can be broken retroactively, HNDL makes confidentiality and key establishment urgent *now* -- even before any quantum computer is built. It does not threaten digital signatures, which cannot be forged retroactively, which is why Executive Order 14412 dates key establishment (2030) ahead of signatures (2031) [@eo14412].

A quantum computer large and reliable enough to run Shor&apos;s algorithm against deployed RSA and elliptic-curve key sizes. No CRQC is known to exist yet; its uncertain future arrival date is the quantity a migration plan races against, and the term that anchors the prioritization math introduced later in this guide.
&lt;p&gt;The ability to swap an algorithm is the half the field spent thirty years perfecting. Knowing where every algorithm lives is the half it avoided until a deadline made avoidance impossible. To see how the discipline got so lopsided, start where the pain began: with cryptography that could not be changed at all.&lt;/p&gt;
&lt;h2&gt;2. Algorithm Rigidity as Original Sin&lt;/h2&gt;
&lt;p&gt;Long before anyone worried about quantum computers, migrating a single cryptographic algorithm was already agony -- and the reason was structural, not mathematical. The 2030 deadline is a decade-long emergency, not a weekend of &lt;code&gt;pip install&lt;/code&gt; commands, because changing one algorithm has always been so hard that it takes decades.&lt;/p&gt;
&lt;p&gt;Start with why a migration is coming at all. In 1994, Peter Shor showed that a quantum computer could factor large integers and compute discrete logarithms in polynomial time [@shor1994]. That single result put RSA, Diffie-Hellman, elliptic-curve Diffie-Hellman, and ECDSA on notice: the mathematical problems they rely on become tractable to a sufficiently large quantum machine.&lt;/p&gt;
&lt;p&gt;The internals of Shor&apos;s algorithm and the lattice math that replaces these primitives belong to the companion posts in this series. For this guide, one fact is enough: the public-key cryptography holding up most of the internet has a known expiration condition, and the field has known it for three decades.&lt;/p&gt;
&lt;p&gt;Knowing an algorithm will eventually fall is not the same as being able to replace it. The deeper problem is that early protocols baked a single primitive directly into their design. There was no algorithm identifier on the wire, so a peer could not announce which cipher it intended to use, and there was no clean seam at which to substitute a different one.&lt;/p&gt;
&lt;p&gt;RFC 7696, the IETF&apos;s 2015 best-current-practice document on the subject, describes the consequence precisely: without an algorithm identifier, transitioning &quot;from one algorithm to another&quot; requires &quot;the protocol version number or some other major change&quot; [@rfc7696]. Swapping a cipher meant revising the protocol itself.&lt;/p&gt;

The design-time property that, in RFC 7696&apos;s words, &quot;Algorithm agility is achieved when a protocol can easily migrate from one algorithm suite to another more desirable one, over time&quot; [@rfc7696]. In plain terms: the ability to change cryptographic algorithms without re-architecting the systems that depend on them. It is a property you build in before you need it -- and it says nothing about discovering cryptography you have already deployed.
&lt;p&gt;The canonical worked example is slow, symmetric, and instructive. RFC 7696 notes that &quot;the transition from DES to Triple-DES to AES took place over decades, causing a shift in symmetric block cipher strength from 56 bits to 112 bits to 128 bits&quot; [@rfc7696].That 56-to-112-to-128-bit progression over roughly a quarter century is the template the public-key world is now rerunning against RSA and elliptic curves, except compressed into a single mandated decade. The symmetric transition had no hard federal deadline; this one does. Decades, for a change every cryptographer agreed was necessary. And the reason was not that AES was hard to implement. It was that thousands of systems had hardcoded the old cipher with no seam at which to change it.&lt;/p&gt;
&lt;p&gt;This is the original sin, and it compounds. RFC 7696 opens with the blunt observation that &quot;cryptographic algorithms age; they become weaker with time,&quot; so protocol designers &quot;need to assume that advances in computing power or advances in cryptoanalytic techniques will eventually make any algorithm obsolete&quot; [@rfc7696]. If aging is certain and the algorithm is welded in place, then every cryptographic break becomes an estate-wide re-architecture. The field lived this repeatedly: DES and Triple-DES, MD5, RC4, and SHA-1 each had to be ripped out of deployed systems at enormous cost.&lt;/p&gt;
&lt;p&gt;RC4 was so entrenched that removing it required the IETF to publish an entire standard, RFC 7465, whose sole job was to command that &quot;TLS clients and servers never negotiate the use of RC4 cipher suites when they establish connections&quot; [@rfc7465].Adding an algorithm is easy; removing one is so hard that it can take a dedicated standards-body prohibition. RFC 7465 exists only to say &quot;stop using RC4&quot; -- a one-line policy that needed the weight of a published RFC because the cipher was wired into too many implementations to retire quietly [@rfc7465].&lt;/p&gt;

timeline
    title From Shor to a federal deadline
    1994 : Shor&apos;s algorithm dooms RSA, DH, and ECC in theory
    1990s-2001 : DES to Triple-DES to AES over decades
    2015 : RFC 7696 turns agility into a discipline
    2022 : NSM-10 and OMB M-23-02 mandate a prioritized inventory
    2023 : NIST NCCoE SP 1800-38 preliminary draft on discovery
    2024 : CBOM upstreamed into CycloneDX v1.6
    2025 : NIST CSWP 39 restates agility as risk management
    2026 : Executive Order 14412 sets the 2030 and 2031 deadlines
&lt;p&gt;Notice the character of this failure. It is not that the cryptography computed the wrong answer. DES still encrypts; MD5 still hashes. The failure is one of operability: the algorithm runs fine, but the system cannot move off it. That distinction matters, because it means the fix is not a better algorithm. The fix is a better &lt;em&gt;design&lt;/em&gt; -- one that stops welding the primitive in place.&lt;/p&gt;
&lt;p&gt;The obvious such fix is to put a name on the wire and let the peers choose. That fix has a name of its own, cipher-suite negotiation, and for a while it looked like the whole answer. It was not.&lt;/p&gt;
&lt;h2&gt;3. Negotiation and the Spreadsheet&lt;/h2&gt;
&lt;p&gt;Each half of the problem got a first-generation answer. Both were reasonable. Both under-delivered, and in almost the same instructive way. If you can negotiate algorithms at connection time and audit the results into a spreadsheet, what could possibly be left to solve?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The rotate half&apos;s first answer was negotiation.&lt;/strong&gt; Instead of welding one cipher into the protocol, carry an identifier for the algorithm -- or for a whole suite of them -- on the wire, back it with an IANA registry of code points, and let the two endpoints agree on the best option they both support. TLS cipher suites, IKE and IPsec transforms, the &lt;a href=&quot;https://paragmali.com/blog/a-perfect-signature-for-a-certificate-that-should-never-have/&quot; rel=&quot;noopener&quot;&gt;X.509&lt;/a&gt; &lt;code&gt;AlgorithmIdentifier&lt;/code&gt;, and the JOSE and COSE object formats all work this way.&lt;/p&gt;
&lt;p&gt;RFC 7696 blesses the approach while carefully bounding its importance: &quot;The inclusion of an algorithm identifier is a minimal step toward cryptographic algorithm agility&quot; [@rfc7696]. Minimal is the operative word.&lt;/p&gt;
&lt;p&gt;Negotiation is necessary, and it is nowhere near sufficient, for three documented reasons. First, negotiation you do not integrity-protect can be turned against you. RFC 7696 warns that an unprotected negotiation &quot;will be subject to a downgrade attack&quot; [@rfc7696], and the field has the scars to prove it. The 2015 Logjam attack &quot;allows a man-in-the-middle attacker to downgrade vulnerable TLS connections to 512-bit export-grade cryptography&quot; [@weakdh], steering two peers who both support strong &lt;a href=&quot;https://paragmali.com/blog/nobody-broke-the-discrete-log-a-field-guide-to-diffie-hellma/&quot; rel=&quot;noopener&quot;&gt;Diffie-Hellman&lt;/a&gt; down to a key size a well-resourced attacker can break [@weakdh-pdf]. FREAK and POODLE are cousins in the same family [@freak] [@poodle].&lt;/p&gt;
&lt;p&gt;Second, negotiation encourages &lt;em&gt;ossification&lt;/em&gt;: because dropping an option can break some peer somewhere, &quot;flawed algorithms are supported for far too long&quot; [@rfc7696] -- which is exactly why retiring RC4 needed its own prohibiting standard [@rfc7465].&lt;/p&gt;
&lt;p&gt;Third, every additional negotiable option is additional attack surface and additional code to get right [@rfc7696].&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Being able to negotiate a strong cipher does two things it is easy to conflate with a solved migration, and neither is one. Unprotected negotiation invites downgrade attacks -- Logjam, FREAK, and POODLE all forced peers onto weak-but-supported options [@weakdh] [@freak] [@poodle]. And selecting AES at connection time tells you nothing about &lt;em&gt;where&lt;/em&gt; the weak algorithm still lives. Negotiating AES on one server says nothing about which of your ten thousand other servers still negotiate RC4.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That last point is the decisive one for this guide. Negotiation lets a system &lt;em&gt;select&lt;/em&gt; among options both peers pre-agreed to support. It gives you no ability to &lt;em&gt;remove&lt;/em&gt; an algorithm across your estate, and -- this is the part everyone misses -- no ability to &lt;em&gt;know where a given algorithm is deployed in the first place&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;A protocol that can negotiate its way onto AES has told you nothing about the inventory of RC4, RSA-1024, or SHA-1 scattered across your servers, firmware, and stored certificates. Agility at the connection is not visibility across the estate.&lt;/p&gt;
&lt;p&gt;The two negotiation styles are both legitimate and opposite. IPsec and IKEv2 carry a separate identifier for each algorithm; TLS carries one identifier per whole suite. RFC 7696 explicitly blesses both -- &quot;some approaches carry one identifier for each algorithm ... other approaches carry one identifier for a full suite of algorithms&quot; [@rfc7696] -- trading a combinatorial explosion of options against coarser, less flexible suites. There is no single right answer, only a design choice.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The see half&apos;s first answer was the spreadsheet.&lt;/strong&gt; Manual audits, one-off certificate scans, a cryptography inventory maintained by hand. It is the natural first move, and it fails for reasons that have nothing to do with effort. A spreadsheet does not scale to an estate of thousands of applications and millions of certificates. It is stale the moment it is written, because code ships and certificates rotate daily.&lt;/p&gt;
&lt;p&gt;It is not machine-actionable: you cannot run a query against it, diff it against last quarter, or check it automatically against a 2030 deadline. And it cannot be propagated -- when a vendor updates a library, nothing in your spreadsheet knows. It is a document, not a queryable system.&lt;/p&gt;
&lt;p&gt;The one semi-automated technique in wide use, certificate discovery, is genuinely useful but sees only the public-key infrastructure surface: the certificates, not the code that calls them or the protocols that carry them.&lt;/p&gt;
&lt;p&gt;To name the shape of the answer that eventually arrives, borrow the idea the software supply chain had already converged on.&lt;/p&gt;

A machine-readable inventory of the components inside a piece of software and the dependencies among them, published in a standard format such as CycloneDX or SPDX so that tools -- not people -- can query, diff, and act on it [@owasp-cdx16]. An SBOM is to software components what a later chapter&apos;s Cryptography Bill of Materials is to cryptographic assets: the crypto version is a specialized extension of exactly this idea.
&lt;p&gt;Both first answers failed for the same underlying reason: they treated agility and inventory as afterthoughts to bolt on, rather than disciplines to design for. The difference in what happened next is the whole story of the next section. The rotate half got its discipline first, compressed into a single 2015 document that turned &quot;agility&quot; from a slogan into an engineering checklist. The see half got nothing comparable -- until someone with a deadline &lt;em&gt;made&lt;/em&gt; organizations solve it.&lt;/p&gt;
&lt;h2&gt;4. From Slogan to Discipline, and the Inventory Forced Into the Open&lt;/h2&gt;
&lt;p&gt;This is where the two lineages split, mature on separate tracks, and then -- years later -- get forced back together by a mandate. It also poses the sharpest question in the whole story: if algorithm agility became a real engineering discipline in 2015, why were federal agencies still helpless in front of a simple inventory in 2022?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The rotate half got its discipline in a single document.&lt;/strong&gt; In November 2015, Russ Housley published RFC 7696, &quot;Guidelines for Cryptographic Algorithm Agility and Selecting Mandatory-to-Implement Algorithms,&quot; as IETF Best Current Practice 201 [@rfc7696]. It turned a slogan into a checklist. Register your algorithm identifiers. Keep the set of algorithms every implementation must support small, and -- the load-bearing idea -- put that set in a &lt;em&gt;companion&lt;/em&gt; document so it can change &quot;without updating the base protocol specification&quot; [@rfc7696]. Integrity-protect your negotiation so it cannot be downgraded [@rfc7696].&lt;/p&gt;
&lt;p&gt;And heed two cautions that sound paradoxical until you have lived them: section 3.2 is titled &quot;Too Many Choices Can Be Harmful,&quot; and section 3.3 is titled &quot;Picking One True Cipher Suite Can Be Harmful&quot; [@rfc7696]. Too many negotiable options is attack surface; exactly one is a single point of failure with no in-band recovery. The discipline lives in the tension between them.&lt;/p&gt;

The small set of algorithms every conformant implementation of a protocol is required to support, so that any two implementations are guaranteed to share at least one. RFC 7696 recommends keeping the MTI set in a separate companion document precisely so the required algorithms can change &quot;without updating the base protocol specification&quot; when one weakens [@rfc7696] -- agility applied to the requirements themselves.
&lt;p&gt;Here is the limit that makes 2015 insufficient for 2022. RFC 7696 is &lt;em&gt;design-time and forward-looking&lt;/em&gt;. It helps every system you build &lt;em&gt;after&lt;/em&gt; you adopt it, and it says nothing about &lt;em&gt;discovering&lt;/em&gt; the cryptography you already deployed across a legacy estate. An organization can adopt RFC 7696 wholesale for all new development and still be completely unable to answer &quot;where does RSA-2048 live in what we already run?&quot; The discipline hardens the rotate half. It never touched the see half.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The see half was forced open by a mandate.&lt;/strong&gt; In May 2022, National Security Memorandum 10 set the strategy: inventory the government&apos;s quantum-vulnerable cryptography [@nsm10]. That November, OMB M-23-02 operationalized it, directing every agency to submit a &lt;em&gt;prioritized&lt;/em&gt; cryptographic inventory, to designate a cryptographic inventory and migration lead within thirty days, and to repeat the inventory annually [@omb-m2302]. The order was not &quot;migrate.&quot; It was merely &quot;tell us what you have, worst things first.&quot;&lt;/p&gt;
&lt;p&gt;And it exposed the binding constraint immediately: agencies could not enumerate their own quantum-vulnerable cryptography, because -- as IBM&apos;s CBOM documentation states -- it &quot;is typically buried deep within components that are used to compose and build systems and applications&quot; [@ibm-cbom]. The manual method the mandate inherited did not scale to the estate it was pointed at. This, not any algorithm milestone, is the real turning point of the field: thirty years of perfecting the rotate half had left the see half genuinely unsolved.&lt;/p&gt;

&quot;Cryptography is typically buried deep within components that are used to compose and build systems and applications.&quot; -- IBM CBOM documentation, on why an inventory is the hard part [@ibm-cbom]
&lt;p&gt;&lt;strong&gt;Automation answered the scale problem, and revealed a deeper one.&lt;/strong&gt; CISA responded with a strategy for Automated Cryptography Discovery and Inventory tools, describing their purpose as &quot;the use of ACDI tools to support a FCEB agency in its creation of an inventory of its information systems and assets that contain CRQC-vulnerable cryptography,&quot; where &quot;the inventory tools automate the collection of the cryptographic characteristics required for the inventory&quot; [@cisa-acdi]. NIST&apos;s National Cybersecurity Center of Excellence supplied a reference architecture in the SP 1800-38 practice guide, which remains a preliminary draft rather than a finalized standard [@sp1800-38-guide].&lt;/p&gt;
&lt;p&gt;Automation gave the see half the scale a spreadsheet never had. But it exposed a subtler gap: a scanner emits a &lt;em&gt;pile of tool-specific findings&lt;/em&gt;, not a queryable inventory. &quot;Component X contains AES&quot; carries no distinction between the algorithm family and the specific variant, and no dependency structure connecting the library that implements an algorithm to the application that uses it. Automation delivered scale without a data model.&lt;/p&gt;

CISA&apos;s term for tools that automatically enumerate an organization&apos;s cryptographically relevant, quantum-vulnerable assets across its systems, collecting &quot;the cryptographic characteristics required for the inventory&quot; rather than relying on manual audits [@cisa-acdi]. ACDI supplies the scale a manual inventory lacks -- but on its own it produces findings, not a structured, prioritizable model.
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key idea:&lt;/strong&gt; Post-quantum migration is two verbs, not one: ROTATE, the design-time discipline of being able to change your cryptography, and SEE, the run-time practice of knowing where it all lives. The field perfected the rotate half over thirty years -- rigidity to negotiation to RFC 7696 -- and only closed the see half under a federal deadline. You cannot rotate what you cannot see.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The two lineages, and their eventual meeting point, look like this when you draw them on one page.&lt;/p&gt;

flowchart TD
    subgraph ROT[&quot;ROTATE lane -- design-time agility&quot;]
      R1[Hardcoded rigidity] --&amp;gt; R2[Cipher-suite negotiation]
      R2 --&amp;gt; R3[RFC 7696 discipline]
      R3 --&amp;gt; R4[NIST CSWP 39 risk guidance]
    end
    subgraph SEE[&quot;SEE lane -- run-time inventory&quot;]
      G1[Manual spreadsheet] --&amp;gt; G2[Federal mandate NSM-10 and M-23-02]
      G2 --&amp;gt; G3[Automated discovery ACDI]
    end
    R4 --&amp;gt; CBOM[&quot;CycloneDX CBOM, crypto as a first-class asset&quot;]
    G3 --&amp;gt; CBOM
    CBOM --&amp;gt; EO[&quot;Executive Order 14412 makes the stack binding&quot;]
&lt;p&gt;The condensed history of both lanes fits in one table.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Generation&lt;/th&gt;
&lt;th&gt;Era&lt;/th&gt;
&lt;th&gt;Key idea&lt;/th&gt;
&lt;th&gt;Why it was superseded, or its limit&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;1. Hardcoded rigidity&lt;/td&gt;
&lt;td&gt;pre-2000s&lt;/td&gt;
&lt;td&gt;One primitive baked in, no wire identifier&lt;/td&gt;
&lt;td&gt;Every break forced an estate-wide re-architecture&lt;/td&gt;
&lt;td&gt;Obsolete&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Cipher-suite negotiation&lt;/td&gt;
&lt;td&gt;1990s-2010s&lt;/td&gt;
&lt;td&gt;Algorithm or suite identifiers, IANA registry, negotiate&lt;/td&gt;
&lt;td&gt;Downgrade attacks and ossification; selects but cannot see or remove&lt;/td&gt;
&lt;td&gt;Necessary, insufficient&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Agility as discipline (RFC 7696)&lt;/td&gt;
&lt;td&gt;2015&lt;/td&gt;
&lt;td&gt;Registered IDs, MTI in a companion doc, protected negotiation&lt;/td&gt;
&lt;td&gt;Design-time and forward-looking only; blind to deployed crypto&lt;/td&gt;
&lt;td&gt;Current (rotate half)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Manual inventory under mandate&lt;/td&gt;
&lt;td&gt;2022 (NSM-10 / M-23-02)&lt;/td&gt;
&lt;td&gt;Order a prioritized cryptographic inventory&lt;/td&gt;
&lt;td&gt;Spreadsheet does not scale, stale, not machine-actionable&lt;/td&gt;
&lt;td&gt;Superseded by automation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5. Automated discovery (ACDI)&lt;/td&gt;
&lt;td&gt;2022-2025&lt;/td&gt;
&lt;td&gt;Tools auto-collect cryptographic characteristics&lt;/td&gt;
&lt;td&gt;A pile of tool-specific findings, no shared data model&lt;/td&gt;
&lt;td&gt;Current (scale)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6. CBOM substrate&lt;/td&gt;
&lt;td&gt;2024 (CycloneDX 1.6)&lt;/td&gt;
&lt;td&gt;Model crypto as a first-class asset with dependencies&lt;/td&gt;
&lt;td&gt;Only as complete as the scanners that populate it&lt;/td&gt;
&lt;td&gt;Current (see half)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

The deadlines in this article are precise about scope, and it matters. Executive Order 14412 requires *federal agencies* to transition their high-value assets and high-impact systems -- explicitly excluding National Security Systems -- to post-quantum key establishment by December 31, 2030 and to post-quantum digital signatures by December 31, 2031 [@eo14412]. A companion Federal Acquisition Regulation rule pushes covered federal contractors toward compliance by December 31, 2030 [@eo14412]. Critical infrastructure operators are *encouraged*, not mandated. That National Security Systems exclusion is a hand-off, not a gap: NSA&apos;s Commercial National Security Algorithm Suite 2.0 (CNSA 2.0, September 2022) already owns that estate, mandating the same NIST winners -- ML-KEM and ML-DSA -- on its own use-case-staggered schedule, to be complete by 2035 in line with NSM-10, the memorandum that set the whole government-wide posture [@cnsa2] [@nsm10]. The civilian and national-security tracks are two branches of one 2022 origin. And one more distinction worth burning in: EO 14412 (&quot;Securing the Nation Against Advanced Cryptographic Attacks&quot;) is not EO 14413, a separate order about quantum innovation published in the same Federal Register issue [@eo14412]. Do not cite one for the other.
&lt;p&gt;Design-time agility was, by 2024, a solved discipline. Run-time inventory finally had scale, but no shape. The missing piece was never another scanner. It was a way to model cryptography &lt;em&gt;itself&lt;/em&gt; as an asset you could query, prioritize, and pass down a supply chain. That piece arrived on April 9, 2024.&lt;/p&gt;
&lt;h2&gt;5. The Breakthrough: Cryptography as a First-Class Asset&lt;/h2&gt;
&lt;p&gt;The breakthrough was not a better scanner. It was a decision to model cryptography the way the software supply chain already models its components -- as inventoried assets with dependencies you can query. To see why that is a genuine shift and not a rebranding, ask what a raw scan finding is missing. What does &quot;component X contains AES&quot; need to carry before it becomes something you can actually act on?&lt;/p&gt;
&lt;p&gt;On April 9, 2024, that question got an answer with a standard behind it. IBM Research&apos;s Cryptography Bill of Materials was upstreamed into OWASP CycloneDX v1.6 [@owasp-cdx16]. CBOM was carried into the current CycloneDX v1.7 (October 2025), published as the Ecma International standard ECMA-424, which extended the cryptography model further [@cdx-spec-17]. The design choice that matters most is the quietest one: a CBOM is an &lt;em&gt;extension of the same CycloneDX BOM document&lt;/em&gt;, not a separate schema [@ibm-cbom]. Your cryptographic inventory can live in the same file as your software inventory, produced by the same tools, consumed by the same pipelines. CBOM did not invent a parallel supply chain. It taught the existing one to describe cryptography.&lt;/p&gt;
&lt;p&gt;Its design answers four specific ways a raw finding falls short [@ibm-cbom]. First, it models the &lt;em&gt;asset types&lt;/em&gt; that matter -- algorithms, protocols, certificates, and &quot;related crypto material like keys, tokens, secrets or passwords.&quot; Second, it captures the property that makes a finding actionable: the difference between a family and a variant. As the CBOM documentation puts it, &quot;it makes a difference if one knows the algorithm family (e.g. AES) or the specific variant ... (e.g. AES-128-GCM) ... SHA1 vs. HMAC-SHA1 also makes a difference&quot; [@ibm-cbom]. A report of &quot;AES&quot; is not actionable. &quot;AES-128-GCM at file X, line 51&quot; is.&lt;/p&gt;

An extension of the CycloneDX BOM document that models an organization&apos;s cryptographic assets -- algorithms, protocols, certificates, and related key material -- together with their properties and the dependencies among them [@ibm-cbom]. At the field level, a crypto-asset is a component of type `cryptographic-asset` carrying `cryptoProperties` (whose `assetType` is one of algorithm, certificate, protocol, or related-crypto-material) and `evidence.occurrences` recording where it was found [@cdx-cbom-cap] [@cdx-cbom-guide]. It is the first open standard purpose-built to describe cryptography as an inventoried, dependency-aware asset.
&lt;p&gt;The third design goal is the one that turns a list into a graph. CBOM &quot;differentiates between &apos;implements&apos; and &apos;uses&apos; dependencies ... (e.g. TLS 1.3 uses ECDH/secp256r1)&quot; [@ibm-cbom]. A library &lt;em&gt;implements&lt;/em&gt; an algorithm; an application &lt;em&gt;uses&lt;/em&gt; it. That single distinction is the edge type that lets you answer the question the whole migration turns on: which applications transitively depend on a quantum-vulnerable primitive? Fourth and finally, the model applies uniformly across applications, libraries, firmware, and files, so the same representation describes source code, a shipped container, and an embedded device.&lt;/p&gt;

CBOM&apos;s two crypto-asset relationship types. A component *implements* a cryptographic asset when it provides the algorithm (a library implements ECDH/secp256r1); a component *uses* an asset when it consumes it (TLS 1.3 uses ECDH/secp256r1, and an application uses TLS 1.3) [@ibm-cbom]. Distinguishing the two turns a flat inventory into a directed graph -- and makes &quot;which applications are exposed to this weak primitive?&quot; a graph traversal rather than a guess.
&lt;p&gt;Model each crypto-asset with &lt;code&gt;cryptoProperties&lt;/code&gt; and connect them with &lt;code&gt;implements&lt;/code&gt; and &lt;code&gt;uses&lt;/code&gt; edges, and the inventory stops being a list and becomes a directed graph. The CycloneDX capability documentation describes exactly this: the format &quot;enables detailed representation of cryptographic assets within a system,&quot; including &quot;algorithms, keys, certificates, and their relationships to software components&quot; [@cdx-cbom-cap]. On a graph, prioritization is a traversal -- and a traversal over $V$ assets and $E$ dependencies costs $O(V + E)$, cheap enough to run over an entire estate.&lt;/p&gt;

flowchart TD
    APP[&quot;Application (payments-api)&quot;] --&amp;gt;|uses| TLS[&quot;TLS 1.3&quot;]
    TLS --&amp;gt;|uses| ECDH[&quot;ECDH secp256r1, quantum-vulnerable&quot;]
    LIB[&quot;Library (openssl)&quot;] --&amp;gt;|implements| ECDH
    LIB --&amp;gt;|implements| AES[&quot;AES-128-GCM&quot;]
&lt;p&gt;The graph reads directly. The application &lt;code&gt;payments-api&lt;/code&gt; uses TLS 1.3, which uses ECDH over secp256r1 -- a key-exchange primitive Shor&apos;s algorithm defeats. Follow the &lt;code&gt;uses&lt;/code&gt; edges and the exposure is explicit: this application is on the 2030 list. The &lt;code&gt;implements&lt;/code&gt; edges tell you where to fix it: &lt;code&gt;openssl&lt;/code&gt; provides that primitive, so the remediation targets that library. The same two edge types that describe the estate also route the work.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CBOM concept&lt;/th&gt;
&lt;th&gt;What it captures&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;&lt;code&gt;assetType: algorithm&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A cryptographic algorithm or primitive&lt;/td&gt;
&lt;td&gt;ML-KEM, RSA-2048, ECDH/secp256r1, AES-128-GCM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;assetType: certificate&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;An X.509 certificate as an inventoried asset&lt;/td&gt;
&lt;td&gt;A TLS server certificate expiring in 2029&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;assetType: protocol&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A protocol that consumes cryptography&lt;/td&gt;
&lt;td&gt;TLS 1.3, SSH, IKEv2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;assetType: related-crypto-material&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Keys, tokens, secrets, passwords&lt;/td&gt;
&lt;td&gt;A stored private key or API token&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Family vs variant&lt;/td&gt;
&lt;td&gt;The property that makes a finding actionable&lt;/td&gt;
&lt;td&gt;AES vs AES-128-GCM; SHA-1 vs HMAC-SHA1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;implements&lt;/code&gt; edge&lt;/td&gt;
&lt;td&gt;A library provides an algorithm&lt;/td&gt;
&lt;td&gt;&lt;code&gt;openssl&lt;/code&gt; implements ECDH/secp256r1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;uses&lt;/code&gt; edge&lt;/td&gt;
&lt;td&gt;An application or protocol consumes an algorithm&lt;/td&gt;
&lt;td&gt;TLS 1.3 uses ECDH/secp256r1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;evidence.occurrences&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Where the asset was actually found&lt;/td&gt;
&lt;td&gt;File path and line number&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Here is the traversal made concrete. The snippet below parses a miniature CBOM and walks its &lt;code&gt;uses&lt;/code&gt; edges to flag every application transitively exposed to a quantum-vulnerable primitive.&lt;/p&gt;
&lt;p&gt;{`
// Pedagogical, not production -- use a vetted tool such as CBOMkit.
// A tiny CycloneDX-style CBOM: crypto-assets plus implements/uses edges.
const cbom = {
  components: [
    { ref: &quot;app:payments-api&quot;, type: &quot;application&quot; },
    { ref: &quot;proto:tls-1.3&quot;, type: &quot;cryptographic-asset&quot;, assetType: &quot;protocol&quot; },
    { ref: &quot;alg:ecdh-secp256r1&quot;, type: &quot;cryptographic-asset&quot;, assetType: &quot;algorithm&quot;, quantumVulnerable: true },
    { ref: &quot;alg:aes-128-gcm&quot;, type: &quot;cryptographic-asset&quot;, assetType: &quot;algorithm&quot;, quantumVulnerable: false },
    { ref: &quot;lib:openssl&quot;, type: &quot;library&quot; }
  ],
  dependencies: [
    { ref: &quot;app:payments-api&quot;, dependsOn: [&quot;proto:tls-1.3&quot;], kind: &quot;uses&quot; },
    { ref: &quot;proto:tls-1.3&quot;, dependsOn: [&quot;alg:ecdh-secp256r1&quot;], kind: &quot;uses&quot; },
    { ref: &quot;lib:openssl&quot;, dependsOn: [&quot;alg:ecdh-secp256r1&quot;, &quot;alg:aes-128-gcm&quot;], kind: &quot;implements&quot; }
  ]
};&lt;/p&gt;
&lt;p&gt;// Adjacency map built from the &quot;uses&quot; edges only.
const usesEdges = {};
for (const d of cbom.dependencies) {
  if (d.kind === &quot;uses&quot;) usesEdges[d.ref] = d.dependsOn;
}
const vulnerable = new Set(
  cbom.components.filter(c =&amp;gt; c.quantumVulnerable).map(c =&amp;gt; c.ref)
);&lt;/p&gt;
&lt;p&gt;// Depth-first: does this component transitively use a vulnerable primitive?
function reachesVulnerable(ref, seen) {
  seen = seen || new Set();
  if (seen.has(ref)) return false;
  seen.add(ref);
  for (const next of (usesEdges[ref] || [])) {
    if (vulnerable.has(next) || reachesVulnerable(next, seen)) return true;
  }
  return false;
}&lt;/p&gt;
&lt;p&gt;const apps = cbom.components.filter(c =&amp;gt; c.type === &quot;application&quot;);
for (const app of apps) {
  const verdict = reachesVulnerable(app.ref) ? &quot;EXPOSED&quot; : &quot;clear&quot;;
  console.log(app.ref + &quot;  -&amp;gt;  &quot; + verdict);
}
`}&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key idea:&lt;/strong&gt; CBOM&apos;s breakthrough is not discovery power -- it is a data model. Model each crypto-asset with the property that makes it actionable (family versus variant) and its &lt;code&gt;implements&lt;/code&gt; and &lt;code&gt;uses&lt;/code&gt; dependencies, and a pile of tool-specific scan findings becomes a prioritizable graph you can query with a single traversal.&lt;/p&gt;
&lt;/blockquote&gt;

&quot;CBOM is the first open standard to describe an organizations&apos; cryptographic assets inventory, and their dependencies.&quot; -- Michael Osborne, CTO, IBM Quantum Safe [@owasp-cdx16]
&lt;p&gt;One caution keeps this honest, and a later section pays it off in full. A CBOM is a data model, not a discovery method. It is only ever as complete as the scanners that populate it [@ibm-cbomkit-blog]. Modeling cryptography as a graph is necessary, and it does not make the cryptography any easier to find.CycloneDX v1.6 shipped Attestations (CDXA) alongside CBOM -- machine-readable &quot;attestations to the veracity and completeness of those claims&quot; [@owasp-cdx16]. That plumbing is what the open problem of &lt;em&gt;completeness attestation&lt;/em&gt;, discussed later, is built on: a way to state not just what you found, but how thoroughly you looked.&lt;/p&gt;
&lt;p&gt;With cryptography finally modeled as a queryable, prioritizable graph, the remaining pieces could be assembled into a real pipeline: discipline at design time, discovery across every surface, roll-up into a CBOM, and prioritization against a deadline. By 2026, that pipeline has a definite shape.&lt;/p&gt;
&lt;h2&gt;6. The Discovery-to-Migration Stack (2026)&lt;/h2&gt;
&lt;p&gt;The state of the art in 2026 is not a product. It is a layered pipeline, and its governing rule is that no single layer is complete. Read from the top, it takes a legacy estate and produces a prioritized, deadline-aware migration plan.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The design-time layer is crypto-agility as discipline.&lt;/strong&gt; RFC 7696 did not stay an IETF document. In December 2025, NIST published Cybersecurity White Paper 39, &quot;Considerations for Achieving Cryptographic Agility: Strategies and Practices&quot; (updated as CSWP 39-upd1 in June 2026), restating algorithm agility as national risk-management guidance [@cswp39]. The author list closes a thirty-year loop: Russ Housley, who wrote RFC 7696, appears alongside the leaders of NIST&apos;s post-quantum standardization such as Dustin Moody and Lily Chen, and William Newhouse, who leads the NCCoE inventory work [@cswp39].&lt;/p&gt;
&lt;p&gt;The people who standardized the new algorithms, the person who formalized agility, and the person building the inventory practice signed the same page. Agility sits at the top of the stack because it is what makes the eventual swap cheap.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The discovery layer is five surfaces, and each is blind exactly where another sees clearly.&lt;/strong&gt; This is the heart of the see half, and the reason the outputs must be merged rather than chosen among.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Static source analysis&lt;/em&gt; reads owned source code and reports cryptographic calls with file-and-line precision. CBOMkit-Hyperion and its Sonar Cryptography plugin do this today, generating a CBOM directly from source and covering Java&apos;s JCA and Python&apos;s pyca/cryptography libraries [@sonar-crypto] [@ibm-cbomkit-blog]. It is precise and cheap in continuous integration -- and blind to third-party binaries it cannot see the source of, and to algorithms selected through dynamically constructed names.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Binary and container analysis&lt;/em&gt; reaches what static analysis cannot: shipped binaries, container images, and firmware. CBOMkit-Theia scans these artifacts [@cbomkit]. It reaches code you did not build -- and is defeated by packing and obfuscation, which can make cryptographic code indistinguishable from anything else.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Passive network monitoring&lt;/em&gt; observes the algorithms actually negotiated on live links, giving ground-truth on what is really in use. It is blind to data at rest and to systems that are simply idle during the capture window.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Active probing&lt;/em&gt; connects to listening services and enumerates the algorithms they will agree to negotiate, producing a capability census. It reaches only services that are listening, and says nothing about internal batch jobs or stored data.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Certificate and key-store analysis&lt;/em&gt; is the most mature surface and feeds the 2031 signature deadline most directly, but it sees only the public-key infrastructure: certificates, keys, and signature algorithms, not the code or protocols around them.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; No single surface is complete, so the operational rule is to run several and merge them, then budget a permanent manual-validation pass over the residual. This is not a workaround; it is what CISA&apos;s ACDI strategy and NIST&apos;s SP 1800-38 practice guide prescribe -- a method mix feeding a human-checked inventory, never one tool trusted to see everything [@cisa-acdi] [@sp1800-38-guide].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The five surfaces do not rank; they tile. Draw them feeding one merge-and-validate step, and the architecture is clear.&lt;/p&gt;

flowchart TD
    SRC[Static source scan] --&amp;gt; MERGE
    BIN[Binary and container scan] --&amp;gt; MERGE
    NET[Passive network sensor] --&amp;gt; MERGE
    PROBE[Active probing census] --&amp;gt; MERGE
    CERT[Certificate and key-store scan] --&amp;gt; MERGE
    MERGE[Merge and manual validation] --&amp;gt; CBOM[CycloneDX CBOM]
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Discovery surface&lt;/th&gt;
&lt;th&gt;What it sees&lt;/th&gt;
&lt;th&gt;Scaling&lt;/th&gt;
&lt;th&gt;Primary blind spot&lt;/th&gt;
&lt;th&gt;Best suited for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Static source&lt;/td&gt;
&lt;td&gt;Crypto calls in owned source, with file and line&lt;/td&gt;
&lt;td&gt;High, runs in CI&lt;/td&gt;
&lt;td&gt;Third-party binaries, dynamic names&lt;/td&gt;
&lt;td&gt;Owned codebases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Binary / container&lt;/td&gt;
&lt;td&gt;Crypto in shipped binaries, containers, firmware&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Packing and obfuscation&lt;/td&gt;
&lt;td&gt;Third-party and embedded artifacts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Passive network&lt;/td&gt;
&lt;td&gt;Algorithms actually negotiated on the wire&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Data at rest, idle systems&lt;/td&gt;
&lt;td&gt;Live ground-truth&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Active probing&lt;/td&gt;
&lt;td&gt;Capabilities of listening services&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Non-listening and internal-only services&lt;/td&gt;
&lt;td&gt;External posture census&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Certificate / key-store&lt;/td&gt;
&lt;td&gt;Certificates, keys, signature algorithms&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Anything outside the PKI&lt;/td&gt;
&lt;td&gt;The 2031 signature deadline&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;The table names each surface&apos;s blind spot. Understanding &lt;em&gt;why&lt;/em&gt; those blind spots exist -- and why they are not gaps a future release will quietly close -- means looking at how a scanner actually finds cryptography, because on the two hardest surfaces the detection mechanism and the blind spot turn out to be one fact seen from two sides.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Static source analysis lifts a library call to a normalized identity and its OID.&lt;/strong&gt; A source scanner does not understand cryptography; it recognizes calls into catalogued cryptographic-library APIs and resolves each to a canonical algorithm.&lt;/p&gt;
&lt;p&gt;CBOMkit-Hyperion and its Sonar Cryptography plugin walk the parsed syntax tree, spot a call into a known provider API -- Java&apos;s &lt;code&gt;MessageDigest.getInstance(&quot;SHA-256&quot;)&lt;/code&gt;, or a &lt;code&gt;pyca/cryptography&lt;/code&gt; constructor -- and map it to the algorithm, its variant, and its object identifier, the dotted-decimal name the registries use [@sonar-crypto] [@ibm-cbomkit-blog]. &lt;code&gt;SHA-256&lt;/code&gt; normalizes to the OID &lt;code&gt;2.16.840.1.101.3.4.2.1&lt;/code&gt;, in the NIST Computer Security Objects Register arc [@oidref-sha256].The SHA-256 OID &lt;code&gt;2.16.840.1.101.3.4.2.1&lt;/code&gt; is the machine-mergeable identity a static scanner lifts an API call to: two tools that print &quot;SHA-256&quot; and &quot;SHA256&quot; collapse to one crypto-asset the moment both resolve to it [@oidref-sha256].&lt;/p&gt;

A globally unique, dotted-decimal name for an algorithm or other object, assigned under a registration hierarchy. SHA-256 is `2.16.840.1.101.3.4.2.1` in the NIST Computer Security Objects Register arc [@oidref-sha256]. A static scanner resolves a recognized API call to its OID, and because two tools that spell an algorithm differently agree the instant both resolve to the same OID, the OID is the machine-mergeable identity the CBOM roll-up is built on.
&lt;p&gt;The OID is what lets two tools&apos; findings merge into one graph, and it also fixes the surface&apos;s exact reach. Recognition runs against a fixed catalog of call patterns -- a decidable restriction -- so an algorithm name assembled at runtime, a call made through reflection, a language the ruleset does not cover, or a hand-rolled primitive presents no catalogued API to match and is simply never seen. The precision of static analysis and its blindness to dynamic names are the same design decision.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Binary and container analysis recovers a primitive with no symbols at all, from constants and from behavior.&lt;/strong&gt; A stripped artifact still exposes two things a detector can key on. The first is its constants: block ciphers and hashes embed fixed, algorithm-specific tables -- an AES S-box, SHA round-constant tables, DES permutation tables -- and matching those known tables names the primitive with no function symbol present, the structural technique of Gröbert, Willems, and Holz in their 2011 RAID paper [@grobert-raid2011].&lt;/p&gt;
&lt;p&gt;The second is its behavior: where the constants are absent or rewritten, the detector runs the code and tests the output for cryptographic signatures -- high Shannon entropy, and the avalanche effect, in which flipping one input bit flips roughly half the output bits, a property real ciphers have and ordinary arithmetic does not. Later work such as Hill and Bellekens&apos; CryptoKnight names the same problem of recognizing primitives in compiled code [@hill-bellekens].&lt;/p&gt;
&lt;p&gt;This mechanism is exactly why packing is a blind spot rather than a bug to be patched. Packing or white-box obfuscation removes or rewrites the very constant tables the structural matcher depends on, and can make an implementation indistinguishable by construction from non-cryptographic code -- the worst-case form of a limit the section after next proves is fundamental.&lt;/p&gt;
&lt;p&gt;The behavioral fallback then meets a coverage wall: it can only judge the paths it actually executes, so cryptography on an unexecuted branch stays dark. The blind spot is not a defect in the tool; it is the shadow the detection mechanism casts.&lt;/p&gt;

flowchart LR
    subgraph STATIC[&quot;Static source lane&quot;]
      A1[&quot;Recognize catalogued library API call&quot;] --&amp;gt; A2[&quot;Resolve to algorithm and variant&quot;]
      A2 --&amp;gt; A3[&quot;Look up object identifier, the OID&quot;]
    end
    subgraph BINARY[&quot;Binary lane, no symbols&quot;]
      B1[&quot;Match S-box and round-constant tables&quot;] --&amp;gt; B3[&quot;Name the primitive&quot;]
      B2[&quot;Run it, measure entropy and avalanche&quot;] --&amp;gt; B3
    end
    A3 --&amp;gt; OID[&quot;Crypto-asset keyed by OID&quot;]
    B3 --&amp;gt; OID
    OID --&amp;gt; NODE[&quot;Mergeable CBOM node&quot;]
&lt;p&gt;Both lanes converge on the same object: a crypto-asset named by its OID, ready to merge with every other tool&apos;s findings. That shared identity is what makes the next layer possible.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The substrate layer rolls every surface up into a CycloneDX CBOM&lt;/strong&gt; -- the graph from the previous section, now populated from five directions. (SPDX 3.0 is the parallel choice, and the next section weighs it.)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The prioritization layer turns the graph into a ranked queue using Mosca&apos;s inequality.&lt;/strong&gt; You cannot migrate everything at once, so you order the work by exposure.&lt;/p&gt;

A triage rule attributed to Michele Mosca (IACR ePrint 2015/1075): begin migrating a system *now* if $x + y &amp;gt; z$, where $x$ is how long the data must stay confidential, $y$ is how long the migration will take, and $z$ is the time until a cryptographically relevant quantum computer exists [@mosca-eprint]. When the exposure window $x + y$ exceeds the time to a CRQC, harvest-now-decrypt-later already threatens that data, so waiting is a loss [@gri-mosca].
&lt;p&gt;Applied over the CBOM graph, Mosca&apos;s inequality converts an inventory into a sorted migration queue, and it maps cleanly onto the executive order&apos;s split: confidentiality and key establishment, where $x$ can be decades, come due in 2030, while signatures, which cannot be forged retroactively, come due in 2031 [@eo14412]. The decision, per asset, looks like this.&lt;/p&gt;

flowchart TD
    X[Data shelf-life x] --&amp;gt; SUM[&quot;Exposure window x + y&quot;]
    Y[Migration time y] --&amp;gt; SUM
    Z[Time to a CRQC z] --&amp;gt; D
    SUM --&amp;gt; D{&quot;x + y exceeds z?&quot;}
    D --&amp;gt;|yes| NOW[Migrate now, harvest-now-decrypt-later already applies]
    D --&amp;gt;|no| DEFER[Defer, but keep monitoring z]
&lt;p&gt;The same rule expressed as code sorts a real inventory by how little slack it has left.&lt;/p&gt;
&lt;p&gt;{`
// Pedagogical, not production. Mosca&apos;s inequality: migrate now when x + y &amp;gt; z.
const yearsToCRQC = 12; // z: uncertain estimate of time to a capable quantum computer.
const assets = [
  { name: &quot;root-CA-signing&quot;, shelfLifeYears: 20, migrationYears: 3 },
  { name: &quot;payments-TLS&quot;,    shelfLifeYears: 10, migrationYears: 2 },
  { name: &quot;internal-metrics&quot;, shelfLifeYears: 1, migrationYears: 1 },
  { name: &quot;archival-backups&quot;, shelfLifeYears: 25, migrationYears: 4 }
];&lt;/p&gt;
&lt;p&gt;function triage(a) {
  const exposure = a.shelfLifeYears + a.migrationYears; // x + y
  return {
    name: a.name,
    exposure: exposure,
    slack: yearsToCRQC - exposure,          // negative slack means already exposed
    migrateNow: exposure &amp;gt; yearsToCRQC
  };
}&lt;/p&gt;
&lt;p&gt;const ranked = assets.map(triage).sort((p, q) =&amp;gt; p.slack - q.slack);
for (const r of ranked) {
  const flag = r.migrateNow ? &quot;MIGRATE NOW&quot; : &quot;monitor&quot;;
  console.log(r.name + &quot;  exposure=&quot; + r.exposure + &quot;y  slack=&quot; + r.slack + &quot;y  -&amp;gt; &quot; + flag);
}
`}&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The binding-policy layer is what makes the stack mandatory rather than aspirational.&lt;/strong&gt; CISA&apos;s ACDI strategy defines the automated-discovery goal [@cisa-acdi]; NIST&apos;s SP 1800-38 practice guide, the deliverable of the NCCoE&apos;s Migration to Post-Quantum Cryptography project, supplies the reference architecture, as a preliminary draft [@sp1800-38-guide] [@sp1800-38-project]; and Executive Order 14412 attaches the dates and, within 270 days of signing, directs CISA to publish the &quot;minimum elements for a cryptographic bill of materials&quot; that &quot;enable the automated assessment of the cryptographic assets&quot; [@eo14412]. The policy layer literally names the substrate the rest of the stack produces.&lt;/p&gt;

NIST NCCoE&apos;s &quot;Migration to Post-Quantum Cryptography&quot; practice guide -- whose Volume B is the cryptographic-discovery volume -- is an initial public *preliminary draft*, and its own title page says so [@sp1800-38-guide] [@sp1800-38b-pdf]. Cite it for its discovery reference architecture, which is genuinely useful, but never as a finalized, normative NIST standard. Treating a draft as a final spec is one of the recurring errors in this space.
&lt;p&gt;This stack works, up to a point. &quot;Run every surface and roll it up&quot; quietly assumes the surfaces can, together, see everything. They cannot, and no substrate choice changes that. Before confronting that ceiling, though, there is an honest comparison to make: CBOM is not the only way to inventory cryptography.&lt;/p&gt;
&lt;h2&gt;7. CBOM Is Not the Only Way to Inventory Cryptography&lt;/h2&gt;
&lt;p&gt;A claim that CBOM is &lt;em&gt;the&lt;/em&gt; substrate has to survive its rivals. There are three real axes of competition, and on each, the honest answer is &quot;it depends.&quot; Steelmanning the alternatives is not a detour from the thesis; it is how the thesis earns the word &quot;substrate.&quot;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The schema choice: CycloneDX CBOM versus SPDX 3.0.&lt;/strong&gt; SPDX is the other major machine-readable bill-of-materials standard, with an ISO/IEC 5962 lineage, and its 3.0 revision added a Security profile [@spdx-spec]. That profile is oriented toward vulnerability and VEX communication -- expressing whether a component is affected by a known vulnerability -- rather than toward modeling cryptographic assets in their own right [@spdx-security].VEX, the Vulnerability Exploitability eXchange, is a machine-readable statement about whether a given vulnerability actually affects a product. It answers &quot;are we exploitable?&quot;, which is a different question from &quot;what cryptography do we run?&quot; -- which is why an inventory built around VEX is a different tool from one built around crypto-assets. CBOM, by contrast, ships purpose-built &lt;code&gt;cryptographic-asset&lt;/code&gt; types and the &lt;code&gt;implements&lt;/code&gt; versus &lt;code&gt;uses&lt;/code&gt; edges that make the inventory a graph [@ibm-cbom].&lt;/p&gt;
&lt;p&gt;The practical read: if you are inventorying cryptography to prioritize a migration, CBOM is the crypto-native choice, and it is the artifact Executive Order 14412 names by title [@eo14412]. If your organization is already standardized on SPDX and VEX workflows, SPDX 3.0 can carry crypto information at a coarser grain and keep you on one toolchain. Both, importantly, live in the same document as your SBOM, so this is a modeling choice, not a parallel-infrastructure choice.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;CycloneDX CBOM&lt;/th&gt;
&lt;th&gt;SPDX 3.0&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Steward&lt;/td&gt;
&lt;td&gt;OWASP CycloneDX&lt;/td&gt;
&lt;td&gt;Linux Foundation / SPDX (ISO/IEC 5962 lineage)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Crypto-asset modeling&lt;/td&gt;
&lt;td&gt;Purpose-built &lt;code&gt;cryptographic-asset&lt;/code&gt; types&lt;/td&gt;
&lt;td&gt;Security profile, less crypto-specialized&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dependency semantics&lt;/td&gt;
&lt;td&gt;&lt;code&gt;implements&lt;/code&gt; versus &lt;code&gt;uses&lt;/code&gt; edges&lt;/td&gt;
&lt;td&gt;General relationships, VEX-oriented&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Primary orientation&lt;/td&gt;
&lt;td&gt;Cryptographic inventory&lt;/td&gt;
&lt;td&gt;Vulnerability and VEX communication&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Executive Order 14412 alignment&lt;/td&gt;
&lt;td&gt;Named target artifact&lt;/td&gt;
&lt;td&gt;Not named&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;The tooling choice: open versus commercial.&lt;/strong&gt; The open reference implementation is CBOMkit, an IBM and Post-Quantum Cryptography Alliance suite whose modules cover source scanning (Hyperion), binary and container scanning (Theia), viewing (Coeus), compliance (Themis), and repository storage (Mnemosyne) [@cbomkit] [@ibm-cbomkit-blog]. Open tooling wins on transparency, on integrating into continuous integration, and on being the reference producer of the exact CBOM format the policy layer names.&lt;/p&gt;
&lt;p&gt;It struggles outside its rule set -- languages or libraries it does not yet recognize -- and on completeness when it lacks build context. CBOMkit&apos;s own documentation is candid about the second limit: scanning without a full build &quot;potentially reduces completeness and accuracy of the findings since some Java symbols may not be resolved&quot; [@cbomkit].&lt;/p&gt;
&lt;p&gt;The commercial alternative is the category of cryptographic-posture-management platforms: closed, multi-surface products that add correlation to business services and data flows. They win on breadth and on tying a raw finding to &quot;which revenue-bearing service is this?&quot; They cost money, keep their data models proprietary, and -- this is the part no budget fixes -- run into the exact same theoretical ceiling as the open tools.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;Open (CBOMkit)&lt;/th&gt;
&lt;th&gt;Commercial cryptographic-posture management&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Discovery surfaces&lt;/td&gt;
&lt;td&gt;Source, plus binary and container; extensible&lt;/td&gt;
&lt;td&gt;Multi-surface breadth out of the box&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output format&lt;/td&gt;
&lt;td&gt;CycloneDX CBOM (the reference producer)&lt;/td&gt;
&lt;td&gt;Often proprietary, typically exports CBOM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Correlation to business services&lt;/td&gt;
&lt;td&gt;Limited&lt;/td&gt;
&lt;td&gt;A primary selling point&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;Free and open&lt;/td&gt;
&lt;td&gt;Licensed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Completeness ceiling&lt;/td&gt;
&lt;td&gt;Bounded by rule set and build context&lt;/td&gt;
&lt;td&gt;The same theoretical ceiling&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;The discovery-method choice&lt;/strong&gt; is the five surfaces from the previous section, and the honest summary bears repeating: each is genuinely strong somewhere and genuinely blind somewhere else, and none is complete alone. Static analysis owns your source; binary analysis owns your firmware; passive monitoring owns live traffic; probing owns external posture; certificate scanning owns the PKI. The right answer is never &quot;pick one.&quot; It is &quot;run several and merge.&quot;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; There is no independent, peer-reviewed benchmark that ranks these schemas or tools by recall and precision on a shared corpus of real systems. The comparisons above are by design and coverage profile, not by measured performance numbers -- and any vendor deck that quotes a precise detection percentage is quoting itself. Treat coverage claims as architecture, not as evidence.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Every one of these choices trades coverage for cost, or specialization for breadth, and not one of them escapes a deeper problem they all share. Whatever schema you standardize on and whatever tools you buy or build, there is a hard limit on how complete your inventory can ever be -- and, with unsettling symmetry, a second hard limit on how much of your cryptography you can rotate at all.&lt;/p&gt;
&lt;h2&gt;8. Two Ceilings the Hard Problem Cannot Lift&lt;/h2&gt;
&lt;p&gt;Here is the uncomfortable core of the whole subject -- the most important idea in this guide after the thesis itself. Complete visibility into your cryptography is not merely expensive. It is impossible. And so, separately, is complete agility. Each verb has its own independent, provable ceiling, and the two ceilings have different shapes. Ask the budget question directly: with unlimited money and every tool on the market, could you reach 100 percent? No -- and the reasons you cannot are not the same for the two halves.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The SEE ceiling is undecidability.&lt;/strong&gt; The question at the center of discovery is not the tidy one it first appears. What a scanner must answer, for arbitrary deployed code, is &lt;em&gt;does this program use cryptographic primitive C somewhere inside it?&lt;/em&gt; -- think of a network daemon that happens to call AES while going about its ordinary work. That is the operative question, and it is provably unanswerable in general.&lt;/p&gt;
&lt;p&gt;So is its stricter cousin, &lt;em&gt;does this program compute C?&lt;/em&gt; -- is the program&apos;s entire input-output behavior the AES map itself? The two are undecidable for different reasons, and keeping them apart is the difference between a slogan and a proof.&lt;/p&gt;

Two distinct computability results cap automated discovery. Whether a program *computes* a given primitive -- whether its input-output function is, say, the AES map -- is a non-trivial semantic property of the function the program computes, so it is undecidable directly by Rice&apos;s theorem, which holds that every non-trivial property of the function a program computes is undecidable [@rice1953]. But the question discovery actually asks -- whether a program *uses* a primitive C internally while computing something else -- is not a property of the program&apos;s external function at all, because two programs with identical outputs can differ in whether they call C. Rice&apos;s theorem therefore does not apply directly; that case&apos;s undecidability follows instead from a reduction to the halting problem. Either way, no algorithm decides it for all programs.
&lt;p&gt;The applied cryptography-detection literature reaches the same wall from the practical side, and it supplies the third leg of the attribution. Gröbert, Willems, and Holz, in their 2011 RAID paper on identifying cryptographic primitives in binary programs, show that binary crypto detection is fundamentally best-effort, and that no detector defeats arbitrary obfuscation: sufficiently transformed code can be made indistinguishable from non-cryptographic code [@grobert-raid2011].&lt;/p&gt;
&lt;p&gt;Put the three arguments together -- Rice&apos;s theorem for &lt;em&gt;computes C&lt;/em&gt;, the halting-problem reduction for &lt;em&gt;uses C internally&lt;/em&gt;, and Gröbert for &lt;em&gt;survives obfuscation&lt;/em&gt; -- and the conclusion is firm: 100 percent automated cryptographic discovery is not achievable in the general case.The attribution is deliberately three-part. &lt;em&gt;Does P compute C?&lt;/em&gt; is undecidable by Rice&apos;s theorem [@rice1953]. The operative &lt;em&gt;does P use C internally?&lt;/em&gt; is a halting-problem reduction, not Rice, because it is not a property of P&apos;s external function. And &lt;em&gt;no detector defeats arbitrary obfuscation&lt;/em&gt; is Gröbert, Willems, and Holz at RAID 2011 [@grobert-raid2011]. Three different arguments, one conclusion. It is not a tooling gap that a better scanner will someday close. It is a computability limit.&lt;/p&gt;
&lt;p&gt;This is the rigorous reason automated discovery must always be paired with human validation, and it instantiates in every messy corner of a real estate -- obfuscated and packed binaries, hand-rolled cryptography, dynamically loaded modules, firmware and operational-technology devices with decade-long lifetimes, and third-party or SaaS systems you simply cannot reach to scan.&lt;/p&gt;

The regulator agrees, in writing. As reported by Nextgov, CISA&apos;s guidance states that the agency &quot;has not been able to confirm the full scope of cryptographic algorithm detection capabilities that will be available via automated cryptographic discovery tools,&quot; and that &quot;the inventory process requires both manual data collection and the use of automated support&quot; [@nextgov-cisa]. The body pushing hardest for automated discovery is explicit that automation alone will not get you to a complete inventory. Bounded coverage is not a vendor&apos;s excuse; it is the official operating assumption.
&lt;p&gt;&lt;strong&gt;The ROTATE ceiling is irreversibility.&lt;/strong&gt; Suppose, impossibly, you had perfect visibility. Some cryptography still cannot be rotated, because it was committed to the world in a form that cannot be recalled. RFC 7696 states the canonical case precisely: the digital signature on an intermediate certification authority certificate &quot;is often expected to last decades, which hinders the transition away from a weak signature algorithm,&quot; and once a long-lived certificate is issued under a given algorithm, relying parties &quot;cannot stop supporting it without invalidating all of the subordinate certificates&quot; [@rfc7696].&lt;/p&gt;
&lt;p&gt;The same irreversibility applies to every long-lived signature already emitted, to trust anchors and root stores embedded in devices, to firmware and hardware with parameters fixed at manufacture, and to protocols that shipped with no negotiation mechanism at all. These are not discovery failures. You can see them perfectly. The &lt;em&gt;rotate&lt;/em&gt; half is simply, structurally impossible for them after the fact.&lt;/p&gt;

flowchart TD
    PQM[Post-quantum migration] --&amp;gt; SEE[&quot;SEE, run-time inventory&quot;]
    PQM --&amp;gt; ROT[&quot;ROTATE, design-time agility&quot;]
    SEE --&amp;gt; U[&quot;Ceiling, undecidability (halting reduction, Rice&apos;s theorem, RAID 2011)&quot;]
    ROT --&amp;gt; I[&quot;Ceiling, irreversibility (RFC 7696 section 2.6)&quot;]
    U --&amp;gt; UEX[&quot;Obfuscated binaries, hand-rolled crypto, SaaS opacity&quot;]
    I --&amp;gt; IEX[&quot;Long-lived signatures, trust anchors, firmware&quot;]
&lt;p&gt;The undecidability ceiling is easy to feel with a five-line example. A naive static detector greps for a known cipher name. It catches the direct call and misses the identical algorithm the moment the name is assembled at runtime.&lt;/p&gt;
&lt;p&gt;{`
// Pedagogical illustration, not a proof and not production.
// A naive static detector: it scans source for a known cipher literal.
function naiveDetect(source) {
  const known = [&quot;aes-128-gcm&quot;, &quot;aes-256-gcm&quot;, &quot;chacha20-poly1305&quot;];
  return known.filter(name =&amp;gt; source.includes(&apos;&quot;&apos; + name + &apos;&quot;&apos;));
}&lt;/p&gt;
&lt;p&gt;// Case 1: the algorithm is named directly. The detector sees it.
const direct = &apos;const c = crypto.createCipheriv(&quot;aes-128-gcm&quot;, key, iv);&apos;;&lt;/p&gt;
&lt;p&gt;// Case 2: the SAME algorithm, selected through a name built at runtime.
const hidden = [
  &apos;const parts = [&quot;aes&quot;, &quot;128&quot;, &quot;gcm&quot;];&apos;,
  &apos;const alg = parts.join(&quot;-&quot;);&apos;,
  &apos;const c = crypto.createCipheriv(alg, key, iv);&apos;
].join(&quot; &quot;);&lt;/p&gt;
&lt;p&gt;console.log(&quot;direct  -&amp;gt;&quot;, naiveDetect(direct)); // [&quot;aes-128-gcm&quot;]  found
console.log(&quot;hidden  -&amp;gt;&quot;, naiveDetect(hidden)); // []              missed
`}&lt;/p&gt;
&lt;p&gt;A real scanner is far cleverer than this, and a determined obfuscator is far cleverer still. The demo is not a proof of undecidability -- it is a picture of why the problem is undecidable: any fixed detector can be evaded by a program that constructs its cryptography in a way the detector does not model.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; A certificate scan is not a cryptographic inventory. Neither is a network scan. Each sees exactly one surface -- the PKI, or the wire -- and even the union of all five surfaces is provably bounded below complete coverage. Anyone who hands you a single-surface scan and calls it &quot;our crypto inventory&quot; has confused a slice for the whole.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So the attainable optimum is not a complete inventory and never was. It is a high-coverage, multi-surface, human-validated approximation whose residual incompleteness is acknowledged rather than hidden.You can push coverage upward asymptotically by adding surfaces and manual review, but never to a &lt;em&gt;proven&lt;/em&gt; 100 percent. The mature deliverable is therefore bounded assurance -- a statement of how thoroughly you looked -- not a bare list that silently claims a completeness it cannot possibly guarantee. Coverage rises toward the ceiling; it never touches it.&lt;/p&gt;
&lt;p&gt;If completeness is provably out of reach, then the goal cannot be a bare list that claims a coverage it cannot back. It has to be &lt;em&gt;bounded assurance&lt;/em&gt;: a statement of which surfaces were scanned, with which tools, under which caveats. Building that -- along with everything else this young discipline has not finished -- is where the live research sits.&lt;/p&gt;
&lt;h2&gt;9. Where the Research and Standardization Are Still Live&lt;/h2&gt;
&lt;p&gt;The substrate exists and the deadline is fixed, but the discipline is young, and several load-bearing pieces are still under construction. The question that organizes the frontier is simple: what has to be solved before a CBOM can be trusted the way a mature SBOM is trusted today?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Trustworthy attestation of completeness is the flagship open problem.&lt;/strong&gt; A CBOM asserts what a set of tools &lt;em&gt;found&lt;/em&gt;. Nothing in it attests to what they &lt;em&gt;missed&lt;/em&gt; -- and the previous section proved that what they miss can never be driven to zero. So a consumer of your CBOM needs something more honest than a list: &lt;em&gt;bounded assurance&lt;/em&gt;, a signed statement of how far the inventory was actually pushed.&lt;/p&gt;
&lt;p&gt;Concretely, a standard completeness-attestation profile would pin down four minimum elements: &lt;strong&gt;surface coverage&lt;/strong&gt; (which of the five discovery surfaces were actually run against this target, and which were not); &lt;strong&gt;tools and versions&lt;/strong&gt; (which discovery tools, at which versions and rule packs, since a surface&apos;s recall is bounded by the specific catalog it matches against); &lt;strong&gt;coverage and exclusion caveats&lt;/strong&gt; (unscanned repositories, un-executed binary paths, unsupported languages, unreachable air-gapped or SaaS systems, the scanned-without-build-context case); and &lt;strong&gt;residual manual-validation scope&lt;/strong&gt; (what a human reviewed, and what still awaits review).&lt;/p&gt;
&lt;p&gt;The striking part is that the plumbing to carry all four already ships. CycloneDX Attestations (CDXA) landed in the same v1.6 line as CBOM, providing machine-readable &quot;attestations to the veracity and completeness of those claims&quot; [@owasp-cdx16] [@cdx-attestations].&lt;/p&gt;
&lt;p&gt;Its object model maps onto the profile almost one-to-one: a top-level &lt;code&gt;declarations&lt;/code&gt; object whose &lt;code&gt;targets&lt;/code&gt; name the CBOM the claim is about; &lt;code&gt;claims&lt;/code&gt; that each carry a &lt;code&gt;predicate&lt;/code&gt; (for example, &quot;all five surfaces scanned for target T&quot;), its &lt;code&gt;reasoning&lt;/code&gt;, linked &lt;code&gt;evidence&lt;/code&gt;, and -- decisively -- &lt;code&gt;counterEvidence&lt;/code&gt;, the schema&apos;s native field for &lt;em&gt;what undercuts the claim&lt;/em&gt;, which is exactly where the blind spots the last section says can never be zero would be recorded; &lt;code&gt;evidence&lt;/code&gt; items with &lt;code&gt;created&lt;/code&gt; and &lt;code&gt;expires&lt;/code&gt; timestamps, which also give an inventory&apos;s assurance an explicit shelf-life; and &lt;code&gt;assessors&lt;/code&gt; carrying a &lt;code&gt;thirdParty&lt;/code&gt; boolean that separates self-assessment from an independent audit, the whole declaration closed with an &lt;code&gt;affirmation&lt;/code&gt; and an enveloped &lt;code&gt;signature&lt;/code&gt; [@cdx-16-json].CDXA already carries completeness claims: &lt;code&gt;claims.counterEvidence&lt;/code&gt; records what undercuts a claim, and &lt;code&gt;evidence.expires&lt;/code&gt; gives the assurance a shelf-life [@cdx-16-json]. So the gap is a missing standard &lt;em&gt;profile&lt;/em&gt; -- an agreed catalog of which claims a CBOM must assert -- not missing plumbing.&lt;/p&gt;
&lt;p&gt;So the gap is not missing machinery; it is a missing &lt;em&gt;standard profile&lt;/em&gt; -- an agreed, named set of claims a CBOM must assert to count as completeness-attested -- plus the absence of any shared, peer-reviewed benchmark against which a tool&apos;s recall and precision could be measured.The absence of a public discovery benchmark is why no honest vendor can quote you a real recall number. There is no shared corpus of representative systems with a known ground-truth inventory to measure against, so &quot;we detect 98 percent of cryptography&quot; is, at present, an unfalsifiable claim rather than a measured result.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The most consequential unsolved problem in cryptographic inventory is not building a more powerful scanner. It is being able to state, verifiably, how thorough a given inventory is. Bounded assurance -- an honest account of coverage and its gaps -- is worth more to a downstream consumer than a longer list that silently overclaims what it saw. Attestation is the direct answer to the undecidability ceiling.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Four more problems are visibly in motion.&lt;/strong&gt; &lt;em&gt;Schema convergence:&lt;/em&gt; ACDI tools still emit tool-specific shapes, and CBOM and SPDX 3.0 coexist with no agreed crosswalk between their cryptographic representations [@ibm-cbom] [@spdx-spec]. A real crosswalk is not a field-rename -- it has to preserve crypto-asset identity, the family-versus-variant distinction, and the dependency semantics, so that CycloneDX&apos;s &lt;code&gt;provides&lt;/code&gt; and &lt;code&gt;dependsOn&lt;/code&gt; edges are not flattened into a mapping that collapses &quot;this library &lt;em&gt;contains&lt;/em&gt; X&quot; into &quot;this application &lt;em&gt;uses&lt;/em&gt; X&quot; [@cdx-16-json].&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Continuous versus point-in-time inventory:&lt;/em&gt; a CBOM is stale the instant code ships, a certificate rotates, or traffic shifts; continuous inventory is practical for source and network surfaces and much harder for binary, firmware, and SaaS, so most inventories today are snapshots that begin aging immediately.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Correlation to business context:&lt;/em&gt; &quot;AES-128-GCM at file X, line 51&quot; does not tell you which service depends on it, which data it protects, or how long that data must stay secret -- yet that is precisely the input $x$ and the business priority that Mosca&apos;s inequality needs, so the gap between a technical finding and a risk decision is still bridged by humans.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Supply-chain propagation:&lt;/em&gt; most of an application&apos;s cryptography lives in its transitive dependencies, and while the data model supports composition -- via BOM-Link references between documents, enveloped signatures for provenance, and merge and de-duplication keyed on a stable identity such as OID plus package URL plus &lt;code&gt;bom-ref&lt;/code&gt; -- the practice of publishing, signing, and merging upstream CBOMs the way SBOMs are beginning to flow is still nascent [@cdx-16-json].&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And one problem loops straight back to the theory.&lt;/strong&gt; Signature- and rule-based detectors recognize only cryptography they already have a rule for. Early post-quantum hybrids, experimental constructions, and hand-rolled primitives evade the catalog -- which is the undecidability ceiling of the previous section wearing everyday clothes [@grobert-raid2011]. Taken together, these open problems share a theme: the model for cryptography is settled, and the practices that make the model trustworthy, current, and composable are still being written.&lt;/p&gt;
&lt;p&gt;None of this is a reason to wait, because the deadline will not. The research frontier and the compliance clock run in parallel, which means the practitioner&apos;s job is not to wait for the discipline to mature. It is to build the best inventory achievable now, bound it honestly, and improve it continuously. Here is how to start this quarter.&lt;/p&gt;
&lt;h2&gt;10. Doing It This Quarter&lt;/h2&gt;
&lt;p&gt;Strip away the theory and the policy, and a concrete, deadline-aware workflow remains -- one any team on the 2030 hook can start now. Five steps, each tied to one of the two verbs.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1 -- Build agility in (ROTATE, forward).&lt;/strong&gt; For everything you build from here on, apply the RFC 7696 patterns: put an indirection layer between your application and its cryptography, use registered algorithm identifiers, hardcode no primitives, and keep your mandatory-to-implement set in a companion configuration so it can change without a rebuild [@rfc7696]. Done well, the eventual post-quantum swap becomes a configuration change rather than a re-architecture. This step does not touch your legacy estate -- it stops that estate from growing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2 -- Run multi-surface discovery (SEE).&lt;/strong&gt; Not one tool. A mix, matched to the surfaces from earlier: a static scan of owned source in continuous integration with CBOMkit-Hyperion and its Sonar Cryptography plugin [@sonar-crypto] [@ibm-cbomkit-blog]; a binary and container scan with CBOMkit-Theia for third-party artifacts and firmware [@cbomkit]; passive network monitoring for live ground-truth; active probing for an external capability census; and certificate and key-store scanning first if you are triaging the 2031 signature deadline. Then budget a permanent manual-validation line item for the residual the tools cannot reach -- because, as established, that residual never reaches zero [@nextgov-cisa].&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 3 -- Emit a CBOM (SEE, substrate).&lt;/strong&gt; Roll the merged findings into a CycloneDX CBOM of the current line -- CBOM was introduced in v1.6 and carried into v1.7 -- validate it, and store it as an artifact right next to your SBOM [@owasp-cdx16] [@cdx-spec-17]. Version it over time so you can diff this quarter against last, and keep the history in a repository such as CBOMkit-Mnemosyne [@cbomkit].&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 4 -- Prioritize (SEE to decision).&lt;/strong&gt; Run Mosca&apos;s inequality over the graph. Rank by harvest-now-decrypt-later exposure and timing, $x + y &amp;gt; z$, and map the result onto the mandated dates: confidentiality and key establishment toward December 31, 2030, signatures toward December 31, 2031 [@gri-mosca] [@eo14412]. The output is a queue, not a wish list.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 5 -- Migrate to algorithms that already ship (ROTATE, execute).&lt;/strong&gt; The endpoints of the queue are the subject of the companion posts in this series: &lt;a href=&quot;https://paragmali.com/blog/the-thirty-year-migration-ships-in-a-pip-install-how-post-qu/&quot; rel=&quot;noopener&quot;&gt;ML-KEM arriving in a &lt;code&gt;pip install&lt;/code&gt;&lt;/a&gt;, &lt;a href=&quot;https://paragmali.com/blog/post-quantum-cryptography-on-windows-the-thirty-year-migrati/&quot; rel=&quot;noopener&quot;&gt;ML-KEM and ML-DSA in Windows SChannel and SymCrypt&lt;/a&gt;, and the &lt;a href=&quot;https://paragmali.com/blog/rotating-every-cipher-schannel-and-the-twenty-year-algorithm/&quot; rel=&quot;noopener&quot;&gt;twenty-year SChannel algorithm-agility story&lt;/a&gt; that shows the rotate half working at scale in one real TLS stack. The replacement primitives are finished and shipping -- FIPS 203, 204, and 205 since August 2024 [@fips203] [@pyca-changelog] [@ms-pqc-windows]. The entire stack above exists to produce the prioritized list those endpoints execute against.&lt;/p&gt;

flowchart TD
    A[Build agility into new code] --&amp;gt; B[Run multi-surface discovery]
    B --&amp;gt; C[Emit and validate a CycloneDX CBOM]
    C --&amp;gt; D{&quot;x + y exceeds z?&quot;}
    D --&amp;gt;|yes| E[Migrate now to shipping PQC algorithms]
    D --&amp;gt;|no| F[Queue and keep monitoring z]
    E --&amp;gt; G[Re-scan and version the CBOM]
    F --&amp;gt; G
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;Effort&lt;/th&gt;
&lt;th&gt;Best suited for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Build agility in&lt;/td&gt;
&lt;td&gt;RFC 7696 patterns in new code&lt;/td&gt;
&lt;td&gt;Design-time, low ongoing&lt;/td&gt;
&lt;td&gt;Greenfield and active codebases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Discover owned source&lt;/td&gt;
&lt;td&gt;Static scan in CI (Hyperion / Sonar)&lt;/td&gt;
&lt;td&gt;Low, continuous&lt;/td&gt;
&lt;td&gt;Code you wrote&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Discover third-party and firmware&lt;/td&gt;
&lt;td&gt;Binary and container scan (Theia)&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Artifacts you did not build&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Discover live traffic&lt;/td&gt;
&lt;td&gt;Passive network plus active probing&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Ground-truth and external posture&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Discover the PKI&lt;/td&gt;
&lt;td&gt;Certificate and key-store scan&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;The 2031 signature deadline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prioritize&lt;/td&gt;
&lt;td&gt;Mosca&apos;s inequality over the CBOM&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Ordering the migration queue&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Migrate&lt;/td&gt;
&lt;td&gt;Adopt shipping PQC (companion posts)&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;The assets the queue surfaces first&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you remember a single operational rule, make it this: run a mix of surfaces, roll the results up into one CBOM, and validate the residual by hand. Every common failure in this space is a shortcut around that rule -- trusting one tool, one surface, or one snapshot.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The pitfalls are predictable, and each is a shortcut past something earlier in this guide. Scanning Java source without building it leaves symbols unresolved and findings incomplete, exactly as CBOMkit&apos;s documentation warns [@cbomkit]. Treating a certificate scan, or a network scan, as a finished inventory mistakes one surface for the estate. Collapsing family into variant -- recording &quot;AES&quot; instead of &quot;AES-128-GCM&quot; -- throws away the property that makes a finding actionable [@ibm-cbom]. Losing the &lt;code&gt;implements&lt;/code&gt; versus &lt;code&gt;uses&lt;/code&gt; distinction flattens the graph back into a list. And citing a stale CycloneDX version number invites a reviewer to distrust the rest.&lt;/p&gt;

A concrete starting move, before any of the harder surfaces: build one representative service, run a static CBOM scan of it in your CI pipeline with CBOMkit-Hyperion and the Sonar Cryptography plugin, and commit the resulting CycloneDX CBOM next to that service&apos;s SBOM [@sonar-crypto]. You will have a real, validated, versioned crypto inventory for one service by Friday -- and a template for the next hundred. Start where you have source and build context, because that is the surface where the tools are strongest.
&lt;p&gt;Do all five steps and you have converted an impossible-sounding mandate into a bounded, prioritized, machine-actionable program -- and, in the process, confronted the one truth the whole field converged on. That truth is worth stating plainly, alongside the misconceptions that keep tripping teams up.&lt;/p&gt;
&lt;h2&gt;11. Misconceptions, Questions, and the One Truth&lt;/h2&gt;
&lt;p&gt;Almost every misconception in this space is a shortcut past one of the two verbs. &quot;Post-quantum cryptography is the hard part&quot; skips the SEE half -- the new algorithms are finished and shipping [@fips203] [@pyca-changelog] [@ms-pqc-windows]; discovery is the bottleneck. &quot;CBOM is a separate schema from CycloneDX or the SBOM&quot; misreads the substrate -- it is the v1.6 extension of the same document, and can live in the same file [@owasp-cdx16].&lt;/p&gt;
&lt;p&gt;&quot;SP 1800-38 is a finalized NIST standard&quot; over-reads a preliminary draft [@sp1800-38-guide]. &quot;Executive Order 14412 binds everyone&quot; over-reads its scope -- federal agencies and covered contractors are mandated, critical infrastructure is encouraged, and EO 14412 is not EO 14413 [@eo14412]. &quot;We can just scan the network&quot; trusts one surface for the whole estate. And &quot;a spreadsheet of our certificates is a cryptographic inventory&quot; mistakes a stale, single-surface document for a machine-actionable, dependency-aware graph. Each error is a verb half-done.&lt;/p&gt;


No. FIPS 203, 204, and 205 were standardized in August 2024 [@fips203], and ML-KEM is now a `pip install` away and built into Windows [@pyca-changelog] [@ms-pqc-windows]. The binding constraint is discovering where the quantum-vulnerable algorithms already live across your estate. You cannot rotate what you cannot see.


No. The Cryptography Bill of Materials is an extension of the same CycloneDX BOM document, introduced in v1.6 in April 2024 [@owasp-cdx16]. A CBOM can live in the same file as your SBOM, produced and consumed by the same tools [@ibm-cbom].


No. It is a preliminary, initial public draft NCCoE practice guide [@sp1800-38-guide]. Use it for its discovery reference architecture, which is genuinely useful, but state its draft status rather than citing it as a finalized standard.


Only if you are a federal agency or a covered federal contractor; critical infrastructure operators are encouraged, not mandated [@eo14412]. Note also that EO 14412 (&quot;Securing the Nation Against Advanced Cryptographic Attacks&quot;) is not EO 14413, a separate order on quantum innovation [@eo14412].


No. Passive and active network discovery see only cryptography that transits an observed link. They miss data at rest, embedded and operational-technology devices, internal-only applications, and SaaS you cannot reach. A network scan is one surface, not an inventory.


Not a maintainable one. It is stale the moment it is written, it is not machine-actionable, it cannot be prioritized as a graph, and a certificate list sees only the public-key infrastructure surface. A CycloneDX CBOM is the machine-actionable substitute [@ibm-cbom].


No, and not because the tools are immature. Complete automated cryptographic discovery is undecidable in general: the operative question -- whether a program *uses* a primitive internally -- reduces to the halting problem, and Gröbert, Willems, and Holz (RAID 2011) show no detector defeats arbitrary obfuscation. So manual validation is a permanent complement, and the honest deliverable is bounded assurance [@grobert-raid2011] [@nextgov-cisa].

&lt;p&gt;So here is the whole argument in one breath. Post-quantum migration is two verbs, not one. You must be able to ROTATE your cryptography, and you must be able to SEE where it all lives. The replacement algorithms are finished and shipping -- FIPS 203, 204, and 205 since August 2024 [@fips203], a &lt;code&gt;pip install&lt;/code&gt; away and built into Windows [@pyca-changelog] [@ms-pqc-windows] -- yet the 2030 and 2031 deadlines are hard [@eo14412]. The field completed the ROTATE lineage decades before it closed the SEE lineage: rigidity gave way to negotiation, negotiation hardened into RFC 7696, and RFC 7696 was restated as national risk-management guidance in NIST CSWP 39 [@rfc7696] [@cswp39] -- while the inventory half sat unsolved through the spreadsheet era until a 2022 mandate forced it open, automated discovery gave it scale, and CBOM finally gave it a data model [@omb-m2302] [@ibm-cbom]. CBOM is where the two verbs meet: cryptography modeled as a first-class, machine-readable, dependency-aware asset, now named in federal law [@eo14412].&lt;/p&gt;
&lt;p&gt;And the two ceilings keep the claim honest. Undecidability caps what you can see; irreversibility caps what you can rotate [@grobert-raid2011] [@rfc7696]. So the mature goal is never a bare 100 percent. It is bounded assurance for the seeing, and structural honesty about the un-rotatable. The algorithms, it turns out, were the easy part.&lt;/p&gt;

The algorithms were the easy part. You cannot rotate what you cannot see.
&lt;p&gt;&amp;lt;StudyGuide slug=&quot;you-cannot-rotate-what-you-cannot-see&quot; keyTerms={[
  { term: &quot;Crypto-agility&quot;, definition: &quot;The design-time ability to change cryptographic algorithms without re-architecting the systems that depend on them (RFC 7696).&quot; },
  { term: &quot;HNDL&quot;, definition: &quot;Harvest-now-decrypt-later: recording ciphertext today to decrypt once a quantum computer exists; a confidentiality threat, not a signature threat.&quot; },
  { term: &quot;CRQC&quot;, definition: &quot;A cryptographically relevant quantum computer, large enough to run Shor&apos;s algorithm against deployed RSA and elliptic-curve keys.&quot; },
  { term: &quot;SBOM&quot;, definition: &quot;A machine-readable inventory of software components and their dependencies.&quot; },
  { term: &quot;CBOM&quot;, definition: &quot;A Cryptography Bill of Materials: a CycloneDX extension modeling crypto-assets and their dependencies.&quot; },
  { term: &quot;implements vs uses&quot;, definition: &quot;CBOM edges: a library implements an algorithm, an application uses it; together they form a queryable graph.&quot; },
  { term: &quot;MTI algorithm&quot;, definition: &quot;Mandatory-to-implement algorithms kept in a companion doc so the required set can change without re-issuing the base protocol.&quot; },
  { term: &quot;ACDI&quot;, definition: &quot;Automated Cryptography Discovery and Inventory: CISA&apos;s term for tools that auto-enumerate quantum-vulnerable cryptography.&quot; },
  { term: &quot;OID&quot;, definition: &quot;Object identifier: a globally unique dotted-decimal algorithm name (SHA-256 is 2.16.840.1.101.3.4.2.1); the machine-mergeable identity a scanner resolves a finding to.&quot; },
  { term: &quot;Detection mechanism&quot;, definition: &quot;How discovery works: static analysis lifts a recognized API call to an OID; binary analysis matches S-box and round constants or measures runtime entropy and avalanche.&quot; },
  { term: &quot;Mosca&apos;s inequality&quot;, definition: &quot;Migrate now when data shelf-life plus migration time exceeds the time to a quantum computer.&quot; },
  { term: &quot;Undecidability ceiling&quot;, definition: &quot;Complete automated discovery is undecidable: whether a program uses a primitive internally reduces to the halting problem, and whether it computes one is undecidable by Rice&apos;s theorem.&quot; },
  { term: &quot;Irreversibility ceiling&quot;, definition: &quot;Long-lived signatures, trust anchors, and firmware cannot be rotated after the fact, capping agility independently of visibility.&quot; }
]} questions={[
  { q: &quot;Why are Executive Order 14412&apos;s key-establishment and signature deadlines a year apart?&quot;, a: &quot;Harvest-now-decrypt-later threatens confidentiality and key establishment now (2030), while signatures cannot be forged retroactively (2031).&quot; },
  { q: &quot;Why is a scan finding of &apos;AES&apos; not actionable, while &apos;AES-128-GCM at file X line 51&apos; is?&quot;, a: &quot;CBOM&apos;s family-versus-variant property: the variant and its location are what let you decide and act; the family alone cannot be prioritized.&quot; },
  { q: &quot;Why must automated discovery always be paired with manual validation?&quot;, a: &quot;Because complete automated discovery is undecidable in general, so any tool&apos;s coverage is bounded below 100 percent.&quot; },
  { q: &quot;What single operational habit best characterizes a mature crypto-inventory program?&quot;, a: &quot;Run a mix of discovery surfaces, roll them up into one CBOM, and validate the residual by hand.&quot; }
]} /&amp;gt;&lt;/p&gt;
</content:encoded><category>post-quantum-cryptography</category><category>crypto-agility</category><category>cbom</category><category>cryptographic-inventory</category><category>cyclonedx</category><category>sbom</category><category>crypto-migration</category><category>pqc</category><author>noreply@paragmali.com (Parag Mali)</author></item><item><title>The Thirty-Year Migration Ships in a pip install: How Post-Quantum Cryptography Crossed from Standard to Shipping Code</title><link>https://paragmali.com/blog/the-thirty-year-migration-ships-in-a-pip-install-how-post-qu/</link><guid isPermaLink="true">https://paragmali.com/blog/the-thirty-year-migration-ships-in-a-pip-install-how-post-qu/</guid><description>Post-quantum cryptography spent thirty years reaching a pip install. ML-KEM and ML-DSA shipped in pyca/cryptography v48 weeks ahead of the federal deadline.</description><pubDate>Tue, 30 Jun 2026 00:00:00 GMT</pubDate><content:encoded>
Post-quantum cryptography spent thirty years crossing from theory (Shor, 1994) to lattice math (Learning With Errors, 2005) to NIST standards (FIPS 203 and 204, 2024) -- and in 2026 it finally reached shipping code. On May 4, 2026, `pyca/cryptography` v48.0.0 put ML-KEM and ML-DSA into the default `pip` wheels, roughly seven weeks *before* Executive Order 14412 set the federal deadlines. But shipping the primitive is necessary, not sufficient: ML-KEM and ML-DSA are one to two orders of magnitude larger than the X25519 and Ed25519 they replace, and a key-encapsulation mechanism is not a drop-in for Diffie-Hellman. The remaining work -- integrating these into TLS, SSH, X.509, and package signing -- is the real last mile, because a primitive is not a protocol.
&lt;h2&gt;1. The Last Mile Is a &lt;code&gt;pip install&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;On May 4, 2026, the migration Peter Shor set in motion thirty-two years earlier quietly crossed its last mile -- not in a standards body, not at a White House signing, but in a routine &lt;code&gt;pip install&lt;/code&gt;. That day, &lt;code&gt;pyca/cryptography&lt;/code&gt; v48.0.0 added ML-KEM and ML-DSA to the default wheels that sit beneath Ansible, Certbot, and a package downloaded more than a billion times a month [@pyca-changelog] [@tob-2026]. Seven weeks &lt;em&gt;later&lt;/em&gt;, an executive order would set the federal deadlines for exactly this migration [@eo14412] -- but the code had already arrived.&lt;/p&gt;
&lt;p&gt;That ordering is the whole story, and it is the opposite of the one most people tell. The usual narrative treats the 2024 NIST standards or the 2026 executive order as the moment post-quantum cryptography &quot;became real.&quot; The dated record says otherwise: the primitive shipped first, in a version-bump nobody outside a handful of maintainers noticed.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key idea:&lt;/strong&gt; The pip install beat the policy. &lt;code&gt;pyca/cryptography&lt;/code&gt; v48.0.0 shipped ML-KEM and ML-DSA on May 4, 2026; Executive Order 14412 set the federal deadlines on June 22, 2026 -- forty-nine days later. The shipping code was already in a billion-download-a-month wheel before the mandate existed [@pyca-changelog] [@eo14412].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Trail of Bits, which wrote much of the code that made this possible, put the milestone plainly.&lt;/p&gt;

Post-quantum cryptography is now one `pip-install` away. -- Trail of Bits, on the arrival of ML-KEM and ML-DSA in `pyca/cryptography` [@tob-2026]
&lt;p&gt;This is a strange kind of anticlimax. A threat that dooms RSA, Diffie-Hellman, and elliptic-curve cryptography was described in 1994. It took a decade to find math that plausibly resists it, another decade for that math to become efficient enough to deploy, a six-year public competition to pick winners, and a formal standardization in 2024. And then the thing that actually put quantum-resistant cryptography in front of most working programmers was a distribution change: the same primitives, previously reachable only in specialist builds, landing in the wheel everyone already installs.&lt;/p&gt;

timeline
    title From a quantum threat to shipping code
    1994 : Shor&apos;s algorithm breaks RSA, DH, and ECC in theory
    1996 : Ajtai proves worst-case lattice hardness
    2005 : Regev defines Learning With Errors
    2012 : Module-LWE yields kilobyte-scale keys
    2016 : NIST opens its post-quantum competition
    2022 : NIST selects Kyber, Dilithium, Falcon, and SPHINCS+
    2024 : FIPS 203, 204, and 205 finalized on August 13
    May 2026 : pyca cryptography v48 ships ML-KEM and ML-DSA
    Jun 2026 : Executive Order 14412 sets the federal deadlines
&lt;p&gt;There is a catch, and it is the reason this article exists. Shipping the primitive is the easy part. ML-KEM and ML-DSA are not smaller, faster, tidier versions of the algorithms they replace; they are dramatically larger, they have a different &lt;em&gt;shape&lt;/em&gt;, and they violate assumptions that thousands of protocols and buffers quietly encoded around 32-byte keys and 64-byte signatures. A standardized, &lt;code&gt;pip&lt;/code&gt;-installable primitive is a genuine milestone. It is also not a working TLS handshake, a signed X.509 certificate, or a package-signing scheme. In a phrase this article will earn: a primitive is not a protocol.&lt;/p&gt;
&lt;p&gt;So here is the question. If the primitive is a &lt;code&gt;pip install&lt;/code&gt; away, why is the migration still a thirty-year project -- and how did the code beat the executive order?&lt;/p&gt;
&lt;h2&gt;2. The Threat That Started a Thirty-Year Clock&lt;/h2&gt;
&lt;p&gt;In 1994, Peter Shor showed that a sufficiently large quantum computer could factor integers and compute discrete logarithms in polynomial time [@shor1994]. That one result quietly condemned almost every public-key system in deployment. RSA rests on the hardness of factoring; Diffie-Hellman and elliptic-curve cryptography rest on discrete logarithms. Shor&apos;s algorithm breaks all three at once. It is not a faster attack that a bigger key can outrun -- it is a &lt;em&gt;correctness&lt;/em&gt; failure of the assumption those systems are built on.Shor&apos;s 1994 paper is cited under two titles: the FOCS conference version, &quot;Algorithms for Quantum Computation: Discrete Logarithms and Factoring,&quot; and the expanded arXiv and SIAM version, &quot;Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer&quot; [@shor1994].&lt;/p&gt;

Classical cryptographic algorithms -- ones that run on ordinary computers -- designed to remain secure even against an adversary with a large-scale quantum computer. PQC is not quantum cryptography: it uses no quantum hardware. It replaces the *hard problems* (factoring, discrete log) that quantum computers solve with problems (such as finding short vectors in a lattice) that they are not known to solve efficiently.

A 1994 quantum algorithm that factors integers and solves the discrete-logarithm problem in polynomial time. Its existence means that RSA, Diffie-Hellman, and elliptic-curve cryptography are all breakable by a large enough quantum computer, which is the entire reason the post-quantum migration exists [@shor1994].
&lt;h3&gt;Why symmetric cryptography survives&lt;/h3&gt;
&lt;p&gt;The quantum threat is asymmetric in an important way: it targets public-key cryptography, not the symmetric ciphers and hashes underneath it. The relevant quantum tool for symmetric keys is Grover&apos;s algorithm, which gives only a quadratic speedup on a brute-force search [@grover1996]. The folk summary is that Grover halves the security level, turning a 128-bit key into 64 bits.That halving is a naive query-count bound, not a real cost. A depth-limited quantum search is far more expensive: NIST&apos;s own evaluation criteria peg the effective quantum cost of breaking AES-128 near $2^{170}/\text{MAXDEPTH}$ rather than $2^{64}$ [@nist-cfp-eval], and Grassl and colleagues give the concrete Grover-on-AES resource estimates behind that figure [@grassl-2016]. Because Grover parallelizes only as the square root of the number of machines, serial depth dominates [@zalka-1999]. Even AES-128 keeps a wide margin; moving to AES-256 is a precaution, not a rescue. The practical upshot is clean: symmetric keys need at most a modest bump, so the migration is overwhelmingly a public-key story [@nist-cfp-eval] [@grassl-2016].&lt;/p&gt;
&lt;h3&gt;Why the migration cannot wait for the hardware&lt;/h3&gt;
&lt;p&gt;Here is the part that surprises people. You do not need a working quantum computer today for the threat to be operational today. An adversary can record encrypted traffic now and simply store it, then decrypt it years later once a cryptographically relevant quantum computer exists. Anything that must stay confidential past the arrival of that machine is already exposed.&lt;/p&gt;

An attack strategy in which an adversary captures and stores encrypted data today, betting on decrypting it in the future once quantum computers can break the key exchange that protected it. HNDL makes the quantum threat a *present-day* problem for any data with a long confidentiality lifetime, even though the quantum computer does not yet exist.
&lt;p&gt;Thirty-two years after Shor, Executive Order 14412 opens by restating exactly this rationale as national-security fact [@eo14412].&lt;/p&gt;

Ongoing cyber activity against our Nation also presents the risk of adversaries collecting United States information now, and decrypting it later once large-scale quantum computers are operational. -- Executive Order 14412 [@eo14412]

Because HNDL is the operative threat, the near-term reason to adopt post-quantum key establishment is not that a quantum computer is imminent -- it is that *today&apos;s* confidential traffic has a shelf life that outlasts the hardware timeline. Trail of Bits made the point sharply in a 2024 essay arguing that quantum resistance is not even the main benefit of post-quantum cryptography: the discipline of a clean migration and modern, agile primitives pays off regardless of when the machine arrives [@tob-2024] [@eo14412].
&lt;p&gt;The field even got its name in this period. The PQCrypto workshop series began gathering researchers around the problem in 2006, and the 2009 Springer volume &lt;em&gt;Post-Quantum Cryptography&lt;/em&gt; framed the multi-decade replacement thesis that the community has been executing ever since [@pqcrypto-workshop] [@pqc-book-2009].The coinage of the phrase &quot;post-quantum cryptography&quot; is usually attributed to Daniel J. Bernstein around 2003 to 2006, but that attribution is folk knowledge; the firm anchors are the 2006 workshop and the 2009 book [@pqcrypto-workshop] [@pqc-book-2009].&lt;/p&gt;
&lt;p&gt;If factoring and discrete log are dead in the quantum model, the obvious next question is what we build on instead. Several candidate hard problems were on the table. Only one of them turned into the workhorse behind the algorithms that just shipped in your &lt;code&gt;pip&lt;/code&gt; cache -- and understanding why the others lost is the fastest way to understand what makes the winner trustworthy.&lt;/p&gt;
&lt;h2&gt;3. The Math That Survives Quantum&lt;/h2&gt;
&lt;p&gt;After Shor, cryptographers had a menu of hard problems that quantum computers were not known to crack: hash functions, error-correcting codes, systems of multivariate quadratic equations, isogenies between elliptic curves, and lattices. Four of the five had a disqualifying flaw for a general-purpose default. One did not.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hash-based signatures&lt;/strong&gt; are the most conservative option on the menu, because their only assumption is that a hash function behaves like a hash function. Merkle proposed the idea in 1979 [@rfc8391], and it survives today as SLH-DSA. But hash-based schemes sign; they cannot establish a key, so they can never be the whole answer. The early stateful forms carry a vicious footgun -- reuse a one-time key by losing track of internal state and you leak the private key [@sp800-208] -- and the stateless successor, SPHINCS+, buys safety with large, slow signatures [@sphincs-plus] [@tob-2026].&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Code-based encryption&lt;/strong&gt; has an even longer unbroken record. McEliece&apos;s 1978 cryptosystem hides a structured error-correcting code as a random-looking matrix; half a century and many attack papers later, including quantum ones, its security has held [@classic-mceliece]. Its ciphertexts are tiny. The problem is the public key: Classic McEliece keys run from roughly 261 KB to more than 1 MB [@classic-mceliece]. That is fine for a niche, fatal for a default that has to fit inside a TLS handshake.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Multivariate&lt;/strong&gt; and &lt;strong&gt;isogeny&lt;/strong&gt; schemes both looked promising and both broke during the standardization era -- a story worth its own section (Section 4).&lt;/p&gt;
&lt;p&gt;That leaves &lt;strong&gt;lattices&lt;/strong&gt;, and the reason they won is a two-step story of beauty followed by engineering.&lt;/p&gt;
&lt;h3&gt;Step one: beauty (worst-case hardness)&lt;/h3&gt;
&lt;p&gt;In 1996, Miklos Ajtai proved something remarkable: you can build cryptographic instances whose average-case hardness is guaranteed by the worst-case hardness of a lattice problem [@ajtai1996]. In most of cryptography you hope your random instance is hard; Ajtai showed a family where a random instance is provably as hard as the hardest instance in the class. In 2005, Oded Regev turned this into a usable assumption -- Learning With Errors -- complete with a quantum worst-case-to-average-case reduction and a working public-key encryption scheme [@regev-lwe].&lt;/p&gt;

The problem of recovering a secret vector $s$ given many noisy linear equations $b = As + e$, where $A$ is public and random and $e$ is small random noise. Without the noise this is trivial linear algebra; with it, recovering $s$ is believed hard even for quantum computers. LWE is the assumption underneath ML-KEM and ML-DSA [@regev-lwe].
&lt;p&gt;LWE is beautiful, and in its raw form it is unshippable. A plain-LWE public key is essentially a big random matrix, so its size grows like $O(n^2)$ in the security parameter -- megabytes, not kilobytes. Beauty was not enough.&lt;/p&gt;
&lt;h3&gt;Step two: engineering (algebraic structure)&lt;/h3&gt;
&lt;p&gt;The fix was to give LWE algebraic structure. Ring-LWE (2010) works over a ring of polynomials instead of a flat vector space, collapsing the quadratic overhead and letting the Number-Theoretic Transform multiply polynomials quickly; its own authors describe removing LWE&apos;s &quot;inherent quadratic overhead&quot; [@ring-lwe]. Module-LWE (2012) generalized this to short vectors of ring elements, giving designers a tunable dial between raw LWE and full Ring-LWE [@module-lwe]. The size effect is the whole game: from $O(n^2)$ down to $O(n)$, from megabytes to kilobytes. That single step is what turned lattice cryptography from a theorist&apos;s toy into the deployable engine behind ML-KEM and ML-DSA.&lt;/p&gt;

A middle-ground version of LWE defined over modules -- short vectors whose entries are elements of a polynomial ring. It sits between unstructured LWE (large, most conservative) and Ring-LWE (compact, most structured), letting a scheme trade size against how much algebraic structure it assumes. Module-LWE is the specific hard problem under CRYSTALS-Kyber and CRYSTALS-Dilithium, standardized as ML-KEM and ML-DSA [@module-lwe].

flowchart TD
    A[&quot;Classical public key (RSA, DH, ECC)&quot;] --&amp;gt;|Shor 1994 breaks all three| B[&quot;Need a quantum-hard problem&quot;]
    B --&amp;gt; C[&quot;Hash-based (SLH-DSA): conservative backstop, large and slow&quot;]
    B --&amp;gt; D[&quot;Code-based (McEliece): unbroken, but keys near 1 MB&quot;]
    B --&amp;gt; E[&quot;Multivariate (Rainbow): broken in a weekend, 2022&quot;]
    B --&amp;gt; F[&quot;Isogeny (SIKE): broken in about ten minutes, 2022&quot;]
    B --&amp;gt; G[&quot;Lattice (LWE): worst-case hardness, but O(n^2) keys&quot;]
    G --&amp;gt; H[&quot;Ring-LWE and Module-LWE: O(n) kilobyte keys&quot;]
    H --&amp;gt; I[&quot;ML-KEM and ML-DSA: the deployed workhorse&quot;]
&lt;p&gt;There is an honest catch in step two, and it matters for the rest of this article. Adding structure is what buys the kilobyte keys, but structure is also extra assumption.Is the algebraic structure &quot;free&quot;? The worst-case reduction for Ring-LWE and Module-LWE runs to &lt;em&gt;ideal&lt;/em&gt; or &lt;em&gt;module&lt;/em&gt; lattices -- a smaller, more special class than general lattices [@peikert-2015]. No known attack cashes that extra structure in at the standardized parameters; the best attack remains generic lattice sieving at $2^{0.292\beta}$, the same cost as for unstructured LWE [@bdgl16]. Module-LWE deliberately dilutes the structure, as its own built-in hedge [@module-lwe]. But &quot;the structure is free&quot; is a conjecture, not a theorem -- which is exactly why the standardized portfolio keeps a hash-only backstop, SLH-DSA, that would survive even if that conjecture failed [@fips205]. The community&apos;s answer to that residual doubt is not to pretend it away; it is to keep a scheme from a completely different family in reserve. Hold that thought -- it is the reason the eventual standard is a portfolio, not a single winner.&lt;/p&gt;
&lt;p&gt;Kilobyte-scale lattice schemes existed by 2018 [@kyber] [@dilithium]. So why did it take a six-year global tournament to decide which ones to trust?&lt;/p&gt;
&lt;h2&gt;4. From a Problem to a Portfolio&lt;/h2&gt;
&lt;p&gt;NIST did not crown one algorithm. Starting in 2016, it ran an open, public, break-or-defend competition -- publish your candidate, publish your attacks, let years of adversarial scrutiny do the filtering [@nist-pqc-project]. Google had already run a taste of the future in 2016, wiring an experimental post-quantum key exchange called CECPQ1 into Chrome and its front ends to see what breaks at internet scale, then retiring it precisely because it was not yet standardized [@google-cecpq]. The lesson was clear: experiments are cheap, but a default needs a standard behind it.&lt;/p&gt;
&lt;p&gt;On July 5, 2022, NIST announced its first selections: CRYSTALS-Kyber for key establishment, and CRYSTALS-Dilithium, Falcon, and SPHINCS+ for signatures [@nist-2022]. Three of the four are lattice schemes; the fourth, SPHINCS+, is hash-based. NIST named Dilithium the primary signature, Falcon the option for applications that need smaller signatures, and SPHINCS+ the backup built on &quot;a different math approach&quot; [@nist-2022]. That portfolio is a deliberate hedge: a compact, versatile lattice family as the workhorse, plus a signature scheme whose security rests on nothing but hash functions.&lt;/p&gt;
&lt;h3&gt;The tournament produced casualties&lt;/h3&gt;
&lt;p&gt;The hedge was not paranoia. It was a lesson the competition taught in real time.&lt;/p&gt;
&lt;p&gt;The isogeny KEM SIKE was one of the most elegant candidates, with the smallest keys of anything in the field, and it advanced to the fourth round. Then, in 2022, Wouter Castryck and Thomas Decru broke it -- not with a quantum computer, but on a laptop.Castryck and Decru recovered the SIKE private key by exploiting the torsion-point images the protocol reveals, via Kani&apos;s reducibility criterion. Their Magma implementation &quot;breaks SIKEp434, which aims at security level 1, in about ten minutes on a single core&quot; [@sike-break]. A years-vetted, fourth-round candidate fell to one new mathematical idea. Around the same time, Ward Beullens broke the multivariate signature scheme Rainbow, a third-round finalist, recovering its secret key in an average of 53 hours -- one weekend -- on a standard laptop [@rainbow-break].&lt;/p&gt;

SIKE and Rainbow are the empirical argument for diversity. Both were serious, years-scrutinized candidates; both collapsed to a single new attack during standardization [@sike-break] [@rainbow-break]. If a finalist can fall that fast, betting the entire internet on one hard problem is reckless. That is why NIST standardized a small, deliberately diverse set and kept a hash-only backstop from a different family -- the same reasoning that keeps SLH-DSA in the portfolio even though ML-DSA is faster and smaller.
&lt;p&gt;Even NTRU, one of the oldest and most compact lattice schemes (Hoffstein, Pipher, and Silverman, 1996), did not make the cut. It was a finalist, but its security rested on a more heuristic argument than the CRYSTALS schemes&apos; cleaner reductions, and it carried a history of patent encumbrance that only lapsed in 2017 [@ntru]. NIST&apos;s rationale was multi-factor, but the outcome was telling: given two workable lattice families, the committee preferred the one with the tidier hardness story and no intellectual-property baggage.&lt;/p&gt;

flowchart LR
    subgraph LAT[&quot;Lattice family (selected)&quot;]
      L1[&quot;Ring-LWE and Module-LWE&quot;] --&amp;gt; L2[&quot;Kyber and Dilithium selected 2022&quot;]
    end
    subgraph HEDGE[&quot;Conservative hedge&quot;]
      H1[&quot;Hash-based SPHINCS+ selected as backstop&quot;]
    end
    subgraph DEAD[&quot;Broken during standardization&quot;]
      D1[&quot;Isogeny SIKE broken 2022&quot;]
      D2[&quot;Multivariate Rainbow broken 2022&quot;]
    end
    N[&quot;NTRU finalist, not selected&quot;] -.-&amp;gt; L2
&lt;p&gt;The following table condenses the generational story: which ideas advanced, which were demoted to a niche or a backstop, and which broke outright.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;Since&lt;/th&gt;
&lt;th&gt;Core idea&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;RSA / DH / ECC&lt;/td&gt;
&lt;td&gt;1976&lt;/td&gt;
&lt;td&gt;Factoring and discrete log&lt;/td&gt;
&lt;td&gt;Quantum-doomed (Shor) [@shor1994]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hash-based (Merkle to SLH-DSA)&lt;/td&gt;
&lt;td&gt;1979&lt;/td&gt;
&lt;td&gt;One-time keys over a hash tree&lt;/td&gt;
&lt;td&gt;Active backstop, signatures only [@sp800-208] [@sphincs-plus]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code-based (Classic McEliece)&lt;/td&gt;
&lt;td&gt;1978&lt;/td&gt;
&lt;td&gt;Hide a Goppa code as a random matrix&lt;/td&gt;
&lt;td&gt;Niche: unbroken but ~1 MB keys [@classic-mceliece]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lattice theory (Ajtai; Regev/LWE)&lt;/td&gt;
&lt;td&gt;1996 / 2005&lt;/td&gt;
&lt;td&gt;Worst-case-hard lattices; LWE&lt;/td&gt;
&lt;td&gt;Foundation, but O(n^2) raw sizes [@ajtai1996] [@regev-lwe]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NTRU&lt;/td&gt;
&lt;td&gt;1996&lt;/td&gt;
&lt;td&gt;Ring-based lattice encryption&lt;/td&gt;
&lt;td&gt;Superseded finalist, not selected [@ntru]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ring/Module-LWE to ML-KEM/ML-DSA&lt;/td&gt;
&lt;td&gt;2012 / 2024&lt;/td&gt;
&lt;td&gt;Structured lattices, NTT&lt;/td&gt;
&lt;td&gt;Standardized workhorse [@module-lwe] [@fips204]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Isogeny SIDH/SIKE&lt;/td&gt;
&lt;td&gt;2011&lt;/td&gt;
&lt;td&gt;Supersingular isogeny walks&lt;/td&gt;
&lt;td&gt;Broken in about ten minutes, 2022 [@sike-break]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multivariate Rainbow&lt;/td&gt;
&lt;td&gt;2005&lt;/td&gt;
&lt;td&gt;Multivariate quadratic systems&lt;/td&gt;
&lt;td&gt;Broken in a weekend, 2022 [@rainbow-break]&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Falcon / FN-DSA&lt;/td&gt;
&lt;td&gt;2022&lt;/td&gt;
&lt;td&gt;NTRU lattice with Gaussian sampling&lt;/td&gt;
&lt;td&gt;Standard pending as FIPS 206 [@nist-2022]&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;A short list of winning algorithms is still just math on paper. What turns &quot;we chose Kyber&quot; into something a whole software supply chain can build on?&lt;/p&gt;
&lt;h2&gt;5. Why the Rename Mattered&lt;/h2&gt;
&lt;p&gt;On August 13, 2024, NIST finalized three standards. Kyber became ML-KEM (FIPS 203), Dilithium became ML-DSA (FIPS 204), and SPHINCS+ became SLH-DSA (FIPS 205) [@fips203] [@fips204] [@fips205]. It is tempting to read this as bureaucratic relabeling. It is the opposite: the rename is the moment the algorithms stopped being research artifacts and became a contract.&lt;/p&gt;

A Federal Information Processing Standard: a document published by NIST that fixes exact parameter sets, byte-level encodings, and algorithm behavior so that independent implementations interoperate and can be validated against a common reference. A FIPS standard is a specification -- a shared, machine-checkable contract -- not a piece of software [@fips203].
&lt;p&gt;The value of a FIPS document is that it pins down the boring, load-bearing details. A research paper can leave an encoding ambiguous or offer three parameter options; a standard says &lt;em&gt;these&lt;/em&gt; parameter sets, &lt;em&gt;these&lt;/em&gt; byte counts, &lt;em&gt;this&lt;/em&gt; wire encoding, and nothing else. That is what lets a hardware team, a TLS library, and a Python wheel independently implement ML-KEM and have their outputs match to the byte.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; A common misconception is that the FIPS PDF ships the known-answer test vectors. It does not. The standard fixes the parameter sets and byte counts, but the validation vectors -- the inputs and expected outputs implementers check against -- are published and maintained through NIST&apos;s ACVP and CAVP validation program, in the &lt;code&gt;usnistgov/ACVP-Server&lt;/code&gt; repository (folders such as &lt;code&gt;ML-KEM-keyGen-FIPS203&lt;/code&gt; and &lt;code&gt;ML-DSA-sigGen-FIPS204&lt;/code&gt;), not inside the standard&apos;s text [@acvp-server]. The standard fixes the bytes; the validation program publishes the vectors.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The three standards divide the work cleanly.&lt;/p&gt;

The Module-Lattice-Based Key-Encapsulation Mechanism: the standardized key-establishment primitive, derived from CRYSTALS-Kyber, with security tied to Module-LWE. It comes in three parameter sets -- ML-KEM-512, ML-KEM-768, and ML-KEM-1024 -- in increasing order of security strength [@fips203].

The Module-Lattice-Based Digital Signature Algorithm: the standardized general-purpose signature, derived from CRYSTALS-Dilithium. It is a Fiat-Shamir-with-aborts lattice signature that samples from the uniform distribution -- a design the Dilithium team chose specifically because &quot;Gaussian sampling is hard to implement securely and efficiently&quot; [@fips204] [@dilithium].
&lt;p&gt;SLH-DSA (FIPS 205) rounds out the set as the hash-only backstop -- slower and larger, but resting on assumptions no lattice attack can touch [@fips205]. Key establishment, everyday signatures, and a conservative signature hedge: three jobs, three standards, one portfolio.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key idea:&lt;/strong&gt; Standardization, not the algorithm, is what lets a whole software community move at once. The algorithm was ready in 2018; what a whole community of libraries, protocols, and hardware needs is a fixed set of byte counts and validated test vectors they can all target independently. FIPS 203 and 204 supplied exactly that -- and that is the &quot;standard&quot; pole of the crossing this article traces [@fips203] [@fips204] [@acvp-server].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;But a standard is still only a specification. It does not compile, it does not ship in a wheel, and it does not integrate itself into a single protocol. FIPS 204 tells you that an ML-DSA-65 signature is exactly 3,309 bytes; it does not tell you what happens to the fifty protocols and hardware buffers that were quietly built around 64-byte signatures.&lt;/p&gt;
&lt;p&gt;The standard fixes the byte counts. What happens when those byte counts are fifty times bigger than the ones every protocol was quietly built around?&lt;/p&gt;
&lt;h2&gt;6. Why the Numbers Break the Protocols&lt;/h2&gt;
&lt;p&gt;An Ed25519 signature is 64 bytes. Its post-quantum replacement, ML-DSA-65, is 3,309 bytes [@tob-2026] [@fips204]. Now multiply that by every place a protocol, a certificate format, a hardware buffer, or a database column quietly assumed 64.&lt;/p&gt;
&lt;p&gt;This is the pivot of the whole article. The primitive is real, standardized, and about to be a &lt;code&gt;pip install&lt;/code&gt; away -- and it does not fit where the old one did.&lt;/p&gt;
&lt;h3&gt;The size table&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Classical&lt;/th&gt;
&lt;th&gt;Post-quantum&lt;/th&gt;
&lt;th&gt;Public key&lt;/th&gt;
&lt;th&gt;Wire output&lt;/th&gt;
&lt;th&gt;Blow-up&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Signature&lt;/td&gt;
&lt;td&gt;Ed25519&lt;/td&gt;
&lt;td&gt;ML-DSA-65&lt;/td&gt;
&lt;td&gt;32 B to 1,952 B&lt;/td&gt;
&lt;td&gt;64 B sig to 3,309 B sig&lt;/td&gt;
&lt;td&gt;~61x key, ~52x sig&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Key exchange&lt;/td&gt;
&lt;td&gt;X25519&lt;/td&gt;
&lt;td&gt;ML-KEM-768&lt;/td&gt;
&lt;td&gt;32 B to 1,184 B&lt;/td&gt;
&lt;td&gt;32 B shared to 1,088 B ciphertext&lt;/td&gt;
&lt;td&gt;~37x key, ~34x wire&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Those multipliers -- roughly 34x to 61x -- come straight from the Trail of Bits size tables and FIPS 204&apos;s Appendix B [@tob-2026] [@fips204].Private keys are not the problem. Both ML-DSA-65 and ML-KEM-768 can store their private keys compactly as 32-byte and 64-byte seeds, respectively [@tob-2026]. The pressure is entirely on the values that travel on the wire: public keys, signatures, and ciphertexts. Those are exactly the objects protocols frame with fixed-width length fields. The size story alone would be a migration headache. But size is only half of what breaks. The other half is shape.&lt;/p&gt;
&lt;h3&gt;A KEM is not a Diffie-Hellman&lt;/h3&gt;
&lt;p&gt;The instinct is to treat ML-KEM as &quot;X25519, but bigger.&quot; It is not. X25519 is a Diffie-Hellman exchange: both parties publish a share, and both combine their own secret with the other&apos;s share to arrive at the same value. ML-KEM is a &lt;em&gt;key-encapsulation mechanism&lt;/em&gt;, which has a different message shape entirely.&lt;/p&gt;

A key-establishment primitive with three operations. The receiver generates a keypair and publishes the public (encapsulation) key. A sender runs encapsulate on that public key, producing a fresh shared secret together with a ciphertext; the sender keeps the secret and transmits the ciphertext. The receiver runs decapsulate on the ciphertext to recover the same shared secret. Unlike Diffie-Hellman, only one side draws the secret, and there is no &quot;combine my share with yours&quot; step [@fips203].
&lt;p&gt;Trail of Bits states the distinction directly: in a KEM &quot;one party encapsulates a fresh shared secret to the receiver&apos;s public key, and the receiver decapsulates it,&quot; which is &quot;fundamentally different from Diffie-Hellman&quot; [@tob-2026]. The consequence for real systems is severe. A protocol that assumed the symmetric, two-share choreography of Diffie-Hellman cannot simply swap in ML-KEM; the message flow itself has to be redesigned, not merely re-parameterized.&lt;/p&gt;

sequenceDiagram
    participant A as Alice
    participant B as Bob
    Note over A,B: Diffie-Hellman, both sides contribute a share
    A-&amp;gt;&amp;gt;B: public share A
    B-&amp;gt;&amp;gt;A: public share B
    Note over A,B: each side combines to reach the same secret
    Note over A,B: ML-KEM, only one side encapsulates
    B-&amp;gt;&amp;gt;A: publishes public key
    A-&amp;gt;&amp;gt;B: ciphertext from encapsulate
    Note over A,B: Bob runs decapsulate to recover the same secret
&lt;h3&gt;The 4,096-byte wall&lt;/h3&gt;
&lt;p&gt;The abstract worry becomes concrete at a specific number. Move up one ML-DSA security level, from ML-DSA-65 to ML-DSA-87, and the signature grows from 3,309 bytes to 4,627 bytes [@fips204]. That crosses a boundary that a lot of hardware was built around.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; A &lt;a href=&quot;https://paragmali.com/blog/the-tpm-in-windows-one-primitive-twenty-five-years-and-the-c/&quot; rel=&quot;noopener&quot;&gt;Trusted Platform Module&lt;/a&gt; speaks a command protocol with a maximum command size that is commonly 4,096 bytes, and the protocol has no chunking -- a command either fits or it cannot be sent. ML-DSA-87&apos;s 4,627-byte signature does not fit; ML-DSA-65&apos;s 3,309-byte signature does. The catch is that 4,096 is a common value, not a universal constant: TPM 2.0 buffer sizes are implementation-defined and queried at runtime, and the TCG reference implementation is tighter still -- &lt;code&gt;MAX_COMMAND_SIZE&lt;/code&gt; is defined as &lt;code&gt;4096-0x80&lt;/code&gt;, or 3,968 bytes, with a 1,024-byte input buffer [@tpm2-spec] [@mstpm-ref]. Either way, one extra security level silently crosses a fixed hardware boundary that nobody sized for kilobyte signatures [@fips204].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You can check the arithmetic yourself. The snippet below computes the blow-up ratios and tests ML-DSA-87&apos;s signature against both a 4,096-byte budget and the tighter 3,968-byte reference budget.&lt;/p&gt;
&lt;p&gt;{`
// verified byte counts: FIPS 204 Appendix B and the Trail of Bits size tables
const ed25519 = { key: 32, sig: 64 };
const mldsa65 = { key: 1952, sig: 3309 };
const x25519  = 32;
const mlkem768 = { key: 1184, ct: 1088 };&lt;/p&gt;
&lt;p&gt;console.log(&quot;ML-DSA-65 signature is &quot; + (mldsa65.sig / ed25519.sig).toFixed(0) + &quot;x an Ed25519 signature&quot;);
console.log(&quot;ML-DSA-65 public key is &quot; + (mldsa65.key / ed25519.key).toFixed(0) + &quot;x an Ed25519 key&quot;);
console.log(&quot;ML-KEM-768 public key is &quot; + (mlkem768.key / x25519).toFixed(0) + &quot;x an X25519 key&quot;);&lt;/p&gt;
&lt;p&gt;// the 4,096-byte wall: does one signature fit one TPM command?
const COMMON_TPM = 4096;        // a common maximum command size
const TCG_REF    = 4096 - 0x80; // TCG reference MAX_COMMAND_SIZE = 3968
const mldsa87sig = 4627;        // ML-DSA-87 signature&lt;/p&gt;
&lt;p&gt;const fits = (sig, budget) =&amp;gt; (sig &amp;gt; budget ? &quot;OVERFLOWS&quot; : &quot;fits&quot;);
console.log(&quot;ML-DSA-87 (4627 B) vs 4096 B budget: &quot; + fits(mldsa87sig, COMMON_TPM));
console.log(&quot;ML-DSA-87 (4627 B) vs 3968 B budget: &quot; + fits(mldsa87sig, TCG_REF));
console.log(&quot;ML-DSA-65 (3309 B) vs 3968 B budget: &quot; + fits(3309, TCG_REF));
`}&lt;/p&gt;
&lt;p&gt;Trail of Bits generalizes the warning beyond TPMs: if you maintain a protocol or wire format that hardcodes Ed25519-sized signatures or X25519-sized public keys, &quot;the surrounding fields, length prefixes, and chunking assumptions need to grow with it&quot; [@tob-2026]. Length prefixes sized for a single byte of count, record framing that assumed a signature fit in one packet, database columns declared &lt;code&gt;CHAR(64)&lt;/code&gt; -- each is a small, quiet assumption that the standardized sizes break.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Key idea:&lt;/strong&gt; A primitive is not a protocol. Standardizing ML-KEM and ML-DSA -- even shipping them in a default wheel -- does not migrate a single handshake. The primitive is larger, differently shaped, and hostile to the fixed-width assumptions baked into TLS records, X.509 certificates, SSH packets, and hardware command buffers. Installing it is the easy part; making the protocols around it accept it is the migration [@tob-2026] [@fips204].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So the primitive is real, standardized, and about to be a &lt;code&gt;pip install&lt;/code&gt; away -- yet it silently breaks the protocols we would drop it into. Who actually shipped it, and how did they get it into more than a billion downloads a month?&lt;/p&gt;
&lt;h2&gt;7. The Crossing: How the Primitive Reached a Billion Downloads&lt;/h2&gt;
&lt;p&gt;The milestone on May 4, 2026 was not a new algorithm. ML-KEM and ML-DSA had existed in specialist builds of &lt;code&gt;pyca/cryptography&lt;/code&gt; for over a year -- reachable only if you compiled the library against AWS-LC or BoringSSL. What changed in v48.0.0 was distribution: the primitives landed in the default wheel that everyone already installs.&lt;/p&gt;
&lt;p&gt;The changelog says it plainly. Version 48.0.0 added support for &lt;code&gt;mlkem&lt;/code&gt; and &lt;code&gt;mldsa&lt;/code&gt; &quot;when using OpenSSL 3.5.0 or later, in addition to the existing AWS-LC and BoringSSL support,&quot; and concludes: &quot;This means post-quantum algorithms are now available to users of our wheels&quot; [@pyca-changelog]. That last clause is the crossing. Not &quot;available if you rebuild against a special backend,&quot; but available to users of the ordinary wheels, from an ordinary &lt;code&gt;pip install&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;The evolution here is distribution, not mathematics&lt;/h3&gt;

flowchart TD
    S[&quot;FIPS 203 and 204 standard (2024)&quot;] --&amp;gt; B1[&quot;OpenSSL 3.5.0 (2025)&quot;]
    S --&amp;gt; B2[&quot;AWS-LC and BoringSSL (earlier)&quot;]
    B2 -.-&amp;gt;|specialist builds only, 2024 to early 2026| G[&quot;Backend-gated access&quot;]
    B1 --&amp;gt;|default build| W[&quot;pyca cryptography v48 wheel (May 2026)&quot;]
    G -.-&amp;gt; W
    W --&amp;gt; D[&quot;Ansible, Certbot, Airflow, paramiko&quot;]
    D --&amp;gt; P[&quot;The whole Python software supply chain&quot;]
&lt;p&gt;The gate that opened was a backend one. &lt;code&gt;pyca/cryptography&lt;/code&gt; delegates its heavy cryptography to a C library, and until recently only the non-default backends AWS-LC and BoringSSL exposed the post-quantum primitives. OpenSSL 3.5.0, released April 8, 2025, added support for ML-KEM, ML-DSA, and SLH-DSA to the mainstream backend [@openssl-35]. Once the default wheels could be built against an OpenSSL that carried the primitives, the last distribution barrier fell. The sequence is: standard, then backend-gated builds, then default wheels [@pyca-changelog] [@openssl-35].&lt;/p&gt;
&lt;p&gt;There is a security point hiding in that sequence. &lt;code&gt;pyca/cryptography&lt;/code&gt; does not reimplement ML-KEM or ML-DSA in Python; it delegates to the vetted C backend and exposes a thin, cross-tested binding [@tob-2026]. That is why the milestone is a packaging event, not a cryptographic one. It is also why the OpenSSL 3.5.0 floor is not an inconvenience but the whole mechanism: the primitive a developer calls is the same backend implementation that already ships in browsers and servers, reached through new Rust bindings rather than rewritten in a memory-unsafe hurry. Distribution, not reimplementation, is what crossed the last mile.&lt;/p&gt;
&lt;p&gt;Why does one Python library matter this much? Reach. &lt;code&gt;pyca/cryptography&lt;/code&gt; is the foundational cryptography library for the Python community, sitting underneath widely used tools including Ansible, Certbot, Apache Airflow, and paramiko [@tob-2026] [@deps-dev]. Because so much of the Python world depends on it, one release put quantum-resistant primitives within a single &lt;code&gt;pip install&lt;/code&gt; of an enormous body of software.Trail of Bits reports &lt;code&gt;pyca/cryptography&lt;/code&gt; as the eleventh most-downloaded package on PyPI, with about 1.2 billion downloads in the last month [@tob-2026] [@pypistats]. A change to a dependency that widely used is a change to the reachable capability of the entire community above it.&lt;/p&gt;
&lt;h3&gt;Who built it&lt;/h3&gt;
&lt;p&gt;The post-quantum work in &lt;code&gt;pyca/cryptography&lt;/code&gt; was a funded, credited effort, not a weekend patch. Trail of Bits, with support from the Sovereign Tech Agency, wrote the Rust bindings, the cross-binding API and tests, and the AWS-LC backend support; the library&apos;s maintainers, Paul Kehrer and Alex Gaynor, contributed other-backend work and review [@tob-2026] [@sovereign-tech].&lt;/p&gt;

This article deliberately owns the shipping-code and Python axis of the migration. The complementary platform-and-operating-system axis -- how Windows exposes post-quantum primitives through SymCrypt, CNG, Schannel, and the TPM -- is the subject of this blog&apos;s separate post, [*Post-Quantum Cryptography on Windows*](/blog/post-quantum-cryptography-on-windows-the-thirty-year-migrati/). Where that post asks which operating-system primitive ships in which release, this one asks what it means when the whole Python supply chain can `pip install` post-quantum crypto, and what still does not work.
&lt;h3&gt;What the API looks like&lt;/h3&gt;
&lt;p&gt;The signature API mirrors the existing asymmetric surface: generate a key, get its public key, sign, verify. The KEM API is where the shape difference from Section 6 becomes code -- encapsulate returns a &lt;code&gt;(shared_secret, ciphertext)&lt;/code&gt; pair, not a single shared value both sides derive.&lt;/p&gt;
&lt;p&gt;{`&lt;/p&gt;
Signatures (FIPS 204): mirrors the familiar sign / verify shape
&lt;p&gt;from cryptography.hazmat.primitives.asymmetric import mldsa
private_key = mldsa.MLDSA65PrivateKey.generate()
public_key  = private_key.public_key()
signature   = private_key.sign(b&quot;message&quot;)
public_key.verify(signature, b&quot;message&quot;)   # raises InvalidSignature on failure&lt;/p&gt;
Key establishment (FIPS 203): a KEM, not Diffie-Hellman
&lt;p&gt;from cryptography.hazmat.primitives.asymmetric import mlkem
private_key = mlkem.MLKEM768PrivateKey.generate()
public_key  = private_key.public_key()
shared_secret_sender, ciphertext = public_key.encapsulate()
shared_secret_receiver = private_key.decapsulate(ciphertext)
assert shared_secret_sender == shared_secret_receiver
`}&lt;/p&gt;
&lt;p&gt;Two caveats keep this honest. First, v48 ships ML-KEM and ML-DSA but not SLH-DSA; Trail of Bits notes only that they have &quot;started working on it&quot; [@tob-2026]. Second, the OpenSSL 3.5.0 requirement is real -- the primitives are exposed only when the wheel is backed by a version that carries them [@pyca-changelog]. The availability matrix makes the pattern visible: the primitive columns are nearly all &quot;Yes,&quot; while real protocol integration remains sparse.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Artifact&lt;/th&gt;
&lt;th align=&quot;center&quot;&gt;ML-KEM&lt;/th&gt;
&lt;th align=&quot;center&quot;&gt;ML-DSA&lt;/th&gt;
&lt;th align=&quot;center&quot;&gt;SLH-DSA&lt;/th&gt;
&lt;th align=&quot;center&quot;&gt;Hybrid KEX default&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Crypto backend&lt;/td&gt;
&lt;td&gt;OpenSSL 3.5.0 (2025-04-08)&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;X25519MLKEM768 (TLS)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Crypto backend&lt;/td&gt;
&lt;td&gt;AWS-LC / BoringSSL&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;no&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;n/a&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Python library&lt;/td&gt;
&lt;td&gt;pyca/cryptography v48.0.0 (2026-05-04)&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;no (WIP)&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;delegates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Python library&lt;/td&gt;
&lt;td&gt;pyca/cryptography v49.0.0 (2026-06-12)&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;Yes (plus X.509)&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;no&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;delegates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSH protocol&lt;/td&gt;
&lt;td&gt;OpenSSH 9.9 (2024-09-19)&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;hybrid KEX&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;no&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;no&lt;/td&gt;
&lt;td align=&quot;center&quot;&gt;mlkem768x25519-sha256&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Sources: OpenSSL 3.5.0 release notes [@openssl-35]; the pyca changelog [@pyca-changelog]; OpenSSH 9.9 notes [@openssh-99]; the Trail of Bits write-up [@tob-2026].&lt;/p&gt;
&lt;p&gt;The code shipped the primitive in May. The federal government set its deadlines in June. Which one was driving the other?&lt;/p&gt;
&lt;h2&gt;8. The Clock, and Why the Code Got There First&lt;/h2&gt;
&lt;p&gt;Seven weeks after the wheels shipped, the White House put a clock on the wall. Executive Order 14412, &quot;Securing the Nation Against Advanced Cryptographic Attacks,&quot; was signed on June 22, 2026 [@eo14412]. It sets hard federal deadlines: migrate key establishment to post-quantum cryptography by December 31, 2030; migrate digital signatures by December 31, 2031; stand up a NIST migration pilot by December 31, 2027; and have CISA issue cryptographic-bill-of-materials minimum-elements guidance within 270 days [@eo14412].&lt;/p&gt;

timeline
    title Two tracks, and the code point lands first
    section Code track
        OpenSSL 3.5.0 2025-04-08 : PQC in the mainstream backend
        pyca v48.0.0 2026-05-04 : ML-KEM and ML-DSA in default wheels
        pyca v49.0.0 2026-06-12 : X.509 support, current at EO signing
    section Policy track
        NSM-10 and CNSA 2.0 2022 : intent set, but no shipping code
        OMB M-23-02 2022 : agency inventory guidance
        EO 14412 2026-06-22 : deadlines 2027, 2030, 2031
&lt;p&gt;The policy intent is older than the code. The National Security Memorandum 10 (May 2022) [@nsm10], the NSA&apos;s CNSA 2.0 suite (September 2022) [@cnsa2], and OMB memorandum M-23-02 (November 2022) [@omb-m2302] had already told federal systems that a post-quantum migration was coming. What none of them could do was make the primitive installable. That is the asymmetry worth sitting with: the intent was set in 2022, but the shipping code arrived in 2026 -- and it arrived ahead of the deadline that finally gave the intent teeth.&lt;/p&gt;
&lt;h3&gt;The executive order&apos;s own definitions are asymmetric&lt;/h3&gt;
&lt;p&gt;One precise detail here is easy to get wrong, and getting it right sharpens the argument.&lt;/p&gt;
&lt;p&gt;The executive order does not define its two migration targets symmetrically.Section 2 defines &quot;key establishment&quot; with the same meaning it has in FIPS 203 -- which is ML-KEM, a post-quantum standard -- so the key-establishment mandate points straight at the standardized primitive. But it defines &quot;digital signature&quot; with the same meaning it has in FIPS 186-5, the &lt;em&gt;classical&lt;/em&gt; Digital Signature Standard covering RSA, ECDSA, and EdDSA; the post-quantum signature standard, FIPS 204 (ML-DSA), is not named in the definitions [@eo14412-fedreg] [@fips186-5] [@fips204]. The signature mandate is therefore operative, not definitional: Section 4(b) still requires migrating signatures to post-quantum cryptography by 2031, but it reaches that goal through the deadline text rather than by defining a signature as a post-quantum object. Key establishment is defined &lt;em&gt;into&lt;/em&gt; a post-quantum standard; signatures are mandated &lt;em&gt;toward&lt;/em&gt; post-quantum cryptography by a deadline while still being defined against the classical standard [@eo14412-fedreg] [@fips186-5]. That is not a contradiction -- it reflects that key establishment carries the urgent, harvest-now-decrypt-later confidentiality risk, while signatures do not, a distinction Section 9 develops.&lt;/p&gt;
&lt;h3&gt;The pip install beat the policy&lt;/h3&gt;
&lt;p&gt;Stated plainly: the shipping code led, and the policy followed. The full four-date timeline -- and why &quot;the same week&quot; is a misconception -- is in the callout below [@pyca-changelog] [@eo14412].&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; A tempting version of this story claims the library and the executive order shipped the same week. They did not. Four dated facts settle it: &lt;code&gt;pyca/cryptography&lt;/code&gt; v48.0.0 shipped the primitives on 2026-05-04; v49.0.0 followed on 2026-06-12; Executive Order 14412 was signed on 2026-06-22; and Trail of Bits published its write-up on 2026-06-30. No pyca release landed in the executive order&apos;s week -- the code arrived about seven weeks earlier [@pyca-changelog] [@eo14412] [@tob-2026].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is the article&apos;s second turn, paid off. It was not the 2024 standard, and not the 2026 executive order, that put quantum-resistant cryptography in front of ordinary developers. It was two distribution events: standardization fixing the byte counts, and a default-wheel release shipping the code. The second beat the mandate. Federal policy still matters enormously for who &lt;em&gt;must&lt;/em&gt; migrate and by when, and the platform axis of that migration on Windows is its own long story in this blog&apos;s sibling post. But on the shipping-code axis, decree did not lead. Distribution did.&lt;/p&gt;
&lt;p&gt;If the code beat the mandate and the standard is finalized, the migration should be basically done. It is not. Why not?&lt;/p&gt;
&lt;h2&gt;9. What Shipping the Primitive Does Not Solve&lt;/h2&gt;
&lt;p&gt;Here is the uncomfortable truth beneath the celebration: nobody can prove that lattice problems are hard, and the assumption is younger than the one it replaces.&lt;/p&gt;
&lt;p&gt;The security of ML-KEM and ML-DSA rests on two pillars. The first is the worst-case-to-average-case reduction from Ajtai and Regev, which ties breaking a random instance to solving the hardest instance of a lattice problem [@ajtai1996] [@regev-lwe]. The second is the best-known attack: lattice sieving, whose cost is $2^{0.292\beta}$ classically in the relevant blocksize, with no known exponential quantum speedup [@bdgl16]. The entire security argument lives in the gap between &quot;no proof of hardness&quot; and that attack cost. A proven super-polynomial lower bound would settle $P \ne NP$, since these lattice problems sit in NP -- so we are not getting a proof soon. This is the same epistemic position RSA has always occupied, except on a younger assumption.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Integer factoring has been studied since antiquity; structured-lattice hardness in its deployed form dates to roughly 2012. That youth, plus the open &quot;is the structure free?&quot; question from Section 3, plus the fact that SIKE and Rainbow both fell during standardization, is exactly why the portfolio keeps SLH-DSA -- a signature whose security rests on hash functions alone and would survive even if lattice cryptanalysis advanced dramatically [@fips205] [@peikert-2015] [@sike-break] [@rainbow-break].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;Two threat horizons, not one&lt;/h3&gt;
&lt;p&gt;A subtle but important point: the quantum threat does not arrive on the same schedule for confidentiality and for authentication.&lt;/p&gt;
&lt;p&gt;Harvest-now-decrypt-later is a &lt;em&gt;confidentiality&lt;/em&gt; horizon. An adversary can record an encrypted session today and decrypt it whenever a quantum computer arrives, so key establishment must be quantum-resistant now for any secret with a long shelf life. Signature forgery is an &lt;em&gt;authentication&lt;/em&gt; threat with no retroactive version: you cannot forge yesterday&apos;s signature tomorrow, because a signature only needs to resist forgery until the moment it is verified and trusted [@eo14412]. That is why the order&apos;s key-establishment deadline (2030) falls a year before its signature deadline (2031): the confidentiality clock is the more urgent one [@eo14412].&lt;/p&gt;
&lt;h3&gt;Why the answer is a portfolio&lt;/h3&gt;
&lt;p&gt;No single scheme is simultaneously tiny, tightly reduced to a decades-old assumption, and trivially side-channel-safe. That ideal primitive does not exist, which is precisely why the standard is a portfolio rather than a single winner.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;ML-KEM (203)&lt;/th&gt;
&lt;th&gt;ML-DSA (204)&lt;/th&gt;
&lt;th&gt;SLH-DSA (205)&lt;/th&gt;
&lt;th&gt;FN-DSA/Falcon (206)&lt;/th&gt;
&lt;th&gt;Classic McEliece&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Job&lt;/td&gt;
&lt;td&gt;Key establishment&lt;/td&gt;
&lt;td&gt;Signature&lt;/td&gt;
&lt;td&gt;Signature&lt;/td&gt;
&lt;td&gt;Signature&lt;/td&gt;
&lt;td&gt;Key establishment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hard problem&lt;/td&gt;
&lt;td&gt;Module-LWE&lt;/td&gt;
&lt;td&gt;Module-LWE&lt;/td&gt;
&lt;td&gt;Hash preimage&lt;/td&gt;
&lt;td&gt;NTRU lattice&lt;/td&gt;
&lt;td&gt;Goppa decoding&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public key&lt;/td&gt;
&lt;td&gt;1,184 B&lt;/td&gt;
&lt;td&gt;1,952 B&lt;/td&gt;
&lt;td&gt;32 to 64 B&lt;/td&gt;
&lt;td&gt;compact&lt;/td&gt;
&lt;td&gt;261 KB to 1.3 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output&lt;/td&gt;
&lt;td&gt;1,088 B ct&lt;/td&gt;
&lt;td&gt;3,309 B sig&lt;/td&gt;
&lt;td&gt;many KB sig&lt;/td&gt;
&lt;td&gt;small sig&lt;/td&gt;
&lt;td&gt;128 to 240 B ct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Assumption age&lt;/td&gt;
&lt;td&gt;~2012&lt;/td&gt;
&lt;td&gt;~2012&lt;/td&gt;
&lt;td&gt;decades&lt;/td&gt;
&lt;td&gt;~1996&lt;/td&gt;
&lt;td&gt;45+ years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;In pyca v48&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;no (pending)&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Sources: FIPS 203, 204, and 205 [@fips203] [@fips204] [@fips205]; the CRYSTALS pages for the lattice schemes [@kyber] [@dilithium]; Classic McEliece for the code-based sizes [@classic-mceliece]; and the pyca changelog for what v48 includes [@pyca-changelog].&lt;/p&gt;
&lt;p&gt;Two more standing hedges belong here, because they shape the practical advice in Section 11.&lt;/p&gt;

A key-establishment construction that runs a classical exchange (such as X25519) and a post-quantum KEM (such as ML-KEM-768) together and combines both shared secrets, so the session stays secure as long as *either* component is unbroken. Hybrids protect against both a surprise lattice break and an implementation bug in the new code, at the cost of sending both sets of bytes [@openssl-35].

The property of a system that can swap cryptographic algorithms without re-architecting the protocols and formats around them. Crypto-agility is the standing hedge against the next migration: build the seams now so that replacing a broken primitive later is a configuration change, not another thirty-year project.
&lt;p&gt;If the math is settled enough to standardize and ship, and the limits are understood, where is the actual remaining work?&lt;/p&gt;
&lt;h2&gt;10. The Protocols Are the Remaining Work&lt;/h2&gt;
&lt;p&gt;Here is the thesis in one line: the primitive is a &lt;code&gt;pip install&lt;/code&gt; away, and it is still nearly useless to most developers. That is not a paradox. It is the definition of the remaining work.&lt;/p&gt;
&lt;p&gt;The defining open problem is protocol integration. TLS, SSH, X.509 and the public-key infrastructure built on it, and package signing all have to be redesigned around KEM-shaped, kilobyte-scale objects without breaking the length fields, buffers, and packet-size assumptions surveyed in Section 6 [@tob-2026]. Trail of Bits is blunt about what that means for the average engineer.&lt;/p&gt;

You&apos;re unlikely to use PQ algorithms directly in tools like Certbot or Ansible until common protocols add support. -- Trail of Bits [@tob-2026]
&lt;p&gt;The good news is that the hardest-to-defer half is already moving.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Hybrid key establishment -- the part with the harvest-now-decrypt-later urgency -- is solved and deployed. OpenSSH 9.9 (September 19, 2024) made &lt;code&gt;mlkem768x25519-sha256&lt;/code&gt; available by default [@openssh-99], and OpenSSL 3.5.0 made X25519MLKEM768 its default TLS keyshare [@openssl-35]. Authentication is the laggard: post-quantum signatures inside protocols and certificate chains trail behind, and even in &lt;code&gt;pyca/cryptography&lt;/code&gt;, X.509 certificate signing with ML-DSA only arrived in v49.0.0 on June 12, 2026 [@pyca-changelog].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The portfolio is also still incomplete in the shipping code. SLH-DSA, the conservative hash-based backstop, is not yet in &lt;code&gt;pyca/cryptography&lt;/code&gt;; the maintainers have only started on it [@tob-2026]. Falcon, standardized as FN-DSA, remains pending as FIPS 206 in 2026, held up in part because its floating-point Gaussian sampler is hard to implement safely at standardization quality [@tob-2026] [@nist-2022]. So even a developer who wants the full toolbox cannot yet &lt;code&gt;pip install&lt;/code&gt; all of it.&lt;/p&gt;
&lt;p&gt;And some problems have nothing to do with new code. Long-lived trust anchors -- root certificates and firmware keys with lifetimes measured in decades -- must migrate while still interoperating with everything already deployed, and they run straight into the fixed-size hardware limits from Section 6, where an extra security level can overrun a command buffer that has no chunking [@tpm2-spec]. The deeper governance problem is crypto-agility: building systems so that the &lt;em&gt;next&lt;/em&gt; forced migration -- prompted by, say, a lattice break of the kind that felled SIKE -- does not take another thirty years [@sike-break].&lt;/p&gt;
&lt;p&gt;None of this is theoretical anymore. So what should a working engineer actually do on Monday?&lt;/p&gt;
&lt;h2&gt;11. Using It Today&lt;/h2&gt;
&lt;p&gt;Concrete and actionable: the one command, the one gotcha, and the three decisions.&lt;/p&gt;
&lt;p&gt;The command is &lt;code&gt;pip install &quot;cryptography&amp;gt;=48&quot;&lt;/code&gt;. The gotcha is that the version pin alone does not guarantee you get anything post-quantum.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; First, &lt;code&gt;pip install &quot;cryptography&amp;gt;=48&quot;&lt;/code&gt; does not by itself guarantee post-quantum support: ML-KEM and ML-DSA appear only when the wheel is backed by OpenSSL 3.5.0 or later, AWS-LC, or BoringSSL, and the changelog cautions that functionality is not guaranteed across every OpenSSL build [@pyca-changelog] [@openssl-35]. Second, unless you author the protocol or library yourself, do not hand-roll a wire format around a raw KEM -- the size and shape traps from Section 6 are exactly what vetted protocol work exists to absorb [@tob-2026].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The API is small enough to hold in your head.A version pin alone is not enough: as the callout above warns, the primitives appear only when the wheel is built against a supported backend [@pyca-changelog]. The &lt;code&gt;mldsa&lt;/code&gt; module gives you generate, public_key, sign, and verify -- the familiar signature shape. The &lt;code&gt;mlkem&lt;/code&gt; module gives you encapsulate, which returns a &lt;code&gt;(shared_secret, ciphertext)&lt;/code&gt; pair, and decapsulate, which takes a ciphertext and returns the shared secret. There is deliberately no separate share-combining step: that is the KEM shape from Section 6, not a Diffie-Hellman exchange [@tob-2026].&lt;/p&gt;

Import the module and generate a key; a backend without support raises instead of silently degrading. Running `mlkem.MLKEM768PrivateKey.generate()` after `from cryptography.hazmat.primitives.asymmetric import mlkem` should complete without error. A clean run means your wheel is backed by a build that actually carries ML-KEM -- one of the supported backends named in the warning above -- while an exception means it is not [@pyca-changelog].
&lt;p&gt;Three decisions follow.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which parameter set?&lt;/strong&gt; Default to ML-KEM-768 and ML-DSA-65 -- NIST Category 3, roughly AES-192, and more than 128 bits of security under conservative analysis [@kyber] [@dilithium]. Go higher only for data whose confidentiality must outlive decades, and when you do, watch the 4,096-byte wall from Section 6. Prefer ML-DSA over SLH-DSA as your default signature, and do not wait for Falcon in Python -- it is not standardized yet. Performance rarely decides this: even on a constrained ARM Cortex-M4, ML-KEM-768 runs in around a million cycles per operation, and on modern hardware the cost is imperceptible for normal use [@pqm4] [@tob-2026].&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pure or hybrid?&lt;/strong&gt; Prefer hybrid where a protocol offers it.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Use hybrid key establishment (X25519MLKEM768) wherever a protocol supports it -- it is already the TLS and SSH default and keeps you safe if either half is broken [@openssl-35] [@openssh-99] [@kyber]. And inventory before you install: build a cryptographic bill of materials, then migrate harvest-now-decrypt-later confidentiality assets first, since those carry the only clock that is already running [@eo14412].&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Where do you start?&lt;/strong&gt; Not with code -- with an inventory.&lt;/p&gt;

A machine-readable inventory of the cryptography a system uses: which algorithms, key sizes, protocols, and libraries appear where. A CBOM is the migration&apos;s first practical step -- you cannot replace what you cannot find -- and Executive Order 14412 directs CISA to publish minimum-elements guidance for exactly this kind of inventory [@eo14412].
&lt;p&gt;You can install the primitive in five seconds; you should deploy it with a plan. The last mile after the &lt;code&gt;pip install&lt;/code&gt; is yours.&lt;/p&gt;
&lt;h2&gt;12. Frequently Asked Questions&lt;/h2&gt;


No. It gives you primitives, not a protocol, and only when the wheel is backed by OpenSSL 3.5.0 or later, AWS-LC, or BoringSSL. Being able to call ML-KEM and ML-DSA is not the same as having a quantum-resistant TLS connection or certificate chain, which depend on protocol integration that is still in progress [@pyca-changelog] [@tob-2026].


No. ML-KEM is a key-encapsulation mechanism, not a Diffie-Hellman exchange: one side encapsulates a fresh secret to the other&apos;s public key rather than both sides combining shares. The message shape differs, and the objects are roughly 34 to 37 times larger, so protocols must be redesigned rather than merely re-parameterized [@tob-2026] [@fips203].


No. Earlier versions of the library could already expose ML-KEM and ML-DSA when built against AWS-LC or BoringSSL. What v48.0.0 changed was distribution: it put the primitives in the default OpenSSL-backed wheels, so a plain `pip install` reaches them [@pyca-changelog].


Not in the near term. Harvest-now-decrypt-later means an adversary can record today&apos;s encrypted traffic and decrypt it once a quantum computer exists, so the pressing driver is the confidentiality of data with a long shelf life, not the arrival date of the hardware [@tob-2024] [@eo14412].


Harvest-now-decrypt-later is a confidentiality horizon: recorded ciphertext can be broken retroactively, so key establishment is urgent now. Signature forgery is an authentication threat that only bites once a quantum computer exists, because you cannot forge a signature that was already verified and trusted in the past. That is why the federal key-establishment deadline precedes the signature deadline [@eo14412].


No. `pyca/cryptography` v48.0.0 shipped ML-KEM and ML-DSA on May 4, 2026; Executive Order 14412 was signed on June 22, 2026, about seven weeks later; and v49.0.0 (June 12) was the release current at the signing. No pyca release landed in the order&apos;s week [@pyca-changelog] [@eo14412].


No. Post-quantum cryptography is classical software -- ordinary algorithms on ordinary computers -- designed to resist quantum attack, which is exactly what FIPS 203 and 204 standardize [@fips203] [@fips204]. Quantum key distribution is a hardware and physics approach that transmits keys over quantum channels; it is a different technology often confused with PQC.

&lt;h2&gt;Conclusion: The Primitive Shipped, the Protocols Remain&lt;/h2&gt;
&lt;p&gt;A threat named in 1994 set a thirty-year relay in motion. Ajtai and Regev found lattice math that plausibly survives Shor&apos;s algorithm; Ring-LWE and Module-LWE made that math small enough to ship; an open competition from 2016 to 2022 chose a deliberately diverse portfolio and watched two serious candidates break along the way; and in August 2024, NIST turned the winners into standards with fixed byte counts and validated test vectors [@ajtai1996] [@regev-lwe] [@module-lwe] [@nist-2022] [@fips203] [@fips204].&lt;/p&gt;
&lt;p&gt;Then, on May 4, 2026, the primitive quietly crossed its last visible milestone -- not by decree, but by distribution. &lt;code&gt;pyca/cryptography&lt;/code&gt; v48.0.0 put ML-KEM and ML-DSA in the default wheels that a billion-download-a-month slice of the Python world already installs, roughly seven weeks before Executive Order 14412 set the federal deadlines [@pyca-changelog] [@eo14412]. The primitive shipped; the policy set the clock; and the protocols are the work that remains [@pyca-changelog] [@eo14412] [@tob-2026].&lt;/p&gt;
&lt;p&gt;That last clause is the whole point. ML-KEM and ML-DSA are larger, differently shaped, and hostile to the fixed-width assumptions that TLS, SSH, X.509, and hardware buffers were quietly built around. Installing the primitive took thirty years and now takes five seconds. Making the protocols accept it -- redesigning wire formats around KEM-shaped, kilobyte-scale objects without breaking the length fields and command budgets that assumed 32-byte keys and 64-byte signatures -- is the migration that is actually left. A primitive is not a protocol, and the last mile after the &lt;code&gt;pip install&lt;/code&gt; is the one we are still walking.&lt;/p&gt;
&lt;p&gt;&amp;lt;StudyGuide slug=&quot;pqc-ships-in-a-pip-install&quot; keyTerms={[
  { term: &quot;Post-quantum cryptography (PQC)&quot;, definition: &quot;Classical algorithms, run on ordinary computers, designed to resist attack by a large-scale quantum computer.&quot; },
  { term: &quot;Shor&apos;s algorithm&quot;, definition: &quot;A 1994 quantum algorithm that factors integers and solves discrete logarithms in polynomial time, breaking RSA, Diffie-Hellman, and elliptic-curve cryptography.&quot; },
  { term: &quot;Harvest-now, decrypt-later (HNDL)&quot;, definition: &quot;Recording encrypted data today to decrypt it later once quantum computers exist, which makes the threat present-day for long-lived secrets.&quot; },
  { term: &quot;Learning With Errors (LWE)&quot;, definition: &quot;Recovering a secret from noisy linear equations; believed hard even for quantum computers, and the basis of ML-KEM and ML-DSA.&quot; },
  { term: &quot;Module-LWE&quot;, definition: &quot;A structured, tunable version of LWE over modules that yields kilobyte-scale keys; the hard problem under CRYSTALS-Kyber and Dilithium.&quot; },
  { term: &quot;ML-KEM (FIPS 203)&quot;, definition: &quot;The standardized key-encapsulation mechanism for post-quantum key establishment, derived from CRYSTALS-Kyber.&quot; },
  { term: &quot;ML-DSA (FIPS 204)&quot;, definition: &quot;The standardized general-purpose post-quantum signature, derived from CRYSTALS-Dilithium, using Fiat-Shamir with aborts and uniform sampling.&quot; },
  { term: &quot;Key Encapsulation Mechanism (KEM)&quot;, definition: &quot;A key-establishment primitive where one side encapsulates a fresh secret to the other&apos;s public key and the other decapsulates it; not a Diffie-Hellman exchange.&quot; }
]} questions={[
  { q: &quot;Why does the quantum threat target public-key cryptography but only mildly affect symmetric ciphers?&quot;, a: &quot;Shor&apos;s algorithm breaks the factoring and discrete-log assumptions behind public-key schemes outright, while Grover gives only a quadratic speedup against symmetric keys, so a modest key-size bump restores the margin.&quot; },
  { q: &quot;Why is ML-KEM not a drop-in replacement for X25519?&quot;, a: &quot;A KEM has a different message shape than Diffie-Hellman (encapsulate and decapsulate rather than combining shares), and its outputs are roughly 34 to 37 times larger, so protocols must be redesigned, not just re-parameterized.&quot; },
  { q: &quot;What does the 4,096-byte wall illustrate, and why is 4,096 not universal?&quot;, a: &quot;ML-DSA-87&apos;s 4,627-byte signature overruns a common TPM command budget that has no chunking, while ML-DSA-65 fits; the budget is implementation-defined, and the TCG reference build is tighter at 3,968 bytes.&quot; },
  { q: &quot;In what concrete sense did the pip install beat the policy?&quot;, a: &quot;pyca/cryptography v48.0.0 shipped ML-KEM and ML-DSA on May 4, 2026, about seven weeks before Executive Order 14412 set the federal deadlines on June 22, 2026.&quot; },
  { q: &quot;Why does the standardized portfolio keep a hash-only backstop?&quot;, a: &quot;Lattice hardness is unproven and younger than factoring, the ring and module structure is a conjecture rather than a theorem, and SIKE and Rainbow both broke during standardization, so SLH-DSA is kept as a hedge that would survive a lattice break.&quot; }
]} /&amp;gt;&lt;/p&gt;
</content:encoded><category>post-quantum-cryptography</category><category>ml-kem</category><category>ml-dsa</category><category>lattice-cryptography</category><category>nist-standards</category><category>python</category><category>crypto-migration</category><author>noreply@paragmali.com (Parag Mali)</author></item></channel></rss>