Engineering and Mathematical Replacement of ECC with PQC: Provably Fast Cryptography in the Face of the Quantum Threat

02.11.2026

The quantum threat is not only a mathematical challenge (replacing ECC with PQC), but also an  engineering challenge : new primitives must be implemented quickly, correctly, and without leaks. CryptOpt demonstrates that this challenge can be met without compromising speed or guarantees. This is a rare case where rigor and performance do not compete, but rather reinforce each other.

Content

  1. Statement of the problem and intrigue
  2. Mechanism: How verified compilation works
  3. History of development and scientific debate
  4. Hardware, control and scaling
  5. Algorithms, mathematical models and programming
  6. Errors, correction and reliability
  7. Performance and fair comparison
  8. Experiment, evidence and reproducibility
  9. Cryptography, cryptanalysis and the quantum threat
  10. Related areas: communications, sensors, modeling
  11. Practical value, economics and social consequences
  12. The Future, Open Questions, and Synthesis

1. Statement of the problem and intrigue

⚙️ Detailed research option

Question 1.  What specific problem does the chosen technology solve and for whom is it important?

Cryptography today finds itself caught in the crosshairs of three competing demands:  security  (protection against attacks, including side-channel attacks),  performance  (crypto primitives are called billions of times per second across all browsers and TLS connections), and  portability  (migration to new architectures). The classic answer is to write critical sections in assembly language by hand: fast, but expensive, error-prone, and offering no formal guarantees. Compilers (GCC, Clang) generate code that is  tens of percent inferior to  manual optimization, and sometimes completely eliminates the security properties [Erbsen et al. 2019; Barthe et al. 2018].

CryptOpt solves precisely this conflict: it  automatically generates assembly code that’s faster than GCC/Clang, and it’s also equipped with a mechanized proof of correctness in Coq . Who cares? Anyone who relies on ECC: browsers (Curve25519—part of the TLS standard), Bitcoin (secp256k1), OpenSSL, and mobile platforms. At a time when quantum computers are challenging the very foundations of classical cryptography (Shor’s algorithm), the ability to  quickly  and  provably  implement primitives becomes a strategic resource.

Question 2.  What question seems paradoxical to the reader, but allows for scientific verification?

Paradox:  “Can automatically generated code be  both  faster than the best compilers and formally provably correct—without trusting the optimizer itself?” Intuition dictates: either speed or guarantees. CryptOpt shows that this is a false dilemma. Randomized search finds fast variants, and  a separate  verified checker confirms that each search step preserves semantics. Trust should be placed only on the checker (proven in Coq), not on the optimizer.

Question 3.  What exactly is being studied: a physical effect, a device, an algorithm, a protocol, or the entire system?

The compilation pipeline under study consists of   : Fiat Cryptography (IR generation from functional programs) → CryptOpt optimizer (randomized assembly search) → verified equivalence checker (symbolic execution + E-graph + proof in Coq). The object is not a single physical effect, but  a software system linking a mathematical specification (finite fields) to x86-64 machine code.

Question 4.  How to formulate a testable hypothesis and what observation could refute it?

Hypothesis H1:  “Randomized local search with real-time timing on the target machine produces assembly code that is, on average, faster than GCC/Clang code under comparable conditions, and this result is robust across multiple microarchitectures.”

A refuting observation:  if on most platforms and for most primitives, the CryptOpt code systematically loses to GCC/Clang, or the gain disappears when tested on an independent set of fields, the preprint  does not  implement this refutation: out of 18 primitives (9 fields × {mul, sqr}) on 10 platforms, the average speedup is 1.74× (GCC) and 1.40× (Clang), although for Curve448 and P-521 the gain is more modest.

Hypothesis H2:  “A formally verified equivalence checker based on E-graph with a small set of rewriting rules is sufficient for all optimizations actually applied by CryptOpt.” A refutation is a case where the optimizer produces semantically correct code that is not verifiable by the checker (in which case the rules would have to be expanded or the search would have to be modified). Such cases are not described in the article—this is an important signal of the design’s maturity.

Question 5.  Where is the boundary of the research?

