The short version
- RFC 2403 and RFC 2404 both put the first 96 bits of a computed HMAC into ESP or AH — even though their full outputs (128 vs 160 bits) and required keys (128 vs 160 bits) differed.
- Later ESP/AH guidance split them apart: RFC 8221 lists HMAC-MD5-96 as MUST NOT and HMAC-SHA1-96 as MUST-. The shared tag length never guaranteed a shared security judgment.
The 96-bit badge and the two engines behind it
In November 1998, two documents walked out of the IETF wearing the same badge. RFC 2403 and RFC 2404 specified keyed authentication transforms for IPsec's Encapsulating Security Payload (ESP) and Authentication Header (AH). One paired HMAC with MD5; the other paired HMAC with SHA-1. Both were built to deliver data-origin authentication and integrity when the secret key stayed with the communicating parties. Neither supplied confidentiality on its own.
The number facing the wire was identical: 96 bits. The machinery behind it was not. RFC 2403's full HMAC-MD5 result is 128 bits; RFC 2404's full HMAC-SHA-1 result is 160 bits. Either way, the sender stores the first 96 bits in the authenticator field, and the receiver recomputes the full HMAC and compares those leading 96 bits. The 96-bit choice matched AH's default authenticator length and handed two different constructions a common wire footprint. It did not shrink either digest into a 96-bit hash.
The key rules diverged too. RFC 2403 requires a 128-bit HMAC key; RFC 2404 requires 160. So the same visible field length sat on top of different full outputs and different fixed key lengths. Negotiated transform identity and correct key handling still mattered. Counting the tag bits alone described a fraction of the machine.
A collision is not a verdict on HMAC
The 1998 documents were careful not to equate a collision in an unkeyed hash with an instant break of keyed HMAC. RFC 2403 said HMAC leaned on strong collision resistance less heavily than MD5-based signatures did, and reported no practical attack on HMAC-MD5-96 at the time. RFC 2404 made a parallel, period-specific assessment for HMAC-SHA-1-96. These were dated readings, not promises about the future.
The implementation guidance shows the verdict shifting while tag length stayed out of the driver's seat. RFC 4305 in 2005 put HMAC-SHA1-96 at MUST and HMAC-MD5-96 at MAY. RFC 4835 in 2007 kept the split and noted that the collision weaknesses then known should not affect either hash under HMAC. RFC 7321 in 2014 acknowledged theoretical results against HMAC-MD5 but saw no apparent practical vulnerability and no urgency to pull it from existing protocols; it still regarded HMAC-SHA-1 as secure despite SHA-1's collision weakness.
RFC 8221, published in 2017, drew a sharper line for ESP and AH: HMAC-MD5-96 became MUST NOT; HMAC-SHA1-96 slid from MUST to MUST-. It cited MD5's known collision vulnerability for the prohibition and pinned the SHA-1 downgrade on an industry-wide push to retire the hash. Neither move claimed the 96-bit field had changed or that RFC 2404 had quietly specified a different tag.
A status table is not a traffic trace
RFC 9395 later updated RFC 8221 and revised an IKEv2 transform registry, including a DEPRECATED entry named AUTH_HMAC_MD5_96. That registry is not RFC 8221's ESP/AH implementation table. The identical-looking name crosses adjacent IPsec contexts, so a registry label has to be read with its protocol and document scope attached.
These documents record protocol parameters and dated implementation advice. They do not count deployed devices, identify the last negotiated HMAC-MD5 security association, or set a universal retirement date. An operator wanting the real picture would need the selected protocol, the transform identifier, peer capabilities, the installed association and observed traffic. A 96-bit tag is one piece of that evidence — never the whole case.
Sources
- RFC 2403, RFC 2403 record, Datatracker; RFC 2404, RFC 2404 record, Datatracker.
- RFC 2104, RFC 1321, RFC 2202, RFC 2119, RFC 2402, RFC 2406.
- RFC 4305, RFC 4835, RFC 7321, RFC 8221, RFC 9395, RFC 6151, RFC 4868; Datatracker 4305, 4835, 7321, 8221, 9395.
- Editorial lenses only, not IETF evidence: Heng Lu, Minimum Initial Specification and Running-Code Primacy.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






