
Layers of rock, each a different thickness. Generated image. Shows no real place.
Experiment 5
How big are post-quantum keys?
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.
Classical Post-quantum
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
| Scheme | Use | Public key | Private key | Signature | Ciphertext | Source |
|---|---|---|---|---|---|---|
| X25519 | Key exchange | 32 | 32 | n/a | n/a | RFC 7748read 3 Dec 2026 |
| Ed25519 | Signature | 32 | 32 | 64 | n/a | RFC 8032read 3 Dec 2026 |
| ECDSA P-256 | Signature | 651 | 322 | 643 | n/a | SECG, SEC 1NIST, SP 800-186W3C, Web Cryptography API (Recommendation)read 3 Dec 2026 |
| RSA-2048 | Signature | 2564 | n/a | 2565 | n/a | RFC 8017read 3 Dec 2026 |
| ML-KEM-512 | Key encapsulation | 800 | 1,632 | n/a | 768 | NIST, FIPS 203read 3 Dec 2026 |
| ML-KEM-768 | Key encapsulation | 1,184 | 2,400 | n/a | 1,088 | NIST, FIPS 203read 3 Dec 2026 |
| ML-KEM-1024 | Key encapsulation | 1,568 | 3,168 | n/a | 1,568 | NIST, FIPS 203read 3 Dec 2026 |
| ML-DSA-44 | Signature | 1,312 | 2,560 | 2,420 | n/a | NIST, FIPS 204read 3 Dec 2026 |
| ML-DSA-65 | Signature | 1,952 | 4,032 | 3,309 | n/a | NIST, FIPS 204read 3 Dec 2026 |
| ML-DSA-87 | Signature | 2,592 | 4,896 | 4,627 | n/a | NIST, FIPS 204read 3 Dec 2026 |
| SLH-DSA-SHA2-128s | Signature | 32 | 646 | 7,856 | n/a | NIST, FIPS 205read 3 Dec 2026 |
| SLH-DSA-SHA2-128f | Signature | 32 | 647 | 17,088 | n/a | NIST, FIPS 205read 3 Dec 2026 |
Download the table as CSVThe file includes where in each source every number was read and the date.
- 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. 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. ECDSA P-256, signature: Web Cryptography API, ECDSA sign: r and s, each 32 bytes for P-256, one after the other.
- 4. RSA-2048, public key: The modulus n: 2048 bits is 256 bytes. The public exponent adds a few bytes.
- 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. 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. 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).
- X25519: A key exchange sends a public key, not a ciphertext.
- ECDSA P-256: The DER encoding used by many other libraries makes the signature 70 to 72 bytes.
- 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.
- SLH-DSA-SHA2-128s: The small-signature set at security category 1. The SHAKE version has the same sizes.
- 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.
Sources
- NIST, FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (2024) Read at its original address on .
- NIST, FIPS 204: Module-Lattice-Based Digital Signature Standard (2024) Read at its original address on .
- NIST, FIPS 205: Stateless Hash-Based Digital Signature Standard (2024) Read at its original address on .
- RFC 7748: Elliptic Curves for Security (2016) Read at its original address on .
- RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA) (2017) Read at its original address on .
- SECG, SEC 1: Elliptic Curve Cryptography, Version 2.0 (2009) Read at its original address on .
- NIST, SP 800-186: Recommendations for Discrete Logarithm-based Cryptography: Elliptic Curve Domain Parameters (2023) Read at its original address on .
- W3C, Web Cryptography API (Recommendation) Read at its original address on .
- RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2 (2016) Read at its original address on .
Try it on your codeThe scanner lists the cryptography a project depends on.