Encryption modes - for input 00100001 00100100 00100100

Use the sdes calculator at http://buzzard.ups.edu/sdes/sdes.html to perform sdes encryptions when called for.

ELECTRONIC CODEBOOK (ECB) MODE

Input (uppercase A):

_0_  _0_ _1_ _0_ _0_ _0_ _0_ _1_

  ↓  sdes with key 1010000010  ↓

_0_ _0_ _1_ _0_ _1_ _0_ _0_ _1_
 

Input (uppercase D):

_0_  _0_ _1_ _0_ _0_ _1_ _0_ _0_

  ↓  sdes with key 1010000010  ↓

_1_ _1_ _1_ _0_ _0_ _0_ _1_ _1_
 

Input (uppercase D):

_0_  _0_ _1_ _0_ _0_ _1_ _0_ _0_

  ↓  sdes with key 1010000010  ↓

_1_ _1_ _1_ _0_ _0_ _0_ _1_ _1_
COUNTER (CTR) MODE

Counter:

_0_ _0_ _0_ _0_ _0_ _0_ _0_ _0_

  ↓  sdes with key 1010000010  ↓

_1_ _1_ _0_ _0_ _1_ _1_ _1_ _0_

   ⊕ (xor)

Input:

_0_ _0_ _1_ _0_ _0_ _0_ _0_ _1_

 

  ↓

 

_1_ _1_ _1_ _0_ _1_ _1_ _1_ _1_

 

 

 

Counter:

_0_ _0_ _0_ _0_ _0_ _0_ _0_ _1_

  ↓  sdes with key 1010000010  ↓

_1_ _0_ _0_ _0_ _0_ _0_ _0_ _1_

   ⊕ (xor)

Input:

_0_ _0_ _1_ _0_ _0_ _1_ _0_ _0_

 

  ↓

 

_1_ _0_ _1_ _0_ _0_ _1_ _0_ _1_

 

 

 

 

Counter:

_0_ _0_ _0_ _0_ _0_ _0_ _1_ _0_

  ↓  sdes with key 1010000010  ↓

_1_ _0_ _1_ _0_ _1_ _1_ _0_ _1_

   ⊕ (xor)

Input:

_0_ _0_ _1_ _0_ _0_ _1_ _0_ _0_

 

  ↓

 

_1_ _0_ _0_ _0_ _1_ _0_ _0_ _1_

 

 

 

 

CIPHERBLOCK CHAINING (CBC) MODE

Input:

_0_  _1_ _0_ _0_ _0_ _0_ _0_ _1_

   ⊕ (xor)

initialization vector:

_0_ _0_ _0_ _0_ _0_ _0_ _0_ _0_

  ↓

_0_  _1_ _0_ _0_ _0_ _0_ _0_ _1_

 

  ↓  sdes with key 1010000010  ↓

 

_0_ _0_ _0_ _1_ _0_ _1_ _0_ _1_

 

 

 

 

Input::

_0_  _1_ _0_ _0_ _0_ _1_ _0_ _0_

   ⊕ (xor)

Previous col's result carried fwd:

_0_ _0_ _0_ _1_ _0_ _1_ _0_ _1_

  ↓

_0_  _1_ _0_ _1_ _0_ _0_ _0_ _1_

 

  ↓  sdes with key 1010000010  ↓

 

_1_ _0_ _0_ _0_ _0_ _1_ _0_ _0_

 

 

 

 

Input::

_0_  _1_ _0_ _0_ _0_ _1_ _0_ _0_

   ⊕ (xor)

Previous col's result carried fwd:

_1_ _0_ _0_ _0_ _0_ _1_ _0_ _0_

  ↓

_1_  _1_ _0_ _0_ _0_ _0_ _0_ _0_

 

  ↓  sdes with key 1010000010  ↓

 

_1_ _1_ _1_ _1_ _1_ _1_ _0_ _0_