Cryptographers have long wrestled with a fundamental counting problem in the mathematics of cryptography: exactly how many quadratic almost perfect nonlinear (APN) functions exist in dimension eight? While millions of extended-affine equivalence classes of these functions on the vector space over the finite field of two elements in eight dimensions ($mathbbF_2^8$) have been known to researchers for years, an exact tally has remained elusive. Now, new research by Emanuele Bellini of the Technology Innovation Institute addresses this long-standing gap, shedding light on the true landscape of quadratic APN functions through a novel uniform sampling approach and massive computational effort.
The study, detailed in a recent paper on the Cryptology ePrint Archive (Paper 2026/3106) titled "How many quadratic APN functions are there in dimension eight?", outlines a sophisticated methodology designed to overcome the severe biases that have historically plagued random searches in this field. APN functions play a vital role in symmetric cryptography, particularly in the design of substitution boxes (S-boxes) for block ciphers, where they provide optimal resistance against differential cryptanalysis. Understanding their classification and total population is therefore not merely a theoretical pursuit, but a cornerstone of cryptographic security design.
The Flaws of Prior Searches and the Uniform Sampler Solution
To understand the significance of the new research, one must examine how previous attempts to count these functions fell short. The simplest theoretical estimates rely on the assumption that a random search would encounter every extended-affine (EA) class with roughly the same probability. However, as Bellini points out, this assumption is fundamentally flawed in practice.
Earlier searches relied heavily on various filters designed to narrow down the search space, but these filters inadvertently favoured certain classes over others. Furthermore, APN classes vary wildly in size. Consequently, naive random sampling provided a distorted view of the actual distribution, making it impossible to accurately extrapolate the total number of existing classes.
To resolve this issue, Bellini developed what is termed a "uniform sampler." This innovative tool ensures that every quadratic APN function on $mathbbF_2^8$, up to affine terms, is assigned the exact same expected number of draws. As a result, each class is drawn in direct proportion to its actual mathematical size. This approach builds directly upon the variable approach pioneered by researchers Beierle, Langevin, Leander, Polujan, and Rasoolzadeh.
Recognizing the immense computational power required to execute such a sampling process effectively, Bellini implemented the uniform sampler for both central processing units (CPUs) and graphics processing units (GPUs). This dual-hardware implementation allowed for a high-throughput execution that could handle the immense combinatorial complexity of eight-dimensional vector spaces.
Millions of Draws Yield Over Two Million New Classes
Armed with the CPU and GPU implementations of the uniform sampler, the research project executed a staggering 104,176,566 draws. The results of this massive computational run dramatically expand the known universe of quadratic APN functions in dimension eight.
Out of the total draws, 34.47 percent fell completely outside the previously published classes of quadratic APN functions. Specifically, the search uncovered 2,000,780 brand-new classes, substantially augmenting the 3,812,868 classes that had already been catalogued in existing literature. To ensure the validity of these newly discovered entities, a rigorous class invariant was employed, which mathematically proved that all the newly found classes are pairwise inequivalent to one another and to existing classes.
On average, each of the newly discovered classes was drawn approximately 17.9 times during the computational run. Based on a statistical model of independent draws, the probability that any particular value of the invariant was completely missed during the process is estimated to be at most 0.0020.
The implications for the total count are profound. If the class invariant also perfectly separates the classes without ambiguity, the research suggests that 5,813,648 is likely the true total number of quadratic APN classes in dimension eight. This figure combines the previously known catalog with the newly discovered additions, providing the most robust estimate to date for this mathematical domain.
Exhaustive Analysis and Unexpected Technical Findings
Beyond the primary sampling campaign, the study undertook additional exhaustive analyses to verify structural properties of these functions. By conducting an exhaustive search—operating under the assumption of no hash collisions—the research revealed that every function possessing a linear self-equivalence of prime order shares the invariant of one of 12,775 published classes.
Additionally, the investigation examined the relationship between quadratic APN functions and permutations, confirming that no currently known class is CCZ-equivalent (Carlet-Charpin-Zinoviev equivalent) to a permutation, reinforcing existing observations about the structural limitations of these cryptographic building blocks.
The research also uncovered a critical technical detail regarding random number generation within cryptographic and computational experiments. The study demonstrates that xorshift64—a widely used pseudorandom number generator that is linear over $mathbbF_2$—actually introduces a noticeable bias into the uniform sampler. This finding serves as a cautionary technical note for researchers utilizing linear feedback shift register-based generators in similar high-precision algebraic and cryptographic computations.
In the interest of open science and reproducibility, all associated code, the comprehensive class database, and the summary data have been made fully public, allowing the broader cryptographic and mathematical research communities to verify, build upon, and audit the findings.

