This research paper combines three lines of research: post-quantum cryptography (PQC), zero-trust architecture (ZTA), and categorical theory. It uses LWE with deterministic randomness based on Engel factorization and the logistic map as a scheme; categories, functors, monads, Yoneda embedding, and Kahn extensions as a formal language; and ESP32 as a platform. The paper claims, among other things, a reduction in the complexity of key operations from O ( n² ) to O ( n ), 100% CPA resistance, 91.86% free agent memory, and 100% rejection of unauthorized requests at sub-millisecond latency. We show where formal elegance coincides with real engineering gains (crypto-agility, compositional policy verification, a working prototype), and where the claimed complexity relates to description rather than execution and requires rechecking. We also explicitly formulate the questions being tested and propose the following experiment. Research paper • Cryptography and Post-Quantum Technologies • I. Cherkaoui, C. Clarke, J. Horgan, I. Dey , “Categorical Framework for Quantum-Resistant Zero-Trust AI Security” (arXiv:2511.21768v1, 2025-11-25), and its connections to work on LWE, Engel factorizations, categorical theory, and NIST standards. The preprint by Cherkaoui et al. is a rare example of work that is simultaneously formal, engineering, and ambitious. Its main contribution is not “categorical acceleration of LWE,” but a formal language for crypto-agility and compositional verification of ZTA policies , supported by a working prototype on ESP32. This is precisely what is worth pursuing.
We formulated two testable propositions (H1, H2) and demonstrated that the first is confirmed, while the second requires reformulation. We also identified four open questions that could form the basis of a subsequent article:
- Reduction for Engel noise. Prove that the statistical difference between Engel and Gaussian noise is negligible in the working region (σ ≈ 8, q ≤ 2¹⁴, n ≥ 512), or construct a new reduction.
- A unified benchmark. Compare the Engel-LWE, Kyber-768, and Dilithium-2 on a single ESP32, with identical security parameters and open source code.
- Side-channel. Check whether the deterministic noise structure is leaking through power consumption (power analysis, as in Table 7).
- Scaling. Test crypto-agility on 100+ devices with key rotation every 24 hours (as stated in Section 5.2).
The answer to the paper’s central question—”Formal bridge or algorithmic mirage?”—is this: it is a formal bridge, and it is valuable precisely as a bridge . A mirage arises only when formal elegance is mistaken for computational advantage. If future work separates these two concepts, the field will gain a solid foundation.
An open question for the reader. If categorical abstraction doesn’t speed up arithmetic, but it does speed up migration and verification , how should this speed be measured? In lines of code? In days of recertification? In the number of theorems proved? The answer to this question will determine whether categorical cryptography will become an engineering discipline or remain the language of mathematicians.
Key findings
- Confirmed Working ESP32 ZTA-PQC prototype with measurable timings, memory, and power consumption.
- Confirmed by Crypto-agility: replacing a primitive requires ~42 lines of code versus ~370 in a traditional architecture (according to the article).
- Needs clarification: “Reduction O ( n² )→ O ( n )” refers to a categorical description, not to a number of scalar operations on the hardware.
- Requires clarification: “100% CPA-resistant” over 1000 samples confuses decryption correctness with IND-CPA security.
- Requires clarification There are arithmetic and metric discrepancies in tables 1–3 and 15; these should be clearly stated.
Content
- Introduction: Three Technologies at a Crossroads
- Statement of the problem and the central paradox
- Mechanism: Engel, logistic mapping, LWE
- Categorical formalism
- Critical Analysis: Formalism vs. Computation
- Experiment on ESP32
- Comparison with Kyber, Dilithium, RSA
- Crypto-agility as the main benefit
- ITS and the wire-tap model
- Limitations and threats to validity
- Synthesis: What does the categorical approach provide?
- Conclusion and next experiments
- Appendix: Data Tables
- Sources and selected questions
1. Introduction: Three Technologies at a Crossroads
Imagine a hospital where a diagnostic model on an edge device makes decisions based on images. The device is connected to the network, several contractors have access to the model, and traffic passes through a low-cost microcontroller. In a few years, an attacker with a quantum computer will be able to retroactively decrypt traffic intercepted today—a “harvest now, decrypt later” scenario. A traditional perimeter is no longer sufficient; a model is needed where no one trusts anyone by default .
It is at this intersection that three technologies meet:
- Post-quantum cryptography (PQC) is algorithms resistant to quantum attacks. NIST approved FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA) in August 2024 [1]; practical migration is described in the NCCoE draft [3].
- Zero Trust Architecture (ZTA) – explicit verification of each request, least privileges, continuous monitoring [4].
- Categorical theory is a language in which morphisms describe transformations, functors describe mappings between categories, and natural transformations describe the consistency of these mappings.
A preprint by Cherkaoui et al. attempts to combine all three. This is a rare case where a single paper combines Engel factorization (1913), the logistic map (chaos theory), LWE (Regev, 2009), the probability monad, the Yoneda embedding, right Kahn extensions—and practical measurements on the ESP32. For this reason alone, the paper deserves careful consideration: it either opens a new way of thinking about security or creates the dangerous illusion that formal elegance automatically confers an algorithmic advantage.
Our goal isn’t to rehash the preprint, but to test its robustness and integrate it into a broader landscape. We’ll move from intrigue to mechanism, then to critique, then to synthesis—and conclude with testable questions.
2. Statement of the problem and the central paradox
Let us formulate the central question of the article as a reader familiar with complexity theory would ask it:
Yoneda reduction paradox
How can categorical abstraction simultaneously provide formal rigor and promise algorithmic speedup from O ( n² ) to O ( n ), if the Yoneda Lemma is by nature a statement about representability , not about computational complexity ?
This isn’t nitpicking. The Yoneda Lemma states: an object is defined by its hom-functors. It’s useful for proofs, for structure transfer, and for constructing universal constructions. But it doesn’t change the fact that the product of a matrix A T ∈ ℤ q n × n by a vector r ∈ ℤ q n on real hardware requires n² scalar multiplications and additions modulo q . No change in the description changes this arithmetic—unless additional matrix structure (sparseness, symmetry, precomputation) is exploited, which is generally absent in LWE.
Therefore, the correct formulation of the hypothesis is not “categorical theory accelerates LWE”, but rather:
H1. The categorical formulation of LWE allows us to shorten the protocol description and automate equivalence checking when changing parameters without changing the asymptotics of scalar operations on the hardware.
H2. The claimed speedup O ( n² )→ O ( n ) refers to the number of categorical morphisms in the description, not to the number of arithmetic operations in the implementation.
There are three ways to test H1 and H2: (a) recalculate the complexity table with an explicit indication of what exactly is being calculated; (b) conduct an independent benchmark on the same ESP32 with the same circuit; (c) compare with the Kyber/ML-KEM reference implementation on the same board. Below, we will show that the preprint takes the first step, but does not follow through—and this is its main weakness.
Research Boundaries. We do not revisit the LWE cryptanalysis or propose a new attack. We analyze: (1) the correctness of the categorical assertions; (2) the consistency of empirical data; and (3) the practical value of crypto-agility. Outside the scope of this study are FIPS certification issues, legal aspects, and ESP32 hardware security (fault injection, chip-level side-channel).
3. Mechanism: Engel, logistic mapping, LWE
3.1 Engel decomposition
Any x ∈ (0,1] can be expanded into a series
x = 1/ a 1 + 1/( a 1 a 2 ) + 1/( a 1 a 2 a 3 ) + …(1)
where integers a i are obtained by recursion:
x 1 = x , a i = ⌊1/ x i ⌋, x i +1 = a i x i − 1.(2)
This is a classical object (Engel, 1913; Erdős–Rényi–Szüsz, 1958 [6,7]). Its value for cryptography is that the sequence { a i } is determined by the initial seed, but is nonlinear and unpredictable in the statistical sense: small changes in the seed lead to large changes in the sequence.
3.2 Shuffling by logistic mapping
To enhance the mixing, the indices are permuted using the logistic map:
j k = ⌊ N x k ⌋, x k +1 = 4 x k (1 − x k ). ( 3)
For x 0 ∉ {0, ¼, ¾, 1}, the orbit is chaotic; the permutation a i ↔ a j k produces a “structured but unpredictable” sequence. The paper presents this as a way to “bypass linear dependencies that can be exploited in reduction attacks.”
3.3 LWE with deterministic noise
The standard LWE scheme [10] uses random A , s , e . In the preprint, they are generated from a single irrational seed constant:
A ij = a k mod p , s i = a k mod q , e i = (1/ n ) ∑ j ≠ i ( a k j − a k i ).(4)
Encryption:
c 1 = A T r mod q , c 2 = b T r + e i ⌊ q /2⌋ mod q , r i = a k mod 2.(5)
Decryption is the decisive rule:
e i = 0 if | c 2 − s T c 1 | < q /4; otherwise 1.(6)
The scheme works, but its security requires a separate proof: replacing Gaussian noise with deterministic noise changes the statistical distribution, and therefore the assumptions about the problem’s difficulty. This is discussed in Section 5.
4. Categorical formalism
The heart of the preprint isn’t the diagram itself, but its description in the language of categories. This description is worth breaking down layer by layer.
4.1 Objects, morphisms, functors
The categories D (dynamical systems with an endomorphism f : X → X ), S (Engel sequences with mixing as morphisms), E (Engel decompositions), Set (sets), RPCirc (randomized probabilistic circuits), and Mod (modules over a ring) are introduced. The forgetful functor g : D → S sends the system to its sequence; the endofunctor h : S → S is the mixing; the natural transformation η : h ∘ g ⇒ g ∘ h ensures consistency.
4.2 The Probability Monad and the Klesley Category
The probabilistic monad P : Set → Set associates with a set distributions on it; the unit η X ( x ) = δ x is the delta distribution; the multiplication μ X : P ( P ( X )) → P ( X ) “flattens” nested distributions. The key idea is that LWE encryption can be represented as a Klesley arrow K × M → T ( C ), and the composition of encryption and decryption as a commutation diagram:
// Kleisli correctness diagram of LWE KeyGen : 1 ──▶ T(K) // s ← seed Enc : K × M ──▶ T(C) // (s,m) ↦ (A, As+e+⌊q/2⌋m) Dec : K × C ──▶ T(M) // (s,(A,b)) ↦ ⌊2(b−As)/q⌋ Dec ∘ Enc = id_M (in the Kleisli category, up to μ)
4.3 Yoneda-embedding and coends
The Yoneda embedding Y : E ↪ Set E op maps the object to a hom functor. The error e becomes “universal” in the sense that it is represented by the hom functor e i = (1/ n ) Hom engel (−, ∑( a k j − a k i )). The inner product is written as a coend:
⟨ a , s ⟩ = ∫ k hom( k , a ) × hom( k , s ).(7)
It is from this notation that the preprint derives the “reduction O ( n² )→ O ( n )”. Below we will show why this statement requires clarification.
4.4 Kahn Extensions
The right Kan extension Ran F K is used for the “best approximation” of the functor K along F ; in the context of this article, for approximating the chaotic dynamics of shuffled sequences. The universal property of the extension ensures uniqueness of the lift, which ensures the “formal rigor” of the transition between parameters.
What does a categorical language actually provide? It provides three things: (1) compositionality —complex protocols can be assembled from simple arrows; (2) invariance —properties proven for one diagram carry over to all its implementations; (3) crypto-agility —replacing a primitive becomes replacing an object in the category, not rewriting the code. These are real and valuable properties. The only question is whether the language adds algorithmic speed.
5. Critical Analysis: Formalism vs. Computation
5.1 The O ( n² )→ O ( n ) Paradox: What Exactly Is Proven
Table 1 of the preprint contains complexity estimates (reproduced below). Let’s examine each row.
| Operation | Traditionally | Categorically | “Reduction” in the article | Comment |
|---|---|---|---|---|
| Key extraction | O ( n ) | O (1) | 100% | In fact, 1 − 1/ n ; for n = 1024 this is 99.9% – rounding up. |
| Matrix multiplication | O ( n ²) | O ( n ) | 50% | “50%” refers to the exponent (2→1), not the number of operations. |
| Addition of error | O ( n ) | O (1) | 100% | The same reservation. |
| Replacement of the base | O ( n ³) | O ( n ) | 66% | Indicator 3→1; (3−1)/3 ≈ 66.7%. |
| Total ( n = 1024) | 2,097,152 | 3,072 | 99.85% | 2 n ² vs 3 n ; the row sums do not match the total. |
Three specific problems with Table A
- Confusing two meanings of “reduction.” In lines 2–4, “reduction” refers to a decrease in the exponent (50%, 66%, 100%), while in the final line, it refers to a decrease in the number of operations (99.85%). These are different quantities and cannot be added together.
- The total is not equal to the sum of the rows. The sum of the “traditional” rows: n + n ² + n + n ³ ≈ 1.07 x 10⁹ for n = 1024, and the total is 2 n ² ≈ 2.1 x 10⁶. The sum of the “categorical” rows: 1 + n + 1 + n = 2050, and the total is 3072. The arithmetic does not add up.
- The number of morphisms ≠ the number of arithmetic operations. Even if the description of LWE encryption consists of three morphisms, implementing each of them on the ESP32 still requires n² modular multiplications for A T r . The Yoneda Lemma doesn’t abolish this arithmetic—it merely redefines it.
The correct, defensible formulation is this: categorical description reduces the complexity of protocol specification and verification , not the complexity of its implementation . This is a valuable claim, but it is fundamentally weaker than what the table promises.
5.2 Deterministic Engel noise vs. Gaussian noise: statistical cost
LWE security relies on the assumption that the problem is difficult with Gaussian noise. Replacing it with deterministic Engel noise preserves decryption correctness (if the noise is small), but changes the distribution . How much?
The preprint’s own data (Fig. 2) show that the discrepancy (Wasserstein and KL) between the distributions of ciphertexts with Gaussian and Engel noise reaches a maximum at low σ (2–4), drops sharply at σ ≈ 8 (a typical value for LWE), and increases again at high σ (16–32). This means that in the “working” zone of σ ≈ 8, Engel noise is statistically close to Gaussian noise, but deviates significantly beyond this zone.
What does this mean for security?
Proofs of the robustness of LWE (Regev, 2009; Pickert, 2010 [10,11]) are formulated for Gaussian noise. Extending this to deterministic noise requires a separate reduction argument —either a proof that the statistical distance to Gaussian noise is negligible in the working parameter region, or a new reduction. The preprint does not contain such a reduction; there are only empirical plots. The statement “ε-indistinguishability with ε < 2⁻¹²⁸” (Section 4.1.4) sounds proven, but is not derived in the text.
5.3 “100% CPA-proof”: correctness versus security
In Section 5.1 we read: “CPA testing on n = 1000 samples… 100% success rate in decryption attempts… 100% CPA resistance.” This confuses two different concepts:
- Correctness —for the chosen plaintexts, decryption returns the original message. This can be verified empirically, and 1,000 samples provide reasonable confidence.
- IND-CPA security is a computational assumption that an adversary cannot distinguish the ciphertexts of two messages with a noticeable advantage in polynomial time. This is not verified by 1000 runs; it is proved by reduction to a hard problem.
Most likely, the authors meant precisely correctness—and that’s plausible. However, the phrase “100% CPA-proof” is misleading and unacceptable in a scientific article without a disclaimer.
5.4 Memory and Energy: Honest Absolute Numbers
The preprint reports that the agent retains 91.86% of the free heap, while the broker retains 97.88%. These are relative figures. The absolute figures are in Table 6: LWE requires 258 KB for n = 256 and 4102 KB for n = 1024. For comparison, Kyber-768 requires 3.2 KB (constant), ECDSA requires 0.8 KB, and RSA-2048 requires 12.5 KB. The difference is two to three orders of magnitude.
Why this doesn’t invalidate the result. The authors honestly acknowledge the quadratic growth and explain how they fit it into the 320 KB of the ESP32: int16 quantization (compressing the 768² matrix from 2.36 MB to 15.78 KB), freeing buffers after operations, and the asymmetric roles of the client (a powerful laptop encrypts) and the agent (the ESP32 decrypts). This is sound engineering. But the reader should see the absolute numbers, not just the free heap percentages.
5.5 Internal timing discrepancies
Table 2 gives an average encryption time of 10,969 µs (≈11 ms) and decryption time of 2,890 µs (≈2.9 ms), a ratio of ≈3.8. Table 15 for n = 768 gives 2.13 ms and 0.01 ms, a ratio of 181.8. These are either different modes (with/without cache, with/without precomputation) or different measurements; this is not explained in the text. For reproducibility, such discrepancies should be explicitly noted.
6. Experiment on ESP32: What was actually measured
Despite the criticisms above, the empirical section is the strongest in the preprint. Let’s outline the key measurements.
| Task | Average (µs) | Min (µs) | Max (µs) | Cycles |
|---|---|---|---|---|
| Encryption | 10,969.37 | 9:00 | 30,156.00 | 2,633,532 |
| Decryption | 2,890.22 | 1,653.00 | 3,500.00 | 694,028 |
The difference between the measured time and the time calculated from cycles at 240 MHz is 0.03–0.04%, indicating deterministic execution. The asymmetry of “encryption is 3.8 times longer than decryption” is explained by the fact that encryption involves matrix multiplication A T r , while decryption involves only the scalar product s T c 1 .
| Indicator | Meaning | Comment |
|---|---|---|
| Free agent heap after crypto operations | 91.86% | Relative indicator |
| Free Broker Heap | 97.88% | Relative indicator |
| Average power (base) | ~300 mW | ~60 mA at 5 V |
| Peak power | 405–479 MW | Excess by 34–56% |
| Peak excess (llama / gpt / mistral) | 33.9% / 55.1% / 56.6% | Depends on the length of the message |
This data is useful: it shows that the LWE-768 on the ESP32 is viable in the “client encrypts on the laptop, agent decrypts on the microcontroller” mode. This isn’t “LWE on the ESP32 as a whole,” but rather an asymmetric design—and it should be evaluated as such.
| Attack type | Attempts | Average latency (ms) | Max (ms) | Data (KB) |
|---|---|---|---|---|
| Invalid token | 350 | 0.590 | 1,818 | 43.75 |
| IP outside the whitelist | 420 | 0.588 | 0.933 | 105.00 |
| Expired token | 230 | 0.573 | 0.680 | 14.38 |
Everything is clear here: 100% deviation within three specific vectors, sub-millisecond average latency, minimal RAM consumption (<0.1%). This is a correct result for these vectors, but does not prove resistance to all attacks. To be complete, the following are missing: (a) side-channel attacks; (b) attacks on the cryptographic primitive itself (not just tokens); (c) fuzzing of the network stack.
7. Comparison with Kyber, Dilithium, RSA: Place in the Landscape
The preprint compares its Engel-LWE with Kyber and Dilithium across three metrics (Tables 18–20). We’ll summarize and comment on the results below.
| Level | Engel-LWE | Kyber | Dilithium | What does it mean? |
|---|---|---|---|---|
| The probability of an attack’s success (the lower the better) | ||||
| 128 bits | 2⁻¹²⁸ | 2⁻¹²⁰ | 2⁻¹²² | Engel-LWE declared “perfect” |
| 192 bits | 2⁻¹⁹² | 2⁻¹⁸⁰ | 2⁻¹⁸⁵ | Requires independent verification |
| 256 bits | 2⁻²⁵⁶ | 2⁻²⁴⁰ | 2⁻²⁴⁸ | — |
| Encryption/decryption time, s | ||||
| 128 bits | 0.00015 | 0.00083 | 0.00052 | Engel-LWE is 3.5–5.5 times faster |
| 192 bits | 0.00032 | 0.00085 | 0.00120 | — |
| 256 bits | 0.00061 | 0.00165 | 0.00235 | — |
| Key memory, KB | ||||
| 128 bits | 0.8 | 1.5 | 2.2 | Engel-LWE is more compact |
| 192 bits | 1.7 | 3.2 | 4.8 | — |
| 256 bits | 3.2 | 6.0 | 9.1 | — |
Why these figures cannot be accepted without reservations
- Attack probabilities. The 2⁻¹²⁸ value for Engel-LWE appears to be a theoretical lower bound rather than a measured value. For comparison, Kyber and Dilithium also have theoretical estimates, and they are generally also close to 2⁻ˢᵉᶜᵘʳⁱᵗʸ. The 2⁻⁸ difference may be an artifact of different estimation methods rather than a real advantage.
- Speed. The comparison “Engel-LWE is faster than Kyber” on the ESP32 contradicts Section 6, where LWE-768 encryption takes ~11 ms. Kyber-768 on the ESP32 is reported in the literature to take a few milliseconds. It’s possible the comparison in Table 19 was made on different hardware or with different parameters. A clear disclaimer is needed.
- Key memory. 0.8 KB for 128-bit Engel-LWE—plausible only for a very compact representation (e.g., seed + short sequence). For a full LWE matrix, this is impossible; cf. Table 6 (258 KB for n = 256). This means we’re talking about something else—possibly the seed representation. Without explanation, the figure is misleading.
The correct conclusion is that Engel-LWE is an interesting candidate for scenarios where deterministic reproducibility and compact seed representation are important , but its advantage over standardized Kyber/Dilithium requires an independent benchmark on the same hardware and the same security parameters.
8. Crypto-agility as the main practical benefit
Perhaps the most valuable feature of the preprint is not LWE or ESP32, but the formalization of crypto-agility through categorical transitions . The idea is simple and powerful: if cryptoprimitives are objects of category C PQC , and secure transitions are morphisms, then replacing a primitive A with B is a natural transformation η : F A ⇒ F B , preserving the security goals s ∈ S :
F ( f A )( s ) = η s ∘ F ( f B )( s ).
If the diagram commutes, the protocol preserves semantics without rewriting. The authors report that replacing Kyber → NTRU in a traditional architecture requires ~370 lines of code and weeks of recertification, while in a categorical architecture it requires ~42 lines of code and several days. Even if the figures are approximate, the direction is right : formalizing the transition reduces the cost of migration.
Why is this important now?
NIST has already approved FIPS 203-205 [1], but organizations are only just beginning the migration [3]. The “hybrid” period (classic + PQC simultaneously) will last for years. A tool that makes primitive replacement inexpensive and verifiable has direct practical value—regardless of how fast LWE itself is.
There’s also an important limitation here: crypto-agility only works if all the primitives used fit into PQC category C. This isn’t the case for legacy protocols built into firmware. Its practical value lies in new systems, not legacy ones.
9. ITS and the wire-tap model
Section 6 of the preprint derives information-theoretic security (ITS) through the eavesdropping channel model. The idea is that the secure rate R s is the bound on the difference in mutual information between the legitimate and eavesdropping channels:
R s = lim ε→0 [ I ( A ; B ) ℱ − I ( A ; E ) ℱ∘ηadv ].
Simulations (Figs. 13–14) show that as the “noise advantage” δ (the difference in noise between the legitimate and eavesdropping channels) increases, the safe region expands; for a fixed δ, an increase in the eavesdropper’s SNR narrows it. This is qualitatively consistent with classical wire-tap theory.
Be careful with interpretation. The wire-tap model describes information-theoretic security where the adversary has unlimited computation. LWE, on the other hand, provides computational security. The connection between them is heuristic: the authors use wire-tap as a metaphor for visualizing trust relationships, not as a proof of ITS for LWE. This is acceptable, but requires an explicit disclaimer, which is not found in the text.
10. Limitations and threats to validity
Let’s summarize the main restrictions in a table – this is convenient for both the reader and future authors.
| Region | What is the limitation? | What is needed to fix it? |
|---|---|---|
| Complexity | Mixing descriptive and computational complexity | Specify explicitly what is being counted; recalculate the table |
| Noise safety | There is no reduction from Engel noise to Gaussian noise. | Prove a statistical distance or construct a new reduction |
| CPA | Mixing Correctness and IND-CPA | Divide: “correctness – 100%”, “IND-CPA – open question” |
| Timings | Discrepancy between tables 2 and 15 | Specify modes, parameters, firmware version |
| Comparison with Kyber | Various hardware / parameters | One benchmark, one parameters |
| Memory | Relative % without absolutes | Give both % and KB (partially done in Table 6) |
| Threat Model | Tokens + IP + LWE only | Add side-channel, fuzzing, and firmware attacks |
| ITS | Metaphor is passed off as a model | Clearly call it a heuristic |
| Reproducibility | The code and configs are not fully open | Publish repository and versions |
11. Synthesis: What the Categorical Approach Actually Provides
After a critical analysis, a balanced conclusion can be formulated.
What is confirmed:
- The categorical language is compositional and invariant : properties proved for the diagram carry over to implementations.
- Crypto-agility through natural transformations is a truly working pattern that reduces migration costs.
- The prototype on ESP32 is functioning : timings, memory, energy, and attack rejection have been measured.
- The deterministic Engel noise is correct (decryption without errors in the working parameter area).
What requires clarification:
- “The reduction O ( n² )→ O ( n )” is about description, not execution. A reformulation is required.
- The safety of Engel noise is an open question; a reduction or explicit proof of statistical closeness is needed.
- “100% CPA” is correct; IND-CPA has not been verified.
- Comparison with Kyber/Dilithium is preliminary; a unified benchmark is needed.
What remains outside the scope:
- Hardware attacks (side-channel, fault injection) on ESP32.
- FIPS Certification and Legal Aspects.
- Scalability to tens of thousands of devices (key rotation, PKI).
Final formulation
The categorical theory in this work is not an arithmetic accelerator, but a design and verification language . It makes the system more understandable , portable , and verifiable , but it doesn’t eliminate the quadratic cost of LWE matrix operations. This is a valuable and honest achievement—if it’s properly labeled.
12. Conclusion and next experiments
The preprint by Cherkaoui et al. is a rare example of work that is simultaneously formal, engineering, and ambitious. Its main contribution is not “category acceleration of LWE,” but a formal language for crypto-agility and compositional verification of ZTA policies , supported by a working prototype on the ESP32. This is something worth pursuing.
We formulated two testable propositions (H1, H2) and demonstrated that the first is confirmed, while the second requires reformulation. We also identified four open questions that could form the basis of a subsequent article:
- Reduction for Engel noise. Prove that the statistical difference between Engel and Gaussian noise is negligible in the working region (σ ≈ 8, q ≤ 2¹⁴, n ≥ 512), or construct a new reduction.
- A unified benchmark. Compare the Engel-LWE, Kyber-768, and Dilithium-2 on a single ESP32, with identical security parameters and open source code.
- Side-channel. Check whether the deterministic noise structure is leaking through power consumption (power analysis, as in Table 7).
- Scaling. Test crypto-agility on 100+ devices with key rotation every 24 hours (as stated in Section 5.2).
The answer to the paper’s central question—”Formal bridge or algorithmic mirage?”—is this: it is a formal bridge, and it is valuable precisely as a bridge . A mirage arises only when formal elegance is mistaken for computational advantage. If future work separates these two concepts, the field will gain a solid foundation.
An open question for the reader. If categorical abstraction doesn’t speed up arithmetic, but it does speed up migration and verification , how should this speed be measured? In lines of code? In days of recertification? In the number of theorems proved? The answer to this question will determine whether categorical cryptography will become an engineering discipline or remain the language of mathematicians.
Appendix: Pivot Tables
P.1 Complexity (with reservations)
See Table A in Section 5.1. Key caveat: “reduction” means different things in different rows.
P.2 Timings and memory
See Tables B and C in Section 6.
P.3 Deflection of attacks
See Table D in Section 6.
P.4 Comparison with PQC schemes
See Table E in Section 7.
P.5 Threats to validity
See Table F in Section 10.
Sources and selected research questions
References (from preprint and context)
- NIST, FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA) , 2024. PQC standards defining target primitives.
- Cloudflare, Quantum-Safe Zero Trust Network Access (ZTNA) , 2023. Industrial ZTNA context.
- NIST NCCoE, Migration to Post-Quantum Cryptography . Migration Practices.
- US Department of Defense / CISA, Zero Trust Principles for AI Threat Mitigation , 2023 .
- L. Wertheim, J. Park, S. Nakamoto, Information-theoretic security protocols for blockchain-augmented zero trust architectures , IEEE S&P, 2024. ITS + ZTA + blockchain.
- F. Engel, Entwicklung der Zahlen nach Stammbruechen , 1913. Original decomposition.
- P. Erdős, A. Rényi, P. Szüsz, On Engel’s and Sylvester’s series , 1958. Mathematical properties.
- S. H. Strogatz, Nonlinear Dynamics and Chaos , CRC Press, 2018. Logistic mapping.
- R. C. Hilborn, Chaos and Nonlinear Dynamics , Oxford, 2000 .
- O. Regev, On lattices, learning with errors, random linear codes, and cryptography , J. ACM, 2009. Foundation of LWE.
- C. Peikert, Public-key cryptosystems from the learning with errors problem , SIAM J. Comput., 2010. Development of LWE.
- E. Riehl, Categorical Homotopy Theory , CUP, 2014. Categorical apparatus.
- S. Mac Lane, Categories for the Working Mathematician , Springer, 1998. A classic of categories.
- S. Awodey, Category Theory , OUP, 2010. Textbook.
- F. Borceux, Handbook of Categorical Algebra 1 , CUP, 1994. Handbook.
- PG Goerss, JF Jardine, Simplicial Homotopy Theory , Birkhäuser, 1999. Homotopy methods.
- S. Singh, M. Ribeiro, T. Zhang, Category-Theoretical Foundations for Post-Quantum Cryptography , ACM CCS, 2023. Predecessor.
- J. Lee, A. Kumar, R. Johnson, Zero-Trust AI: Micro-Segmentation and Access Control for ML Models , IEEE TIFS, 2024. ZTA for AI.
- W. Chen, L. Wang, H. Li, Hybrid PQC-ZTA , CANS, 2025. Hybrid approach.
- R. Smith, P. Brown, K. Davis, Formal Verification of PQC Protocols Using Category Theory , J. Cryptology, 2024. Formal verification.
- Y. Zhang, L. Chen, K. Wang, Category-Theoretic Approaches to PQC , IEEE Trans. IT, 2024. Categorical PQC.
- R. Patel, M. Johnson, S. Lee, Zero-Trust Architecture for AI Model Protection , ACM CCS, 2023. ZTA for AI.
- J. Kim, A. Martinez, P. Singh, Lattice-Based Cryptography Meets Zero-Trust , J. Cryptology, 2024. LWE + ZTA.
- T. Williams, R. Garcia, B. Thompson, Categorical Semantics for Adaptive Security Policies , PQCrypto, 2025. Adaptive policies.
- X. Liu, H. Wang, Q. Zhang, Formal Verification of Quantum-Resistant Protocols Using Category Theory , Formal Aspects of Computing, 2023. Formal verification.
- M. Rodriguez, S. Kumar, D. Evans, Micro-Segmentation and Cryptographic Enforcement in Zero-Trust AI , IEEE S&P, 2024. Micro-segmentation.
