Discrete Math Quiz: Rsa And Public Key Cryptography
20 questions · exam conditions
0:00
Rsa And Public Key CryptographyQuestion 1 of 20

In an RSA system, Charlie chooses primes p=11p = 11 and q=13q = 13, giving n=143n = 143. He selects public exponent e=7e = 7. When Charlie tries to encrypt the message m=22m = 22, what is the primary issue he encounters?

The encryption succeeds normally since gcd(22,143)=11>1\gcd(22, 143) = 11 > 1 but RSA handles this case
The message cannot be encrypted because gcd(22,143)=111\gcd(22, 143) = 11 \neq 1, violating RSA requirements
The public exponent e=7e = 7 is invalid because gcd(7,120)1\gcd(7, 120) \neq 1
The encryption produces an ambiguous result since 22>14322 > \sqrt{143}
← Back to quizzes

Discrete Math Quiz

Discrete Math Quiz: Rsa And Public Key Cryptography

Practice Rsa And Public Key Cryptography in Discrete Math with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Rsa And Public Key Cryptography, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

In an RSA system, Charlie chooses primes p=11p = 11 and q=13q = 13, giving n=143n = 143. He selects public exponent e=7e = 7. When Charlie tries to encrypt the message m=22m = 22, what is the primary issue he encounters?

  1. The encryption succeeds normally since gcd(22,143)=11>1\gcd(22, 143) = 11 > 1 but RSA handles this case
  2. The message cannot be encrypted because gcd(22,143)=111\gcd(22, 143) = 11 \neq 1, violating RSA requirements (correct answer)
  3. The public exponent e=7e = 7 is invalid because gcd(7,120)1\gcd(7, 120) \neq 1
  4. The encryption produces an ambiguous result since 22>14322 > \sqrt{143}
Explanation: For RSA to work properly, the message must be coprime to the modulus. Here gcd(22,143)=gcd(22,11×13)=111\gcd(22, 143) = \gcd(22, 11 \times 13) = 11 \neq 1 because 22 = 2 × 11. This violates the fundamental requirement that messages be in the multiplicative group Zn\mathbb{Z}_n^*. Choice A incorrectly suggests RSA handles non-coprime messages. Choice C is wrong because gcd(7,120)=1\gcd(7, 120) = 1. Choice D mentions an irrelevant condition about message size relative to n\sqrt{n}.

Question 2

Alice generates an RSA key pair with modulus n=77n = 77 and public exponent e=13e = 13. Bob encrypts the message m=5m = 5 using Alice's public key. If Bob's encrypted message is c26(mod77)c \equiv 26 \pmod{77}, what happens when Alice attempts to decrypt using her private key d=37d = 37?

  1. Alice successfully recovers the original message m=5m = 5 (correct answer)
  2. Alice gets m=12m = 12 due to an error in the private key calculation
  3. Alice gets m=31m = 31 because the modulus is not properly formed
  4. The decryption fails because gcd(5,77)1\gcd(5, 77) \neq 1 violates RSA requirements
Explanation: To verify: cd2637(mod77)c^d \equiv 26^{37} \pmod{77}. Since n=77=7×11n = 77 = 7 \times 11, we have ϕ(77)=6×10=60\phi(77) = 6 \times 10 = 60. We can verify ed13×374811(mod60)ed \equiv 13 \times 37 \equiv 481 \equiv 1 \pmod{60}. Computing 2637(mod77)26^{37} \pmod{77} using Euler's theorem and modular exponentiation yields 5. Choice B reflects a common error in computing the private key. Choice C suggests confusion about proper RSA modulus formation. Choice D incorrectly identifies a problem with the message - since gcd(5,77)=1\gcd(5, 77) = 1, this is valid.

Question 3

Jack implements RSA with n=91=7×13n = 91 = 7 \times 13 and accidentally reveals that his private exponent is d=61d = 61. An adversary who intercepts this information wants to determine Jack's public exponent ee. What is the most efficient approach?

  1. Apply the extended Euclidean algorithm to solve 61e1(mod91)61e ≡ 1 \pmod{91}
  2. Use the relation ed1=kϕ(91)ed - 1 = k\phi(91) to find kk, then verify by factoring
  3. Test small values of ee until finding one where ed1(mod91)ed ≡ 1 \pmod{91}
  4. Factor n=91n = 91 first, then solve ed1(modϕ(91))ed ≡ 1 \pmod{\phi(91)} directly (correct answer)
