Unit 5: Public Key Cryptography - Subjective Questions

MTH381 — Number Theory And Cryptography • Practice Questions with Detailed Answers

20 questions

1

Define public-key cryptography and explain how it differs fundamentally from symmetric-key cryptography.

2

Explain the motivation behind public-key cryptography. What problem of classical cryptography does it solve?

3

Describe the Diffie-Hellman key exchange protocol step by step, including the mathematics involved.

4

Perform a Diffie-Hellman key exchange with , , Alice's private key , and Bob's private key . Compute the shared secret.

5

State and explain the Discrete Logarithm Problem (DLP). Why is it central to the security of Diffie-Hellman and ElGamal?

6

Describe the RSA cryptosystem including key generation, encryption, and decryption.

7

Given RSA parameters , , and public exponent , compute the private key and encrypt the message .

8

Prove the correctness of RSA decryption, i.e., show that .

9

Describe the ElGamal cryptosystem, including key generation, encryption, and decryption.

10

Using ElGamal with , , private key , encrypt using random . Then decrypt to verify.

11

Compare the RSA and ElGamal cryptosystems in terms of underlying hard problem, ciphertext size, and randomness.

12

Explain the concept of modular exponentiation and why the square-and-multiply algorithm is important in public-key cryptography.

13

Explain the man-in-the-middle (MITM) attack on the Diffie-Hellman key exchange and how it can be prevented.

14

Discuss the security considerations and possible attacks on the RSA cryptosystem.

15

Explain the role of Euler's totient function and Euler's theorem in the RSA algorithm.

16

Distinguish between the Computational Diffie-Hellman (CDH) problem and the Discrete Logarithm Problem (DLP).

17

In RSA, given , , , and ciphertext , perform the complete decryption to recover the plaintext .

18

Explain how public-key cryptography enables digital signatures. Illustrate using RSA.

19

Explain why basic (textbook) RSA is deterministic and why this is a security weakness. How is it addressed?

20

Derive the relationship between the public and private keys in RSA and explain how the Extended Euclidean Algorithm is used to compute the private key .