{
  "slug": "rsa-signatures",
  "name": "RSA signatures",
  "aka": "RSASSA-PSS, RSASSA-PKCS1-v1_5",
  "group": "signatures",
  "kind": "Digital signature",
  "summary": "RSA signatures are broken by Shor's algorithm. The general-purpose replacement is ML-DSA; SLH-DSA and the stateful hash-based schemes LMS and XMSS serve roots of trust and firmware signing.",
  "used_in": "X.509 certificates, code and firmware signing, JWT (RS256, PS256), DNSSEC, S/MIME and document signatures.",
  "problem": "Integer factorization",
  "quantum": "broken",
  "attack": "Shor's algorithm",
  "exposure": "Shor's algorithm recovers the private key from the public key. A forgery requires a quantum computer at the time of the attack, so nothing recorded today is exposed. Keys that must be trusted for decades, such as root certificates and firmware signing keys, set the deadline.",
  "recorded": "Not exposed. A forgery requires a quantum computer at the time of the attack.",
  "out_label": "Signature",
  "sizes": [
    {
      "label": "RSA-2048",
      "pk": 256,
      "out": 256
    },
    {
      "label": "RSA-3072",
      "pk": 384,
      "out": 384
    }
  ],
  "replace": [
    {
      "slug": "ml-dsa",
      "name": "ML-DSA",
      "standard": "FIPS 204",
      "status": "Final",
      "standardized": true,
      "note": "The general-purpose replacement. CNSA 2.0 requires ML-DSA-87.",
      "page": "https://quantum.zksecurity.xyz/algorithms/ml-dsa/"
    },
    {
      "slug": "slh-dsa",
      "name": "SLH-DSA",
      "standard": "FIPS 205",
      "status": "Final",
      "standardized": true,
      "note": "Relies on hash functions alone. Large signatures and slow signing: for roots of trust and other keys that sign rarely.",
      "page": "https://quantum.zksecurity.xyz/algorithms/slh-dsa/"
    },
    {
      "slug": "lms-hss",
      "name": "LMS / HSS",
      "standard": "RFC 8554, SP 800-208",
      "status": "Final",
      "standardized": true,
      "note": "Stateful: each one-time key signs once. For firmware and software signing on controlled hardware, the use CNSA 2.0 lists it for.",
      "page": "https://quantum.zksecurity.xyz/algorithms/lms-hss/"
    },
    {
      "slug": "xmss",
      "name": "XMSS / XMSS^MT",
      "standard": "RFC 8391, SP 800-208",
      "status": "Final",
      "standardized": true,
      "note": "Stateful, as LMS. Also listed by CNSA 2.0 for firmware and software signing.",
      "page": "https://quantum.zksecurity.xyz/algorithms/xmss/"
    }
  ],
  "alternatives": [
    {
      "slug": "fn-dsa",
      "name": "FN-DSA",
      "standard": "FIPS 206",
      "status": "In development",
      "standardized": false,
      "note": "The smallest signatures and keys of the lattice schemes. FIPS 206 has no public draft.",
      "page": "https://quantum.zksecurity.xyz/algorithms/fn-dsa/"
    }
  ],
  "round3": true,
  "protocols": [
    "RFC 9881",
    "RFC 10073",
    "RFC 9882",
    "RFC 9909",
    "RFC 9814",
    "RFC 9802",
    "RFC 9964",
    "RFC 9980",
    "draft-ietf-tls-mldsa"
  ],
  "changes": [
    "ML-DSA-44 signatures are 2,420 bytes against 256 for RSA-2048. A TLS handshake carries several signatures and public keys, so the growth is multiplied.",
    "ML-DSA has a pure mode and a pre-hash mode (HashML-DSA) that do not interoperate. A format that signs a digest computed elsewhere must name the mode.",
    "LMS and XMSS fail completely if a one-time key is used twice. They need signing hardware that guarantees the state is never rolled back or cloned.",
    "An RSA key pair used for both signing and encryption needs two replacements."
  ],
  "specified": [
    {
      "title": "FIPS 186-5, Digital Signature Standard",
      "url": "https://csrc.nist.gov/pubs/fips/186-5/final"
    },
    {
      "title": "RFC 8017, PKCS #1 v2.2",
      "url": "https://www.rfc-editor.org/info/rfc8017"
    }
  ],
  "references": [],
  "tags": [
    "rsa-ecc"
  ],
  "timelines": [
    "nist-ir-8547",
    "cnsa-2-0",
    "australia-asd-ism"
  ],
  "proposed": [
    {
      "name": "Merkle Tree Certificates",
      "url": "https://datatracker.ietf.org/doc/draft-ietf-plants-merkle-tree-certs/",
      "note": "Certificates carried as Merkle inclusion proofs, so that a TLS handshake needs fewer post-quantum signatures. An IETF working group draft."
    }
  ],
  "page": "https://quantum.zksecurity.xyz/replacements/rsa-signatures/",
  "reviewed": "2026-11-25",
  "standing": "standardized replacement",
  "candidates": [
    "SQIsign",
    "FAEST",
    "MQOM",
    "SDitH",
    "UOV",
    "MAYO",
    "QR-UOV",
    "SNOVA"
  ]
}
