


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























1
- Historical Ciphers - Substitution Cipher - Monoalphabetic - Polyalphabetic - Letter Frequency Analysis - One Time Pad
3
7
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
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
transision to a new standard
13
Recall: S-P Networks
....
....
.... .............
- 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
....
....
.... ............. 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
- Combine confusion with diffusion - Multiple “Rounds” of confusion and
- Option to iterate over the same round or
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
20
Ln Rn f
Ln+1 Rn+
Kn+
Ln Rn f
Ln+1 Rn+
Kn+
f Kn+
Feistel Structure
??
??
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
Mangler Function of DES, F
25
26
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
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
round keys
37
38
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
ECB mode Counter mode OFB mode CFB mode CBC mode