Elect. Codebook, Cipher Block Chaining

Slides:



Advertisements
Similar presentations
Block Cipher Modes of Operation and Stream Ciphers
Advertisements

ECE454/CS594 Computer and Network Security
“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
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.
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.
Lecture 23 Symmetric Encryption
CS470, A.SelcukModes of Operation1 Encrypting with Block Ciphers CS 470 Introduction to Applied Cryptography Instructor: Ali Aydin Selcuk.
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.
Chapter 20 Symmetric Encryption and Message Confidentiality.
Chapter 20 Symmetric Encryption and Message Confidentiality.
Cryptography and Network Security
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.
1.1 Chapter 8 Encipherment Using Modern Symmetric-Key Ciphers Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
BLOCK CIPHER SYSTEMS OPERATION MODES OF DATA ENCRYPTION STANDARD (DES)
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.
Stream Ciphers and Block Ciphers A stream cipher is one that encrypts a digital data stream one bit or one byte at a time. Examples of classical stream.
Cryptography and Network Security Chapter 6 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
Lecture 23 Symmetric Encryption
Privacy and Integrity: “ Two Essences of Network Security” Presenter Prosanta Gope Advisor Tzonelih Hwang Quantum Information and Network Security Lab,
Cryptography and Network Security
Cipher Transmission and Storage Modes Part 2: Stream Cipher Modes CSCI 5857: Encoding and Encryption.
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.
CS480 Cryptography and Information Security
Modes of Operation.
Chapter6: More on Symmetric Ciphers
Algorithm Modes ECB, CBC, CFB, OFB.
Computer and Network Security
Chapter 6 – Block Cipher Operation
Cryptography and Network Security Chapter 6
Outline Desirable characteristics of ciphers Stream and block ciphers
Block Cipher Modes CS 465 Make a chart for the mode comparisons
3DES, AES, and Modes of Operation
Cryptography This week we are going to use OpenSSL
Block cipher and modes of encryptions
PART VII Security.
Cryptography and Network Security
Algorithm Types & Algorithm Modes
Security Of Wireless Sensor Networks
Block vs Stream Ciphers
ADVANCED ENCRYPTION STANDARDADVANCED ENCRYPTION STANDARD
Block Ciphers: DES and AES
Block Ciphers (Crypto 2)
Security of Wireless Sensor Networks
Basics Of Symmetric Encryption
Cryptography and Network Security Chapter 6
Cryptanalysis Network Security.
Pseudorandom Numbers Network Security.
Counter With Cipher Block Chaining-MAC
Counter Mode, Output Feedback Mode
Cipher-Based MAC Network Security.
The RC4 Algorithm Network Security.
Stream Cipher Structure
Data Encryption Standard (DES)
Simple Hash Functions Network Security.
Review of Cryptography: Symmetric and Asymmetric Crypto Advanced Network Security Peter Reiher August, 2014.
Secret-Key Encryption
Presentation transcript:

Elect. Codebook, Cipher Block Chaining Network Security

Elect. Codebook, Cipher Block Chaining Objectives of the Topic After completing this topic, a student will be able to describe electronic codebook and cipher block modes.

Elect. Codebook, Cipher Block Chaining Figures and material in this topic have been adapted from “Network Security Essentials: Applications and Standards”, 2014, by William Stallings.

Elect. Codebook, Cipher Block Chaining A symmetric block cipher processes one block of data at a time. Block length is 64 bits for DES and 3DES For AES, the block length is 128 bits.

Elect. Codebook, Cipher Block Chaining If the amount of plaintext is greater than b-bits, then we can break the plaintext up into b-bit blocks. When multiple blocks of plaintext are encrypted using the same key, a number of security issues arise.

Elect. Codebook, Cipher Block Chaining Five modes of operation have been defined by NIST (SP(Special Publication) 800- 38A) so that a block cipher can be applied in a variety of applications.

Elect. Codebook, Cipher Block Chaining A mode of operation is a technique for enhancing the effect of a cryptographic algorithm or adapting the algorithm for an application, such as applying a block cipher to a sequence of data blocks or a data stream.

Elect. Codebook, Cipher Block Chaining Electronic Codebook Mode (ECB) Cipher Block Chaining Mode (CBC) Cipher Feedback Mode (CFB) Output Feedback (OFB) Counter Mode (CTR)

Elect. Codebook, Cipher Block Chaining Electronic Codebook Mode: Simplest mode Plaintext is handled b bits at a time and each block of plaintext is encrypted using the same key.

Elect. Codebook, Cipher Block Chaining The term codebook is used because, for a given key, there is a unique ciphertext for every b-bit block of plaintext.

Elect. Codebook, Cipher Block Chaining We can imagine a gigantic codebook in which there is an entry for every possible b-bit plaintext pattern showing its corresponding ciphertext.

Elect. Codebook, Cipher Block Chaining For a message longer than b bits, the procedure is simply to break the message into b-bit blocks

Elect. Codebook, Cipher Block Chaining With ECB, if the same b-bit block of plaintext appears more than once in the message, it always produces the same ciphertext. Because of this, for lengthy messages, the ECB mode may not be secure.

Elect. Codebook, Cipher Block Chaining If the message has repetitive elements with a period of repetition a multiple of b-bits, these elements can be identified. We want to produce different ciphertext blocks for the same plaintext block if repeated .

Elect. Codebook, Cipher Block Chaining Cipher Block Chaining Mode: The input to the encryption algorithm is the XOR of the current plaintext block and the preceding ciphertext block. The same key is used for each block.

Elect. Codebook, Cipher Block Chaining In effect, we have chained together the processing of the sequence of plaintext blocks.

Elect. Codebook, Cipher Block Chaining The input to the encryption function for each plaintext block bears no fixed relationship to the plaintext block. Therefore, repeating patterns of b-bits are not exposed.

Elect. Codebook, Cipher Block Chaining CBC Encryption: To produce the first block of ciphertext, an initialization vector (IV) is XORed with the first block of plaintext. For the jth output

Elect. Codebook, Cipher Block Chaining

Elect. Codebook, Cipher Block Chaining The IV must be known to both the sender and receiver but be unpredictable by a third party.

Elect. Codebook, Cipher Block Chaining CBC Decryption: For decryption, each cipher block is passed through the decryption algorithm. The result is XORed with the preceding ciphertext block to produce the plaintext block.

Elect. Codebook, Cipher Block Chaining On decryption, the IV is XORed with the output of the decryption algorithm to recover the first block of plaintext.

Elect. Codebook, Cipher Block Chaining

Elect. Codebook, Cipher Block Chaining Because of the chaining mechanism of CBC, it is an appropriate mode for encrypting messages of length greater than b-bits. End