×
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

Do practical stream ciphers generate their keys with psuedo random number generators?

by Emmanuel Udofia / Friday, 02 August 2024 / Published in Cybersecurity, EITC/IS/CCF Classical Cryptography Fundamentals, Stream ciphers, Stream ciphers, random numbers and the one-time pad

Stream ciphers are a fundamental concept within the realm of classical cryptography. They are encryption algorithms that encrypt plaintext digits one at a time, typically by combining them with a pseudorandom cipher digit stream. This process is distinct from block ciphers, which encrypt data in fixed-size blocks. The question at hand pertains to whether practical stream ciphers generate their keys using pseudorandom number generators (PRNGs). To answer this question comprehensively, it is essential to consider the mechanics of stream ciphers, the role of pseudorandomness, and the practical implementation of these cryptographic systems.

Stream ciphers operate by generating a keystream, which is a sequence of pseudorandom digits. This keystream is then combined with the plaintext digits to produce the ciphertext. The combining process is typically an XOR operation, which is both simple and efficient. The security of a stream cipher hinges on the unpredictability of the keystream; if an attacker can predict or reproduce the keystream, they can easily decrypt the ciphertext.

The keystream in a stream cipher is generated using a seed, which is a secret key known only to the sender and receiver. This seed is input into a pseudorandom number generator (PRNG), which produces the pseudorandom keystream. The PRNG is a deterministic algorithm that generates a sequence of numbers that approximates the properties of random numbers. Despite being deterministic, a well-designed PRNG can produce sequences that are sufficiently unpredictable for cryptographic purposes, provided the seed remains secret.

A classic example of a stream cipher is the RC4 algorithm. RC4 uses a variable-length key, typically between 40 and 2048 bits, to initialize a state array of 256 bytes. This state array is then used to generate the keystream. The RC4 algorithm is simple and efficient, but it has known vulnerabilities, particularly if the same key is used for multiple messages or if the first few bytes of the keystream are not discarded.

Another example is the A5/1 stream cipher, used in GSM mobile communications. A5/1 generates a keystream using three linear feedback shift registers (LFSRs), which are initialized with the secret key and a publicly known frame counter. The combination of the LFSRs' outputs produces the pseudorandom keystream. A5/1 has been shown to have vulnerabilities to certain types of attacks, but it illustrates the use of PRNGs in practical stream ciphers.

The use of PRNGs in stream ciphers is not without challenges. The security of a stream cipher depends critically on the quality of the PRNG. If the PRNG is predictable or has a short period, the keystream can be compromised. Therefore, cryptographic PRNGs (CPRNGs) are designed to meet stringent security requirements. These requirements include resistance to state compromise extensions, where an attacker who learns part of the internal state of the PRNG should not be able to predict previous or future outputs.

One widely used CPRNG is the Yarrow algorithm, which is designed to be secure against a variety of attacks. Yarrow uses entropy sources to gather randomness and periodically reseeds itself to ensure the keystream remains unpredictable. Another example is the Fortuna algorithm, which improves upon Yarrow by using multiple entropy pools and a more flexible reseeding mechanism.

The keystream generation process in stream ciphers can be contrasted with the one-time pad (OTP), which is the only theoretically unbreakable cipher. In an OTP, the keystream is truly random and as long as the message itself. Each bit of the keystream is used exactly once, and the keystream must be kept secret and never reused. While the OTP provides perfect security, it is impractical for most applications due to the difficulty of generating, distributing, and managing large amounts of truly random keys.

In practical applications, stream ciphers strike a balance between security and efficiency. By using PRNGs to generate the keystream, they can provide a high level of security without the impracticalities of the OTP. However, the choice of PRNG and the management of keys are critical to maintaining this security. If the same key is reused or if the PRNG is weak, the security of the stream cipher can be compromised.

Practical stream ciphers do indeed generate their keystreams using pseudorandom number generators. These PRNGs are designed to produce sequences that are sufficiently unpredictable for cryptographic purposes, provided the seed remains secret and the PRNG is well-designed. Examples such as RC4 and A5/1 illustrate how PRNGs are used in stream ciphers, while CPRNGs like Yarrow and Fortuna demonstrate the importance of robust PRNG design. The use of PRNGs allows stream ciphers to provide a balance between security and efficiency, making them suitable for a wide range of applications.

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, random numbers and the one-time pad (go to related topic)
Tagged under: A5/1, CPRNG, Cryptography, Cybersecurity, Encryption, Keystream, PRNG, RC4, Security, Stream Ciphers
Home » Cybersecurity / EITC/IS/CCF Classical Cryptography Fundamentals / Stream ciphers / Stream ciphers, random numbers and the one-time pad » Do practical stream ciphers generate their keys with psuedo random number generators?

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
    • Cloud Computing
    • Cybersecurity
    • Web Development
    • Artificial Intelligence
    • 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.