KDF family

Concatenation KDF (one-step KDF)

NIST's single-step hash-based key derivation from a shared secret, per SP 800-56A/56C

standard 1 variant NIST SP 800-56A Rev. 3 section 5.8.2.1; SP 800-56C Rev. 2 section 4

Overview

The Concatenation KDF derives keying material from a shared secret by hashing a counter, the secret and context information. NIST specifies it as the one-step KDF for key-agreement schemes, and it is used by JOSE ECDH-ES and some CMS profiles.

The construction is simple: for counter values 1, 2, 3 and so on, compute H(counter || Z || OtherInfo), where Z is the shared secret from a key agreement and OtherInfo encodes algorithm identifiers, party identities and other context. The outputs are concatenated and truncated to the desired length. SP 800-56C Rev. 2 generalises it as the one-step KDF, permitting a hash function, HMAC or KMAC as the auxiliary function; this family implements the hash option.

Unlike HKDF, it does not separate extraction and expansion, so its security analysis assumes Z already has sufficient entropy in a form the hash can use. It remains approved and widely deployed, particularly in JOSE (the ECDH-ES algorithm in RFC 7518) and in ECIES-style schemes. It is also simple to implement on top of any approved hash function, which has helped its adoption in constrained environments.

History

2006–2020
  1. Concatenation KDF published

  2. Specified in NIST SP 800-56A rev.3 section 5.8.2.1

  3. Specified in NIST SP 800-56C rev.2 section 4

How it works

  1. Encode OtherInfo from algorithm IDs, party information and supplementary data.
  2. For i = 1, 2, ..., compute K_i = H(i as 32-bit big-endian || Z || OtherInfo).
  3. Concatenate K_1, K_2, ... until enough bytes are produced.
  4. Truncate to the requested key length.

Security notes

Sound for its intended use with a full-entropy key-agreement output. Context information should be unambiguous and include identities and algorithm identifiers to prevent key reuse across contexts. For new protocols, HKDF is the more common choice.

Typical uses

JOSE ECDH-ES key derivation (RFC 7518)Deriving keys after ECDH in NIST-compliant systemsECIES-style encryption schemes

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
Concat-KDF
concat-kdf
standard key 1–1048576 · out 1–1048576 · salt 0 · info 0–65536 NIST SP 800-56A rev.3 section 5.8.2.1 (Concatenation KD… safe

Frequently asked questions

Which Concatenation KDF (one-step KDF) variants does NextSSL include?

NextSSL registers 1 Concatenation KDF (one-step KDF) variant: concat-kdf.