Bridging Number-Theoretic Primality Testing And Algorithmic Optimization: An Adaptive Cryptographic Framework
Organizations: Faculty of Information Technology, University of Science, Ho Chi Minh City, Vietnam · Vietnam National University, Ho Chi Minh City, Vietnam
Abstract
The security of modern public-key cryptographic systems, such as RSA, Diffie-Hellman, and ECC, depends entirely on the computational intractability of the integer factorization and discrete logarithm problems. For these asymmetric algorithms to operate, a core requirement is that the system must be capable of generating, testing, and simultaneously proving the primality of extraordinarily large numbers. To meet those requirements, this study proposes a comprehensive framework, bridging clas- sical number theory with modern machine learning models and optimization algorithms. Specifically, the paper delineates an adaptive, arbitrary-precision architecture dedicated exclusively to primality testing. Concurrently, the research deeply analyzes the theoretical foundations of testing methods (both deterministic and probabilistic), hardware-level optimization techniques, and the application of quantum-secured entropy sources, while providing rigorous mathematical proofs to guarantee security even when the prime distribution is biased.
Figures & tables
| Algorithm Framework | Time Complexity | Error Probability | Cryptographic Advantages | Vulnerabilities / Drawbacks |
|---|---|---|---|---|
| Fermat Test | 1 for Carmichael numbers | Simple baseline implementation | Utterly defeated by Carmichael numbers AbuDaqa et al. (2020) . | |
| Solovay-Strassen | Resolves Carmichael flaw | High overhead computing Jacobi symbols AbuDaqa et al. (2020) . | ||
| Miller-Rabin | Extremely fast, tunable certainty | Requires multiple bases for absolute security AbuDaqa et al. (2020) . | ||
| Baillie-PSW | 0 for | No known pseudoprimes exist | Heuristic; lacks formal mathematical proof for all AbuDaqa et al. (2020) . |
| Optimization Paradigm | Cryptographic Application | Mechanism of Action | Constraint / Limitation |
|---|---|---|---|
| Gradient Descent (Adam, RMSprop) | Neural Cryptanalysis | Continuous weight updates | Fails due to barren plateaus in high-frequency modular arithmetic Takhanov et al. (2023) . |
| Bayesian Optimization | Search Grid Tuning | Surrogate probabilistic models | Computationally expensive scaling GP models for massive sample budgets. |
| Policy Gradients ( Sutton et al., 2000 ) | Dynamic Cache & Buffer Tuning | Reinforcement over execution telemetry | Requires continuous statistical sampling and validation of state transitions ( Alabed, 2019 ) . |
| Supervised Machine Learning | Intelligent Witness Selection | Predictive targeting of prime bases | Classifier overhead must remain smaller than modular exponentiation cost. |
Cybersecurity
Cybersecurity develops methods to protect digital and cyber-physical systems from attacks, vulnerabilities, data loss, and misuse.
See all 355 papers