Limitations: (a) only  straight-line code  without branches and without secret-dependent memory accesses; (b)  x86-64 only ; (c) focus on  finite field arithmetic  (multiplication and squaring) for ECC; (d) post-quantum primitives (lattice, hash-based, code-based) are not considered – this is stated as future work; (e) the optimizer itself is not verified, only its output.

Question 6:  What result would change the experts’ views?

There are two results. First,  formal verification and speed are no longer mutually exclusive  —it was previously thought that proven correctness was traded for performance (as in CompCert). Second,  automated search can outperform handwritten assembler  on new microarchitectures (Intel 12th and 13th generations), where humans haven’t yet had time to manually re-optimize the code. This changes the economics: instead of heroic expert efforts for each new CPU, you just “set the task and run the search.”

2. Mechanism: How verified compilation works

⚙️ Detailed research option

Question 7.  What is the mechanism underlying the technology?

Three interrelated mechanisms:

  1. Functional Specification → IR.  Fiat Cryptography [Erbsen et al. 2019] takes  provably correct  functional programs for finite field arithmetic and specializes them for a specific prime module, producing an intermediate representation (Fiat IR)—a straightforward, branch-free code.
  2. Randomized assembly language search.  CryptOpt treats generation as  combinatorial optimization : a random initial variant, followed by mutations—operation permutation (instruction scheduling), instruction template substitution (instruction selection:  add vs  adcx vs  adc), register selection/saw (register allocation). A mutation is accepted if the measured time is no worse. It uses the Random Local Search strategy with the Bet-and-Run heuristic (20 starts with 1,000 mutations, then 180,000 mutations for the best).
  3. A verified equivalence checker.  Symbolic execution of Fiat IR and x86-64 generates logical expressions; E-graph canonizes them using rewriting rules (associativity, commutativity, removing unnecessary truncations, etc.); if the output expressions fall into the same equivalence class, the programs are equivalent. Everything is proven in Coq.

Question 8.  What role do superposition, interference, entanglement, or measurement play?

This paper  does not directly exploit quantum effects . This is a classical compilation system. However,  the context  is quantum: ECC, which CryptOpt optimizes, is one of the goals of Shor’s algorithm. It’s appropriate to distinguish here: CryptOpt is  a classical tool that improves the security of classical cryptography during the transition period. Quantum effects (superposition, interference) will appear in  the next  generation of primitives—post-quantum ones—for which the CryptOpt methodology is potentially applicable.

Question 9:  Which of these effects are really necessary, and which are just mentioned in the popular description?

Popular texts on “quantum cryptography” confuse three different concepts: (1) quantum key distribution (QKD), a physical protocol; (2) post-quantum cryptography (PQC), mathematical algorithms resistant to quantum attacks; and (3) quantum computing as  a threat  to classical cryptography. CryptOpt refers to  the infrastructure  around (1)–(3): it ensures the correctness and speed of the implementations that underpin it all. Understanding this distinction is critical to an honest discussion.

Question 10.  Is it possible to explain the mechanism using a minimal example?

The preprint includes a toy example: a function  example(X,Y,Z) = Z² + (Y+Z)·X + Z over 64-bit words with ignoring obviously zero carries. It shows how an assembly listing is obtained from a random topological order of operations (ADD, MUL) and instruction templates ( mulx,  adcx,  ), how mutations change the order and templates, how “flag saws” ( ) preserve carries, and how the checker recognizes equivalence, for example,   thanks to the axioms of associativity and commutativity. This is a minimal but  complete  example of all three phases.addsetc(t₂ + c₀) + t₄ = t₄ + t₂ + c₀

Question 11.  What assumptions does the mathematical model use and when do they cease to be fulfilled?

The model assumes: (a) straightforward code without branches; (b) no secret-dependent memory accesses; (c) only constant pointer offsets (from the function parameters or  rsp); (d) no memory aliasing. These assumptions  fail  for code with branches, indirect addressing, and complex memory management—for example, for many post-quantum circuits that include conditional operations and work with sparse structures. This directly defines the limits of the method’s applicability and the direction of future extensions.

Question 12.  What is measured in an experiment and how is the measurement related to the stated result?

