Cryptography - Lecture 9 - Block Cipher Design and Usage

This lesson discusses some design considerations for DES, and then looks at the modes of use of block ciphers.

Objectives

  • know how DES works in general
  • be able to trace a round of DES by hand implementing all the functions
  • Preliminary Reading

    Stallings, "Cryptography and Network Security", Ch 3.6-3.7,4.7 pp79-89,126-127.

    Lecture Content

    Weak Keys

    1. Weak Keys
    2. Weak Keys in DES
    3. Semi-Weak Keys in DES
    4. Demi-Semi Weak Keys in DES
    5. Handling Weak Keys

    DES Design Principles

    1. DES Design Principles
    2. DES S-box Design
    3. DES Permutations Design
    4. DES Key Schedule and PC-2 Design

    Triple DES

    1. Triple DES
    2. Security of Triple DES

    Modes of Use

    1. Modes of Use
    2. Electronic Codebook Book (ECB)
    3. Advantages and Limitations of ECB
    4. Cipher Block Chaining (CBC)
    5. Advantages and Limitations of CBC
    6. Cipher FeedBack (CFB)
    7. Advantages and Limitations of CFB
    8. Output FeedBack (OFB)
    9. Advantages and Limitations of OFB

    Summary

    1. Summary

    Exercises

    1. Exercises
      1. Consider the avalanche effect in the DES cipher. If a single data input bit is changed, if it becomes a L half bit, roughly how many bits could be changed after round 1? After rounds 2, 3? Hint: if any input bit to an S-box is changed, potentially all that S-boxes output bits can change (given completeness in the S-box design). Now consider the case when a R half data bit is changed. How many bits could change after round 1, 2, 3? When a key bit is changed?
      2. For each of the four modes of use for block ciphers, think of an application where that mode would be the most appropriate, and in a few sentences describe the application and why the mode is the best choice

    Additional References

    For additional information, see:
  • Seberry & Pieprzyk, "Cryptography - An Introduction to Computer Security", 2/e Ch 3.2; 1/e Ch 3.2 pp77-88
  • B Schneier, "Applied Cryptography", 2/e, Ch 12,13.1, pp265-301, 303
  • H Katzan, "The Standard Data Encryption Algorithm", Petrocelli Books, New York, 1977

  • [Back to CCS3 Lectures]
    Lawrie.Brown@adfa.edu.au / 6 Feb 2001