← Back to Blog

NIST SP 800-56A: Pair-Wise Key Establishment

NIST SP 800-56A: Pair-Wise Key Establishment - QNSQY post-quantum encryption guide

NIST SP 800-56A Revision 3, "Recommendation for Pair-Wise Key-Establishment Schemes Using Discrete Logarithm Cryptography", was published in April 2018. It is the NIST document for Diffie-Hellman and elliptic-curve Diffie-Hellman key agreement in approved systems. Post-quantum cryptography does not replace it overnight: during the migration, many systems combine an SP 800-56A scheme with ML-KEM. This walkthrough explains what SP 800-56A covers, which curves and groups it approves, and how it fits with ML-KEM and SP 800-227.

Scope

SP 800-56A covers key-establishment schemes based on the discrete logarithm problem:

  • FFC DH and FFC MQV: Diffie-Hellman and MQV over finite fields.
  • ECC CDH and ECC MQV: cofactor Diffie-Hellman and MQV over elliptic curves.

Key transport and key agreement with RSA are in SP 800-56B, and key derivation from the shared secret is in SP 800-56C. Post-quantum key establishment with ML-KEM is in FIPS 203, with usage guidance in SP 800-227.

Scheme Categories

SP 800-56A names its schemes by how many ephemeral (e) and static (s) key pairs the two parties use:

  • C(2e, 2s): both parties use an ephemeral and a static key pair.
  • C(2e, 0s): both parties use ephemeral key pairs only, as in ephemeral Diffie-Hellman.
  • C(1e, 2s): one party uses an ephemeral and a static key pair, the other a static key pair.
  • C(1e, 1s): one party uses an ephemeral key pair, the other a static key pair.
  • C(0e, 2s): both parties use static key pairs only.

Ephemeral keys give forward secrecy: if a long-term key is stolen later, past sessions stay protected. Schemes with only static keys do not have that property.

Approved Curves and Groups

Appendix D of SP 800-56A Rev. 3 lists what may be used:

  • Elliptic curves for ECC key agreement: P-224, P-256, P-384 and P-521, plus the Koblitz curves K-233 to K-571 and the binary curves B-233 to B-571. These curves are specified in SP 800-186, which marks the K and B curves as deprecated.
  • Finite-field groups: the safe-prime groups defined in RFC 3526 and RFC 7919 (such as the ffdhe2048 to ffdhe8192 groups used in TLS).

X25519 and X448 are not on SP 800-56A's list. SP 800-186 includes Curve25519 and Curve448, but only as alternative representations "included for implementation flexibility"; it lists the P curves for EC key establishment under SP 800-56A and Edwards25519 and Edwards448 for EdDSA signatures. The appendix also notes that additions to the lists may appear in the FIPS 140 Implementation Guidance before the next revision.

Public-Key Validation

Before using a received public key, an implementation must make sure it is valid. SP 800-56A defines full and partial public-key validation for both finite-field and elliptic-curve keys. For elliptic curves, validation checks, among other things, that the point is not the identity element and lies on the correct curve; full validation also checks that it is in the correct subgroup. Invalid-curve attacks, where an attacker sends a point on a weaker curve, have broken real implementations that skipped these checks.

From Shared Secret to Keys

The key-agreement primitive produces a shared secret Z. Z is never used directly as a key: it goes through a key-derivation method from SP 800-56C, together with other information such as algorithm and party identifiers, to produce the keying material. SP 800-56A also defines optional key confirmation, where the parties exchange a MAC computed with a key derived from Z to show that both obtained the same keys.

SP 800-56A in the Post-Quantum Migration

Many migration designs combine a classical SP 800-56A scheme with ML-KEM, so that the result stays secure if either component holds. SP 800-227 (September 2025) describes approved ways to combine them: its approved key combiners require at least one shared secret from SP 800-56A, SP 800-56B or an approved KEM such as ML-KEM. See NIST SP 800-227.

For national security systems, NSA's CNSA 2.0 sets an anticipated timetable that completes the move to quantum-resistant algorithms by 2035. See the 2035 NSA CNSA deadline plan.

Common Curves Compared

  • P-256: about 128-bit security; the most widely used NIST curve in TLS and other protocols.
  • P-384: about 192-bit security; the curve CNSA 1.0 required for national security systems.
  • P-521: about 256-bit security.
  • X25519: about 128-bit security; widely used in TLS 1.3, SSH, WireGuard and Signal, and designed to be easy to implement in constant time. Not an SP 800-56A approved curve.
  • X448: about 224-bit security; a higher-security alternative to X25519, also outside SP 800-56A.

How QNSQY Relates to SP 800-56A

QNSQY's default hybrid key exchange pairs ML-KEM with X25519: ML-KEM-512 on Free, ML-KEM-768 on Pro and ML-KEM-1024 on Business. X25519 comes from the dalek-cryptography crates. Because X25519 is not an SP 800-56A approved curve, the classical half of QNSQY's default hybrid is not an SP 800-56A scheme; the post-quantum half, ML-KEM, is a NIST-approved KEM. QNSQY does not offer a hybrid with a NIST P curve.

QNSQY is not FIPS 140-3 validated. Its approved-mode build, which is not yet released, uses ML-KEM-1024 on its own instead of a hybrid. See hybrid encryption.

Frequently Asked Questions

Is SP 800-56A obsolete now that ML-KEM exists?

No. Classical key agreement remains in wide use, and SP 800-227's approved hybrid combiners can include an SP 800-56A shared secret alongside ML-KEM during the migration.

Are X25519 and X448 part of SP 800-56A?

No. SP 800-56A Rev. 3 approves the P, K and B curves and the RFC 3526 and RFC 7919 safe-prime groups. SP 800-186 includes Curve25519 and Curve448 only as alternative representations, not for SP 800-56A key establishment.

Why combine ECDH with ML-KEM instead of using ML-KEM alone?

To hedge against an unexpected weakness in either algorithm during the transition. ML-KEM alone is approved; a hybrid is a choice, not a NIST requirement.

What is the difference between SP 800-56A and SP 800-56B?

SP 800-56A covers discrete-logarithm key establishment (DH, ECDH and MQV). SP 800-56B covers key establishment based on integer factorization (RSA).

Sources

  1. NIST SP 800-56A Rev. 3, Recommendation for Pair-Wise Key-Establishment Schemes Using Discrete Logarithm Cryptography, NIST, April 2018
  2. NIST SP 800-186, Recommendations for Discrete Logarithm-based Cryptography: Elliptic Curve Domain Parameters, NIST, February 2023
  3. NIST SP 800-56C Rev. 2, Recommendation for Key-Derivation Methods in Key-Establishment Schemes, NIST, August 2020
  4. NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms, NIST, September 2025
  5. RFC 7919, Negotiated Finite Field Diffie-Hellman Ephemeral Parameters for TLS, IETF, August 2016

Related Articles

Protect Your Data Before Q-Day Arrives

QNSQY's NIST-standardized post-quantum encryption protects files against both current and quantum-era threats.

Try QNSQY