Real execution time is measured  in clock cycles  on target CPUs. A methodology adapted from R3 validation is used: randomly alternating variants, batches of ~10,000 clock cycles (the batch size is adjustable), the number of batches is  nob=31, and the median is taken. This reduces noise from caches, the OS scheduler, thermal throttling, and branch prediction. The claimed result—speedup—is directly derived from these measurements, not from a predicted model.

3. History of development and scientific debate

⚙️ Detailed research option

Question 13.  What original work formulated the problem and how did its formulation change?

The problem of “how to generate cryptocode that is both fast and correct” has a long history. Key milestones include  CompCert  [Leroy 2009], a provably correct C compiler;  Fiat Cryptography  [Erbsen et al. 2019], generating provably correct C/Java/Zig from functional programs;  Alive2  [Lopes et al. 2021], translation validation for LLVM;  STOKE  [Schkufza et al. 2013], stochastic superoptimization;  and Denali  [Joshi et al. 2002], a superoptimizer for short programs. CryptOpt is the first to combine  randomized search  and  mechanized verification  in a single pipeline for realistically sized functions (hundreds to thousands of instructions).

Question 14.  What achievements were turning points and how is this confirmed?

Three key points in the work itself are: (1)  integration with Fiat Cryptography  —the top theorem in Coq covers the entire path from a functional program to x86-64; (2)  an E-graph checker with a minimal set of rules  —it proves equivalence without SAT solvers and without complex arithmetic procedures; (3)  practical records  —the fastest known implementations of Curve25519 and secp256k1 on 12th/13th generation Intel (according to the authors’ data at the time of publication). Confirmation—benchmarks on 10 platforms, an artifact on Zenodo (DOI 10.5281/zenodo.7710435).

Question 16.  What previous expectations were not met and what limitations were discovered?

The expectation that “super-optimizers will solve this problem” was not fulfilled: STOKE in synthesize mode failed to cope with realistic functions in three days, and in optimize mode it often produced syntactically or logically incorrect code. Only for secp256k1-sqr was a result achieved, but it was  73% slower than CryptOpt. The expectation that “hand-written assembler is always faster” was also shaken: on Intel 12G/13G, CryptOpt outperforms hand-written implementations. Limitations: large fields (Curve448, P-521) provide a modest gain or parity with GCC, and on some platforms, a slight lag.

Question 18.  How is the new work related to previous publications?

CryptOpt  complements  Fiat Cryptography (extends the C/Java/Zig backend to x86-64 with verification),  refines  the translation validation approach (making the checker Coq-proven rather than trusted),  competes  with super-optimizers (STOKE), and  outperforms  hand-written implementations on new microarchitectures. It’s not “yet another compiler,” but a paradigm shift:  verification is separated from search , allowing the use of any search heuristics without increasing the trust base.

4. Hardware, control and scaling

⚙️ Detailed research option

Question 19.  Which physical platform was chosen and what is the rationale for this choice?

10 x86-64 platforms: 4 AMD (Ryzen 1900X Zen1, 5800X Zen3, 5950X Zen3, 7950X Zen4) and 6 Intel (i7-6770HQ Skylake-H, i7-10710U Comet Lake-U, i9-10900K Comet Lake-S, i7-11700K Rocket Lake-S, i9-12900KF Alder Lake-S, i9-13900KF Raptor Lake-S). The choice is based on prevalence in TLS/browsers and coverage of different microarchitecture generations. All machines are Ubuntu Server 22.04.1 LTS, packages are up-to-date; hybrid i9 12G/13G use only performance cores.

Question 20.  What are the requirements for the environment and stability?

To evaluate performance, the CPU frequency is fixed, boost is disabled, and governor = performance. These settings are not applied during optimization   —the optimizer adapts to the real-world environment, allowing it to account for noise and throttling. AssemblyLine, an in-memory assembler that eliminates file system overhead and compiler calls at each mutation, is used for assembly; the code is aligned to the start of the memory page.

Question 22:  What resources will be required when scaling up?

