Docsity

Block Ciphers and the Data Encryption Standard-Computer Security-Lecture Slides, Slides of Computer Security

Partial preview of the text

Download Block Ciphers and the Data Encryption Standard-Computer Security-Lecture Slides and more Slides Computer Security in PDF only on Docsity!

Dr. Hanif Durad

2

Lecture Outline^ ^ Block vs Stream Ciphers^ ^ Block Cipher Principles^ ^ Feistel Cipher Structure^ ^ Data Encryption Standard (DES)^ ^ Differential Cryptanalysis^ ^ Linear Cryptanalysis

Dr. Hanif Durad

3

3.1(a) Block vs Stream Ciphers  Block ciphers process messages in blocks, each of whichis then en/decrypted  Like a substitution on very big characters  64-bits or more  Stream ciphers process messages a

bit or byte

at a time

when en/decrypting  Many current ciphers are block ciphers  Broader range of applications

Block Ciphers (1/4)

Book- Information Security fundamentals, Figure 6.

Block Ciphers (2/4)  Encrypt data one block at a time  Used in broader range of applications  Typical block size 64 – 128 bits  Most algorithms based on a structure referred toas Feistel block cipher

Logic of General Substitution

Plain Text (n-bit)

Key Size (?)

Cipher Text (n-bit)

Reversible vs Irreversible

Types of Permutations

Dr. Hanif Durad

11

Pfleeger_-_Security_in_Computing_4th_Ed, P-

Key Length

^ In previous example, key is mapping ^ Key length 16 × 4 bits = 64 bits (implicit)^ ^ i.e. concatenate all bits of ciphertext table ^ In general, for an n-bit ideal block cipher, the lengthof the key defined in this fashion is

n n ×

^ Actual block size is at least 64 bits ^ Key length will be 2

64 × 64

bits

^ Ability to map any plaintext to any ciphertext is theideal block cipher

Dr. Hanif Durad

14

Claude Shannon and Substitution-Permutation Ciphers  Claude Shannon introduced idea of substitution-permutation (S-P) networks in 1949 paper  form basis of modern block ciphers  S-P nets are based on the two primitive cryptographicoperations : ^ substitution

(S-box) ^ permutation

(P-box) ^ provide

confusion

&^ diffusion

of message & key

Dr. Hanif Durad

15

3.1(c) Confusion and Diffusion  Obscure plaintext statistics in ciphertext  Ideally achieved by arbitrary substitutioncipher

Dr. Hanif Durad

17

Diffusion-Example (2/2)  Message M = m

, m^ , m 12

^ Ciphertext letter y

results from adding kn^

successive plaintext letters

(^1

) m o d 2 6

k i n^

n^ i

y^

m 

^

Dr. Hanif Durad

18

Confusion  Maximize complexity of the relation between key and ciphertext

statistics

^ Achieved by using complex substitutionalgorithms

20

FeistelCipherStructure

Dr. Hanif Durad

21

Feistel Cipher Structure  Substitution performed to left half  apply round function F to right half  take XOR of output with left half  F is parameterized by round subkey K

i

^ Permutation of left and right halves^ ^ interchange left and right halves