Question

In: Computer Science

Consider the following substitution block cipher: Plain-text 000 110 001 100 010 111 011 001 100...

Consider the following substitution block cipher:

Plain-text

  1. 000 110

  2. 001 100

  1. 010 111

  2. 011 001

  1. 100 101

  2. 101 000

  1. 110 010

  2. 111 011

Cipher-text

[10]

                 

Compute the cipher-text belonging to plaintext 001 110 000 101 110 (using a block size of 3 bits) for the Electronic Code Book (ECB) mode and Cipher Block Chaining (CBC) mode taking IV = 111. Show the intermediate steps.

Solutions

Expert Solution

Let's Consider the given substitution block cipher:

Plain Text Cipher-Text
000 110
001 100
010 111
011 001
100 101
101 000
110 010
111 011

To Compute the cipher-text belonging to plaintext 001 110 000 101 110

Electronic Code Book (ECB): In Electronic Code Book Mode we encrypt each block independently. So We use the Given Substitution cipher and encrypt the message as follow:

Plain Text(Block of 3) 001 110 000 101 110
Cipher-Text(Block of 3) 100 010 110 000 010

The Cipher Text (Computed using ECB) is: 100 010 110 000 010

Cipher Block Chaining (CBC) mode taking IV = 111. Show the intermediate steps.

Solution:

In CBC we use the following Formula for Encrypting the Given Message:

Ci=Fk(Pi⊕Ci-1)

For i=1:

C1=Fk (P1⊕IV) For the first Block we use the Initialization Vector.

=F(001⊕ 111)=F(110)=101

C2=Fk (P2⊕C1)=Fk (110⊕101)=Fk(011)=001

C3=Fk (P3⊕C2)=Fk (000⊕001)=Fk(001)=100

C4=Fk (P4⊕C3)=Fk (101⊕100)=Fk(001)=100

C5=Fk (P5⊕C4)=Fk (110⊕100)=Fk(010)=111

The Computation is Summarized in the following Table:

S.NO Pi Ci-1 Pi⊕Ci-1 Cipher Text (ci)
1 001 111 110 101
2 110 101 011 001
3 000 001 001 100
4 101 100 001 100
5 110 100 010 111

The Encrypted Message is: 101 001 100 100 111


Related Solutions

Using CrypTool2, display the results of encrypting the following plain text using the Caesar Cipher method...
Using CrypTool2, display the results of encrypting the following plain text using the Caesar Cipher method and a left shift value of 3. MEET YOU AT THE FOOTBALL MATCH
Decode the following secret ASCII message (reading across): 100 1000 110 0001 111 0110 110 0101...
Decode the following secret ASCII message (reading across): 100 1000 110 0001 111 0110 110 0101 010 0000 110 0001 010 0000 110 1110 110 1001 110 0011 110 0101 010 0000 110 0100 110 0001 111 1001 010 0001 Decode the following secret ASCII message (reading across): 100 1101 110 0101 110 0101 111 0100 010 0000 110 0001 111 0100 010 0000 110 1101 110 1001 110 0100 110 1110 110 1001 110 0111 110 1000 111 0100...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5;...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5; $10, .5); l3 = ($55, 1); l4 = ($110, .5; $0, .5); l5 = ($100, .7; $10, .3). (a) If you know that an individual is an expected utility maximizer (who likes money), but you do not know more about this person, what can you say about how this individual ranks the lotteries? (You should conclude that one/some comparison(s) are unclear, but one/some can...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5;...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5; $10, .5); l3 = ($55, 1); l4 = ($110, .5; $0, .5); l5 = ($100, .7; $10, .3). Refer to the list of lotteries in the question above. Draw two coordinate diagrams where one could draw some of those two-outcome lotteries when we consider fixed probabilities and varying prizes. In one diagram you can draw all but one of the lotteries, in the other...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5;...
Consider the following five lottery tickets: l1 = ($100, .5; $10, .5); l2 = ($110, .5; $10, .5); l3 = ($55, 1); l4 = ($110, .5; $0, .5); l5 = ($100, .7; $10, .3). Refer to the list of lotteries in the question above. Draw two coordinate diagrams where one could draw some of those two-outcome lotteries when we consider fixed probabilities and varying prizes. In one diagram you can draw all but one of the lotteries, in the other...
Consider the following for a portfolio: Year Beginning value Dividend Ending value 1 $100 $1.46 $110...
Consider the following for a portfolio: Year Beginning value Dividend Ending value 1 $100 $1.46 $110 2 $110 $1.12 $112 3 $112 $1.27 $115 What is the geometric mean annual return?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT