Summary

  • RFC 5926 required every fully compliant TCP-AO implementation to provide two MAC algorithms and two matching key derivation functions, so algorithm choice would not erase the common interoperability baseline.
  • HMAC-SHA-1-96 was the broadly supported 2010 starting point; AES-128-CMAC-96 supplied a structurally different alternative. Both put 96-bit tags in the TCP-AO option.

The elegant failure: strong crypto on both sides, no shared proof

A cryptographic algorithm can be excellent and still be useless on a wire. TCP-AO does not authenticate with an abstract promise to use “strong cryptography.” A sender derives a connection-specific traffic key and computes a message authentication code with a particular algorithm. The receiver must perform the same derivation and calculation. If the pair differs, the received tag is not an alternative interpretation of the same proof; it is simply unverifiable.

That is the trap RFC 5926 closed. The standard did not merely list respectable algorithms. It made two MAC-and-KDF pairs mandatory so independently built TCP-AO endpoints could meet on common ground.

RFC 5926’s two-suite floor: HMAC-SHA-1-96 and AES-128-CMAC-96

A fully compliant implementation had to implement HMAC-SHA-1-96 and AES-128-CMAC-96, together with KDF_HMAC_SHA1 and KDF_AES_128_CMAC. The requirement did not mean a connection used both suites at once, and it did not introduce an in-band negotiation protocol. It meant that independently built systems shared two defined choices operators could configure consistently.

That distinction is easy to blur. “Supports TCP-AO” is a capability claim. “Authenticates this segment” is an agreement claim. RFC 5926 supplied the floor for the first; operators still had to arrange the second.

Why the MAC name was only half the contract

The KDF takes a configured Master_Key, a connection-specific Context and the requested output length, then produces the Traffic_Key used on TCP segments. Each TCP-AO MAC definition identifies its KDF. A future KDF could serve more than one MAC, but a deployed MAC could not leave traffic-key derivation unspecified.

This is where cryptographic plumbing becomes operational reality. Two peers can agree on AES-128-CMAC-96 and still fail if their key-derivation inputs or configured master keys do not line up. The algorithm name is the headline; the derivation path is the fine print that decides whether packets authenticate.

Two primitives, one 96-bit option budget

The two suites reached the wire through different constructions. HMAC-SHA-1-96 uses a 160-bit traffic key and starts from HMAC-SHA1 output. AES-128-CMAC-96 uses a 128-bit traffic key and AES-CMAC. In both cases, the value carried in the TCP-AO option is truncated to 96 bits. RFC 5926 described that length as a compromise between authentication strength and the limited space available in a TCP option; it did not redefine the underlying functions as 96-bit primitives.

The standard’s choice recorded a moment in cryptographic transition. HMAC-SHA1 was recommended as the user-interface default because it was then broadly implemented in Internet systems. AES-128-CMAC was also mandatory because the working group wanted a stronger, structurally different option and a route away from dependence on SHA-1 if future analysis made that necessary. This was planned diversity, not a contemporary verdict about which suite operators should prefer today.

The AES-CMAC KDF also handled an awkward operational boundary. Administrators might configure a master key shorter or longer than the 16 octets AES-CMAC requires. Rather than making the interface accept only one length, the KDF derives a 128-bit key from a variable-length input when needed. RFC 5926 immediately limits the inference: accepting varied lengths does not turn a weak or predictable shared secret into a safe one.

What the baseline settled—and what it left to operators

The four MUST-implement components made compliant software capable of meeting on common ground. They did not make configuration self-correcting. Peers still needed matching selections and shared key material, and RFC 5926’s manual-keying model left that coordination outside the TCP exchange.

RFC 5926 also left an interface for future MACs and KDFs, including a stated target for the number of messages a future MAC should protect at a low collision probability. That is an extensibility boundary, not evidence that later algorithms were automatically installed, selected or negotiated.

The lesson survives the 2010 vocabulary: interoperability is not the presence of good algorithms. It is the presence of one shared, precisely specified path from master key to traffic key to tag. RFC 5926 made TCP-AO carry two paths so the protocol would not mistake a choice for a conversation.

Sources