×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!

CREATE ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • SUPPORT

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

Does GSM use two LSFRs coupled together in implementing a stream cipher?

by Emmanuel Udofia / Monday, 05 August 2024 / Published in Cybersecurity, EITC/IS/CCF Classical Cryptography Fundamentals, Stream ciphers, Stream ciphers and linear feedback shift registers

The Global System for Mobile Communications (GSM) is a standard developed to describe protocols for second-generation (2G) digital cellular networks used by mobile phones. It is a critical component in the telecommunications field and has widespread adoption globally. GSM employs various cryptographic mechanisms to ensure the confidentiality and integrity of communications. One of the key cryptographic mechanisms used in GSM is the A5/1 stream cipher, which indeed utilizes Linear Feedback Shift Registers (LFSRs) in its implementation.

To understand whether GSM uses two LFSRs coupled together in implementing a stream cipher, we need to consider the specifics of the A5/1 cipher, which is the most widely studied and historically significant stream cipher used in GSM.

Structure of A5/1 Stream Cipher

The A5/1 stream cipher is designed to encrypt the data transmitted over the air interface between the mobile station (MS) and the base transceiver station (BTS). It operates on a bit-by-bit basis, generating a keystream that is XORed with the plaintext to produce the ciphertext. The decryption process is symmetric, where the same keystream is XORed with the ciphertext to retrieve the plaintext.

A5/1 employs three LFSRs, not just two, which are denoted as R1, R2, and R3. Each of these LFSRs has a different length and taps, and they are combined in a specific manner to generate the keystream. The lengths and taps of the LFSRs are as follows:
– R1: 19 bits, with taps at positions 13, 16, 17, and 18.
– R2: 22 bits, with taps at positions 20, 21.
– R3: 23 bits, with taps at positions 7, 20, 21, and 22.

Initialization and Operation

The initialization of the A5/1 cipher involves loading the LFSRs with a secret key and a publicly known frame counter. The secret key is a 64-bit value shared between the mobile station and the network. The frame counter is a 22-bit value that changes with each frame of data transmitted.

Step-by-Step Initialization:

1. Loading the Key: Each LFSR is initially set to zero. The 64-bit key is then loaded into the LFSRs by XORing each bit of the key with the corresponding bit in each LFSR, for 64 cycles.

2. Loading the Frame Counter: The frame counter is then loaded into the LFSRs in a similar manner, using 22 cycles.

3. Mixing Phase: The LFSRs are clocked for 100 cycles without producing any output. During this phase, the LFSRs are clocked irregularly based on a majority rule.

Majority Rule Clocking:

The clocking of the LFSRs is controlled by a majority rule based on specific bits (clocking taps) in each LFSR:
– R1's clocking tap is bit 8.
– R2's clocking tap is bit 10.
– R3's clocking tap is bit 10.

The majority function determines the majority value (0 or 1) of the clocking taps. An LFSR is clocked if its clocking tap matches the majority value. This irregular clocking mechanism introduces non-linearity into the keystream generation process, making it more resistant to certain cryptanalytic attacks.

Keystream Generation

After the initialization and mixing phase, the A5/1 cipher is ready to generate the keystream. For each bit of the keystream:
1. The LFSRs are clocked according to the majority rule.
2. The output bits from the LFSRs are combined using XOR to produce a single keystream bit.

The generated keystream is then XORed with the plaintext to produce the ciphertext. This process continues for the duration of the frame, ensuring continuous encryption of the data being transmitted.

Comparison with Other Stream Ciphers

While A5/1 uses three LFSRs, it is worth noting that other stream ciphers may use different configurations. For instance, the A5/2 cipher, which was also used in GSM but has been deprecated due to its vulnerabilities, employs four LFSRs. The choice of the number of LFSRs and their configuration depends on the desired security properties and performance requirements.

Security Considerations

