Docsity

Classical Encryption Techniques-System Security-Lecture Slides, Slides of Cryptography and System Security

Partial preview of the text

Download Classical Encryption Techniques-System Security-Lecture Slides and more Slides Cryptography and System Security in PDF only on Docsity!

Chapter 2 – Classical EncryptionTechniques Many savages at the present day regard theirnames as vital parts of themselves, andtherefore take great pains to conceal their realnames, lest these should give to evil-disposedpersons a handle by which to injure theirowners.^ — The Golden Bough,

Sir James George Frazer

Symmetric Encryption  or conventional / private-key / single-key  sender and recipient share a common key  all classical encryption algorithms areprivate-key  was only type prior to invention of public-key in 1970’s  and by far most widely used

Symmetric Cipher Model

Requirements  two requirements for secure use ofsymmetric encryption:  a strong encryption algorithm  a secret key known only to sender / receiver  mathematically have: Y = E( X ) K X = D( Y ) K  assume encryption algorithm is known  implies a secure channel to distribute key

Cryptanalysis  objective to recover key not just message  general approaches:  cryptanalytic attack  brute-force attack

Cryptanalytic Attacks  ciphertext only  only know algorithm & ciphertext, is statistical,know or can identify plaintext  known plaintext  know/suspect plaintext & ciphertext  chosen plaintext  select plaintext and obtain ciphertext  chosen ciphertext  select ciphertext and obtain plaintext  chosen text  select plaintext or ciphertext to en/decrypt

Brute Force Search  always possible to simply try every key  most basic attack, proportional to key size  assume either know / recognise plaintext Key Size (bits) Number of AlternativeTime required at 1Keysdecryption/Ξs

(^6) Time required at 10 decryptions/Ξs 32 9 32 2 = 4.3^ ï‚ī^10 31 2 Ξs^ = 35.8 minutes^ 2.15 milliseconds 56 16 56 2 = 7.2^ ï‚ī^10 55 2 Ξs^ = 1142 years^ 10.01 hours 128 38 128 2 = 3.4^ ï‚ī^10 127 24 2 Ξs^ = 5.4^ ï‚ī^10 years^ 5.4^ ï‚ī^10 18 years 168 50 168 2 = 3.7^ ï‚ī^10 167 36 2 Ξs^ = 5.9^ ï‚ī^10 years^ 5.9^ ï‚ī^10 30 years (^26) 26 characters26! = 4 ï‚ī (^10) (permutation) (^26 12 2) ï‚ī 10 Ξs^ = 6.4^ ï‚ī^10 years^ 6.4^ ï‚ī^10 6 years docsity.com

Classical SubstitutionCiphers  where letters of plaintext are replaced byother letters or by numbers or symbols  or if plaintext is viewed as a sequence ofbits, then substitution involves replacingplaintext bit patterns with ciphertext bitpatterns

Caesar Cipher  can define transformation as: a b c d e f g h i j k l m n o p q r s t u v w x y zD E F G H I J K L M N O P Q R S T U V W X Y Z A B C  mathematically give each letter a number a b c d e f g h i j^ k^ l^ m^ n^ o^ p^ q^ r^

s^ t^ u^ v^ w^ x^ y^ z

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25  then have Caesar cipher as: c^ = E( p ) = ( p^ +^ k ) mod (26) p^ = D(c) = (c –^ k ) mod (26)

Cryptanalysis of CaesarCipher  only have 26 possible ciphers  A maps to A,B,..Z  could simply try each in turn  a brute force search  given ciphertext, just try all shifts of letters  do need to recognize when have plaintext  eg. break ciphertext "GCUA VQ DTGCM"

Monoalphabetic CipherSecurity  now have a total of 26! = 4 x 1026 keys  with so many keys, might think is secure  but would be^ !!!WRONG!!!  problem is language characteristics

Language Redundancy andCryptanalysis  human languages are

redundant

^ eg "th lrd s m shphrd shll nt wnt" ^ letters are not equally commonly used ^ in English E is by far the most common letter^ ^ followed by T,R,N,I,O,A,S ^ other letters like Z,J,K,Q,X are fairly rare ^ have tables of single, double & triple letterfrequencies for various languages

Use in Cryptanalysis  key concept - monoalphabetic substitutionciphers do not change relative letter frequencies  discovered by Arabian scientists in 9

th^ century

^ calculate letter frequencies for ciphertext ^ compare counts/plots against known values ^ if caesar cipher look for common peaks/troughs^ ^ peaks at: A-E-I triple, NO pair, RST triple^ ^ troughs at: JK, X-Z ^ for monoalphabetic must identify each letter^ ^ tables of common double/triple letters help

Example Cryptanalysis  given ciphertext: UZQSOVUOHXMOPVGPOZPEVSGZWSZOPFPESXUDBMETSXAIZVUEPHZHMDZSHZOWSFPAPPDTSVPQUZWYMXUZUHSXEPYEPOPDZSZUFPOMBZWPFUPZHMDJUDTMOHMQ  count relative letter frequencies (see text)  guess P & Z are e and t  guess ZW is th and hence ZWP is the  proceeding with trial and error finally get: it was disclosed yesterday that several informal butdirect contacts have been made with politicalrepresentatives of the viet cong in moscow