Docsity

Block Cipher Modes of Operation: ECB, CBC, Cipher Feedback, Output Feedback, and Counter, Slides of Computer Security

Partial preview of the text

Download Block Cipher Modes of Operation: ECB, CBC, Cipher Feedback, Output Feedback, and Counter and more Slides Computer Security in PDF only on Docsity!

Computer Security

Today’s Lecture

• Block Cipher Modes of Operation

  1. Electronic Code Book
  2. Cipher Block Chaining
  3. Cipher Feedback
  4. Output Feedback
  5. Counter

DES Applications

Electronic Code Book

• The simplest mode of operation

• Encryption Cipher  DES

• Messages are broken in 64 bit block

• Padding is used for block less than 64 bits

• Each block is encrypted using same key

• ECB Application

 Used for short amount of data  Example  Encryption Key

ECB Decryption

• C i cipher text blocks of 64 bits

• P i plain text of 64 bits blocks

• K Encryption key for each block

Comments about ECB

• Useful for short amount of text

• Same 64 bit input block produces same cipher text

• Repetitive elements can be exposed

• Not suitable for highly structured messages

• Not suitable for lengthy messages

CBC Encryption

• IV is initialization vector

CBC Decryption

• Same IV is used while decryption

Cipher Feedback Encryption

Cipher Feedback Decryption

Output Feedback Decryption

Counter Mode

• Input blocks are divided in blocks

• Same key is used for each block

• No chaining

• Parallel Execution is possible

Counter Mode Decryption

Comment about Counter Mode

  • Simplicity
  • Implementation of encryption algorithm only
  • Preprocessing is possible
  • Hardware efficiency