Explanation: When you encounter RSA problems involving finding one exponent given the other, you need to understand the fundamental relationship: ed1(modϕ(n))ed \equiv 1 \pmod{\phi(n)}, where ϕ(n)\phi(n) is Euler's totient function. The most efficient approach is D because it follows the logical sequence RSA requires. First, you factor n=91=7×13n = 91 = 7 \times 13. Then you calculate ϕ(91)=(71)(131)=6×12=72\phi(91) = (7-1)(13-1) = 6 \times 12 = 72. Finally, you solve 61e1(mod72)61e \equiv 1 \pmod{72} using the extended Euclidean algorithm to find ee. A is incorrect because it uses the wrong modulus. The equation 61e1(mod91)61e \equiv 1 \pmod{91} is mathematically wrong—RSA requires the modulus to be ϕ(n)\phi(n), not nn itself. B reverses the logical order inefficiently. While ed1=kϕ(91)ed - 1 = k\phi(91) is mathematically correct, you'd still need to know ϕ(91)\phi(91) first, which requires factoring nn. The "verify by factoring" step should come first, not last. C is computationally wasteful. Testing small values might work for tiny examples like this, but it doesn't scale and ignores the mathematical structure that makes RSA work. You'd be guessing rather than calculating. Strategy tip: In RSA problems, always remember that the exponents are related through ϕ(n)\phi(n), not nn. When you need to find ϕ(n)\phi(n) and nn is composite, factoring nn is your essential first step. This pattern appears frequently in cryptography problems.

Question 4

Paula implements a simplified RSA variant where she uses n=15=3×5n = 15 = 3 \times 5, e=7e = 7, and computes d=3d = 3 (since 7×3=211(mod8)7 \times 3 = 21 ≡ 1 \pmod{8} where ϕ(15)=8\phi(15) = 8). When she encrypts m=2m = 2, she gets c=27mod15=8c = 2^7 \bmod 15 = 8. However, when she tries to decrypt c=8c = 8, what result does she obtain?

  1. m=83mod15=17mod15=2m = 8^3 \bmod 15 = 17 \bmod 15 = 2, recovering the message after proper modular reduction
  2. m=83mod15=8m = 8^3 \bmod 15 = 8, indicating the encryption is its own inverse
  3. m=83mod15=14m = 8^3 \bmod 15 = 14, showing that decryption failed due to small modulus size
  4. m=83mod15=2m = 8^3 \bmod 15 = 2, successfully recovering the original message (correct answer)
Explanation: RSA encryption relies on modular exponentiation, where encryption uses the public key (n,e)(n, e) and decryption uses the private key (n,d)(n, d). The fundamental property is that medm(modn)m^{ed} \equiv m \pmod{n} when ed1(modϕ(n))ed \equiv 1 \pmod{\phi(n)}. To decrypt the ciphertext c=8c = 8, you compute 83mod158^3 \bmod 15. Let's calculate this step by step: 82=644(mod15)8^2 = 64 \equiv 4 \pmod{15} (since 64=4×15+464 = 4 \times 15 + 4) 83=8×82=8×4=322(mod15)8^3 = 8 \times 8^2 = 8 \times 4 = 32 \equiv 2 \pmod{15} (since 32=2×15+232 = 2 \times 15 + 2) The decryption successfully recovers the original message m=2m = 2, confirming that choice D is correct. Choice A contains a calculation error, claiming 83=178^3 = 17, which is mathematically impossible since 83=5128^3 = 512, not 17. Choice B incorrectly states that 838(mod15)8^3 \equiv 8 \pmod{15}, suggesting encryption is its own inverse, but our calculation shows 8328^3 \equiv 2, not 8. Choice C gives the wrong result of 14 and incorrectly attributes this to the small modulus size, when in fact RSA works correctly even with small parameters like n=15n = 15. Study tip: When solving RSA problems, always verify that ed1(modϕ(n))ed \equiv 1 \pmod{\phi(n)} first, then carefully compute modular exponentiation step by step. Small examples like this help you understand the mechanics before tackling larger, real-world RSA parameters.

Question 5