Budget: 200,000 mutations per primitive; 20 starts × 1000 mutations (bet) + 180,000 (run). Full generation and verification of 18 Fiat IR primitives takes  20–40 hours of wall time  depending on the machine. The number of instructions ranges from 51 to 1281. Verification of a single assembly file: from 0.06 s (Poly1305) to 315 s (SIKEp434-mul). Scaling to new fields/primitives is linear in budget; PQC will require an expanded set of instruction templates and possibly more complex E-graph rules.

Question 24.  Which component is the main bottleneck?

The main bottleneck is  the quality of mutations for large functions . For small fields (Curve25519-mul ≈ 160–195 instructions, Poly1305-mul ≈ 66–83), simple mutations work perfectly. For large fields (Curve448-mul 511–602 instructions, P-521-mul 509–648 instructions), the gain is more modest: the authors explicitly state that “simple mutations have a smaller impact on the execution time of large functions” and reserve more sophisticated genetic improvement strategies for future work. The second bottleneck is code generation for a specific microarchitecture: although Bet-and-Run helps, for some platforms (SIKEp434 on AMD), cross-optimization with Intel is better than native optimization.

5. Algorithms, mathematical models and programming

⚙️ Detailed research option

Question 25.  How is a task translated into a formal object?

A functional field arithmetic program (a template from Fiat Cryptography) is specialized for a specific simple module, generating a Fiat IR—a straightforward sequence of assignments with operations on bit-vectors (addition with carry, double-width multiplication, shifts, and truncations). CryptOpt then unwraps the IR into x86-64 assembly through three phases (scheduling, selection, and allocation), and the checker constructs symbolic expressions in shared logic (E-graph) for both programs.

Question 26.  What are the input data and the cost of their preparation?

The input is Fiat IR, generated by Fiat Cryptography from a functional specification. Preparation is “free” from the user’s perspective (a single framework call), but requires that the primitive already be formalized in Fiat Cryptography. For secp256k1, the authors circumvented this limitation by translating the libsecp256k1 C code to LLVM IR and then to CryptOpt format—but verification was not performed in this mode.

Question 27.  What languages, libraries, compilers and versions?

Coq (proofs and extraction), Fiat Cryptography (framework), AssemblyLine v1.3.2 (in-memory assembler), GCC 12.1.0, Clang 15.0.6, SUPERCOP (benchmark framework), Ubuntu Server 22.04.1 LTS. Artifact on Zenodo, GitHub repositories (mit-plv/fiat-crypto, 0xADE1A1DE/CryptOpt).

Question 28.  Which parts are performed by a quantum system and which by a classical computer?

This work  does not involve quantum computing . Everything is performed on classical CPUs. The quantum context is  the task for which the tool is being created (protection against quantum attacks through a reliable implementation of classical and post-quantum cryptography), not the execution environment.

Question 29.  What is the depth of the circuit, the number of operations, the number of runs?

For assembly programs: 51–1281 instructions (depending on the field and operation). For optimization: 200,000 mutations per primitive, including 20,000 for the bet phase. For verification: one checker run per final assembly file (time 0.06–315 s). For benchmarking: SUPERCOP runs several compiler/option combinations and selects the best one.

Question 30.  How is a useful answer extracted and are measurement costs taken into account?

A useful answer is a verified assembly file. The cost of measurement  is included  in the optimization cycle (time measurements are part of the search cost), but not in the “final cost” of the code. Importantly, the measurements are taken on real hardware, not a model—this is the authors’ fundamental position: “the processor as a black box,” adapting to new microarchitectures without manual modeling.

6. Errors, correction and reliability

⚙️ Detailed research option

Question 31.  What error model is used?

The error model is  semantic : any mutation that changes the program’s behavior (not preserving semantics) must be rejected by the checker. The optimizer is designed to apply only semantic-preserving transformations, but if it were to make a mistake, the checker would catch it. Verification does not depend on trust in the optimizer. This “untrusted search + trusted checker” model is the de facto standard in modern verified compilation.

Question 32.  What is called a physical qubit and what is called a logical qubit?

In the context of CryptOpt, this dichotomy isn’t directly applicable. However, a useful analogy is  that the physical level  is the assembly instructions and their actual behavior on the CPU;  the logical level  is the Fiat IR and the functional specification. The checker proves the equivalence of the logical and physical levels—exactly what is called in quantum computing “proving the correctness of a logical qubit via a physical one.” The methodological affinity here is profound.

