GATE / CS ARCHIVE

GATE CSE 2009 / QUESTION 46

RSA exponent and modulus conditions

Computer Networks · Network Security · Full GATE CSE 2009 paper

GATE 2009, Q46 2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 46, GATE 2009: RSA has n=pq and φ(n)=(p−1)(q−1), message 0<M<n. The source calls(e, n) private and(d, n) public. Assess I M′=M^e mod n and M=(M′)^d mod n; II ed≡1 mod n; III ed≡1 mod φ(n); IV both message exponentiations use modulusφ(n). A I/II; B I/III; C II/IV; D III/IV.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

RSA exponentiation is modulo n=pq, and the chosen exponents obey ed≡1 (mod φ(n)), with φ(n)=(p−1)(q−1). Thus statements I and III are correct, option B. Writing ed=1+kφ(n), Euler’s theorem proves Med≡M modulo n when M is coprime to n; reduction separately modulo p and q, followed by the Chinese remainder theorem, also proves it for non-coprime messages. Statement II incorrectly uses modulus n for the exponent-inverse condition; IV incorrectly performs message arithmetic modulo φ(n). The question reverses the usual names of e and d (calling e private and d public), but RSA’s mathematical inversion works either way and the answer is unchanged.

Two different moduli serve different roles. Messages live modulo n, while the inverse relationship between exponents is taken moduloφ(n) (or a suitable Carmichael modulus in other formulations). Combining the message exponentiations gives Med; choosing ed=1+kφ(n) returns M. This explains I and III and rejects the distractors that interchange these moduli. The source’s naming of e and d is reversed from many textbooks but does not alter the algebra.

Original paper, page 10