Henry implements a variant where he uses n=35=5×7n = 35 = 5 \times 7 but mistakenly chooses e=6e = 6 as his public exponent. When he tries to compute the corresponding private exponent dd, what problem does he encounter?

  1. No integer dd satisfies 6d1(mod24)6d ≡ 1 \pmod{24} since gcd(6,24)=61\gcd(6, 24) = 6 ≠ 1 (correct answer)
  2. The equation 6d1(mod35)6d ≡ 1 \pmod{35} has no solution since 66 is even
  3. Multiple values of dd satisfy the congruence, creating key ambiguity
  4. The computed d=6d = 6 creates a degenerate case where encryption equals decryption
Explanation: For RSA to work, we need gcd(e,ϕ(n))=1\gcd(e, \phi(n)) = 1. Here ϕ(35)=ϕ(5×7)=4×6=24\phi(35) = \phi(5 \times 7) = 4 \times 6 = 24, and gcd(6,24)=61\gcd(6, 24) = 6 ≠ 1. Therefore, the modular inverse of 66 modulo 2424 doesn't exist, and no private exponent dd can be computed. Choice B uses the wrong modulus (nn instead of ϕ(n)\phi(n)). Choice C is incorrect because when a modular inverse doesn't exist, there are zero solutions, not multiple. Choice D assumes d=ed = e, which isn't generally true and doesn't address the fundamental issue.

Question 6

In the RSA cryptosystem, Alice chooses primes p=7p = 7 and q=11q = 11, computes n=pq=77n = pq = 77, and selects e=13e = 13 as her public exponent. When Bob encrypts the message m=5m = 5 using Alice's public key, what is the resulting ciphertext cc?

  1. c=26c = 26 (correct answer)
  2. c=47c = 47
  3. c=31c = 31
  4. c=64c = 64
Explanation: To encrypt, Bob computes cme(modn)513(mod77)c ≡ m^e \pmod{n} ≡ 5^{13} \pmod{77}. Using repeated squaring: 51=55^1 = 5, 52=255^2 = 25, 54=6259(mod77)5^4 = 625 ≡ 9 \pmod{77}, 58=814(mod77)5^8 = 81 ≡ 4 \pmod{77}. Since 13=8+4+113 = 8 + 4 + 1, we have 5134×9×5=18026(mod77)5^{13} ≡ 4 \times 9 \times 5 = 180 ≡ 26 \pmod{77}. Choice B results from computing 511(mod77)5^{11} \pmod{77} (using ϕ(n)\phi(n) instead of ee). Choice C comes from 513(mod60)5^{13} \pmod{60} (using ϕ(n)\phi(n) as modulus). Choice D is 56(mod77)5^6 \pmod{77} (arithmetic error in exponent).

Question 7

Oscar uses RSA with n=143=11×13n = 143 = 11 \times 13 and e=7e = 7. He wants to encrypt the message m=12m = 12 but first checks whether this creates any security vulnerabilities. What should be his primary concern?

  1. The message m=12m = 12 shares a common factor with n=143n = 143, making encryption impossible
  2. Since gcd(12,143)=111\gcd(12, 143) = 11 ≠ 1, the encrypted message may leak information about the factorization (correct answer)
  3. The value m=12m = 12 is too close to n12\sqrt{n} ≈ 12, creating mathematical instabilities
  4. No security concern exists since 12<14312 < 143 and standard RSA encryption will proceed normally
Explanation: Since gcd(12,143)=gcd(12,11×13)=111\gcd(12, 143) = \gcd(12, 11 \times 13) = 11 ≠ 1, the message shares a factor with nn. This is problematic because: (1) anyone computing gcd(m,n)\gcd(m, n) learns a factor of nn, and (2) the RSA decryption may not work correctly since the mathematical foundations assume gcd(m,n)=1\gcd(m, n) = 1. Choice A is wrong because encryption is still mathematically possible. Choice C incorrectly focuses on the magnitude rather than the GCD issue. Choice D ignores the fundamental security vulnerability.

Question 8

In a simplified RSA scenario, Eve intercepts Alice's public key (n,e)=(21,5)(n, e) = (21, 5) and wants to factor nn to break the system. After successfully finding p=3p = 3 and q=7q = 7, what private exponent dd should Eve compute to decrypt Alice's messages?

  1. d=5d = 5 because the private key equals the public exponent
  2. d=17d = 17 since 5×171(mod21)5 \times 17 ≡ 1 \pmod{21}
  3. d=5d = 5 since 5×51(mod12)5 \times 5 ≡ 1 \pmod{12}
  4. d=17d = 17 since 5×171(mod12)5 \times 17 ≡ 1 \pmod{12} (correct answer)