Question 34.  How does the probability of error change as the size increases?

Key point:  the probability of a semantic error does not increase with code size because the checker proves equivalence as a whole, not piecemeal. Verification of SIKEp434-mul (968 instructions) takes 315 seconds but remains  complete . This is a fundamental advantage over testing, where coverage decreases with code size. Verification of Curve25519-mul (173 instructions) takes 0.29 seconds.

Question 35.  What is the additional cost of protection?

The cost of formal verification is the checker’s time (from fractions of a second to minutes), plus the development of the checker itself (proving in Coq requires significant effort). The  runtime cost  is zero: verified code contains no runtime checks. The  development cost  is the expansion of the E-graph ruleset with new optimizations. This is a profitable trade-off: one-time efforts yield ongoing guarantees.

Question 36.  What data confirms the improvement in reliability?

The very fact that the top theorem in Coq asserts the equivalence  of the Fiat IR and x86-64 semantics  for all inputs (not just those tested) is a powerful confirmation. Additionally, the CryptOpt code preserves constant-time properties (no secret-dependent branches or memory accesses), which protects against microarchitectural side-channel attacks. This is a direct improvement in reliability compared to compilers that can “clip” the protection.

7. Performance and fair comparison

⚙️ Detailed research option

Question 37.  What is the best classical method compared to?

Comparison with GCC 12.1.0 and Clang 15.0.6 (flags  -O3 -march=native -mtune=native), as well as with PGO variants. Separately, with STOKE (a super optimizer) and with hand-written implementations (OpenSSL, libsecp256k1, HACL*).

Question 38.  Are the conditions of comparison the same?

For GCC/Clang, yes: same fields, same inputs, same platforms. For hand-written implementations, there are caveats: different APIs are used (for example, HACL* with parallelized field arithmetic), which the authors openly state. For STOKE, there is a limitation: it doesn’t support some instructions ( shrd), which reduces comparability.

Question 39.  What is claimed: theory, experiment or practical utility?

The claimed  benefits include experimental performance  (measurements on 10 platforms) and  practical utility  (integration into OpenSSL-like scripts, scalar multiplication for Curve25519 and secp256k1). No theoretical speedup is claimed—the focus is on real-world benchmarks.

Question 40.  Are data preparation, compilation, and re-runs taken into account?

Compared to compilers, yes (compilation is part of the process, but not runtime). For optimization, yes, 20–40 hours for generation. For SUPERCOP, yes (it automatically enumerates combinations). An important nuance: CryptOpt doesn’t take into account the “checker development cost” compared to GCC, but this is a one-time expense that pays off on new microarchitectures.

Question 41.  Does the advantage remain on the useful task?

Yes. Section 7.6 shows that on Intel i7 11G, i9 12G, and i9 13G, the CryptOpt-based implementations of Curve25519 and secp256k1  are the fastest , outperforming handwritten implementations, including those using vector instructions. On other platforms, performance is parity or slightly behind. This means the advantage isn’t just a lab-based one, but rather one that manifests itself in real-world scenarios.

Question 42:  Can an improved classical algorithm change the conclusions?

Yes, and this is frankly acknowledged: PGO improves GCC by ~2% on average, and by ~15% for SIKEp434, but CryptOpt still outperforms GCC with PGO. For Curve448 and P-521, CryptOpt’s advantage over GCC is small, and future compiler improvements may offset it. However,  formal verification  remains a unique benefit that compilers don’t offer.

FieldMul vs. ClangMUL vs GCCSqr vs ClangSqr vs. GCC
Curve255191.251.161.181.17
NIST P-2241.542.521.402.56
NIST P-2561.702.611.632.59
NIST P-3841.452.491.372.51
SIKEp4341.702.431.732.39
Curve4481.190.981.071.05
NIST P-5211.300.971.351.03
Poly13051.121.221.111.26
secp256k11.802.621.712.54

Table 4 of the preprint (geometric average speedups of CryptOpt vs. compilers).

8. Experiment, evidence and reproducibility

