Chapter 4: Modes of Operation CS 472: Fall 2012. Encrypting a Large Massage 1.Electronic Code Book (ECB) 2.Cipher Block Chaining (CBC) 3.Output Feedback.

Slides:



Advertisements
Similar presentations
Cryptography and Network Security Chapter 6 Block Cipher Modes of Operation Lecture slides by Lawrie Brown for “Cryptography and Network Security”, 5/e,
Advertisements

Symmetric Encryption Prof. Ravi Sandhu.
DES The Data Encryption Standard (DES) is a classic symmetric block cipher algorithm. DES was developed in the 1970’s as a US government standard The block.
Block Cipher Modes of Operation and Stream Ciphers
ECE454/CS594 Computer and Network Security
MAC Raushan. DES simple fiestel network 3131 PlainText Blocks 2*4=8bits 31 f f =0011 xor 0011=0000 = 0 f(r,k)=(2*r+k^2)%8 f(1,5)=(2*1+5^2)%8=3 xor 3 3.
“Advanced Encryption Standard” & “Modes of Operation”
Encipherment Using Modern Symmetric-Key Ciphers. 8.2 Objectives ❏ To show how modern standard ciphers, such as DES or AES, can be used to encipher long.
Modern Symmetric-Key Ciphers
Modern Symmetric-Key Ciphers
Modern Symmetric-Key Ciphers
CS 483 – SD SECTION BY DR. DANIYAL ALGHAZZAWI (3) Information Security.
Cryptography and Network Security Chapter 6 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
Cryptography and Network Security Chapter 6. Chapter 6 – Block Cipher Operation Many savages at the present day regard their names as vital parts of themselves,
Cryptography1 CPSC 3730 Cryptography Chapter 6 Triple DES, Block Cipher Modes of Operation.
Block Ciphers 1 Block Ciphers Block Ciphers 2 Block Ciphers  Modern version of a codebook cipher  In effect, a block cipher algorithm yields a huge.
Chapter 4 Modes of Operation Instructor: 孫宏民 Room: EECS 6402, Tel: , Fax :
Modes of Operation CS 795. Electronic Code Book (ECB) Each block of the message is encrypted with the same secret key Problems: If two identical blocks.
EEC 693/793 Special Topics in Electrical Engineering Secure and Dependable Computing Lecture 5 Wenbing Zhao Department of Electrical and Computer Engineering.
CMSC 414 Computer and Network Security Lecture 4 Jonathan Katz.
Computer Networking Lecture 21: Security and Cryptography Thanks to various folks from , semester’s past and others.
Lecture 23 Symmetric Encryption
CS470, A.SelcukModes of Operation1 Encrypting with Block Ciphers CS 470 Introduction to Applied Cryptography Instructor: Ali Aydin Selcuk.
Chapter 8.  Cryptography is the science of keeping information secure in terms of confidentiality and integrity.  Cryptography is also referred to as.
Block Cipher Transmission Modes CSCI 5857: Encoding and Encryption.
Modes of Operation. Topics  Overview of Modes of Operation  EBC, CBC, CFB, OFB, CTR  Notes and Remarks on each modes.
Cryptography and Network Security Chapter 6. Multiple Encryption & DES  clear a replacement for DES was needed theoretical attacks that can break it.
Lecture 4: Using Block Ciphers
CS526: Information Security Prof. Sam Wagstaff September 16, 2003 Cryptography Basics.
CS555Spring 2012/Topic 111 Cryptography CS 555 Topic 11: Encryption Modes and CCA Security.
Network Security Lecture 4 Modes of Operation Waleed Ejaz
Cryptography Chapter 7 Part 2 Pages 781 to 812. Symmetric Cryptography Secret Key Figure 7-10 on page 782 Key distribution problem – Secure courier Many.
CMSC 414 Computer and Network Security Lecture 5 Jonathan Katz.
3DES and Block Cipher Modes of Operation CSE 651: Introduction to Network Security.
Multiple Encryption & DES  clearly a replacement for DES was needed Vulnerable to brute-force key search attacks Vulnerable to brute-force key search.
Chapter 9: Algorithms Types and Modes Dulal C. Kar Based on Schneier.
Encryption Types & Modes Chapter 9 Encryption Types –Stream Ciphers –Block Ciphers Encryption Modes –ECB - Electronic Codebook –CBC - Cipher Block Chaining.
More About DES Cryptography and Network Security Reference: Sec 3.1 of Stallings Text.
Data Encryption Standard (DES) © 2000 Gregory Kesden.
Lecture 4 Page 1 CS 236 Stream and Block Ciphers Stream ciphers convert one symbol of plaintext immediately into one symbol of ciphertext Block ciphers.
1.1 Chapter 8 Encipherment Using Modern Symmetric-Key Ciphers Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Understanding Cryptography – A Textbook for Students and Practitioners by Christof Paar and Jan Pelzl Chapter 5 – More About Block.
BLOCK CIPHER SYSTEMS OPERATION MODES OF DATA ENCRYPTION STANDARD (DES)
Chapter 9 Encrypting Volumes. FIGURE 9.0.F01: A hard drive volume with full-disk encryption (FDE).
Modes of Usage Dan Fleck CS 469: Security Engineering These slides are modified with permission from Bill Young (Univ of Texas) 11 Coming up: Modes of.
Modes of Operation INSTRUCTOR: DANIA ALOMAR. Modes of Operation A block cipher can be used in various methods for data encryption and decryption; these.
1 Symmetric-Key Encryption CSE 5351: Introduction to Cryptography Reading assignment: Chapter 3 Read sections first (skipping 3.2.2)
Cryptography and Network Security Chapter 6 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
Class 3 Cryptography Refresher II CIS 755: Advanced Computer Security Spring 2014 Eugene Vasserman
Lecture 23 Symmetric Encryption
Privacy and Integrity: “ Two Essences of Network Security” Presenter Prosanta Gope Advisor Tzonelih Hwang Quantum Information and Network Security Lab,
Presentation Road Map 1 Authenticated Encryption 2 Message Authentication Code (MAC) 3 Authencryption and its Application Objective Modes of Operation.
Lecture 4 Page 1 CS 236 Stream and Block Ciphers Stream ciphers convert one symbol of plaintext immediately into one symbol of ciphertext Block ciphers.
Cipher Transmission and Storage Modes Part 2: Stream Cipher Modes CSCI 5857: Encoding and Encryption.
@Yuan Xue 285: Network Security CS 285 Network Security Message Authentication Code Data integrity + Source authentication.
Block Cipher Modes Last Updated: Aug 25, ECB Mode Electronic Code Book Divide the plaintext into fixed-size blocks Encrypt/Decrypt each block independently.
Modes of Operation block ciphers encrypt fixed size blocks – eg. DES encrypts 64-bit blocks with 56-bit key need some way to en/decrypt arbitrary amounts.
Block Cipher Encrypting a large message Electronic Code Book (ECB) message m1 m2 m3 m4 m5 m6 c1 c2 c3 c4 c5 c6 E E E Secret.
CS480 Cryptography and Information Security
Algorithm Modes ECB, CBC, CFB, OFB.
Computer and Network Security
Block Cipher Modes CS 465 Make a chart for the mode comparisons
مروري برالگوريتمهاي رمز متقارن(كليد پنهان)
Algorithm Types & Algorithm Modes
Symmetric-Key Encryption
Block vs Stream Ciphers
Counter Mode, Output Feedback Mode
Elect. Codebook, Cipher Block Chaining
Secret-Key Encryption
Presentation transcript:

