Skip to content

Generation of Cryptography Algorithms Using AI Agents

Ashish Kundu, Ramana Kompella

cs.CR

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