⚙️ Detailed research option

Question 43.  What is the basis for the conclusion?

Three reasons: (1)  proof in Coq  – for correctness; (2)  experiment on 10 platforms  – for performance; (3)  artifact on Zenodo  – for reproducibility. None of them are “predictions”.

Question 44.  What are the control experiments and alternative explanations?

Benchmarks: comparison with GCC/Clang (including PGO), STOKE, and hand-written implementations. Alternative explanations for the speedup: (a) measurement noise – removed by the R3 validation method and the median; (b) platform specialization – studied separately (cross-optimization); (c) unfair comparison – the authors use SUPERCOP and identical conditions. The speedup on new microarchitectures is explained by search adaptation, not benchmark manipulation.

Question 47:  Can the key finding be reproduced independently?

Yes. Artifact:  zenodo.org/record/7710435  (DOI 10.5281/zenodo.7710435), with instructions. Repositories:  CryptOpt ,  Fiat Cryptography . Required hardware: Coq, OCaml, x86-64 machine, 20–40 hours for a full run.

9. Cryptography, cryptanalysis and the quantum threat

⚙️ Detailed research option

Question 49.  What specific cryptographic problem is being considered?

Finite field arithmetic for ECC: multiplication and squaring for 9 simple fields, including  Curve25519  (TLS),  secp256k1  (Bitcoin), NIST P-224/P-256/P-384/P-521, Curve448, SIKEp434 (post-quantum circuit), Poly1305 (MAC). These are building blocks for protocols, not protocols themselves.

Question 50.  Which quantum algorithm is applicable?

Classical ECC is vulnerable to  Shor’s algorithm  (factorization and discrete logarithm in polynomial time on a quantum computer). Poly1305 (a hash-based MAC) is not vulnerable to Shor’s algorithm, but is vulnerable to Grover’s attacks (quadratic speedup of brute-force search), so a security margin is important. SIKEp434 is a post-quantum scheme (isogeny), but it was  cracked  in 2022 (Castryck–Decru), highlighting that post-quantum primitives also require careful analysis and verified implementations.

Question 51.  What are the estimates of logical and physical resources?

Shor’s attack on 256-bit ECC requires millions of physical qubits with error correction (estimates vary from ~10⁶ to ~10⁸ depending on the error model and architecture). This  isn’t  feasible today, but it poses a long-term threat. CryptOpt doesn’t directly estimate the attack’s resources, but it ensures  the robustness of defensive implementations  during the transition period—which is critical while post-quantum standards are being implemented.

Question 52.  What source data is available to the attacker?

For ECC: the public key (a point on the curve) and signatures/exchanges. For Bitcoin: the public key becomes known after the first spend from the address—this creates a vulnerability to Shor’s attack if a quantum computer becomes powerful enough. For TLS: public handshake parameters. CryptOpt doesn’t change the threat model, but improves  implementation  security (constant-time, no leaks).

Question 53.  How do QKD and PQC differ?

Quantum Key Distribution ( QKD  ) is a physical protocol that uses quantum states to detect eavesdropping; it requires specialized hardware and trusted nodes.  PQC  is a mathematical algorithm (based on lattices, codes, hashes, and isogenies) that runs on classical computers and is resistant to quantum attacks. In August 2024, NIST approved FIPS 203 (ML-KEM), 204 (ML-DSA), and 205 (SLH-DSA). CryptOpt is an  implementation infrastructure  for both worlds: it can optimize both classical ECC (currently in use) and—in the future—PQC primitives.

Question 55.  For Bitcoin: What mechanism is being researched and when is the public key available?

secp256k1 , a curve for Bitcoin ECDSA signatures, is being investigated   . The public key becomes available on the blockchain after the first spend from an address (in the scriptPubKey of the previous output). Until then, the address contains only the public key hash (protection against attacks on dormant addresses). Quantum threats to Bitcoin: (1) Shor’s attack on exposed public keys; (2) Grover’s attack on mining (less critical); (3) the need for post-quantum signatures (e.g., on lattices) is a topic of active research. CryptOpt in the paper demonstrates  a speedup of secprocessing  on secp256k1 (1.04× vs. handwritten assembly), which is important for Bitcoin nodes and wallets.

