Visualizing post-quantum key sizes

Yesterday I posted an image on X that has gotten a lot of views, so I’ll repost it here.

I wanted to visually compare the size of current and post-quantum key sizes, so I generated a pair of keys and saved them in QR codes. Keys were base64 encoded.

The ML-KEM-768 private key is bigger than the maximum QR code and so it splits into two codes.

Related posts

Conjugacy class sizes

Two elements a and b in a group G are conjugate if there exists some element g in G such that

a = g−1bg.

A set of elements all conjugate to each other forms a conjugacy class.

Abelian groups

Each element of an Abelian group is in a conjugacy class of its own:

g−1bg = g−1gb = b.

Things are more interesting in a non-Abelian group because the calculation above is not necessarily possible. It might be possible, because b and g might commute, but not all elements commute with each other.

Quaternion group Q

Let Q be the quaternion group, the set

{±1, ±i, ±j, ±k}

with the usual rules for quaternion multiplication:

i² = j² = k² = ijk = −1.

Then Q has five conjugacy classes:

{1},  {−1},  {±i},  {±j},  {±k}.

Two conjugacy classes have 1 element and three conjugacy classes have 2 elements.

Symmetric group S3

Let S3 be the group of all permutations of {1, 2, 3}. Then there are three conjugacy classes:

{e},  {(1 2), (1 3), (2 3)},  {(1 2 3), (1 3 2)}.

The first conjugacy class consists of just the identity, the do-nothing permutation. The second conjugacy class consists of transpositions and the third consists of rotations.

Notice that all conjugacy classes have distinct sizes.

New theorem

The trivial group {e} and the symmetric group S3 are the only two finite groups with the property that each of the conjugacy classes are a different size.

Marco Damele posted a proof of this theorem yesterday, formerly known as Markel’s S3 conjecture.

The rehabilitation of a curve

In the NSA’s recent announcement urging everyone to adopt post-quantum encryption ASAP, there’s one little line I’d like to expand on:

Use Curve P-384 for all classification levels.

There’s an interesting story behind this technical detail.

The term P-384 means nothing to most people. Maybe the name reminds them of PT-109, a patrol boat commanded by future president John F. Kennedy during WWII. (PT-109 subsequently became the title of a book, a movie, a song, and a video game.)

Curve P-384 is an elliptic curve designed by NIST for use in cryptography. Keys using this curve have 384 bits. Elliptic curve cryptography commonly uses 256-bit keys, and the NSA is urging everyone to use curves with longer keys.

But why this curve in particular? That’s the interesting part.

NIST standardized several elliptic curves for cryptography that were designed by the NSA. After the Snowden revelations, researchers became suspicious that the curves may have been designed with a backdoor. (Not without reason: see the story of Dual_EC_DRBG.) When asked how the curves were seeded, Jerry Solinas, the man who specified the seeds, said he could not remember exactly how he chose them.

So is the NSA now recommending everyone use an elliptic curve containing a backdoor? Apparently not. A few weeks ago, researchers from Anthropic reverse engineered the process used to seed the NIST curves.

AI gives and AI takes away. There’s a push to accelerate the move to quantum-resistant cryptography due to fears that AI might find algorithms to weaken elliptic curve cryptography. But AI also exonerated the elliptic curve the NSA is recommending everyone use until elliptic curves are replaced by other methods [1].

Related posts

[1] The NSA was recommending the move to P-384 before the rise of AI. See, for example, this post. The agency now feels the move is more urgent, not because of imminent quantum computing but because AI might find ways to attack elliptic curve cryptography using existing computers.

Regular primes

Bernoulli numbers often pop up in unexpected places. This post will discuss a connection between Bernoulli numbers and Fermat’s last theorem.

Bernoulli numbers

When you take a calculus class and get to Taylor series, you’ll no doubt see the series for sine and cosine. Maybe the instructor presents the series for sine and you’re asked to find the series for cosine as a homework problem. In any case, the terms of the series have a nice simple description.

Then you see the series for tangent. Maybe you’re asked to find the first three terms as an exercise. But what is the general term? There doesn’t seem to be an answer.

sin, cos, tan

Why don’t the terms in the series for tangent have a compact description? They do, if you introduce Bernoulli numbers. And what are Bernoulli numbers? Why, they’re the things that make the series for tangent have a nice form. :)