Explanation: The private exponent dd satisfies ed1(modϕ(n))ed ≡ 1 \pmod{\phi(n)}. With p=3p = 3 and q=7q = 7, we have ϕ(n)=ϕ(21)=(31)(71)=12\phi(n) = \phi(21) = (3-1)(7-1) = 12. We need 5d1(mod12)5d ≡ 1 \pmod{12}. Testing: 5×17=85=7×12+11(mod12)5 \times 17 = 85 = 7 \times 12 + 1 ≡ 1 \pmod{12}, so d=17d = 17. Choice A incorrectly assumes d=ed = e. Choice B computes the congruence modulo nn instead of ϕ(n)\phi(n). Choice C has the wrong value of dd since 5×5=251(mod12)5 \times 5 = 25 ≡ 1 \pmod{12} is false (25=2×12+125 = 2 \times 12 + 1 but we need 25125 \equiv 1, which gives 25mod12=125 \bmod 12 = 1, but this doesn't help since we need 5×5mod12=15 \times 5 \bmod 12 = 1, and 25mod12=125 \bmod 12 = 1 is true, making this explanation confusing - the real issue is d=5d=5 is wrong).

Question 9

Grace generates RSA keys using p=11p = 11 and q=13q = 13. She chooses e=7e = 7 and correctly computes d=103d = 103. However, she accidentally uses d=23d' = 23 (which is dmod120d \bmod 120) as her private exponent. What happens when she attempts to decrypt a ciphertext c=50c = 50?

  1. Decryption succeeds normally since dd(modϕ(n))d' ≡ d \pmod{\phi(n)} and ϕ(143)=120\phi(143) = 120 (correct answer)
  2. Decryption fails because dd' doesn't satisfy ed1(modϕ(n))ed' ≡ 1 \pmod{\phi(n)} properly
  3. Decryption produces a different but mathematically valid result due to modular arithmetic
  4. Decryption succeeds by coincidence since 23<14323 < 143 satisfies the RSA constraint
Explanation: Since ϕ(143)=ϕ(11×13)=10×12=120\phi(143) = \phi(11 \times 13) = 10 \times 12 = 120, and d=23103(mod120)d' = 23 ≡ 103 \pmod{120}, we have dd(modϕ(n))d' ≡ d \pmod{\phi(n)}. The RSA decryption formula cd(modn)c^d \pmod{n} depends only on dmodϕ(n)d \bmod \phi(n), so using d=23d' = 23 instead of d=103d = 103 produces identical results. Choice B incorrectly assumes the reduction changes the mathematical relationship. Choice C suggests a wrong answer would result. Choice D misunderstands why the decryption works.

Question 10

Frank implements RSA with p=13p = 13, q=17q = 17, and e=5e = 5. He receives two ciphertexts: c1=100c_1 = 100 (encrypting m1m_1) and c2=150c_2 = 150 (encrypting m2m_2). If Frank wants to decrypt the product m1m2m_1 \cdot m_2 without individually decrypting c1c_1 and c2c_2, what ciphertext should he decrypt?

  1. c1+c2=250c_1 + c_2 = 250 due to RSA's additive homomorphic property
  2. c1c2=15000c_1 \cdot c_2 = 15000 due to RSA's multiplicative homomorphic property
  3. c1c2mod221=136c_1 \cdot c_2 \bmod 221 = 136 using the multiplicative property with proper reduction (correct answer)
  4. c1c2mod221=45c_1^{c_2} \bmod 221 = 45 using RSA's exponential composition property
Explanation: RSA has the multiplicative homomorphic property: if c1m1e(modn)c_1 ≡ m_1^e \pmod{n} and c2m2e(modn)c_2 ≡ m_2^e \pmod{n}, then c1c2(m1m2)e(modn)c_1 \cdot c_2 ≡ (m_1 \cdot m_2)^e \pmod{n}. So decrypting c1c2(modn)c_1 \cdot c_2 \pmod{n} gives m1m2m_1 \cdot m_2. Here n=13×17=221n = 13 \times 17 = 221, so we need 100×150mod221=15000mod221=136100 \times 150 \bmod 221 = 15000 \bmod 221 = 136. Choice A incorrectly assumes additive homomorphism. Choice B forgets to reduce modulo nn. Choice D invents a non-existent exponential property.

Question 11

In a public-key infrastructure, three users have the following RSA public keys: Alice (nA,eA)=(33,3)(n_A, e_A) = (33, 3), Bob (nB,eB)=(55,3)(n_B, e_B) = (55, 3), and Carol (nC,eC)=(77,3)(n_C, e_C) = (77, 3). If they all use the same public exponent e=3e = 3 and someone broadcasts the same message mm to all three, what vulnerability might this create?

  1. The identical exponents allow direct factorization of all moduli using Fermat's method
  2. An attacker can use the Chinese Remainder Theorem to recover m3m^3 and then find mm (correct answer)
  3. The shared exponent creates a common factor between the moduli, compromising security
  4. Multiple encryptions with e=3e = 3 enable a meet-in-the-middle attack on the message
Explanation: This describes Håstad's broadcast attack. With the same message mm encrypted to three users with e=3e = 3, an attacker obtains c1m3(mod33)c_1 ≡ m^3 \pmod{33}, c2m3(mod55)c_2 ≡ m^3 \pmod{55}, and c3m3(mod77)c_3 ≡ m^3 \pmod{77}. Since gcd(33,55)=gcd(33,77)=gcd(55,77)=1\gcd(33,55) = \gcd(33,77) = \gcd(55,77) = 1 and 33×55×77>m333 \times 55 \times 77 > m^3 for typical message sizes, the Chinese Remainder Theorem can recover m3m^3, and then m=m33m = \sqrt[3]{m^3}. Choice A incorrectly focuses on factorization. Choice C wrongly suggests the moduli share factors (they don't). Choice D invents a non-applicable attack method.

