Docsity

Lecture Notes on Block Ciphers and Data Encryption Standard (DES) - Prof. Marina Blanton, Study notes of Cryptography and System Security

Partial preview of the text

Download Lecture Notes on Block Ciphers and Data Encryption Standard (DES) - Prof. Marina Blanton and more Study notes Cryptography and System Security in PDF only on Docsity!

Cryptography and Data Security

CSE 40622/60622 Fall 2009

Lecture 6: Digital Encryption Standard (DES)

Department of Computer Science and Engineering

University of Notre Dame

Lecture OutlineLecture Outline

Previously we talked about:

-

defining security for encryption

using theoretical models for encryption

In this lecture:

-

move to practical constructions

learn about design principles of block ciphers

learn about how DES works

Fall 2009

Marina Blanton

Block CiphersBlock Ciphers

The algorithm maps an

n -bit plaintext block to an

(^) n

-bit ciphertext block

Most modern block ciphers are

product ciphers

messagewe sequentially apply more than one obfuscation technique to the

A common design for an algorithm is to

proceed in iterations

one iteration is called a

round

each round consists of similar operations

iterations are used to amplify obfuscation

Fall 2009

Marina Blanton

Design Principles of Block CiphersDesign Principles of Block Ciphers

Specifying a random permutation on an

n -bit block requires huge

amount of storage

-

there are

n )!

permutations, each can be encoded in

log(

n !)

n 2 n

bits

how do we achieve similar effect with reasonable resources?

Confusion-diffusion paradigm

-

split a block into small chunks

define a permutation on each block separately (confusion)

mix outputs from different chunks by rearranging bits (diffusion)

repeat to strengthen the result

Fall 2009

Marina Blanton

Design Principles of Block CiphersDesign Principles of Block Ciphers

k

S

S

S

S

P m i

m i ′

invertibleFor this type of algorithm to be reversible, each operation needs to be

Fall 2009

Marina Blanton

Design Principles of Block CiphersDesign Principles of Block Ciphers

Let’s denote one iteration or round by function

g

The initial state

s 0

is the message

m

itself

In round

i :

g ’s input is round key

k i and state

s i − 1

g ’s output is state

s i

The ciphertext

c (^) is the final state

s N r

, where

N r

is the number of

rounds

Decryption

algorithm applies

g − 1

iteratively

the order of round keys is reversed

set

s N r

c , compute

(^) s i − 1 = g − 1 ( k i

, s

i )

Fall 2009

Marina Blanton

Design Principles of Block CiphersDesign Principles of Block Ciphers

R f i

L i

L i − 1

R i− 1

k i

algorithm is not used!Operations no longer need to be reversible, as the inverse of the

-

reverse one round’s computation as

R i − 1 = L i

and

L i − 1 = R i ⊕

(^) f (^) ( k i , R

i − 1 )

Fall 2009

Marina Blanton

Design Principles of Block CiphersDesign Principles of Block Ciphers

In both types of networks, the

substitution and permutation algorithms

must be carefully designed

-

significantly weaker cipherschoosing random substitution/permutation strategies leads to

its outputeach bit difference in S-box input creates at least 2-bit difference in

to at least 2 S-boxes in next roundmixing permutation ensures that difference in one S-box propagates

Fall 2009

Marina Blanton

Data Encryption Standard (DES)Data Encryption Standard (DES)

In 1973 NIST published a solicitation for cryptosystems

NIST stands for the National Institute of Standards and Technology

-

previously the National Bureau of Standards

Commerce Departmentwas founded in 1901 within technology administration of the US

develops and promotes standards and technology

Processing Standards (FIPS)cryptographic standards are published in the Federal Information

Fall 2009

Marina Blanton

DESDES

LuciferDES was developed by IBM as a modification of an earlier system

DES was adopted as a standard in 1977

It was expected to be used as a standard for 10–15 years

Was replaced only in 2001 with AES (Advanced Encryption Standard)

DES characteristics:

-

key size is 56 bits

block size is 64 bits

number of rounds is 16

Fall 2009

Marina Blanton

DESDES

DES has a fixed

initial permutation

IP

prior to 16 rounds of encryption

The inverse permutation

IP

(^) −

1

is

applied at the end

... g m

k 2

k 16

c

IP IP

(^) − 1 k 1

g g

Fall 2009

Marina Blanton

DESDES

The

f

function

f (^) ( k i , R

i − 1 )

  1. first expands

R

i − 1

from 32 to 48 bits (

k i is 48 bits long)

  1. XORs expanded

R

i − 1

with

k i

  1. and finally permutes the value 3. applies substitution to the result using S-boxes

Fall 2009

Marina Blanton

DESDES

There are 8

S-boxes

S-boxes are the only non-linear elements in DES design

they are crucial for the security of the cipher

Example:

S

1

input to each S-box is 6 bits

b 1 b 2 b 3 b 4 b 5 b 6

row =

b 1 b 6 , column =

b 2 b 3 b 4 b 5

output is 4 bits

Fall 2009

Marina Blanton

DESDES

More about S-boxes..

-

triggered criticismsome of the design choices of S-boxes weren’t public, which

discoveredin late 1980s – early 1990s differential cryptanalysis techniques were

attacksit was then revealed that DES S-boxes were designed to prevent such

before the techniques were discovered by othersIBM researchers knew about such cryptanalysis almost 20 years

Fall 2009

Marina Blanton