Chapter 4: Modes of Operation CS 472: Fall 2012

Encrypting a Large Massage 1.Electronic Code Book (ECB) 2.Cipher Block Chaining (CBC) 3.Output Feedback Mode (OFB) 4.Cipher Feedback Mode (CFB )

Electronic Code Book (ECB) Break the message into 64-bit blocks (padding the last one) and encrypt each block with the secret key. Two problems: 1. two identical plain text block produce two identical cipher blocks 2. blocks can be rearranged or modified. Example: See Figure 4-3 where an eavesdropper: 1. can see which sets of employees have identical or similar salaries and 2. he can alter his own salary to match another employee with higher salary.

Cipher Block Chaining (CBC) Two identical plain messages produce two different cipher messages. (e.g., continue holding, continue holding,....., start attach) This prevents Chosen plain text attack.

CBC Threat 1 Modifying Cipher Blocks: Fig. 4-3 You can modify the contents of one cipher block (c6) to make the plain text (m7) as you wish, however the preceding block (m6) will be garbled, as shown:

Thus if c n is garbled then m n will be completely garbed. Only the same portion of m n+1 as what was garbled in c n will be garbed. This can be solved by attaching a CRC to the plain text before encryption.

CBC Threat 2: Rearranging Ciphertext Blocks If a hacker knows the plain text and the corresponding cipher text; i.e., m1, m2, …,mn and c1,c2,…,cn; and IV. By rearranging c1, c2, …, cn, the intruder can garble the message. Solution: Use a 64-bit CRC

Output Feedback Mode (OFB) It is a stream cipher Encryption/decryption is performed by ®ing the message with one-time pad generated as follows: 1. A 64-bit random IV is generated (and is transmitted with the encrypted message). 2. b 1 is the DES encryption of IV with the secret key. 3. b i, i > 1, is the DES encryption of b i-1 with secret key. 4. The resulting one-time pad is: b1 | b2 | b3 | c i = b i ® m i for i =1, 2,...

Output Feedback Mode (OFB)

Major advantages of OFB: The pad can be generated in advance and used when the message arrive. If some bits of cipher text get garbled, only the corresponding bits in the plain text get garbled. Major disadvantages of OFB: oif the are known by Trudy, she can modify the plain text into anything she wants (P') since: ((P ® K) ® P) ® P' ) ® K = P' oIf one block is lost, the rest of the blocks will be garbled. oIf data is stored on disk, you can not randomly read any block unless you decrypt all the preceding blocks. To solve the last two problems, we use CFB below, where if one block is lost, only the next block is garbled and the rest of the blocks will decrypt properly.

Cipher Feedback Mode (CFB). A 64-bit random IV is generated (and is transmitted with the encrypted message). 2. b 1 is the DES encryption of IV with the secret key. 3. b i, i > 1, is the DES encryption of c i-1 with secret key. (Thus you can't generate a one-time pad in advance like OFB) 4. c i = b i ® m i for i =1, 2,...

Counter Mode (CTR) See Figure 4-10, CTR have the following advantages: oYou can generate the one-time pad in advance. oYou can randomly access any block without decrypting all the preceding blocks

Generating MACs A secret key system can be used to generate a cryptographic checksum MAC (message authentication code) or MIC (message integrity code).

Ensuring Integrity Only Send Plain text + CBC residue: (figure 4-11) The receiver computes the CBC residue from the plain text and compare it with the received CBC residue.

Ensuring Privacy & Integrity Together oUse CRC (figure 4-14), CRC is generally is known to be vulnerable to attacks. oUse a different key to encrypt the message (the two keys can be independent or related)

Multiple Encryption DES It is called 3DES or EDE (encrypt-decrypt- encrypt): m>>>> E >>>> D >>>> E >>>>c | | | K1 K2 K1 | | | c >>>> E >>>> D >>>> E >>>> m CBC is used for stream encryption as shown in Figure 4-15: