Docsity

Re-Connecting-Computer Security-Lecture Slides, Slides of Computer Security

Partial preview of the text

Download Re-Connecting-Computer Security-Lecture Slides and more Slides Computer Security in PDF only on Docsity!

Computer Security

Re-Connecting …

• Idea of Product Cipher

 A cipher that use two or more basic ciphers in some sequence

• Fiestel Cipher

 Serves as base model for block ciphers  Diffusion  Hiding or expanding the statistical structure of plain text in ciphertext  Achieved by techniques in which each ciphertext digit depends on more than one plain text or vise versa  Confusion  Statistical relationship between cipher text and the key  Making it a confused relationship  Achieved by complex substitution algorithm

Fiestel

Structure..

  • Operation  Function F operates first  Inputs  Sub-key  Right Input  XOR operation  Inputs  Output of F  Left Input  Permutation  Interchange Operation

Fiestel Cipher Parameters

• Strength of the Fiestel Cipher depends upon

 Block Size  Large block size means security  Typical block size = 64 bit  Key Size  Large key may improves security  Efficiency may be reduced  Typical key sizes 64 [ not sufficient security] ,128 [ common]  Number of Rounds  Typical rounds = 16  Sub-key generation algorithm  Key role in making the encryption secure  Greater complexity makes cryptanalysis difficult  Round Function  Key role in encryption  Greater complexity makes cryptanalysis difficult

DES-Operation

• Key Generation

 For each round a sub key is generated

• Single Round

 64 bit key input  Every eight bit is ignored 56 bits  Permutation1 56 bits  Equal halves [28 bit each]  Circular left shift on each half  Permutation2  48 bits Permutation 56 bit

DES-Key Generation..

  • Circular Shift  Each round has 1 or 2 bit circular shift  The output of each round becomes input to the next shift  The selection of the shift operation is according to the table
  • Permutation  Input  28 + 28 bit  Output  48 bit
  • Each round follow the same pattern

Initial Permutation

• Initial Permutation

• Input

 Mi where i= I to 64

M 58 M 50 M 42 M 34 M 26 M 18 M 10 M 02

M 60 M 52 M 44 M 36 M 28 M 20 M 12 M 04

M 62 M 54 M 46 M 38 M 30 M 22 M 14 M 06

M 64 M 56 M 48 M 40 M 32 M 24 M 16 M 08

M 57 M 49 M 41 M 33 M 25 M 17 M 09 M 01

M 59 M 51 M 43 M 35 M 27 M 19 M 11 M 03

M 61 M 53 M 45 M 37 M 29 M 21 M 13 M 05

M 63 M 55 M 47 M 39 M 31 M 23 M 15 M 07

• Output

 64 bits

DES-Encryption

• Inputs

 32 bit input, Left and Right  Li = Ri-  Ri = Li-1 + F(Ri-1,Ki)

• Expansion / Substitution

 Input  32 bits  Output  48 bits

• The output E/P is XORd with round key

• The result is passed to S-Boxes

DES-Encryption..

  • S-Boxes  8 S-Boxes  Input  6 bits each  6 X8 =  Output  4 bits each  4X8 =
  • Output goes to Permutation

DES-Encryption..

  • Permutation-  Input  32 bits  Output  32 bits  The permutation table
  • The permuted output is XORd with rounds left input --A
  • Round’s Output  Encrypted Right input of this round   Right input of next round  Unencrypted Right input of this round  Left Input of next round

Confusion Diffusion in DES

  • Plaint Text  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000  1 0000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
  • Avalanche Effect
  • Similar effects are seen if same plaintext is encrypted using two keys with only one bit difference

Strength of DES

• 56 Bit key

 Possible Keys  2 56 7.2 X 10 16  Brute force attack  For half key space  Using machine with 1 encryption / microsecond  Time required >1000 years

• Weaknesses

 S-Boxes  Initially suspected for weaknesses  Regularities and Unexpected behavior discovered  Not acknowledged publicly

• DES was broken in 1998

 Electronic Frontier Foundation  Machine used called “DES Cracker”