This makes Bernoulli numbers seem arbitrary, but they’re not. Bernoulli numbers come up in a wide variety of power series, integrals, combinatorial problems, and elsewhere. Which brings us to Fermat’s last theorem.

Fermat’s last theorem

Fermat conjectured around 1637 that the equation

an + bn = cn

has no solution for integers a, b, c and n with abc ≠ 0 and n > 2. Andrew Wiles proved Fermat’s conjecture in 1994.

Mathematicians made incremental progress toward proving the conjecture in the three centuries between Fermat and Wiles. In 1850 Ernst Kummer proved Fermat’s last theorem for most values of n, sorta. He proved FLT for regular primes—we’ll get to what a regular prime is shortly—and Siegel’s conjecture is that about 60% of primes are regular. Specifically, Siegel conjectured that the natural density of regular primes is 1/√e ≈ 0.6065. If FLT holds for a prime p then it holds for all multiples of p, and so Siegel’s conjecture would imply the natural density of multiples of regular primes is 1. However, Siegel’s conjecture has not been proven, and in fact it hasn’t been proven that there are infinitely many regular primes.

OK, so what are regular primes? There is an abstract definition [1], but a more tangible definition is that an odd prime p is regular if it does not divide the numerator any of the non-zero Bernoulli numbers up to Bp − 3.

The first prime that is not regular is 37, and so Kummer proved FLT for 2 < n < 37 and for many values of n > 37.

Related posts

[1] An odd prime number p is defined to be regular if it does not divide the class number of the pth cyclotomic field ℚ(ζp), where ζp is a primitive pth root of unity.

Privacy horse trading

A prospective client used the term “horse trading” on a call today to refer to trade-offs in data privacy. I like it.

You can’t answer the question “is this piece of data PHI” in isolation. When someone says “is this field PHI” what they really mean is “can a data set containing this field meet the HIPAA standard for deidentification?” The answer to that question depends on what other data appear along with the field in question.

My answer to “Can we include this?” is essentially “What’ll you give me for it?”, which sounds a lot like horse trading.

Related posts

The invariant subspace problem

This post will be more technical than most, presuming familiarity with Banach spaces.

Personal background

I was interested in functional analysis when I was an undergrad and intended to specialize in the subject in grad school. I quickly changed my mind.

What I found interesting about functional analysis was how it provided a unified framework for various topics. For example, finite element analysis and other areas of numerical analysis make more sense from the perspective of functional analysis.

However, in grad school I realized that the functional analysis group was more interested in classifying function spaces than applying them. I could not get interested in the problems they were interested in. I switched to partial differential equations, an area that uses functional analysis heavily.

A new result in functional analysis came out today, and seeing the news took me back to the days mentioned above.

The invariant subspace problem

A bounded linear operator T on a complex Banach space X always has at least two closed invariant subspaces: {0} and X. The invariant subspace problem asks under what assumptions on X does every T have a closed, non-trivial invariant subspace.

If X has finite dimension, every linear operator T: X → X has an eigenvalue, and the corresponding eigenspace is a closed, invariant subspace. However, there are linear operators on infinite dimensional separable Banach spaces that have no non-trivial closed invariant subspaces. Per Enflo published the first result along these lines in the 1980s.

The case of X = ℓ² has remained unsolved until possibly today [1]. Anthropic posted a paper entitled A Counterexample to the Invariant Subspace Problem on ℓ². The paper claims to construct a bounded linear operator T on a separable Hilbert space X such that the only closed subspaces of X left invariant by T are {0} and the whole space X.

Related posts

[1] You’ll see this described as “an infinite dimensional separable Hilbert space.” But up to isomorphism ℓ² is the only such space.

Prepper Cryptography

The NSA is urging that everyone move to post-quantum cryptography (PQC) sooner rather than later. My hunch is that this is not because cryptographically relevant quantum computers (CRQCs) are around the corner. Rather it is because there are rumors of mathematical breakthroughs that could allow someone with a conventional computer to break the same encryption methods that we know could be broken by a CRQC.

To understand what is and isn’t supposedly at risk, we have to distinguish between symmetric (private key) and asymmetric (public key) cryptography.