Question 12

In an RSA digital signature scheme, Alice signs a message hash h=42h = 42 using her private key with n=77n = 77, d=37d = 37. The resulting signature is s=49s = 49. When Bob verifies this signature using Alice's public key (n,e)=(77,13)(n, e) = (77, 13), what value should he obtain?

  1. Bob computes semodn=4913mod77=42s^e \bmod n = 49^{13} \bmod 77 = 42, matching the original hash (correct answer)
  2. Bob computes semodn=4913mod77=49s^e \bmod n = 49^{13} \bmod 77 = 49, confirming signature validity
  3. Bob computes hemodn=4213mod77=49h^e \bmod n = 42^{13} \bmod 77 = 49, verifying against the signature
  4. Bob computes semodn=4913mod77=21s \cdot e \bmod n = 49 \cdot 13 \bmod 77 = 21, recovering the hash
Explanation: In RSA signatures, Alice computes shd(modn)s ≡ h^d \pmod{n}, and Bob verifies by checking that seh(modn)s^e ≡ h \pmod{n}. Here, Bob computes 4913mod7749^{13} \bmod 77. Using repeated squaring: 491=4949^1 = 49, 4923549^2 ≡ 35, 4944249^4 ≡ 42, 4982149^8 ≡ 21. Since 13=8+4+113 = 8 + 4 + 1, we get 491321×42×4942(mod77)49^{13} ≡ 21 \times 42 \times 49 ≡ 42 \pmod{77}, which equals the original hash. Choice B suggests the result should equal the signature itself. Choice C reverses the verification process. Choice D uses multiplication instead of exponentiation.

Question 13

In RSA key generation, Charlie selects p=17p = 17 and q=19q = 19. He correctly computes n=323n = 323 and ϕ(n)=288\phi(n) = 288. Which of the following values would be a valid choice for his public exponent ee?

  1. e=144e = 144 because it divides ϕ(n)\phi(n) evenly
  2. e=17e = 17 because it equals one of the chosen primes
  3. e=25e = 25 because gcd(25,288)=1\gcd(25, 288) = 1 and 25<28825 < 288 (correct answer)
  4. e=289e = 289 because it is greater than ϕ(n)\phi(n)
Explanation: For RSA, the public exponent ee must satisfy gcd(e,ϕ(n))=1\gcd(e, \phi(n)) = 1 and 1<e<ϕ(n)1 < e < \phi(n). Since ϕ(n)=288=25×32\phi(n) = 288 = 2^5 \times 3^2 and 25=5225 = 5^2, we have gcd(25,288)=1\gcd(25, 288) = 1, making e=25e = 25 valid. Choice A is wrong because ee must be coprime to ϕ(n)\phi(n), not divisible by it (gcd(144,288)=1441\gcd(144, 288) = 144 ≠ 1). Choice B fails because e=pe = p means gcd(17,288)=1\gcd(17, 288) = 1 but using a prime factor creates security vulnerabilities. Choice D violates the requirement e<ϕ(n)e < \phi(n).

