Cryptography & Math
12 min read • Updated: 2026-11-20

RSA vs. ECDSA vs. Post-Quantum (ML-DSA) Cryptography: A Practical Guide

A comparative evaluation of mathematical hardness, key sizes, performance benchmarks, and FIPS 204 transition standards.

Authored by WONTERA Engineering • Verified Standards

For over four decades, public-key cryptography has relied on two foundational mathematical problems: the difficulty of factoring large composite integers (RSA) and computing discrete logarithms over finite fields or elliptic curve groups (ECDSA / Ed25519). With the advent of Shor's algorithm on fault-tolerant quantum computers, both mechanisms will become breakable in polynomial time.

1. The Three Eras of Public-Key Cryptography

Paradigm Mathematical Hardness Typical Public Key Size Signature Size Quantum Resistance
RSA (2048-bit) Integer Factorization 256 bytes 256 bytes Vulnerable to Shor's
ECDSA (P-256) Elliptic Curve Discrete Log 64 bytes (uncompressed) 64 bytes Vulnerable to Shor's
Ed25519 (EdDSA) Twisted Edwards Curve Discrete Log 32 bytes 64 bytes Vulnerable to Shor's
ML-DSA-65 (FIPS 204) Module Learning With Errors (Lattice) 1,952 bytes 3,309 bytes Quantum Resistant

2. NIST Post-Quantum Standards Overview

In August 2024, the National Institute of Standards and Technology (NIST) finalized its official post-quantum cryptographic standards:

  • FIPS 203 (ML-KEM): Module-Lattice-Based Key-Encapsulation Mechanism (derived from CRYSTALS-Kyber). Used for general encryption and key exchange in TLS 1.3.
  • FIPS 204 (ML-DSA): Module-Lattice-Based Digital Signature Algorithm (derived from CRYSTALS-Dilithium). Used for identity authentication and digital signatures.
  • FIPS 205 (SLH-DSA): Stateless Hash-Based Digital Signature Algorithm (derived from SPHINCS+). A conservative hash-based backup scheme.

3. The Engineering Tradeoffs

While ML-DSA provides provable quantum security based on the worst-case hardness of lattice problems, it introduces significant network and storage overhead:

  • Packet Fragmentation: An ML-DSA-65 public key (1.9 KB) and signature (3.3 KB) together exceed the standard Ethernet MTU (1,500 bytes). A single TLS handshake signature requires multi-packet TCP transmission, which can trigger packet loss on congested mobile networks.
  • JWT Token Bloat: Embedding an ML-DSA signature inside an HTTP Authorization: Bearer <token> header yields a token over 4.5 KB in size, exceeding the default header limits of many reverse proxies (such as Nginx's default client_header_buffer_size 1k).

Because of these constraints, the industry is currently adopting hybrid modes in TLS 1.3 (e.g., X25519 + ML-KEM-768), combining battle-tested classical security with quantum-resistant key exchange.

Interactive Tool

Put This Guide into Practice

Test your certificates, keys, or tokens in-memory with our zero-disk developer tool.

Open JWT Studio & Debugger