Encryption modes - for input 01101101 10110100 00110110

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

ELECTRONIC CODEBOOK (ECB) MODE

Input:

_0_  _1_ _1_ _0_ _1_ _1_ _0_ _1_

  ↓  sdes with key 1010000010  ↓

___ ___ ___ ___ ___ ___ ___ ___
 

Input:

_1_  _0_ _1_ _1_ _0_ _1_ _0_ _0_

  ↓  sdes with key 1010000010  ↓

___ ___ ___ ___ ___ ___ ___ ___
 

Input:

_0_  _0_ _1_ _1_ _0_ _1_ _1_ _0_

  ↓  sdes with key 1010000010  ↓

___ ___ ___ ___ ___ ___ ___ ___
COUNTER (CTR) MODE

Counter::

_0_ _0_ _0_ _0_ _0_ _0_ _0_ _0_

  ↓  sdes with key 1010000010  ↓

___ ___ ___ ___ ___ ___ ___ ___

   ⊕ (xor)

Input:

_0_ _1_ _1_ _0_ _1_ _1_ _0_ _1_

 

  ↓

 

___ ___ ___ ___ ___ ___ ___ ___

 

 

 

Counter::

_0_ _0_ _0_ _0_ _0_ _0_ _0_ _1_

  ↓  sdes with key 1010000010  ↓

___ ___ ___ ___ ___ ___ ___ ___

   ⊕ (xor)

Input:

_1_ _0_ _1_ _1_ _0_ _1_ _0_ _0_

 

  ↓

 

___ ___ ___ ___ ___ ___ ___ ___

 

 

 

 

Counter::

_0_ _0_ _0_ _0_ _0_ _0_ _1_ _0_

  ↓  sdes with key 1010000010  ↓

___ ___ ___ ___ ___ ___ ___ ___

   ⊕ (xor)

Input:

_0_ _0_ _1_ _1_ _0_ _1_ _1_ _0_

 

  ↓

 

___ ___ ___ ___ ___ ___ ___ ___

 

 

 

 

CIPHERBLOCK CHAINING (CBC) MODE

Input::

_0_  _1_ _1_ _0_ _1_ _1_ _0_ _1_

   ⊕ (xor)

initialization vector:

_0_ _0_ _0_ _0_ _0_ _0_ _0_ _0_

  ↓

_0_  _1_ _1_ _0_ _1_ 1_ _0_ _1_

 

  ↓  sdes with key 1010000010  ↓

 

___ ___ ___ ___ ___ ___ ___ ___

 

 

 

 

Input::

_1_  _0_ _1_ _1_ _0_ _1_ _0_ _0_

   ⊕ (xor)

Previous col's result carried fwd:

___ ___ ___ ___ ___ ___ ___ ___

  ↓

___  ___ ___ ___ ___ ___ ___ ___

 

  ↓  sdes with key 1010000010  ↓

 

___ ___ ___ ___ ___ ___ ___ ___

 

 

 

 

Input::

_0_  _0_ _1_ _1_ _0_ _1_ _1_ _0_

   ⊕ (xor)

Previous col's result carried fwd:

___ ___ ___ ___ ___ ___ ___ ___

  ↓

___  ___ ___ ___ ___ ___ ___ ___

 

  ↓  sdes with key 1010000010  ↓

 

___ ___ ___ ___ ___ ___ ___ ___