Section Synthesis.  The quantum threat will not abolish classical cryptography tomorrow, but it does require: (a) reliable, fast, and  provably correct  implementations of classical primitives for the transition period; (b) a methodology that can be ported to PQC. CryptOpt provides both: a first-of-its-kind pipeline combining randomized search with mechanized verification, applicable to a wide class of straightforward cryptographic primitives.

10. Related areas: communications, sensors, modeling

⚙️ Detailed research option

Question 62:  What ideas can be transferred to other areas?

The “untrusted search + trusted checker” idea is universal. It can be applied to: (a) optimizing the implementation of PQC primitives (lattice, hash-based); (b) generating code for embedded platforms (ARM, RISC-V) with verification; (c) optimizing protocol state machines; (d) verifying code for quantum simulators and controllers. The methodological core—the E-graph with a minimal set of rules + symbolic execution—is portable to any straightforward code with clear semantics.

11. Practical value, economics and social consequences

⚙️ Detailed research option

Question 63.  Who needs the result?

Developers of TLS libraries (OpenSSL, BoringSSL), browsers (Chrome, Firefox), Bitcoin infrastructure (nodes, wallets), mobile platforms (Android, iOS), and embedded systems. Indirectly, all internet users whose connections are protected by ECC.

Question 64.  What is the minimum demonstration that will convince the user?

A Zenodo artifact + reproducible benchmarks + integration into an OpenSSL-like script (this article covers replacing field operations in OpenSSL fe51 and fe64 with CryptOpt versions). For Bitcoin, use libsecp256k1 + CryptOpt (Fiat) and (Opt).

Question 65:  What is the total cost of ownership and restrictions?

Development: Proof-checking in Coq is a significant one-time effort (years of man-months). Operation: 20-40 hours to optimize a set of primitives; verification takes seconds to minutes per file. Limitations: x86-64 only and straightforward code; a new backend is required for other architectures (although the methodology is portable).

Question 66.  What are the barriers to industrial application?

(1) Support for other architectures (ARM64 – dominant on mobile and Apple Silicon; RISC-V – the future). (2) Extension to PQC primitives with branches and complex memory. (3) Integration into existing assembly chains (currently a separate tool). (4) Developer training. (5) Trust in the Coq ecosystem in the industry (growing, but slowly).

Question 67:  What are the security and dependency risks?

Vendor dependency (Coq, Fiat Cryptography) is moderate; both are open-source. Risk of “false trust”: if the user thinks  the optimizer is verified , not just its output, this is not the case, and this should be clearly documented. The risk of errors in the checker itself is mitigated by proofs in Coq, but the risk of errors in code extraction remains—a standard problem solved by careful engineering.

12. The Future, Open Questions, and Synthesis

⚙️ Detailed research option

Question 69.  What issues remain open?

(1) Optimization of large functions (P-521, Curve448) – smarter mutations are needed. (2) Porting to ARM64/RISC-V. (3) Application to PQC (lattices, codes, hashes) – it has branches and complex memory, which is beyond the scope of the current model. (4) Verification of the optimizer itself (currently only a checker). (5) Post-quantum migration of Bitcoin and TLS – an organizational and engineering task, for which CryptOpt is one of the tools.

Question 70.  Which of the following experiments will distinguish between competing explanations?

(a) Cross-platform optimization on new microarchitectures (already partially implemented — Appendix C). (b) Extension to PQC primitives with verification of the persistence of the advantage. (c) Comparison with machine-learned search strategies. (d) Long-term measurements on real-world workloads (TLS servers, Bitcoin nodes).

Question 71:  What measurable milestones will show progress?

Stage 1: ARM64 backend with verification. Stage 2: PQC primitives (ML-KEM, ML-DSA) with verification. Stage 3: Integration into OpenSSL/BoringSSL as an optional backend. Stage 4: Public benchmarks on new CPUs (Intel 14G+, AMD Zen5+).

Question 74.  What other article can it be compared with?

