ZUC-256
The Chinese-designed stream cipher behind 3GPP's 128-EEA3 and 128-EIA3 algorithms
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 ZUC-256
ZUC-256 is one of 2 ZUC variants in the NextSSL registry, a stream cipher. It uses a 32-byte (256-bit) key and a 23-byte nonce. Its registry entry cites ZUC-256 version 1.1 (ZUC design team). 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
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 | 32 | Secret key |
| nonce | 23 | Nonce / IV |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
ct = root.call("stream_apply", "zuc-256", None, key, nonce, b"secret")[0] # same call decrypts
nextssl_root_stream_apply("zuc-256", 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-256", &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
1Similar names
Looking for something else?More stream ciphers
All 37Frequently asked questions
What is ZUC-256?
ZUC-256 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-256 sizes?
In NextSSL, ZUC-256 uses: key 32 bytes, nonce 23 bytes.
Who designed ZUC-256 and when?
ZUC-256 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-256?
ZUC-256 is referenced by ZUC-256 version 1.1 (ZUC design team).
Is ZUC-256 safe to use?
ZUC-256 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).
What other ZUC variants are there?
NextSSL also registers zuc in the ZUC family.