One algorithm, three lengths

Ask an engineer how long AES-XCBC is and you get an answer that is technically correct and practically useless: 128 bits. The interesting part is that the standard never spent all 128 in the same place twice. In RFC 3566, AES-XCBC-MAC-96 computes the full 128-bit value and then ships only its leftmost 96 bits as an ESP or AH authenticator. The receiver recomputes all 128 and compares 96. That truncation is a packet-field decision, not a verdict on what the construction can produce.

IKE wanted something else from the same machinery. A pseudo-random function feeds key creation, and RFC 3664 argued that 96 bits of PRF output was too thin a base for keys meant to live a long time in IKEv1 or IKEv2. So it made a deliberately small edit: keep the AES-XCBC construction, drop the final truncation, call the result a 128-bit PRF output. That is an output width, not a claim that every IKE key is 128 bits — the PRF result is an input to protocol-specific key derivation, not the key itself.

Then came the awkward part. RFC 3664 inherited AES-XCBC-MAC-96's other habit: the key had to be exactly 128 bits. Full-width output, fixed-width input. Any implementation whose shared secret happened to be 160 bits, or 64, was left standing outside the specification looking in. RFC 3664 metadata and errata RFC 3664 errata

The 2006 fix was about the front door, not the output

RFC 4434 opened it — and, crucially, did not touch the result. A 128-bit key is used unchanged. A shorter key is zero-padded on the right until it reaches 128 bits. A key of 129 bits or more is fed through the PRF itself, with an all-zero 128-bit key and the long key as the message; that output becomes the normalized key. It is not ordinary truncation, and it is not a general-purpose hash, whatever the diagram in your head says.

Which makes the 2006 memo a correction to an interface contract rather than a change of algorithm. For 128-bit keys, the wire results are identical to RFC 3664's. For everything else, the door that used to be a wall is now a turnstile with a very specific set of rules. RFC 4434 metadata and errata RFC 4434 errata

IKEv2 handed the same key two jobs

Then IKEv2 (RFC 4306) split the personality. When AES-XCBC-PRF-128 generates keying material, it behaves as a fixed-length PRF: the IKEv2 procedure divides the nonce contributions exactly as specified. When the same PRF authenticates a shared secret, RFC 4434 treats it as variable-length, so the secret need not be 128 bits at all. The memo's own word for this arrangement is "somewhat tortured," and it earns the adjective; the stated purpose is interoperability between implementations that followed RFC 3664's fixed-key rule and those that took the flexible one. RFC 4434

Why the distinction survives contact with production

Because "same algorithm" hides two different questions: what bytes go on the wire, and what inputs implementations agree to accept. Collapse "128" into a universal key size and the first distinction disappears. Read the 96-bit MAC field as the PRF output and the second one goes with it. RFC 8221's later ESP/AH recommendations concern packet-authentication algorithms; they are not evidence that anyone negotiated this PRF, or that any particular stack implemented it correctly.

What the record shows is a repair to a boundary, not a post-mortem of a failure. RFC 4434 kept the full-width result, preserved the 128-bit-key case bit for bit, and wrote down how shorter and longer inputs reach AES. The history lives in those three separate moves: truncate a MAC for a packet field, keep the whole value for IKE's PRF, normalize the key according to the job it is doing.

Sources