This research paper shows how one classical result—a pseudorandom bit generator on elliptic curves—faces a quantum threat, which research design questions apply to it, and which testable hypotheses can be formulated. This is not a survey of all quantum cryptography, but a focused analysis. The paper [1] is a useful illustration of how a classical cryptographic idea (PRBG on ECDLP) faces two limitations: parametric (a weak example) and modeling (a quantum threat). The paper does not refute the EC-PRBG as a concept, but shows that it cannot be taken as a ready-made cryptographic primitive without a separate analysis of the parameters and threat model.
New testable questions that arise from the analysis:
- How can quantum backtracking resistance be determined formally—by playing with an opponent who has Shor’s oracle?
- What parameters (field size, subgroup order, cofactor, hash) make EC-PRBG secure in a hybrid classical-quantum model?
- Is it possible to build a PRBG that is both classically and quantumly secure using post-quantum primitives (ML-KEM, ML-DSA)?
- How does EC-PRBG compare to HMAC_DRBG in terms of overall cost (training, computation, verification, migration)?
- What is the minimal experiment that will show the difference between statistical and cryptographic randomness for PRBG on elliptic curves?
Answering these questions is not the subject of a single article, but rather a series of studies at the intersection of classical and quantum cryptography. This is precisely what makes the topic so interesting: a single bit generator is the point at which number theory, statistics, quantum computing, and practical security converge .
Content
- Introduction: Two Paradoxes
- The EC-PRBG mechanism: how it works
- Critical Analysis of Parameters: Why the Example Doesn’t Prove Robustness
- Quantum Threat: Shor’s Algorithm and ECDLP
- Resource assessments of quantum attack
- Testable hypotheses and what could disprove them
- From EC-PRBG to Post-Quantum Cryptography: Migration
- Synthesis: What Remains True and What Falls Apart
- Conclusion and new questions
- Sources
1. Introduction: Two Paradoxes
The work by Reyad, Karar, and Hamed [1] proposes an elliptic curve pseudorandom bit generator (EC-PRBG) and justifies its security by the difficulty of the elliptic curve discrete logarithm problem (ECDLP). At first glance, everything is convincing: 15 NIST statistical tests are passed, image encryption yields an entropy of 7.9971, NPCR > 99.47%, and the correlation of adjacent pixels is close to zero.
But there are two paradoxes hidden here that form the core of this article.
Paradox 1 : “Passing NIST tests ≠ cryptographic strength.” NIST tests check the statistical properties of a bit sequence: frequencies, run lengths, and spectral characteristics. They do not check the computational complexity of predicting the next bit based on the previous ones. A generator that passes all 15 tests can be trivially predictable if its internal state has low entropy.
Paradox 2 : “Resistance that vanishes with the advent of a quantum computer.” The entire construction of EC-PRBG, including its claimed backtracking resistance , relies on the undecidability of ECDLP. Shor’s algorithm solves ECDLP in polynomial time on a fault-tolerant quantum computer. This means that the property the author calls “deep-seated” is actually conditional: it holds only as long as ECDLP remains difficult.
These two paradoxes make [1] a convenient entry point for research: we take a particular classical construction and test which of its assertions survive the challenge of (a) critical parameter analysis and (b) a quantum threat model.
What exactly is being investigated (questions 1–5 of the designer)
- Problem: Can EC-PRBG serve as a source of pseudorandom bits for cryptographic applications in the era of quantum computing?
- Object: not a “quantum computer” in general, but a specific connection “ECDLP → EC-PRBG → NIST tests → image encryption”.
- Hypothesis (H1): The example parameters from the article do not provide the stated stability even classically.
- Rebuttal to H1: If the order of the subgroup \(\ell\) had a large prime factor and the field were \(\ge 256\) bits, the example might be consistent.
- Limitations: The article does not consider quantum attacks, does not analyze the subgroup order for smoothness, and does not separate statistics from cryptographic strength.
2. The EC-PRBG mechanism: how it works
An elliptic curve over \(\mathbb{F}_p\) (\(p>3\)) is given by the Weierstrass equation
E: y² = x³ + ax + b, 4a³ + 27b² ≠ 0 (mod p).
The points of the curve, together with the point at infinity \(O\), form an Abelian group. Addition and doubling of points are given by the formulas:
x₃ = ((y₂ − y₁)/(x₂ − x₁))² − x₁ − x₂, y₃ = ((y₂ − y₁)/(x₂ − x₁))(x₁ − x₃) − y₁ (addition)
x₃ = ((3x₁² + a)/(2y₁))² − 2x₁, y₃ = ((3x₁² + a)/(2y₁))(x₁ − x₃) − y₁ (doubling)
Scalar multiplication \([k]P\) is \(k\)-fold addition of a point \(P\). ECDLP consists of finding \(k\) given \(P\) and \(Q = [k]P\).
EC-PRBG diagram from [1] (Fig. 3 of the work):
s i = φ(x([s i−1 ]P)), i = 1, 2, …
H i = φ(x(s i ), H i−1 )
where \(s_0 \in E(\mathbb{F}_p)\) is the secret initial state, \(\varphi\) is the x-coordinate extraction, \(H\) is the hash function (SHA-256 in the example). The output bits are the least significant bits of \(H_i\).
Claimed backtracking resistance
The authors argue that knowledge of \(s_1\) prevents the reconstruction of \(s_0\), while knowledge of \(H_1\) prevents the reconstruction of \(s_1\), “unless the adversary solves ECDLP for the given curve.” The logic is sound—but it is precisely this that is vulnerable: if ECDLP is solved, the entire chain is reconstructed.
Example from the article
| Parameter | Meaning | Comment |
|---|---|---|
| Curve | E: y² = x³ + 4x + 1 | a = 4, b = 1 |
| Field | \(\mathbb{F}_{503}\) | ≈ 9 bits |
| Order of group N | 516 = 4 × 129 | cofactor 4 |
| Generator G | (283, 315) | — |
| Order G: ℓ | 129 = 3 × 43 | composite, smooth |
| Hash | SHA-256 | — |
3. Critical analysis of parameters: why the example does not prove stability
The key problem. The order of the subgroup generated by \(G\) is \(\ell = 129 = 3 \times 43\). This is a composite smooth number. According to the Pohlig–Hellman algorithm, ECDLP in such a subgroup reduces to DLP in subgroups of orders 3 and 43, each of which can be solved by brute force in units of operations. Pollard’s method (rho) yields \(\sqrt{129} \approx 11\) steps. That is, the example from the article is not cryptographically secure even against a classical adversary .
This isn’t a nitpick. The authors state, “Security key strengths of 112, 128, 192, and 256 bits may then be supported”—but this is a statement about the mechanism’s potential , not a demonstrated example. A reader who sees “p = 503” and “ℓ = 129” should understand that this is a demonstration of the idea’s functionality , not a proof of its security.
Comparison: What is needed for real durability?
| Parameter | In the article [1] | Minimum for 128-bit classic strength |
|---|---|---|
| Field size | ~9 bits | ≈ 256 bits |
| Subgroup order | 129 (smooth) | big prime ≈ 256 bits |
| Cofactor | 4 | 1 (or small with verification) |
| Pohlig–Hellman resistance | No | mandatory |
Why don’t NIST tests catch this?
NIST SP 800-22 [11] tests statistical randomness. A sequence generated by a weak PRBG with a small state space may appear random over short intervals. Moreover, the paper [1] itself honestly reports high p-values but does not examine predictability. This is a classic methodological pitfall: a statistical test is a necessary, but not sufficient, condition for cryptographic security .
Conclusion. Hypothesis H1 is confirmed: the parameter example from [1] does not provide the claimed security, even classically. This does not invalidate the idea of EC-PRBG, but it does require an explicit distinction between “demonstration” and “cryptographic security.”
4. Quantum threat: Shor’s algorithm and ECDLP
Shor’s algorithm (1994) solves the discrete logarithm problem in an arbitrary finite Abelian group in polynomial time, given a fault-tolerant quantum computer. For ECDLP, this means that if the adversary has a sufficiently large quantum computer, it can recover \(s_0\) from \(s_1\) (and indeed any state of the chain) in time polynomial in the field size.
Formally, a quantum attack on EC-PRBG looks like this:
- The adversary intercepts the output bits \(H_i\) (or \(s_i\) if the state is leaked).
- From \(H_i\) and the known structure, it restores \(s_i\) (if the hash is reversible in the “perfect oracle” model, that’s a separate issue; but if \(s_i\) leaks, it already exists).
- Solves ECDLP: find \(s_{i-1}\) from \(s_i = \varphi(x([s_{i-1}]P))\).
- Iterates backwards through the entire chain.
In a model where the hash function behaves as a random oracle, step 2 is difficult. However, backtracking resistance in [1] is claimed to be achieved through ECDLP, not through the hash. This means that a quantum adversary with access to intermediate states (or capable of reconstructing them) breaks the chain.
Relationship with ECDSA and session keys
The authors [1] explicitly state that EC-PRBG is “more suitable for producing pseudorandom bits in the EC-based digital signature algorithm (ECDSA) and session keys in related encryption stages.” This increases the threat: if EC-PRBG generates session keys, a quantum adversary restoring the state also restores the keys.
5. Resource assessments of quantum attack
The estimates below are based on the results of Roetteler, Naehrig, Svore, and Lauter (2017) on resources for ECDLP and on general fault-tolerance estimates. They show that for realistic curves, a quantum attack requires large but engineeringly feasible resources—making the threat strategic rather than fanciful.
| Field size (bits) | Logical qubits (Shor) | Toffoli-gates | Classic durability (Pollard rho) | Comment |
|---|---|---|---|---|
| 9 (example [1]) | ~21 | ~10³ | ~11–23 operations | Trivial both classically and quantumly |
| 256 | ~2330 | ~1.26 × 10¹¹ | ~2¹²⁸ | Requires a fault-tolerant quantum computer |
| 384 | ~3484 | ~6.41 × 10¹¹ | ~2¹⁹² | Likewise |
| 521 | ~4700 | ~1.59 × 10¹² | ~2²⁶⁰ | Likewise |
Note: Taking into account the surface code of physical qubits, it would take ~1,000–10,000 times more, and the execution time would be hours to days. This isn’t “tomorrow,” but it’s not “never” either.
What does this mean for EC-PRBG?
For the parameters from [1], a quantum attack is not necessary—a classical attack can handle it. For “real” parameters (256+ bits), a quantum attack requires more resources, but it nullifies the backtracking resistance . This is the main conclusion: EC-PRBG inherits the quantum vulnerability of ECDLP .
6. Testable hypotheses and what could disprove them
| Hypothesis | The investigation under review | What would refute |
|---|---|---|
| H1. Example [1] (p=503, ℓ=129) is not classically stable | Pohlig–Hellman recovers \(s_0\) in polynomial time; in practice, in fractions of a second | If ℓ had a large prime factor and p ≥ 256 bits |
| H2. Backtracking resistance disappears in the presence of FTQC implementing Shor | Simulating the chain with the ECDLP quantum solver recovers \(s_0\) | If it could be proven that the hash chain is secure independently of ECDLP |
| H3. NIST tests do not correlate with cryptographic strength | A weak PRBG (e.g., a small-modulus LCG) passes some of the NIST tests. | If there was a theorem “NIST tests ⇒ resistance” |
| H4. Migration to PQC required | Comparing the cost of migration and the risks of not migrating | If ECDLP remained difficult for quantum computers |
Methodological note. H2 and H3 are hypotheses about models . They cannot be “proven experimentally on current hardware”; one can only show that the conclusion follows within the accepted threat model. This is a normal situation in cryptography: security is proven in a model, not measured in a lab.
7. From EC-PRBG to Post-Quantum Cryptography: Migration
In August 2024, NIST approved FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA) [2]. These standards are designed to counter future quantum attacks. The NCCoE is leading a practical migration project [3].
What does this mean for an elliptic curve generator?
- A direct consequence is that if an EC-PRBG is used to derive keys or session secrets, it must either be replaced by a DRBG based on post-quantum primitives, or used in a hybrid scheme where the security is provided by at least one post-quantum component.
- Not a direct consequence: the fact that EC-PRBG uses SHA-256 doesn’t help: its strength lies in ECDLP, not the hash.
- Practical conclusion: the construction [1] is useful as an educational demonstration, but not as the basis for a long-term cryptosystem.
Comparison of approaches
| Approach | Classic durability | Quantum resistance | Status |
|---|---|---|---|
| EC-PRBG [1] | depends on the parameters; example – weak | no (Shor) | research |
| HMAC_DRBG / CTR_DRBG (NIST SP 800-90A) | high if chosen correctly | depends on the base primitive | standard |
| ML-KEM (FIPS 203) | high | post-quantum | standard 2024 |
| ML-DSA/SLH-DSA (FIPS 204/205) | high | post-quantum | standard 2024 |
8. Synthesis: What Remains True and What Falls Apart
What remains true
- The idea of using ECDLP for PRBG is mathematically correct: if ECDLP is hard, the chain of states is hard to reverse.
- The hash function helps to “smear” the entropy and make it difficult to recover the exit from the state (in the random oracle model).
- Statistical tests are useful as a sanity check, but not as proof of robustness.
- Application to image encryption demonstrates the functionality of the bit stream, but not the cryptographic strength of the scheme.
What is collapsing?
- The claim of robustness for the example p=503, ℓ=129 collapses: the parameters are weak.
- Backtracking resistance as an unconditional property collapses: it is conditional according to ECDLP.
- The identification of “NIST tests passed” and “PRBG is stable” collapses: these are different statements.
- Long-term applicability collapses in the scenario of the emergence of a cryptographically significant quantum computer.
Connection with questions 69–71, 75–76 of the designer. After the analysis, the following questions remain open: (a) how to formally define “quantum backtracking resistance” for PRBG; (b) what parameters make EC-PRBG secure in a hybrid model; (c) how to compare EC-PRBG with HMAC_DRBG in terms of full cost; (d) what minimal experiment will demonstrate the difference between “statistical” and “cryptographic” randomness.
9. Conclusion and new questions
The paper [1] is a useful illustration of how a classical cryptographic idea (PRBG on ECDLP) faces two limitations: parametric (the example is weak) and modeling (the quantum threat). The paper does not refute EC-PRBG as a concept, but shows that it cannot be taken as a ready-made cryptographic primitive without a separate analysis of the parameters and the threat model.
New testable questions that arise from the analysis:
- How can quantum backtracking resistance be determined formally—by playing with an opponent who has Shor’s oracle?
- What parameters (field size, subgroup order, cofactor, hash) make EC-PRBG secure in a hybrid classical-quantum model?
- Is it possible to build a PRBG that is both classically and quantumly secure using post-quantum primitives (ML-KEM, ML-DSA)?
- How does EC-PRBG compare to HMAC_DRBG in terms of overall cost (training, computation, verification, migration)?
- What is the minimal experiment that will show the difference between statistical and cryptographic randomness for PRBG on elliptic curves?
Answering these questions is not the subject of a single article, but rather a series of studies at the intersection of classical and quantum cryptography. This is precisely what makes the topic so interesting: a single bit generator is the point at which number theory, statistics, quantum computing, and practical security converge .
10. Sources
- O. Reyad, M. Karar, K. Hamed. Random Bit Generator Mechanism Based on Elliptic Curves and Secure Hash Function . arXiv:2002.09239v1.
- NIST. FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), FIPS 205 (SLH-DSA). Approved August 13, 2024.
- NIST NCCoE. Migration to Post-Quantum Cryptography .
- PW Shor. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM J. Comput. , 1997.
- M. Roetteler, M. Naehrig, K. M. Svore, K. Lauter. Quantum resource estimates for computing elliptic curve discrete logarithms. ASIACRYPT , 2017.
- S. Pohlig, M. Hellman. An improved algorithm for computing logarithms over GF(p) and its cryptographic significance. IEEE Trans. Inf. Theory , 1978.
- J. M. Pollard. Monte Carlo methods for index computation (mod p). Math. Comp. , 1978.
- E. B. Barker, J. M. Kelsey. Recommendations for Random Number Generation Using Deterministic Random Bit Generators . NIST SP 800-90A Rev. 1, 2012.
- A. Rukhin et al. A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications . NIST SP 800-22.
- N. Koblitz. Elliptic curve cryptosystems. Math. Comp. , 1987.
- V. Miller. Uses of elliptic curves in cryptography. CRYPTO’85 , 1986.
- BS Kaliski. One-way permutations on elliptic curves. J. Cryptology , 1991.
This article is a research analysis based on materials from [1] and a research question constructor on quantum technologies. All critical comments pertain to the parameters and threat model, not the authors’ identities. Quantum resource estimates are approximate and are given for orders of magnitude.