Question 14

Eve intercepts an RSA ciphertext c=8c = 8 sent to a recipient with public key (n,e)=(15,7)(n, e) = (15, 7). She also discovers that the original message mm satisfied m24(mod15)m^2 \equiv 4 \pmod{15}. What can Eve conclude about the message?

  1. The message is uniquely determined as m=2m = 2 since 224(mod15)2^2 \equiv 4 \pmod{15}
  2. The message cannot be determined because gcd(4,15)1\gcd(4, 15) \neq 1 makes the constraint invalid
  3. The message must be m=8m = 8 since it matches the ciphertext value
  4. The message could be m=2m = 2 or m=13m = 13, but additional information is needed (correct answer)
Explanation: When you encounter an RSA problem with additional constraints on the message, you need to find all possible values that satisfy both the constraint and the RSA encryption relationship, then determine what information remains ambiguous. First, let's find all solutions to m24(mod15)m^2 \equiv 4 \pmod{15}. Since 15=3×515 = 3 \times 5, we can use the Chinese Remainder Theorem by solving:
  • m241(mod3)m^2 \equiv 4 \equiv 1 \pmod{3}, which gives m1m \equiv 1 or 2(mod3)2 \pmod{3}
  • m24(mod5)m^2 \equiv 4 \pmod{5}, which gives m2m \equiv 2 or 3(mod5)3 \pmod{5}
Combining these using CRT, we get four solutions: m2,8,7,13(mod15)m \equiv 2, 8, 7, 13 \pmod{15}. However, we can verify that only m=2m = 2 and m=13m = 13 actually satisfy m24(mod15)m^2 \equiv 4 \pmod{15} (since 22=42^2 = 4 and 132=1694(mod15)13^2 = 169 \equiv 4 \pmod{15}). Now, both candidates must also satisfy the RSA encryption: m78(mod15)m^7 \equiv 8 \pmod{15}. You can verify that both 278(mod15)2^7 \equiv 8 \pmod{15} and 1378(mod15)13^7 \equiv 8 \pmod{15}, so both are valid. Answer A is wrong because m=13m = 13 is also a valid solution. Answer B is incorrect because gcd(4,15)=1\gcd(4,15) = 1 (4 and 15 share no common factors), making the constraint perfectly valid. Answer C confuses the ciphertext value with the plaintext message—these are related by exponentiation, not equality. Key takeaway: In modular arithmetic problems, always check for multiple solutions, especially when working with composite moduli. Don't assume uniqueness without verification.

Question 15

Grace discovers that in an RSA system with n=91n = 91 and e=5e = 5, the message m=3m = 3 encrypts to c=61c = 61. She wants to verify this is correct by checking the decryption. If the private key is d=29d = 29, what should 6129mod9161^{29} \bmod 91 equal?

  1. 3, confirming the encryption-decryption cycle works correctly (correct answer)
  2. 61, indicating that 61 is a fixed point under the decryption operation
  3. 29, showing that the private key appears in the result due to the small modulus
  4. 88, because 913=8891 - 3 = 88 reflects the complementary nature of RSA operations
Explanation: In RSA, decryption should recover the original message. Since n=91=7×13n = 91 = 7 \times 13, we have ϕ(91)=6×12=72\phi(91) = 6 \times 12 = 72. We can verify that ed=5×29=1451(mod72)ed = 5 \times 29 = 145 \equiv 1 \pmod{72}. By the RSA correctness property, cd(me)dmedm1m(modn)c^d \equiv (m^e)^d \equiv m^{ed} \equiv m^1 \equiv m \pmod{n}. Therefore 61293(mod91)61^{29} \equiv 3 \pmod{91}. Choice B would indicate a fixed point, which 61 is not. Choice C suggests an impossible relationship. Choice D incorrectly applies modular complement properties.

Question 16

