NOC22 CS44 Assignment 2 SOL
NOC22 CS44 Assignment 2 SOL
Assignment 2
Correct choices are highlighted in Yellow. Give partial marks for partially correct
answers.
1. Suppose you have eight data points -- 8 to 1. The post-order traversal of the Merkle
Tree is given by (here 8 means hash of 8, 43 means the combined hash of 4 and 3,
and so on):
a. {8, 7, 87, 6, 5, 65, 8764, 4, 3, 43, 2, 1, 21, 4321, 87654321}
b. {8, 87, 7, 8764, 6, 65, 5, 87654321, 4, 43, 3, 4321, 2, 21, 1}
c. {1, 2, 12, 3, 4, 34, 1234, 5, 6, 56, 7, 8, 78, 5678, 12345678}
d. {87654321, 8765, 87, 8, 7, 65, 6, 5, 4321, 43, 4, 3, 21, 2, 1}
Hint:
87654321
8765 4321
87 65 43 21
8 7 6 5 4 3 2 1
Post order Traversal : {8, 7, 87, 6, 5, 65, 8764, 4, 3, 43, 2, 1, 21, 4321, 87654321}
Hint: In Digital Signature the message is signed using the Private key and it is verified using
the Public key
4. What is the objective of using a digital signature?
a. It supports the integrity of messages
b. None of the above.
c. It supports both user authentication and integrity of messages
d. It supports user authentication
Hint: Refer to Week 2 Slide for Digital Signature.
9. In a RSA cryptosystem Alice uses two prime numbers p = 7 and q =17 to generate
her public and private keys. If the public key of Alice is 11. Then the private key of
Alice is ____________.