The four bytes that refused to be nothing

Four bytes arrive at a Kerberos client and every one of them is zero. A tired parser reads them as the integer 0, decides that zero rounds of anything is nonsense, quietly substitutes a default, and moves on. The login works. Nobody files a ticket. And inside that small shrug, the most interesting argument in RFC 3962 dies unread: 00 00 00 00 was never an absence, never a default, and never a mistake. It was 4,294,967,296.

That is the whole story in miniature. The Kerberos AES profile, published in February 2005, packed a password's work factor into a single unsigned four-octet big-endian integer — and then spent real ink insisting that the integer zero, the empty field and the missing field were three different claims about the world. Get that wrong and a client's cost of deriving a key can move by a factor of 1,048,576 without a single error message.

What the specification actually encoded

Ordinarily those four octets held the number of PBKDF2 iterations used to stretch a passphrase and salt into an AES key. The bit pattern 00 00 00 00 was carved out as a special case: it meant 232 iterations. The smallest expressible count was therefore one. Zero was not available for the humble job of meaning nothing, because the specification had already spent it.

Absence got its own rule. If the string-to-key parameter field was never supplied — after the KDC had its chance to supply it — the client fell back to 00 00 10 00, decimal 4,096. Not a recommendation for realm databases. Not the prescribed guess for optimistic preauthentication. Just the meaning of a missing field in that one protocol context.

One field, two kinds of state

So the record needed two coordinates, not one: whether the field was present, and if present, which four bytes it carried. Any pipeline that normalizes "missing," "zero" and "empty buffer" into a single value has quietly rewritten the protocol.

RFC 3962 slotted AES into the cryptographic interface laid down by RFC 3961: 128-bit blocks, 128- or 256-bit keys, ciphertext stealing for messages that refuse to align, HMAC-SHA1-96 for integrity. Encryption types 17 and 18; checksum types 15 and 16. The IANA Kerberos Parameters registry still lists those identifiers today — though a registry entry proves only that a number was assigned, never that a realm switched it on.

For password-derived keys the profile ran PBKDF2 over passphrase and salt to make a temporary key, then applied the RFC 3961 derivation with the constant kerberos. RFC 2898 supplied the PBKDF2 of the day; RFC 8018 later republished the PKCS #5 family. And a 256-bit output did not turn a human password into 256 bits of entropy. Iterations raise the price of testing guesses. They cannot conjure unpredictability the password never had.

The dial turned both ways at once

Here is the part that still deserves respect: the work factor multiplied two people's costs simultaneously. Every extra round slowed the offline attacker grinding through candidates, and slowed the legitimate client deriving the right key by exactly the same amount. RFC 3962 called the count a constant multiplier rather than an asymmetric advantage — a rare moment of honesty in a field that loves to advertise one-sided wins.

Symmetry bred two mirror-image spoofs. Forge a KDC response carrying an enormous count and the client burns CPU computing a key it will never use: a denial of service dressed as a parameter. The RFC let implementations cap accepted counts, and insisted any such cap sit no lower than 50,000. Four billion rounds still takes a while even on fast silicon, so interruptibility was prudent.

Turn the dial the other way and the threat flips. A forged response carrying a small count coaxes the client into deriving with less work, and an observer can then test password guesses more cheaply. So the document contemplated floors as well as ceilings. The safe answer was a locally governed interval — not "biggest is strongest," and certainly not "accept whatever the wire hands you."

Which makes provenance as load-bearing as magnitude. A log line reading iterations=4096 cannot tell you whether those bytes came from an authenticated KDC exchange, an unauthenticated error, cached site configuration, the absent-field rule, or a developer's test override. Nor whether the client checked its bounds before starting the work. The same integer can be policy, fallback or attacker input, and it will look identical on the dashboard.

Optimism turned freshness into a configuration problem

Kerberos clients like to try optimistic preauthentication: derive the long-term key, send a protected timestamp, save a round trip. Lovely when the guess is right. But a client holding no fresh information can only guess the iteration count.

RFC 3962 rejected the tempting answer — remember the last one. A count that worked for this principal a few hours ago could already be stale, especially since sites were expected to raise counts as hardware improved. The document found no permanent default worth recommending and pointed instead at site-local configuration, fenced by the same lower and upper bounds applied to received values.

The historical point is not that 4,096, or 50,000, or four billion is right today. Hardware moves, password distributions move, patience moves. The point is that a value with both security and availability consequences had an owner, an observation time and an authenticity state. Optimism deleted the fresh KDC observation, so something else had to take its place.

Deriving a key is not authenticating a person

Even with the parameter parsed perfectly and PBKDF2 finished, all you hold is key material. RFC 4120 supplies the tickets, authenticators, replay windows and protocol machinery. A successful string-to-key proves nothing about whether the password was right, whether the KDC accepted preauthentication, whether the ticket is current, whether the application authorized the request, or whether the service was delivered.

Later work kept those seams visible. RFC 4537 separated offered encryption types from the one selected under server policy. RFC 6113 generalized preauthentication and the carriage of cryptographic parameters. RFC 8009 added AES-CTS/HMAC-SHA2 profiles; RFC 8429 deprecated several older algorithms. Each rewired a link in the chain. None made a registry number, a work factor or a finished derivation equivalent to authority.

There was a second, independent limit hiding in the AES construction. Ciphertext stealing avoided padding expansion — which meant ciphertext length revealed exact plaintext length. If length privacy mattered, higher layers had to add their own obscuring. More CPU never repaired that leak. One control should never be handed credit for a boundary it does not touch.

What an honest audit trail would have to hold

Presence bit. Exact octets. Parsed count. Source message. Authenticity status. Local bounds. Selected encryption type. Salt provenance. Library version. Time and resources consumed. Interruption status. A non-secret derivation outcome. Then, recorded separately: preauthentication, ticket, replay, application authorization, service outcome. Passwords and derived keys stay out of the log.

The maintained record supports a careful reading. The RFC Editor information page and the IETF Datatracker entry establish publication and status; the RFC 3962 errata search returned no matching entries at capture time. That absence is not a warranty about implementations. It is the state of one evidence ledger, on one day.

The lesson that outlived the number

RFC 3962's famous figure was never its best idea. The best idea was that "zero," "absent" and "default" are three separate claims — and that once a protocol hangs millions, or billions, of operations on the difference, preserving the distinction stops being pedantry and becomes the security control itself.

Sources