Cryptography

Ed25519, Quantum Resistance, and AI

Ed25519 is not quantum-resistant. Understand what AI changes, how post-quantum signatures differ, and how to plan a migration.

A signing machine marks a document, with a stylized quantum computer in the distance.
Digital signatures and quantum computing. Conceptual AI-generated illustration for aaronkaufman.com.

Ed25519 is useful, widely deployed, and not quantum-resistant. AI does not change that answer. What it changes is the environment around the signature: more generated code, more automated decisions, and new opportunities to mishandle the keys that make authentication work. Planning for quantum attacks means replacing vulnerable cryptography while keeping those everyday failures in view.

What Ed25519 signatures guarantee

Ed25519 is a digital signature scheme. A private key signs a message, and the corresponding public key lets someone verify it. Its public keys are 32 bytes and its signatures are 64 bytes. RFC 8032 describes an intended classical security level of about 128 bits. Those properties make it useful where small keys and signatures matter. RFC 8032.

A valid signature establishes a relationship between specific data and a signing key. Trust in a person or organization also depends on how that public key was obtained. If an attacker replaces both a download and the public key offered beside it, checking the signature against that replacement key provides no useful assurance about the original publisher.

Signing also does not encrypt the message. Nor does it prove that signed code is safe, a model is accurate, or a document is truthful. A publisher can sign a bad release. An attacker who steals its signing key can produce signatures that verify correctly.

Why quantum computers change the calculation

Ed25519 relies on an elliptic curve discrete logarithm problem. A sufficiently capable quantum computer running Shor’s algorithm could solve that problem and derive the signing secret from a public key, allowing forged signatures. Switching to a larger conventional elliptic curve does not remove that class of attack. RFC 8032 explicitly identifies both Ed25519 and Ed448 as vulnerable to quantum computing. RFC 8032 security considerations.

That requires a cryptographically relevant quantum computer, not simply a machine advertised as quantum. AI assistance does not supply the quantum hardware this attack requires. The engineering problem is to prepare systems that may remain in service for years without treating an uncertain arrival date as an excuse to postpone every migration decision. IETF guidance on quantum attacks.

Signatures also face a different timing problem from encrypted traffic collected for later decryption. With signatures, the concern is future forgery and whether verifiers can distinguish legitimate historical records from newly forged ones. Software updates, archived documents, and trust anchors can need protection long after their original signing date. IETF guidance on migration timelines.

Where AI creates immediate risk

The UK’s National Cyber Security Centre assesses that AI will make parts of cyber intrusion more efficient and effective. For an operator, that is a reason to examine exposed services, credentials, and release systems. An attacker may gain more from compromising a build job or tricking a maintainer than from attacking the signature algorithm itself. NCSC assessment through 2027.

Consider an AI agent preparing a software release. If it can modify source code, approve the build, and invoke the signing service, the signature may authenticate a release nobody independently checked. That is an authorization failure. Changing Ed25519 to a quantum-resistant algorithm would still leave the agent with the same excessive authority.

Separate generation from approval. Give signing services narrow permissions, log their use, and require review before sensitive releases. When signing model artifacts, define which weights, configuration, tokenizer, and dependencies the signature covers. Verifying one file does not establish the integrity of every component loaded alongside it.

An automated arm prepares a document, a human opens an approval gate, and a separate machine signs the release.
Keep generation, approval, and signing separate. Conceptual AI-generated illustration for aaronkaufman.com.

Moving to quantum-resistant signatures

NIST standardized ML-DSA in FIPS 204 and SLH-DSA in FIPS 205 in 2024. They use different foundations: structured lattices for ML-DSA and hash functions for SLH-DSA. Both are intended to resist known quantum attacks. They still require sound implementations, protected keys, and ongoing cryptanalysis. Quantum-resistant describes a security goal, not a promise that software cannot fail. NIST post-quantum standards.

ML-KEM serves a different purpose. It establishes a shared secret for uses such as encryption. It does not replace an Ed25519 signature. FIPS 203.

The same distinction matters in SSH. OpenSSH supports post-quantum key agreement, but that does not automatically make an Ed25519 authentication key quantum-resistant. Check the negotiated key agreement and the signature algorithms separately. A product’s quantum security claim may cover one part of the connection. OpenSSH post-quantum guidance.

Start by inventorying where signatures are created and verified. Include release tooling, firmware, package repositories, and devices that cannot easily be updated. Test supported migration paths with real clients. Measure larger signatures, storage limits, verification costs, and failure handling before changing production trust rules. NIST migration project.

Plan how new public keys reach verifiers before changing the signer. Test missing signatures, altered artifacts, expired credentials, and attempts to select an older algorithm. Make rollback rules explicit so a failed upgrade cannot quietly restore a retired trust path. Keep an owner responsible for each stage of the transition.

If a protocol combines classical and post-quantum signatures, understand its acceptance rules. Requiring both signatures can preserve protection when one scheme fails. Accepting either can preserve the weaker path. Use reviewed protocol designs rather than inventing a combination that merely attaches two signatures. IETF hybrid authentication guidance.

Ed25519 deserves a migration plan based on its limits. AI makes disciplined access control and release review more urgent. Quantum computing makes the choice of signature algorithm a long term concern. Treat both as engineering work with named owners, tested changes, and a way to verify progress.