Computer Science, asked by varun4512, 1 year ago

A message has 2000 characters. If it is supposed to be encrypted using a block cipher of 64 bits, find the size of the padding and the number of blocks.

Answers

Answered by tiger009
6

The size of the padding and the number of blocks

Explanation:

Let M is the message that is 2000 char.

So, we are using the 8 bits for per characters that is,

            |M|=2000\times8

            |M|=16000\;bits

\therefore\;\;\;\;\;\;\;\;the\;M\;has\;the\;following\;number\;of \;blocks= \frac{2000}{8}  = 250

So, we have the following that are,

            |M| + |Pad| = 0\;mod\;64

then,    |Pad| = -|M|\;mod\;64

Putting the value |M| in the following equation

           |Pad| = -16000\;mod\;64=0

So, there is no padding is required and the number of blocks are 250.

Learn More:

https://brainly.in/question/10665590

Similar questions