ZUC
The Chinese-designed stream cipher behind 3GPP's 128-EEA3 and 128-EIA3 algorithms
Experimental or unclassified. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About ZUC
ZUC is a stream cipher. It uses a 16-byte (128-bit) key and a 16-byte nonce. Its registry entry cites 3GPP TS 35.221 (ZUC-128 keystream). NextSSL lists it in the research tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
ZUC is a word-oriented stream cipher designed by the Data Assurance and Communication Security Research Center of the Chinese Academy of Sciences. ZUC-128 is the core of the 3GPP LTE confidentiality and integrity algorithms 128-EEA3 and 128-EIA3; ZUC-256 targets 5G.
ZUC has three layers: a 16-stage linear feedback shift register over the prime field GF(2^31 − 1), a bit-reorganisation layer that extracts 32-bit words from the register, and a non-linear function F with two 32-bit memory cells that uses S-boxes and linear transforms. Each step produces one 32-bit keystream word.
ZUC-128 uses a 128-bit key and IV and is specified in 3GPP TS 35.221. ZUC-256 extends the key to 256 bits with a different loading scheme. NextSSL includes ZUC-128 (tiered research) and ZUC-256 (unverified). The name honours the ancient mathematician Zu Chongzhi. It is mandated for LTE in China. Its keystream is word-oriented.
History
2010–2011ZUC published
ZUC-128 adopted by 3GPP for LTE (128-EEA3, 128-EIA3)
Security notes
No practical attacks on ZUC-128 in its specified use are known; an early version was revised after an IV-related weakness was found during evaluation. ZUC-256 has had less analysis.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 16 | Nonce / IV |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'research' is reachable from the root API only
ct = root.call("stream_apply", "zuc", None, key, nonce, b"secret")[0] # same call decrypts
nextssl_root_stream_apply("zuc", NULL, key, nonce, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_streamcipher_in(reg::all(), Policy::Any, "zuc", &Params::new())?;
let ct = alg.apply_keystream(&key, &nonce, b"secret")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other ZUC variants
1More stream ciphers
All 37Frequently asked questions
What is ZUC?
ZUC is a stream cipher in the ZUC family. ZUC is a word-oriented stream cipher designed by the Data Assurance and Communication Security Research Center of the Chinese Academy of Sciences.
What are the ZUC sizes?
In NextSSL, ZUC uses: key 16 bytes, nonce 16 bytes.
Who designed ZUC and when?
ZUC belongs to the ZUC family, first published in 2010 by Data Assurance and Communication Security Research Center (DACAS), Chinese Academy of Sciences. Its origin: 3GPP TS 35.221 (ZUC-128); ZUC-256 v1.1.
Which standards define ZUC?
ZUC is referenced by 3GPP TS 35.221 (ZUC-128 keystream).
Is ZUC safe to use?
ZUC is in the research tier. Experimental or unclassified. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other ZUC variants are there?
NextSSL also registers zuc-256 in the ZUC family.