Network security:
a.
Given two primes p and q
p = 5 and q = 13
Let n = p x q = 5 x 13 = 65
Let z = (p-1) x (q-1) = (5 -1) x (13-1) = 4 x 12 = 48
We choose a number e , it should be less than z and should be relatively prime with n
Choose e = 7
Now choose a number d such that
ed mod z = 1
d = 7
So , the public key is (e,n) = (7,65) and the private key is (d,n) = (7,65)
Given that the message m = 5
Encryption : me mod n = 57 mod 65 = 60
Decryption : cd mod n = 607 mod 65 = 5
b.
Yes the following will work for message integrity because if the message digest contains the hash of the message and if the message is tampered with, the hash value of the tampered message generated by Bob will not match the hash value sent by Alice.
c.
No extra security for the integrity is gained if Alice encrypts the message with Bob's public key because the integrity of a message depends only on its contents. Encrypting the message with Bob's public key doesn't add anything to the integrity of the message.
Network security: If the prime numbers p and q are 5 and 13. Respectively, in the...