GEA2
The GPRS stream ciphers GEA1 to GEA4, one broken, one unverified and two legacy
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 GEA2
GEA2 is one of 4 GEA (GPRS encryption algorithms) variants in the NextSSL registry, a stream cipher. It uses an 8-byte (64-bit) key and a 5-byte nonce. 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
GEA is the family of GPRS data-encryption stream ciphers, listed as GEA1, GEA2, GEA3 and GEA4. GEA1 is broken, GEA2 is unverified, and GEA3 and GEA4 are legacy. NextSSL carries all four with 5-byte nonces and 8-byte or 16-byte keys.
GEA is the family of stream ciphers specified for GPRS packet-data encryption in mobile networks. GEA1 was the original algorithm, and the later members were introduced to address its weaknesses and to add longer keys in some cases. The family is closely related to the A5 voice ciphers in the same mobile standards.
NextSSL carries gea1 with an 8-byte key, gea2 with an 8-byte key, gea3 with an 8-byte key and gea4 with a 16-byte key. All use 5-byte nonces. GEA1 is marked broken, GEA2 unverified, and GEA3 and GEA4 legacy. GEA3 is specified in 3GPP TS 55.216 and GEA4 in TS 55.226.
The 8-byte keys in the early members give little margin against exhaustive search, and the 5-byte nonce limits how many frames can use one key safely. The family is kept for historical and interoperability reference.
History
1998–2021GEA-1 specified for GPRS
Beierle et al. show GEA-1 was deliberately weakened to 40-bit security
How it works
- The session key and a 5-byte nonce are loaded into the cipher's internal state.
- The state is clocked to produce a keystream for each packet.
- The keystream is XORed with the packet data, and the receiver regenerates it from the same key and nonce.
Security notes
GEA1 is broken, and GEA2 is unverified with an 8-byte key. GEA3 and GEA4 are legacy, and their 8-byte and 16-byte keys are short by modern standards. Do not use any GEA variant for new systems.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 8 | Secret key |
| nonce | 5 | 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", "gea2", None, key, nonce, b"secret")[0] # same call decrypts
nextssl_root_stream_apply("gea2", 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, "gea2", &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 GEA (GPRS encryption algorithms) variants
3More stream ciphers
All 37Frequently asked questions
What is GEA2?
GEA2 is a stream cipher in the GEA (GPRS encryption algorithms) family. GEA is the family of GPRS data-encryption stream ciphers, listed as GEA1, GEA2, GEA3 and GEA4.
What are the GEA2 sizes?
In NextSSL, GEA2 uses: key 8 bytes, nonce 5 bytes.
Who designed GEA2 and when?
GEA2 belongs to the GEA (GPRS encryption algorithms) family, first published in 1998. Its origin: GPRS encryption specifications, with GEA3 in 3GPP TS 55.216 and GEA4 in TS 55.226.
Is GEA2 safe to use?
GEA2 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 GEA (GPRS encryption algorithms) variants are there?
NextSSL also registers gea1, gea3, gea4 in the GEA (GPRS encryption algorithms) family.
Related families
The 3GPP block cipher behind A5/3, derived from MISTY1
A5 (GSM stream ciphers)The GSM voice-encryption stream ciphers A5/1 to A5/4, two of them broken and two legacy
SNOW 2.0A word-oriented LFSR stream cipher, standardised in ISO/IEC 18033-4 and parent of SNOW 3G
TriviumA minimal hardware stream cipher in the eSTREAM portfolio, standardised in ISO/IEC 29192-3
ZUCThe Chinese-designed stream cipher behind 3GPP's 128-EEA3 and 128-EIA3 algorithms