With  Fiat Cryptography  [Erbsen et al. 2019], CryptOpt extends its backend. With  Alive2  [Lopes et al. 2021], both implement translation validation, but CryptOpt proves a checker in Coq and does not use the SMT solver. With  STOKE  [Schkufza et al. 2013], both use randomized search, but STOKE does not verify and scales worse. With  CompCert  [Leroy 2009], both rely on verified compilation, but CryptOpt optimizes  assembly rather than C.

Question 75:  What new test question arises?

The new question is:  “Can the trustless search + trusted checker model be extended to post-quantum primitives with branching and complex memory while maintaining acceptable verification times?” This is a direct bridge between CryptOpt and the post-quantum agenda—and a direction where the next breakthrough is possible.

Synthesis: Three Conclusions

⚙️ Detailed research option

  1. Methodological.  Verification and performance are no longer antagonists. The “search”/”proof” separation allows for the use of any heuristics without increasing the trust base. This is a paradigm shift comparable to the transition from “prove the compiler” to “prove the checker.”
  2. Practical.  On new microarchitectures (Intel 12G/13G), automatic search outperforms handwritten assembly language—this changes the optimization economy: instead of heroic efforts for each CPU, it’s a reproducible process.
  3. Strategic.  In the age of quantum security, classical ECC must remain secure during the transition period, while PQC must be implemented with provably correct implementations. CryptOpt provides tools for both stages, and its methodology is transferable to PQC.

The article’s main thesis:  the quantum threat is not only a mathematical challenge (replacing ECC with PQC), but also an  engineering challenge : new primitives must be implemented quickly, correctly, and without leaks. CryptOpt demonstrates that this challenge can be met without having to choose between speed and guarantees. This is a rare case where rigor and performance do not compete, but rather reinforce each other.

Pre-publication check (using the designer’s checklist)

⚙️ Detailed research option

  • ✅ Observations (benchmarks), evidence (Coq) and predictions (quantum threat) are separated.
  • ✅ Every significant statement has a source (CryptOpt preprint, FIPS 203/204/205, National Quantum Initiative).
  • ✅ Physical qubits are not replaced by logical ones, and simulation is not replaced by an experiment (in CryptOpt there is no experiment, there are only classical measurements – this is clearly stated).
  • ✅ The advantage is compared under comparable conditions (GCC/Clang, PGO, STOKE, hand-written assembler).
  • ✅ There are no promises of an exact hack date or universal quantum acceleration.
  • ✅ Limitations (x86-64 only, straight-line code only, modest gain for large fields) are presented clearly.
  • ✅ The reader understands what the article offers and how to test it (artifact on Zenodo).

Reference sources

⚙️ Detailed research option

  1. Kuepper J., Erbsen A., Gross J., Conoly O., Sun C., Tian S., Wu D., Chlipala A., Chuengsatiansup C., Genkin D., Wagner M., Yarom Y.  CryptOpt: Verified Compilation with Randomized Program Search for Cryptographic Primitives (full version). arXiv:2211.10665v3. — Primary source of all technical assertions.
  2. Erbsen A., Philippoom J., Gross J., Sloan R., Chlipala A.  Simple High-Level Code for Cryptographic Arithmetic – With Proofs, Without Compromises. IEEE S&P 2019. – Fiat Cryptography, Core Framework.
  3. Leroy X.  A Formally Verified Compiler Back-end. J. Autom. Reason. 43(4), 2009. — CompCert, a pioneer in verified compilation.
  4. Schkufza E., Sharma R., Aiken A.  Stochastic Superoptimization. ASPLOS 2013. – STOKE, comparison with superoptimizers.
  5. Lopes N.P., Lee J., Hur C.-K., Liu Z., Regehr J.  Alive2: Bounded Translation Validation for LLVM. PLDI 2021. – Translation validation.
  6. NIST.  FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA), August 2024. — Post-quantum standards.
  7. National Quantum Initiative.  quantum.gov  — areas of quantum technologies (computing, networks, sensors).
  8. NCCoE.  Migration to Post-Quantum Cryptography.  nccoe.nist.gov  — practical migration.
  9. CryptOpt artifact.  DOI 10.5281/zenodo.7710435 ; CryptOpt ,  Fiat Cryptography repositories  .

The document is prepared as a research article;