Question: 1 . Stream Ciphers [ 2 marks ] Alice has designed a mobile app for one - on - one chat among her friends in
Stream Ciphers marks
Alice has designed a mobile app for oneonone chat among her friends in the class.
However, the messages are transmitted over a channel that broadcasts to all devices
in the class. Since Alices friends like to gossip, it is important that only the intended
recipient is able to read the messages. Alice has devised the following method to deal
with the problem.
Each user is assigned a character long ID Each message is at most character
long. The structure of messages is provided below:
Structure of the message: character long sender namea character separator :
character long receiver namea character separator : characters for the
gossip
Example message: alicexoxxo:bobkoool: eve likes to snoop
Each message is XORed with a byte long shared key between Alice and Bob. The
output ciphertext is the same size as the message iebytes for the above message
from Alice to Bob The key is changed every day. The app is updated each month
over a secure communication channel not the broadcast medium mentioned above
and it receives the keys for the relevant pair of users ie Alice receives the shared key
between AliceBob and AliceEve
a Use openssl CLI to generate random bytes the key Please provide the
command that you used and the generated key in hexadecimal. mark
b Create a message with your name in gossip text from Alice to Bob eg for
the course instructor it will be: alicexoxox:bobkoool:hassan Provide the
ciphertext using the key constructed in a and the stream cipher construction
discussed above mark
c Assume you are Eve and you want to obtain the shared key between Alice and
Bob. You only have one encrypted message between Alice and Bob, and no
information about the gossip in the message. Would you be able to recover the
complete or partial key. Also provide the rationale for your answer marks
d Assume you are Eve and you want to obtain the shared key between Alice and
Bob. You only have two byte encrypted messages between Alice and Bob,
and no further information about the gossip in the messages. Would you be able
to recover the complete or partial key. Also provide the rationale for your answer
marks
e Assume you are Mallory and you know the plaintext and ciphertext pairs corresponding to the message alicexoxox:bobkoool: eve likes to snoop You want
to modify the message such that it reads alicexoxox:bobkoool: eve likes the
calm Is it possible? If yes, how and if no why not? marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
