Generation of Cryptography Algorithms Using AI Agents
Abstract
Designing a new cryptographic algorithm for a stated security requirement, such as resistance to a cryptanalytically relevant quantum computer (CRQC), is today an expert-driven and slow process. This paper introduces generative cryptography: the automatic, or semi-automatic, generation of candidate cryptographic algorithms from a stated goal, the hardness assumptions the goal needs, and the hard mathematical problems that support those assumptions. In the semi-automatic mode, AI models act as a crypto copilot that assists a human team. We define the elements of a cryptography artifact and describe a discovery pipeline in which assumptions, problems and algorithms are determined or generated and then validated using agentic frameworks, retrieval-augmented generation, fine-tuned models, automated testing, automated theorem proving, adversarial AI agents and human experts. We describe the generation as nineteen steps, from the interpretation of a request to the packaging and documentation of the algorithm, carried out by three cooperating multi-agent systems for generation, for testing and validation, and for patching. Each generated algorithm is represented according to a model of cryptography artifacts, with goals, assumptions and hard problems as graphs. We describe two methods of generative mathematics for finding hard problems, the second based on a problem graph and a partially ordered lattice of problems. We treat quantum-safe cryptography and AI-safe cryptography as separate requirements that depend on the threat model, and we survey machine-learning-based cryptanalysis from 1991 to November 2026. We discuss hallucination and bias as risks at every step. The paper is conceptual: it presents the idea, its structure and its open issues, and does not report an implementation.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
Related papers
Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents
Shared title terminologycs.CRTiancheng Zhu, Mingjie Chen, Mingxue Zhang et al.
Celeritas: Architecture-Aware FHE Kernel Generation Across Diverse GPUs
Shared title terminologycs.CRSiddharth Jayashankar, Michael B. Sullivan, Simon Langowski et al.
PQCMigrate-Bench: Can LLM Agents perform Real-World Post-Quantum Cryptographic Migrations?
Shared title terminologycs.CRKrishna Upadhyay, Daniel Liu, A. B. Siddique et al.
SoK: Mapping LLM Agent Guardrails Against Real-World Incidents
Shared title terminologycs.CRYipu Dou
PvP: Intent-Conditioned Anomaly Detection Against Tool Poisoning Attacks in Agentic AI
Shared title terminologycs.CRMax de Leeuw, Cristoffer Leite, Indika Kumara
DP-Bits: Bounding the Influence of Untrusted Data on AI Agent Planners with Priced Guidance
Shared title terminologycs.CRNils Lukas, Tameem Bakr