Docsity

The Development and Controversies of the Data Encryption Standard (DES) - Prof. Krzysztof , Study notes of Cryptography and System Security

Partial preview of the text

Download The Development and Controversies of the Data Encryption Standard (DES) - Prof. Krzysztof and more Study notes Cryptography and System Security in PDF only on Docsity!

1

Data Encryption Standard

and its extensions

ECE 646 - Lecture 7

Review of Lecture 6

- Historical Ciphers - Substitution Cipher - Monoalphabetic - Polyalphabetic - Letter Frequency Analysis - One Time Pad

3

Levels of Security

Definition: Unconditional Security

A cryptosystem is unconditionally secure if it

cannot be broken even with infinite

computational resources.

Q: Which actual cryptosystems are

unconditionally secure?

Levels of Security

Definition: Computational Security

A cryptosystem is “computational secure” if

best possible algorithm for breaking requires

N operations, where N is very large and

known.

Q: Which actual cryptosystems are

“computational secure”?

7

NBS public request for a standard

cryptographic algorithm

May 15, 1973, August 27, 1974

The algorithm must be:

- (^) secure - public - completely specified - easy to understand - available to all users - (^) economic and efficient in hardware - able to be validated - exportable

DES - chronicle of events

1973 - NBS issues a public request for proposals for

a standard cryptographic algorithm

1975 - first publication of the IBM’s algorithm

and request for comments

1976 - NBS organizes two workshops to evaluate

the algorithm

1977 - official publication as

FIPS PUB 46: Data Encryption Standard

1983, 1987, 1993 - recertification of the algorithm

for another five years

1993 - software implementations allowed to be validated

9

Controversies surrounding DES

Unknown

design

criteria

Too short

key

Slow

in software

Reinvention of differential cryptanalysis

Most criteria reconstructed from cipher analysis

Theoretical designs of DES breaking machines

Only hardware implementations certified

Software, firmware and hardware treated equally

Practical DES cracker built

1990 1998 1993

Life of DES

DES developed by IBM and NSA In common use for over 20 years

(^1970 1980 1990 2000) Time

Federal and banking standard

transision to a new standard

Over 300 validated implementations

De facto world-wide standard

13

Recall: S-P Networks

S

S

S

S

....

P

S

S

S

S

....

P

S

S

S

S

.... .............

Confusion / Diffusion

- Confusion - relationship between cleartext and ciphertext is obscured - e.g. substitution (Shift Cipher, Enigma) - Diffusion - spreading influence of one cleartext letter to many ciphertext letters - e.g. permutations

15

Recall: Avalanche effect

S

S

S

S

....

P

S

S

S

S

....

P

S

S

S

S

.... ............. m 1 m 2 m 3 m 4 m 5 m 6 m 7 m 8 m 9 m 10 m 11 m 12

m 61 m 62 m 63 m 64

m 1 → c 1 → c 1 c 2 → c 2 c 3 c 4 c 5 → c 5 c 6 c 7 → c 7 c 8 → c 8 c 9 c 10 c 11 → c 11 c 12

c 61 → c 61 c 62 c 63 c 64 → c 64

Iterated Product Cipher

- Combine confusion with diffusion - Multiple “Rounds” of confusion and

diffusion

- Option to iterate over the same round or

unroll all rounds

Diff-1 Conf-1 Diff-2 Conf-

19

Ln+1=Rn Rn+1=Ln⊕ f(Rn, Kn+1)

L 0 R 0 f K 1

L 1 f

K 2

L 2 R 2

L 15 R 15 f

K 16

R 16 L 16

IP-

IP

R 1

DES Main Loop

Feistel Structure

20

Ln Rn f

Ln+1 Rn+

Kn+

Ln Rn f

Ln+1 Rn+

Kn+

f Kn+

Feistel Structure

Encryption Decryption

??

??

Ln+1, Rn+

Ln, Rn

21

L 0 R 0 f K 1

L 1 f K 2

L 2 R 2

L 15 R 15 f K 16

R 16 L 16

IP

IP-

R 1

R 16 L 16 f K 16

R 15 f K 15

R 14 L 14

R 1 L 1 f K 1

L 0 R 0

IP-

IP

L 15

Decryption

Mangler Function of DES, F

25

26

Notation for S-boxes

i 1 i 2 i 3 i 4 i 5 i 6

Input

Output

o 1 o 2 o 3 o 4

i 1 i 6 determines a row number in the S-box table, 0.. i 2 i 3 i 4 i 5 determine a column in the S-box table, 0..

o 1 o 2 o 3 o 4 is a binary representation of a number from 0..15 in the given row and the given column

27

31

Linear Transformations

Transformations that fulfill the condition:

T(X[m x 1]) = Y[n x 1] = A[n x m] ⋅ X[m x 1]

or T(X 1 ⊕ X 2 ) = T(X 1 ) ⊕ T(X 2 )

Affine Transformations

Transformations that fulfill the condition:

T(X[m x 1]) = Y[n x 1] = A[n x m] ⋅ X[m x 1] ⊕ B[n x 1]

Linear Transformations of DES

IP, IP-1, E, PC1, PC2, SHIFT

e.g., IP(X 1 ⊕ X 2 ) = IP(X 1 ) ⊕ IP( X 2 )

Non-Linear and non-affine transformations of DES

S There are no such matrices A[4x6] and B[4x1] that

S(X[6x1]) = A[4x6] ⋅ X[6x1] ⊕ B[4x1]

33

Design of S-boxes

S

S[0..15]

in (^) out = S[in]

- 16! ≈ 2 ⋅ 1013 possibilities - (^) precisely defined initially unpublished criteria - (^) resistant against differential cryptanalysis (attack known to the designers and rediscovered in the open research in 1990 by E. Biham and A. Shamir)

34

key

encryption/decryption scheduling

output

input

Implementation of a secret-key cipher in hardware

Round keys computed on-the-fly

key

round keys

37

Modes of operation of

secret-key block ciphers

38

Block vs. stream ciphers

Stream cipher

memory Block cipher

K K

M 1 , M 2 , …, MN m 1 , m 2 , …, mN

C 1 , C 2 , …, CN c 1 , c 2 , …, cN

Ci=fK(Mi) ci = fK(mi, mi-1, …, m 2 , m 1 ) Every block of ciphertext is a function of only one corresponding block of plaintext

Every block of ciphertext is a function of the current and all preceding blocks of plaintext

IS 1 = IV

ci = O(ISi, mi) ISi+1 = NS(ISi, mi)

39

Typical stream cipher

Sender Receiver

P seudorandom K ey G enerator

mi plaintext

ci ciphertext

ki keystream

key

initialization vector

P seudorandom K ey G enerator

mi plaintext

ci ciphertext

ki keystream

key

initialization vector

Standard modes of operation of block ciphers

Block ciphers Stream ciphers

ECB mode Counter mode OFB mode CFB mode CBC mode