The security of the A5/1 cipher has been a topic of extensive research. Several attacks have been developed over the years, exploiting weaknesses in the cipher's design. Notable attacks include:
– Time-Memory Trade-Off Attacks: These attacks precompute tables of possible keystreams, allowing for rapid decryption once a match is found.
– Correlation Attacks: These attacks exploit statistical correlations between the keystream and the internal state of the LFSRs to recover the secret key.

Due to these vulnerabilities, A5/1 is considered weak by modern cryptographic standards. However, its historical significance and the lessons learned from its analysis have contributed to the development of more secure cryptographic algorithms.

Example of A5/1 Initialization

To illustrate the initialization process of the A5/1 cipher, consider the following example with a simplified key and frame counter:

– Key: 0x1F2E3D4C5B6A7988 (in hexadecimal)
– Frame Counter: 0x123456 (in hexadecimal)

Step 1: Loading the Key

Convert the key to binary:

Key: 0001111100101110001111010100110001011011011010100111100110001000

Initialize the LFSRs to zero:

R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000

For each bit of the key, XOR it with the corresponding bit in each LFSR and shift the LFSRs:

Cycle 1:
Key bit: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000

Cycle 2:
Key bit: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000

...

Cycle 64:
Key bit: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000
Step 2: Loading the Frame Counter

Convert the frame counter to binary:

Frame Counter: 000100100011010001010110

For each bit of the frame counter, XOR it with the corresponding bit in each LFSR and shift the LFSRs:

Cycle 1:
Frame Counter bit: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000

Cycle 2:
Frame Counter bit: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000

...

Cycle 22:
Frame Counter bit: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000
Step 3: Mixing Phase

Clock the LFSRs for 100 cycles according to the majority rule without producing output:

Cycle 1:
Majority value: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000

Cycle 2:
Majority value: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000

...

Cycle 100:
Majority value: 0
R1: 0000000000000000000
R2: 0000000000000000000000
R3: 00000000000000000000000

The A5/1 stream cipher used in GSM employs three LFSRs coupled together to generate the keystream for encryption. The use of multiple LFSRs and the majority rule clocking mechanism introduce non-linearity and complexity into the keystream generation process, enhancing the security of the cipher. However, it is important to acknowledge the vulnerabilities discovered in A5/1 and the advancements in cryptographic research that have led to the development of more secure algorithms for mobile communications.

Other recent questions and answers regarding EITC/IS/CCF Classical Cryptography Fundamentals:

  • Is cryptography considered a part of cryptology and cryptanalysis?
  • Will a shift cipher with a key equal to 4 replace the letter d with the letter h in ciphertext?
  • Does the ECB mode breaks large input plaintext into subsequent blocks
  • Do identical plaintext map to identical cipher text of a letter frequency analysis attact against a substitution cipher
  • What is EEA ?
  • Are brute force attack always an exhausive key search?
  • In RSA cipher, does Alice need Bob’s public key to encrypt a message to Bob?
  • Can we use a block cipher to build a hash function or MAC?
  • What are initialization vectors?
  • How many part does a public and private key has in RSA cipher

View more questions and answers in EITC/IS/CCF Classical Cryptography Fundamentals

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/CCF Classical Cryptography Fundamentals (go to the certification programme)
  • Lesson: Stream ciphers (go to related lesson)
  • Topic: Stream ciphers and linear feedback shift registers (go to related topic)
Tagged under: A5/1, Cryptography, Cybersecurity, GSM, LFSR, Stream Cipher
Home » Cybersecurity / EITC/IS/CCF Classical Cryptography Fundamentals / Stream ciphers / Stream ciphers and linear feedback shift registers » Does GSM use two LSFRs coupled together in implementing a stream cipher?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (106)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Reddit publ.)
  • About
  • Contact
  • Cookie Policy (EU)

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on Twitter
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF), governed by the EITCI Institute since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    Follow @EITCI
    EITCA Academy

    Your browser doesn't support the HTML5 CANVAS tag.

    • Quantum Information
    • Cybersecurity
    • Artificial Intelligence
    • Cloud Computing
    • Web Development
    • GET SOCIAL
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.