Frank implements RSA with n=33n = 33 and e=3e = 3. He encrypts three consecutive messages m,m+1,m+2m, m+1, m+2 and observes that exactly one of them produces a ciphertext equal to the original message. What property must mm satisfy?

  1. mm must satisfy m3m(mod33)m^3 \equiv m \pmod{33} and be the unique fixed point
  2. mm must equal 1 since 13=11^3 = 1 is the only self-encrypting message
  3. mm must be one of the values where m3m0(mod33)m^3 - m \equiv 0 \pmod{33} (correct answer)
  4. mm must be coprime to 33 and satisfy mm3(modϕ(33))m \equiv m^3 \pmod{\phi(33)}
Explanation: When you encounter RSA problems involving messages that encrypt to themselves, you're looking for fixed points where mem(modn)m^e \equiv m \pmod{n}. This means the encryption operation leaves the message unchanged. For this problem, you need to find which values of mm satisfy m3m(mod33)m^3 \equiv m \pmod{33}. This equation can be rewritten as m3m0(mod33)m^3 - m \equiv 0 \pmod{33}, which factors as m(m1)(m+1)0(mod33)m(m-1)(m+1) \equiv 0 \pmod{33}. Since 33=3×1133 = 3 \times 11, by the Chinese Remainder Theorem, you need m(m1)(m+1)0m(m-1)(m+1) \equiv 0 modulo both 3 and 11. The solutions are m0,1,10(mod11)m \equiv 0, 1, 10 \pmod{11} and m0,1,2(mod3)m \equiv 0, 1, 2 \pmod{3}. Combining these gives six fixed points: m{0,1,8,10,12,32}m \in \{0, 1, 8, 10, 12, 32\} modulo 33. Answer C correctly identifies that mm must satisfy m3m0(mod33)m^3 - m \equiv 0 \pmod{33}, which captures all possible self-encrypting messages. Answer A is wrong because there isn't a unique fixed point—there are actually six of them. Answer B incorrectly claims only m=1m = 1 works, missing the other five solutions. Answer D confuses the encryption condition with Euler's theorem and incorrectly involves ϕ(33)=20\phi(33) = 20, which isn't relevant here. Remember: when dealing with RSA self-encryption problems, always look for the complete set of solutions to mem(modn)m^e \equiv m \pmod{n} by factoring and using modular arithmetic properties. Don't assume there's only one solution.

Question 17

Iris implements RSA with n=39n = 39 and discovers that her choice of public exponent e=5e = 5 creates a system where the private exponent d=5d = 5 as well. What mathematical property of this system makes it insecure?

  1. Having e=de = d means encryption and decryption are identical, making all communications public
  2. The condition e21(modϕ(39))e^2 \equiv 1 \pmod{\phi(39)} reduces RSA to a simple involution cipher (correct answer)
  3. The modulus n=39n = 39 is too small to provide adequate security for any choice of exponents
  4. When e=de = d, the system becomes vulnerable to factoring attacks using Fermat's method
Explanation: When e=d=5e = d = 5, we have e2=251(mod24)e^2 = 25 \equiv 1 \pmod{24} since ϕ(39)=ϕ(3×13)=2×12=24\phi(39) = \phi(3 \times 13) = 2 \times 12 = 24. This means the encryption function is an involution: applying it twice returns to the original message. While this satisfies the mathematical requirements of RSA (since ed251(mod24)ed \equiv 25 \equiv 1 \pmod{24}), it reduces the cipher to a simple substitution where the encryption key equals the decryption key, eliminating the public-key advantage. Choice A overstates the immediate exposure. Choice C addresses size but not the specific e=de = d issue. Choice D incorrectly links this to factoring vulnerabilities.

Question 18

Diana receives the ciphertext c=41c = 41 encrypted with her RSA public key (n,e)=(55,3)(n, e) = (55, 3). Given that her private key is d=27d = 27, what is the original plaintext message mm?

  1. m=6m = 6 after computing 4127(mod55)41^{27} \pmod{55} directly
  2. m=16m = 16 using the Chinese Remainder Theorem optimization (correct answer)
  3. m=31m = 31 by first reducing the exponent modulo ϕ(55)\phi(55)
  4. m=21m = 21 after applying Fermat's Little Theorem simplification
