Milenage
MILENAGE: the 3GPP AES-128 authentication and key agreement function set, unverified in NextSSL
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–2000MILENAGE published by ETSI SAGE
How it works
- The subscriber key is expanded into AES round keys.
- Each function encrypts a derived block with AES-128 and combines the result with the challenge.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| out | 46 | Output |
| salt | 16 | Salt |
| info | 16 | Info |
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]
nextssl_root_kdf("milenage", NULL, ikm, salt, info, 32, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_kdf_in(reg::all(), Policy::Any, "milenage", &Params::new())?;
let okm = alg.derive(&ikm, &salt, b"context", 32)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
More key derivation
All 10Frequently 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).
Related families
The Advanced Encryption Standard: the world's default 128-bit block cipher
KASUMIThe 3GPP block cipher behind A5/3, derived from MISTY1
COMP128COMP128: the GSM SIM authentication algorithm, whose version 1 is broken and kept for reference
TUAKTUAK: the 3GPP Keccak-based alternative to MILENAGE for mobile authentication and key generation
CMACThe block-cipher MAC standardised by NIST in SP 800-38B, usually instantiated with AES