A5 (GSM stream ciphers)
The GSM voice-encryption stream ciphers A5/1 to A5/4, two of them broken and two legacy
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–2009A5/1 designed for GSM
A5/1 design leaks
A5/1 and A5/2 fully reverse engineered
A5/3 (KASUMI) specified
Rainbow-table attacks on A5/1 published
How it works
- The session key and a 4-byte frame number are loaded into the cipher's state.
- The cipher clocks its registers or block cipher for each frame and generates a keystream for that frame.
- 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
Variants in NextSSL
4Frequently 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.
Other stream ciphers
All 37Related
The 3GPP block cipher behind A5/3, derived from MISTY1
GEA (GPRS encryption algorithms)The GPRS stream ciphers GEA1 to GEA4, one broken, one unverified and two legacy
RC4Rivest's 1987 byte-oriented stream cipher, once ubiquitous and now prohibited in TLS
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