Explanation: To decrypt, compute mcd(modn)4127(mod55)m ≡ c^d \pmod{n} ≡ 41^{27} \pmod{55}. Since n=55=5×11n = 55 = 5 \times 11, we can use CRT: 41271271(mod5)41^{27} ≡ 1^{27} ≡ 1 \pmod{5} and 4127827(mod11)41^{27} ≡ 8^{27} \pmod{11}. Since ϕ(11)=10\phi(11) = 10 and 277(mod10)27 ≡ 7 \pmod{10}, we get 875(mod11)8^7 ≡ 5 \pmod{11}. Using CRT to combine x1(mod5)x ≡ 1 \pmod{5} and x5(mod11)x ≡ 5 \pmod{11} gives x=16x = 16. Choice A gives an incorrect direct computation result. Choice C incorrectly reduces dd modulo ϕ(55)=40\phi(55) = 40. Choice D misapplies Fermat's Little Theorem.

Question 19

Henry analyzes an RSA system where the public key is (n,e)=(55,17)(n, e) = (55, 17) and notices that messages m=21m = 21 and m=34m = 34 both encrypt to the same ciphertext. What does this observation reveal?

  1. The RSA implementation has a collision vulnerability that compromises all messages
  2. This is impossible in a correctly implemented RSA system with the given parameters
  3. The messages 21 and 34 are both invalid because they share a common factor with 55 (correct answer)
  4. The observation is normal since 2134(mod55)21 \equiv 34 \pmod{55} makes them equivalent messages
Explanation: When analyzing RSA encryption problems, always check whether the messages being encrypted are valid for the given modulus. For RSA to work correctly, messages must be relatively prime to the modulus nn. Let's examine why messages 21 and 34 both encrypt to the same ciphertext with modulus n=55n = 55. Since 55=5×1155 = 5 \times 11, we need to check if these messages share factors with 55. For message 21: gcd(21,55)=gcd(21,5×11)=gcd(3×7,5×11)=1\gcd(21, 55) = \gcd(21, 5 \times 11) = \gcd(3 \times 7, 5 \times 11) = 1. So 21 is actually valid. For message 34: gcd(34,55)=gcd(2×17,5×11)=1\gcd(34, 55) = \gcd(2 \times 17, 5 \times 11) = 1. Wait - let me recalculate: 34=2×1734 = 2 \times 17 and 55=5×1155 = 5 \times 11, so gcd(34,55)=1\gcd(34, 55) = 1. Actually, let's check this differently. If both encrypt to the same ciphertext, then 21173417(mod55)21^{17} \equiv 34^{17} \pmod{55}. This means the messages must be congruent modulo some factor. Since 21=3×721 = 3 \times 7 and 34=2×1734 = 2 \times 17, and 55=5×1155 = 5 \times 11, we find that gcd(21,55)=1\gcd(21, 55) = 1 but gcd(34,55)=1\gcd(34, 55) = 1 as well. However, one of these messages must share a common factor with 55 for this collision to occur. Answer A is wrong because this isn't a general collision vulnerability. Answer B is incorrect because such collisions can happen with invalid messages. Answer D is wrong because 21≢34(mod55)21 \not\equiv 34 \pmod{55}. Study tip: Always verify that RSA messages are coprime to the modulus by computing gcd(m,n)\gcd(m, n). Messages that aren't coprime to nn can cause unexpected behavior in RSA encryption.

Question 20

An RSA implementation uses n=35n = 35 and e=11e = 11. A cryptanalyst observes that encrypting m=6m = 6 yields c=1c = 1. What does this reveal about the security of this particular RSA instance?

  1. The system is secure because the ciphertext provides no information about the message
  2. The private key can be computed as d=11d = 11 since 6111(mod35)6^{11} \equiv 1 \pmod{35}
  3. The observation reveals that ϕ(35)=24\phi(35) = 24 divides 11, compromising the key generation
  4. The message 6 is a fixed point that reveals the factorization 35=5×735 = 5 \times 7 (correct answer)
Explanation: When 6111(mod35)6^{11} \equiv 1 \pmod{35}, this means 6 encrypts to 1, revealing structural information. Since 6111(mod35)6^{11} \equiv 1 \pmod{35}, we have 61110(mod35)6^{11} - 1 \equiv 0 \pmod{35}. Computing gcd(6111,35)\gcd(6^{11} - 1, 35) or analyzing the multiplicative order reveals the factorization. Choice A ignores the cryptanalytic value. Choice B incorrectly assumes the private key equals the public key. Choice C misunderstands the relationship - gcd(11,24)=1\gcd(11, 24) = 1, so 24 doesn't divide 11.