modes of block cipher

Upload: prabhatdayal

Post on 20-Feb-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/24/2019 Modes of Block Cipher

    1/33

    Fourth Editionby William Stallings

    Lecture slides by LawrieBrown

  • 7/24/2019 Modes of Block Cipher

    2/33

    "I am fairly familiar with all the forms of secret writings, andam myself the author of a trifling monograph upon thesubject, in which I analyze one hundred and sixtyseparate ciphers," said Holmes.

    The Adventure of the Dancing Men, Sir ArthurConan Doyle

  • 7/24/2019 Modes of Block Cipher

    3/33

    Replacement for DES was needed

    theoretical attacks that can break it

    demonstrated exhaustive key search attacks

    AES is a new cipher alternative

    prior to this alternative was to use multiple encryption

    with DES implementations

    Triple-DES is the chosen form

  • 7/24/2019 Modes of Block Cipher

    4/33

    could use 2 DES encrypts on each block

    C = EK2(E

    K1(P))

    issue of reduction to sinle stae

    and have !meet-in-the-middle" attack

    works whenever use a cipher twice

    since X = EK1(P) = D

    K2(C)

    attack by encryptin # with all keys and store

    then decrypt $ with keys and match % value

    can show takes O(256)steps

  • 7/24/2019 Modes of Block Cipher

    5/33

    hence must use & encryptions

    would seem to need & distinct keys but can use 2 keys with E-D-E se'uence

    C = EK1(D

    K2(E

    K1(P)))

    nb encrypt ( decrypt e'uivalent in security if K1=K2then can work with sinle DES

    standardi)ed in A*S+ %,./ ( +S01/&2

    no current known practical attacks

  • 7/24/2019 Modes of Block Cipher

    6/33

    althouh are no practical attacks on two-key Triple-DES

    have some indications

    can use Triple-DES with Three-eys to avoid even

    these

    C = EK3(D

    K2(E

    K1(P)))

    has been adopted by some +nternet applications3 e

    #4#3 S56+6E

  • 7/24/2019 Modes of Block Cipher

    7/33

    block ciphers encrypt fixed si)e blocks

    e DES encrypts 78-bit blocks with 97-bit key need some way to en5decrypt arbitrary amounts of data

    in practise

    ANSI X3.106-1983 Modes o !se :now ;+#S 1.

  • 7/24/2019 Modes of Block Cipher

    8/33

    &lectronic Code"ook Mode :E$=