The asymmetric encryption methods widely deployed today (e.g. RSA and ECC) depend on the difficulty of one of two mathematical problems: integer factoring or the discrete logarithm problem. Both would be broken with the advent of a CRQC, and potentially they could be broken via a mathematical breakthrough.

Nobody is suggesting that symmetric encryption (e.g. AES) is vulnerable to quantum machines or mathematical geniuses. So encrypting messages per se is safe, as far as we know. But the public key methods for exchanging symmetric encryption keys are subject to rumors.

Cryptography is a mixture of mathematics and muddle, as Ian Cassels put it. Asymmetric encryption is heavy on math and light on muddle. Symmetric encryption is light on math and high on muddle. That’s why there’s more FUD around asymmetric encryption: more math to potentially exploit.

Here’s the prepper part. You could prepare for a cryptography apocalypse by exchanging keys before you need them. Say you fill two flash drives with identical lists of AES encryption keys and hand one to your buddy, i.e. you carry out manual key exchange. You could the exchange messages encrypted using these keys even if all public key cryptography is broken.

And how would you exchange your encrypted messages? Any way you want, because you’re not depending on the security of the transport medium. You could use email, snail mail, or courier pigeons. Encrypted messages are naturally binary, but you could encode the bits in plain text using ASCII armor. This would certainly be inconvenient, but it would be secure.

Chipping away at the Extended Riemann Hypothesis

The Riemann Hypothesis (RH) is the first rung on a ladder of more general conjectures. The next rung is the Generalized Riemann Hypothesis (GRH). Both were proved at the same time, and now attention is focused on the third rung, the Extended Riemann Hypothesis (ERH).

RH -> GRH -> ERH -> GRH for Hecke and Artin L-functions -> Grand RH

The ERH says that for any number field K, i.e. any finite-degree extension of ℚ, all the zeros of the corresponding zeta function ζK(s) in the critical strip 0 < Re(s) < 1 lie on the line Re(s) = ½. The Riemann zeta function ζ(s) is the zeta function associated with the rational numbers.F

There are at least a couple approaches to making progress toward ERH. The previous post looked at proving the ERH for some number fields. This post will look at another approach: showing that ζK(s) has no zeros to the right of a line inside the critical strip.

For all number fields K, the function ζK(s) is never zero for Re(s) ≥ 1. It also has “trivial” zeros, i.e. ζK(s) = 0 for some values of s with Re(s) ≤ 0. The requirement that all zeros of ζK in the critical strip lie on the line Re(s) = ½ is equivalent to saying ζK(s) ≠ 0 if Re(s) > ½ [1].

Shortly before there was a proof of the Riemann Hypothesis, there was a proof of the quasi-Riemann Hypothesis, saying that ζ(s) ≠ 0 for Re(s) > 1 − ε for some positive ε. The first proof was for ε = ⅛. The RH is equivalent to the quasi-RH for ε = ½.

The ERH analog of the quasi-Riemann Hypothesis was proved on October 12 for ε = 1/32 [2]. A paper [3] first posted October 20 claims to prove quasi-ERH for ε = 0.12511…. The paper applies to a more general class of functions [4] that includes ζK. So not only does the paper make progress toward ERH, it also makes progress toward the next rung in the ladder, generalizing the RH to wider and wider classes of functions.

***

[1] You can show that within the critical strip, if ζK has no zeros to the right of the center line, it has no zeros to the left of the central line either.

[2] A quasi-Riemann hypothesis for Dedekind zeta functions

[3] Zero-free half-planes for Hecke L-functions over number fields and Quasi-Riemann Hypothesis

[4] Finite-order Hecke L-functions

Extending the Riemann Hypothesis

Riemann Hypothesis

The Riemann Hypothesis (RH) says that the zeros of the function [1]

\zeta(s) = \sum_{n=1}^\infty \frac{1}{n^s}

in the critical strip (i.e. 0 < Re(s) < 1) all lie on the line Re(s) = ½. You’ll hear that all the zeros of ζ(s) have real part ½, but that’s not correct. The zeta function also has zeros at every negative even integer. These are the so-called trivial zeros.

Generalized Riemann Hypothesis

The Generalized Riemann Hypothesis (GRH) generalizes RH by changing the numerator of the terms to be χ(n) where the functions χ come from a family of functions (Dirichlet characters) that includes the constant function χ(n) = 1.

