Skip to content
NOUMENResearch
Network
Engineering
, home page

Layers of rock, each a different thickness. Generated image. Shows no real place.

Experiment 5

How big are post-quantum keys?

The bytes a scheme puts on the wire and in storage, read in each standard, for the classical schemes in use today and the post-quantum ones that replace them.

Experiment 5Key and signature sizes

Instrument

Sourced data. Every number was read in its standard, at the address and on the date in the table.

Show

Classical Post-quantum

Public key sizes in bytes, from the standards named in the table. Linear scale.

Reading

Public key: from 32 bytes (X25519, Ed25519, SLH-DSA-SHA2-128s and SLH-DSA-SHA2-128f) to 2,592 bytes (ML-DSA-87), 81 times as many.

Schemes without a public key are left out of the chart. A key exchange such as X25519 sends a public key, not a ciphertext.

All sizes, in bytes

Key, signature and ciphertext sizes in bytes, with the source of each row.
SchemeUsePublic keyPrivate keySignatureCiphertextSource
X25519Key exchange3232n/an/aRFC 7748read 3 Dec 2026
Ed25519Signature323264n/aRFC 8032read 3 Dec 2026
ECDSA P-256Signature651322643n/aSECG, SEC 1NIST, SP 800-186W3C, Web Cryptography API (Recommendation)read 3 Dec 2026
RSA-2048Signature2564n/a2565n/aRFC 8017read 3 Dec 2026
ML-KEM-512Key encapsulation8001,632n/a768NIST, FIPS 203read 3 Dec 2026
ML-KEM-768Key encapsulation1,1842,400n/a1,088NIST, FIPS 203read 3 Dec 2026
ML-KEM-1024Key encapsulation1,5683,168n/a1,568NIST, FIPS 203read 3 Dec 2026
ML-DSA-44Signature1,3122,5602,420n/aNIST, FIPS 204read 3 Dec 2026
ML-DSA-65Signature1,9524,0323,309n/aNIST, FIPS 204read 3 Dec 2026
ML-DSA-87Signature2,5924,8964,627n/aNIST, FIPS 204read 3 Dec 2026
SLH-DSA-SHA2-128sSignature326467,856n/aNIST, FIPS 205read 3 Dec 2026
SLH-DSA-SHA2-128fSignature3264717,088n/aNIST, FIPS 205read 3 Dec 2026

Download the table as CSVThe file includes where in each source every number was read and the date.

  1. 1. ECDSA P-256, public key: SEC 1, 2.3.3: an uncompressed point is 2 x 32 + 1 bytes for a 256-bit field.
  2. 2. ECDSA P-256, private key: The private key is an integer below the 256-bit group order n of P-256 (SP 800-186, 3.2.1.3): 32 bytes.
  3. 3. ECDSA P-256, signature: Web Cryptography API, ECDSA sign: r and s, each 32 bytes for P-256, one after the other.
  4. 4. RSA-2048, public key: The modulus n: 2048 bits is 256 bytes. The public exponent adds a few bytes.
  5. 5. RSA-2048, signature: RFC 8017, 8.2.1: the signature is an octet string of length k, the length in octets of the modulus.
  6. 6. SLH-DSA-SHA2-128s, private key: FIPS 205, section 3.1: the private key is 4n bytes, with n = 16 for this set (Table 2).
  7. 7. SLH-DSA-SHA2-128f, private key: FIPS 205, section 3.1: the private key is 4n bytes, with n = 16 for this set (Table 2).
  8. X25519: A key exchange sends a public key, not a ciphertext.
  9. ECDSA P-256: The DER encoding used by many other libraries makes the signature 70 to 72 bytes.
  10. RSA-2048: RFC 8017 fixes no single size for the private key: it depends on which of its two forms and which encoding is stored.
  11. SLH-DSA-SHA2-128s: The small-signature set at security category 1. The SHAKE version has the same sizes.
  12. SLH-DSA-SHA2-128f: The fast set at security category 1. The SHAKE version has the same sizes.

Method

Every number was read in its standard at the address below on the date given. Where a standard prints the number, it is used as printed: FIPS 203 Table 3, FIPS 204 Table 2, FIPS 205 Table 2, RFC 7748 section 5 and RFC 8032 section 7. Where a standard gives a rule instead, the table marks the number and the note under it says how it follows from the rule. A size no standard fixes is left empty: RFC 8017 allows two forms of RSA private key in several encodings, so no single number is given.

SLH-DSA has twelve parameter sets. The table shows the two at security category 1, the smallest signatures (128s) and the fastest signing (128f), with SHA-2. The SHAKE versions have the same sizes.

Try it on your codeThe scanner lists the cryptography a project depends on.