Docsity

Computer Security: OTP, Transposition, Rotor, Steganography, Enigma, Block Cipher, Feistel, Slides of Computer Security

Partial preview of the text

Download Computer Security: OTP, Transposition, Rotor, Steganography, Enigma, Block Cipher, Feistel and more Slides Computer Security in PDF only on Docsity!

Computer Security

One-Time-Pad

• Improvement over Vernam Cipher

• Suggests purely random key

• Key and plaintext lengths are same

• No repetition of the key

Rotor Machine

• Basic Idea

 Multiple rounds of substitutions or transpositions provides much better encryption

• Consist of multiple cylinders

• Each cylinder has an input and corresponding pin electrically

connected

• The input and output pins corresponds to alphabets

• A single cylinder rotor machine works like a monoalphabetic

substitution cipher  With each input the first cylinder rotates once and points to different output pins/alphabet

• Multiple cylinders produces a polyalphabetic encryption

 When first cylinder complete one rotation (26 letters) second cylinder rotates once

• A three cylinder rotor machine gives 26x26x26 different substitution

before repeating

Rotor Machine Operation

  • CSP-

Steganography

• Not specifically encryption

• Cryptography makes plaintext unintelligible to outsider

• Steganography conceals the existence of the message

• Examples

 Arrangement of words or letters in a regular text

 Position of certain words or letters in any text are used to conceal original message

 Character marking

 Certain letters in any text are overwritten with pencil

 Invisible Ink

 Use of some invisible ink that reveals itself when heat or some chemical is applied

 Pin Punctures

 Small pin punctures on selected letters

Block Cipher Principles

• Stream Ciphers

 Operates on stream of data  Encrypts one bit or one bye at a time  e.g. Vigenere Cipher

• Block Ciphers

 Treats the plaintext as set of blocks  Encrypts one block at a time  Typical block sizes are 64 bit and 128 bit  e.g. DES

• Fiestel Cipher

 Base Structure for all symmetric ciphers  Not a cipher , actually a model for block cipher

Ideal Block Cipher

Feistel Cipher

• Feistel’s proposed the concept of product cipher

 A product cipher uses two or more basic cipher in a sequence

• Claude Shanone proposed alternate Confusion and Diffusion for

product cipher

• Diffusion

 Diffusing the statistics of plaint text such as cipher text-plain text relations are concealed  Achieved by a scheme in which  Each plain text digit effect many cipher text  Each cipher text digit is effected by many plaint text digits  Example averaging

• Confusion

 Hiding the relation between cipher text and the key  Confusion  Statistical relationship between cipher text and the key  Making it a confused relationship  Achieved by complex substitution algorithm

Structure of

Fiestel Cipher

  • Initial Input  Block Plaintext
  • Rounds  1 to N rounds  Same round structure  Function F in each round  Each time inputs are changed
  • Round Inputs  Previous round output  Left,Right inputs  Equal sized  Sub-key  Derived from main Key  Initial input  Two equal halves of Plaintext
  • Function F  Performs permutation and substitution

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