Stream ciphers

GEA2

The GPRS stream ciphers GEA1 to GEA4, one broken, one unverified and two legacy

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 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–2021
  1. GEA-1 specified for GPRS

  2. Beierle et al. show GEA-1 was deliberately weakened to 40-bit security

How it works

  1. The session key and a 5-byte nonce are loaded into the cipher's internal state.
  2. The state is clocked to produce a keystream for each packet.
  3. 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

Analysis of legacy GPRS securityInteroperability testing for legacy packet-data equipmentComparing mobile stream ciphers with the A5 family

Sizes

FieldBytesMeaning
key8Secret key
nonce5Nonce / 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

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

Other GEA (GPRS encryption algorithms) variants

3

Frequently 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.