Skip to content
The Chat Archive
gemini-2.5-flash-preview-04-17· Google LMArena Human Preference 140K

What is the use of f5star in Milenage ?

  1. User

    What is the use of f5star in Milenage ?

  2. Assistant

    In the context of Milenage, which is an authentication and key generation algorithm suite used in 3G, LTE, and 5G cellular networks:

    • f5star is one of the cryptographic functions defined within the Milenage suite.
    • Its purpose is to calculate the Resynchronisation Anonymity Key (AK*).

    Here's the breakdown of its use:

    1. Context: Milenage is used for authenticating the user (via the USIM/ME) to the network (AuC) and generating session keys (CK, IK). This process relies on synchronised sequence numbers (SQN) between the network and the USIM.
    2. Synchronisation Failure: Sometimes, the network's sequence number (SQN) and the USIM's stored sequence number become out of sync. This happens if the USIM misses some authentication vectors, or if there's a replay attempt. When the USIM receives an SQN from the network that it deems invalid (e.g., too old), it triggers a resynchronisation procedure.
    3. Resynchronisation Procedure: Instead of responding with RES (Authentication Response), the USIM sends an AUTS (Authentication Token for Synchronisation Failure) back to the network.
    4. AUTS Content: The AUTS token contains information that helps the network resynchronise. Crucially, it contains:
      • A proposed new sequence number (SQN_MS) from the USIM.
      • A MAC calculated over relevant data.
    5. Role of AK*: The USIM masks its proposed SQN_MS before sending it in AUTS. This masking is done using the key AK*. Specifically, the AUTS contains SQN_MS XOR AK*. Masking prevents passive eavesdroppers from observing the sequence number flow during the resynchronisation process, maintaining privacy.
    6. Role of f5star: Both the USIM and the network (AuC) need to be able to calculate AK*. The f5star function is the defined way to do this in Milenage, taking the subscriber's secret key K and the network's challenge RAND as inputs (along with constants specific to f5star).
    7. Network Processing: When the network receives AUTS, it calculates AK* using its copy of K and the RAND it sent. It then uses this calculated AK* to unmask (XOR) SQN_MS XOR AK* from the AUTS to recover the USIM's proposed SQN_MS. The network then uses this recovered SQN_MS (and other data) to verify the MAC within AUTS and potentially update its own sequence number state, thus resynchronising.

    In summary, f5star is the Milenage function that generates the AK* key, which is specifically used during the resynchronisation procedure to mask the USIM's proposed sequence number (SQN_MS) when sent back to the network in the AUTS token. This ensures the anonymity of the sequence number during the resync process.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.