Sol Assignment
Sol Assignment
Sol Assignment
COMMUNICATION STREAM
NAME: NO
(a) Using RSA, choose p = 3 and q = 11, and encode the word “dog” by encrypting each
letter separately. Apply the decryption algorithm to the encrypted version to recover
the original plaintext message.
(b) Repeat part (a) but now encrypt “dog” as one message m.
Solution for (a).
Take e=9, since 9 and 20 have no common factors and d=29, since 9.29-
1(that is, e.d-1) is exactly divisible by 20.
So, the encrypting the each letter “dog” by RSA encryption, e=9, n=33.
Ciphertext c = me mod n
= 402
2. Consider our authentication protocol in Figure 1 in which Alice authenticates herself to Bob,
which we saw works well (i.e., we found no flaws in it). Now suppose that while Alice is
authenticating herself to Bob, Bob must authenticate himself to Alice. Give a scenario by which
Trudy, pretending to be Alice, can now authenticate herself to Bob as Alice. (Hint: Consider
that the sequence of operations of the protocol, one with Trudy initiating and one with Bob
initiating, can be arbitrarily interleaved. Pay particular attention to the fact that both Bob and
Alice will use a nonce and that if care is not taken, the same nonce can be used maliciously.)
iii) Alice first encrypts the nonce using common symmetric secret key,
KA-B and sends the encrypted nonce, i.e. KA-B(R) to Bob. Here nonce
is mainly used to insure that Alice is live.
iv) Finally Bob decrypt the message received from Alice. If decrypt ed
nonce same as the nonce