Key derivation

Milenage

MILENAGE: the 3GPP AES-128 authentication and key agreement function set, unverified in NextSSL

unverified Root API only Copyleft feature
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Milenage

Milenage is a key derivation function. It uses a 16-byte (128-bit) key, a 46-byte (368-bit) output, a 16-byte salt and a 16-byte info. Its registry entry cites 3GPP TS 35.205 and 3GPP TS 35.206. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

MILENAGE is the set of authentication and key generation functions specified by 3GPP for UMTS and LTE, built from AES-128. NextSSL lists it as unverified and cites TS 35.205 and TS 35.206.

MILENAGE defines functions f1 to f5 that produce message authentication codes, response values and session keys from a subscriber key and a random challenge. Each function is a fixed use of AES-128 with a different input block. Functions like this one are specified by 3GPP and run inside mobile operator networks, so they are rarely used outside that setting. Interoperability with a network requires following the specification exactly, including byte order and input layout.

NextSSL carries MILENAGE with a 16-byte key, 16-byte salt and info field, and a combined output of 46 bytes. The standards field cites TS 35.205 and TS 35.206. NextSSL keeps this entry for research and test vectors, and the registry does not record a review of its design. For general key derivation, HKDF or another standard function is the usual choice.

MILENAGE is used in mobile networks for authentication, so the algorithm is standardised and deployed widely. The NextSSL tier is unverified, which reflects the archive's review status rather than a known weakness. Functions like this one are specified by 3GPP and run inside mobile operator networks, so they are rarely used outside that setting. Interoperability with a network requires following the specification exactly, including byte order and input layout.

History

2000–2000
  1. MILENAGE published by ETSI SAGE

How it works

  1. The subscriber key is expanded into AES round keys.
  2. Each function encrypts a derived block with AES-128 and combines the result with the challenge.
  3. The outputs f1 to f5 are returned as the MAC, response, and session keys.

Security notes

The tier is unverified in NextSSL. Use MILENAGE only inside 3GPP networks, where it is specified, and not as a general primitive.

Typical uses

3GPP mobile authentication researchTesting UMTS and LTE authentication vectorsNot recommended as a general-purpose primitive

Sizes

FieldBytesMeaning
key16Secret key
out46Output
salt16Salt
info16Info

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
okm = root.call("kdf", "milenage", None, ikm, salt, b"context", 32)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Milenage?

Milenage is a KDF in the MILENAGE family. MILENAGE is the set of authentication and key generation functions specified by 3GPP for UMTS and LTE, built from AES-128.

What are the Milenage sizes?

In NextSSL, Milenage uses: key 16 bytes, output 46 bytes.

Who designed Milenage and when?

Milenage belongs to the MILENAGE family, first published in 2000 by ETSI SAGE. Its origin: 3GPP TS 35.205–35.208.

Which standards define Milenage?

Milenage is referenced by 3GPP TS 35.205, 3GPP TS 35.206.

Is Milenage safe to use?

Milenage is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).