Stream cipher family

A5 (GSM stream ciphers)

The GSM voice-encryption stream ciphers A5/1 to A5/4, two of them broken and two legacy

legacy 4 variants GSM 03.20 and 3GPP TS 55.216

Overview

A5 is the family of stream ciphers used to encrypt GSM and early 3G voice traffic, listed here as A5/1, A5/2, A5/3 and A5/4. A5/1 and A5/2 are broken, and A5/3 and A5/4 are legacy. NextSSL carries all four variants with 8-byte or 16-byte keys and 4-byte frame nonces.

A5 is the family of stream ciphers specified for GSM mobile telephony, where it encrypts each radio frame under a session key. A5/1 was the main GSM cipher, and A5/2 was a deliberately weakened export variant. Both are based on irregularly clocked linear feedback shift registers, and both have been broken by published attacks on the keystream.

NextSSL carries four variants. A5/1 and A5/2 have 8-byte keys and 4-byte nonces and are marked broken. A5/3 and A5/4 are specified in 3GPP TS 55.216 and the GSM 03.20 documents, have 8-byte and 16-byte keys respectively and 4-byte nonces, and are marked legacy. A5/3 is the KASUMI-based cipher used in 3G, and KASUMI itself has published related-key attacks.

The family is kept for historical comparison and for interoperability with legacy networks. It should not protect new communication, and any system still running A5 should be treated as exposed.

History

1987–2009
  1. A5/1 designed for GSM

  2. A5/1 design leaks

  3. A5/1 and A5/2 fully reverse engineered

  4. A5/3 (KASUMI) specified

  5. Rainbow-table attacks on A5/1 published

How it works

  1. The session key and a 4-byte frame number are loaded into the cipher's state.
  2. The cipher clocks its registers or block cipher for each frame and generates a keystream for that frame.
  3. The keystream is XORed with the plaintext for the frame, and the receiver regenerates it from the same key and frame number.

Security notes

A5/1 and A5/2 are broken by published ciphertext-only and known-plaintext attacks. A5/3 and A5/4 are legacy, and their KASUMI basis has related-key attacks in the literature. Do not use any A5 variant for new systems.

Typical uses

Analysis of legacy GSM and 3G securityInteroperability testing for legacy network equipmentTeaching examples of broken stream ciphers

Variants in NextSSL

4
AlgorithmTierSizes (bytes)StandardsAPI
A5-3
a5-3
legacy key 8 · nonce 4 GSM 03.20, 3GPP TS 55.216 root
A5-4
a5-4
legacy key 16 · nonce 4 GSM 03.20, 3GPP TS 55.216 root
A5-1
a5-1
broken key 8 · nonce 4 GSM 03.20 root
A5-2
a5-2
broken key 8 · nonce 4 GSM 03.20 root

Frequently asked questions

What is A5?

A5 is the family of stream ciphers used for GSM and early 3G voice encryption. NextSSL carries A5/1 to A5/4, with A5/1 and A5/2 broken and A5/3 and A5/4 legacy.

Is A5 secure and post-quantum?

No. A5/1 and A5/2 are broken by published attacks, and A5/3 and A5/4 are legacy. Grover's algorithm would also reduce the effective key strength of the 8-byte keys, which is already too small.

What key and nonce sizes does A5 use?

A5/1 and A5/2 use 8-byte keys, A5/3 uses an 8-byte key and A5/4 a 16-byte key. All four variants use a 4-byte nonce.

Which A5 (GSM stream ciphers) variants does NextSSL include?

NextSSL registers 4 A5 (GSM stream ciphers) variants: a5-3, a5-4, a5-1, a5-2.