L(s, \chi) = \sum_{n=1}^\infty \frac{\chi(n)}{n^s}

The conclusion remains the same: all zeros in the critical strip lie on the line Re(s) = ½. More on GRH here.

Extended Riemann Hypothesis

The Extended Riemann Hypothesis (ERH) generalizes RH even further [2], extending the Riemann zeta function ζ(s) to a Dedekind zeta function ζK(s), where K is a “number field,” i.e. a finite-degree extension of the rationals ℚ. The numerators in the definition of ζ(s) are generalized in a way that depends on K. The ERH conjectures that for all number fields K, all the zeros of ζK(s) in the critical strip lie on the line Re(s) = ½.

When K = ℚ the function ζK(s) reduces to ζ(s), i.e. the Riemann zeta function is the Dedekind zeta function for the rational numbers.

Progress toward ERH

 

Diagram: RH, GRH, ERH, Grand RH, with 'You are here' between GRH and ERH

Levent Alpöge said in his announcement of a proof of RH

I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis. In fact, the method easily extends much further, resolving the so-called Generalized Riemann Hypothesis, and I expect, with more time, the Extended Riemann Hypothesis too.

Axiom Math has posted a paper that uses the techniques from Alpöge’s proof of GRH to make progress toward ERH, partially confirming Alpöge’s prediction that his approach could extend to ERH. The new proof does not extend to all number fields but to “totally real” number fields, extensions of ℚ by a real number that is a root of a polynomial with rational coefficients having all real roots. It also extends to CM fields [3].

***

[1] The sum defines ζ(s) only where it converges, i.e., for Re(s) > 1. The Riemann zeta function is the analytic continuation of this function to the complex plane, except for a singularity at s = 1.

[2] The ERH implies GRH, even though Dirichlet L-functions are not Dirichlet zeta functions.

[3] A CM field is a number field K that is a totally imaginary quadratic extension of a totally real field K+.

Block designs as matrices

Block designs are ways of grouping elements of a set into blocks that have some sort of specified pattern. More on the patterns below.

I recently ran across quantum block designs and couldn’t imagine what that could mean. I saw Gerhard Zauner’s thesis “Quantum Designs: Foundations of a non-commutative Design Theory” and wondered what, in this setting, does or does not commute.

Analogy

The key to understanding the quantum connection is to think about the matrices that represent block designs rather than the block designs per se. These matrices have a connection to the matrices (or more generally, linear operators) of interest in quantum mechanics, and it is these matrices that may not commute under multiplication.

A combinatorial design consists of a set of points V and a set of blocks B, where a block is a subset of V. So if V has v elements and B has b elements, you can represent the design (V, B) as an v by b matrix, with a 1 in row i column j if the ith point is in the jth block and a 0 otherwise.

Example

Fano plane

The Fano plane is a well-known example of a block design. It is a model for a finite projective plane if you interpret the blocks as lines. The incidence matrix corresponding to the Fano plane above would have rows corresponding to the numbered points and columns corresponding to the colored lines. The column corresponding to the green line would have 1s in rows 1, 2, and 5 and 0s elsewhere. Every column would have three 1s because every line has three points. And every row would have three 1s because every point lies on three lines.

Requirements

A couple weeks ago I wrote a series of posts starting with finite projective planes, like the Fano plane above, gradually increasing in generality up to combinatorial designs, then specializing slightly to balanced incomplete block designs (BIBD) with parameters v, k, and λ.

This means the set of points V has v elements, every block contains k elements of V, and every pair of points in V is contained in λ blocks. For example, the Fano plane above is a BIBD with parameters (7, 3, 1).

The number of blocks b can be computed as a function of the parameters, as can the number r of blocks each point appears in. See how here.

Requirements in matrix form

Since the set of points V has v elements and the set of blocks B has b elements, the incidence matrix M has v rows and b columns.

Since every block contains k elements, the columns of M each sum to q.

Since every point is contained in r blocks, the rows of M each sum to r.

The (i, j) element of MMT equals the number of blocks containing the ith and jth points. When i = j, this is r. When i ≠ j, this is λ.

Quantum

I won’t go into quantum designs here, but having read this post you’re prepared to read Zauner’s thesis.

In case you’re interested, there is a categorical framework that unifies classical and quantum block designs.