RSA and public-key cryptography concepts (intro) - Discrete Math

  1. 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?
    Answer: The messages 21 and 34 are both invalid because they share a common factor with 55 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 2117≡3417(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.
  2. 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 6129 mod 9161^{29} \bmod 91 equal?
    Answer: 3, confirming the encryption-decryption cycle works correctly 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=145≡1(mod72)ed = 5 \times 29 = 145 \equiv 1 \pmod{72}. By the RSA correctness property, cd≡(me)d≡med≡m1≡m(modn)c^d \equiv (m^e)^d \equiv m^{ed} \equiv m^1 \equiv m \pmod{n}. Therefore 6129≡3(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.
  3. 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 d mod 120d \bmod 120) as her private exponent. What happens when she attempts to decrypt a ciphertext c=50c = 50?
    Answer: Decryption succeeds normally since d′≡d(modϕ(n))d' ≡ d \pmod{\phi(n)} and ϕ(143)=120\phi(143) = 120 Since ϕ(143)=ϕ(11×13)=10×12=120\phi(143) = \phi(11 \times 13) = 10 \times 12 = 120, and d′=23≡103(mod120)d' = 23 ≡ 103 \pmod{120}, we have d′≡d(modϕ(n))d' ≡ d \pmod{\phi(n)}. The RSA decryption formula cd(modn)c^d \pmod{n} depends only on d mod ϕ(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.
  4. 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?
    Answer: c=26c = 26 To encrypt, Bob computes c≡me(modn)≡513(mod77)c ≡ m^e \pmod{n} ≡ 5^{13} \pmod{77}. Using repeated squaring: 51=55^1 = 5, 52=255^2 = 25, 54=625≡9(mod77)5^4 = 625 ≡ 9 \pmod{77}, 58=81≡4(mod77)5^8 = 81 ≡ 4 \pmod{77}. Since 13=8+4+113 = 8 + 4 + 1, we have 513≡4×9×5=180≡26(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).
  5. 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?
    Answer: m=16m = 16 using the Chinese Remainder Theorem optimization To decrypt, compute m≡cd(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: 4127≡127≡1(mod5)41^{27} ≡ 1^{27} ≡ 1 \pmod{5} and 4127≡827(mod11)41^{27} ≡ 8^{27} \pmod{11}. Since ϕ(11)=10\phi(11) = 10 and 27≡7(mod10)27 ≡ 7 \pmod{10}, we get 87≡5(mod11)8^7 ≡ 5 \pmod{11}. Using CRT to combine x≡1(mod5)x ≡ 1 \pmod{5} and x≡5(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.
  6. 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 m1⋅m2m_1 \cdot m_2 without individually decrypting c1c_1 and c2c_2, what ciphertext should he decrypt?
    Answer: c1⋅c2 mod 221=136c_1 \cdot c_2 \bmod 221 = 136 using the multiplicative property with proper reduction RSA has the multiplicative homomorphic property: if c1≡m1e(modn)c_1 ≡ m_1^e \pmod{n} and c2≡m2e(modn)c_2 ≡ m_2^e \pmod{n}, then c1⋅c2≡(m1⋅m2)e(modn)c_1 \cdot c_2 ≡ (m_1 \cdot m_2)^e \pmod{n}. So decrypting c1⋅c2(modn)c_1 \cdot c_2 \pmod{n} gives m1⋅m2m_1 \cdot m_2. Here n=13×17=221n = 13 \times 17 = 221, so we need 100×150 mod 221=15000 mod 221=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.
  7. 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?
    Answer: Factor n=91n = 91 first, then solve ed≡1(modϕ(91))ed ≡ 1 \pmod{\phi(91)} directly When you encounter RSA problems involving finding one exponent given the other, you need to understand the fundamental relationship: ed≡1(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)=(7−1)(13−1)=6×12=72\phi(91) = (7-1)(13-1) = 6 \times 12 = 72. Finally, you solve 61e≡1(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 61e≡1(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 ed−1=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.
  8. 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?
    Answer: No integer dd satisfies 6d≡1(mod24)6d ≡ 1 \pmod{24} since gcd⁡(6,24)=6≠1\gcd(6, 24) = 6 ≠ 1 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)=6≠1\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.
  9. 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?
    Answer: mm must be one of the values where m3−m≡0(mod33)m^3 - m \equiv 0 \pmod{33} When you encounter RSA problems involving messages that encrypt to themselves, you're looking for fixed points where me≡m(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 m3≡m(mod33)m^3 \equiv m \pmod{33}. This equation can be rewritten as m3−m≡0(mod33)m^3 - m \equiv 0 \pmod{33}, which factors as m(m−1)(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(m−1)(m+1)≡0m(m-1)(m+1) \equiv 0 modulo both 3 and 11. The solutions are m≡0,1,10(mod11)m \equiv 0, 1, 10 \pmod{11} and m≡0,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 m3−m≡0(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 me≡m(modn)m^e \equiv m \pmod{n} by factoring and using modular arithmetic properties. Don't assume there's only one solution.
  10. 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?
    Answer: The message cannot be encrypted because gcd⁡(22,143)=11≠1\gcd(22, 143) = 11 \neq 1, violating RSA requirements For RSA to work properly, the message must be coprime to the modulus. Here gcd⁡(22,143)=gcd⁡(22,11×13)=11≠1\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}.
  11. 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?
    Answer: d=17d = 17 since 5×17≡1(mod12)5 \times 17 ≡ 1 \pmod{12} The private exponent dd satisfies ed≡1(modϕ(n))ed ≡ 1 \pmod{\phi(n)}. With p=3p = 3 and q=7q = 7, we have ϕ(n)=ϕ(21)=(3−1)(7−1)=12\phi(n) = \phi(21) = (3-1)(7-1) = 12. We need 5d≡1(mod12)5d ≡ 1 \pmod{12}. Testing: 5×17=85=7×12+1≡1(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=25≡1(mod12)5 \times 5 = 25 ≡ 1 \pmod{12} is false (25=2×12+125 = 2 \times 12 + 1 but we need 25≡125 \equiv 1, which gives 25 mod 12=125 \bmod 12 = 1, but this doesn't help since we need 5×5 mod 12=15 \times 5 \bmod 12 = 1, and 25 mod 12=125 \bmod 12 = 1 is true, making this explanation confusing - the real issue is d=5d=5 is wrong).
  12. 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?
    Answer: The message 6 is a fixed point that reveals the factorization 35=5×735 = 5 \times 7 When 611≡1(mod35)6^{11} \equiv 1 \pmod{35}, this means 6 encrypts to 1, revealing structural information. Since 611≡1(mod35)6^{11} \equiv 1 \pmod{35}, we have 611−1≡0(mod35)6^{11} - 1 \equiv 0 \pmod{35}. Computing gcd⁡(611−1,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.
  13. 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?
    Answer: Bob computes se mod n=4913 mod 77=42s^e \bmod n = 49^{13} \bmod 77 = 42, matching the original hash In RSA signatures, Alice computes s≡hd(modn)s ≡ h^d \pmod{n}, and Bob verifies by checking that se≡h(modn)s^e ≡ h \pmod{n}. Here, Bob computes 4913 mod 7749^{13} \bmod 77. Using repeated squaring: 491=4949^1 = 49, 492≡3549^2 ≡ 35, 494≡4249^4 ≡ 42, 498≡2149^8 ≡ 21. Since 13=8+4+113 = 8 + 4 + 1, we get 4913≡21×42×49≡42(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.
  14. 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?
    Answer: Since gcd⁡(12,143)=11≠1\gcd(12, 143) = 11 ≠ 1, the encrypted message may leak information about the factorization Since gcd⁡(12,143)=gcd⁡(12,11×13)=11≠1\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.
  15. 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?
    Answer: An attacker can use the Chinese Remainder Theorem to recover m3m^3 and then find mm This describes Håstad's broadcast attack. With the same message mm encrypted to three users with e=3e = 3, an attacker obtains c1≡m3(mod33)c_1 ≡ m^3 \pmod{33}, c2≡m3(mod55)c_2 ≡ m^3 \pmod{55}, and c3≡m3(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.
  16. 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=21≡1(mod8)7 \times 3 = 21 ≡ 1 \pmod{8} where ϕ(15)=8\phi(15) = 8). When she encrypts m=2m = 2, she gets c=27 mod 15=8c = 2^7 \bmod 15 = 8. However, when she tries to decrypt c=8c = 8, what result does she obtain?
    Answer: m=83 mod 15=2m = 8^3 \bmod 15 = 2, successfully recovering the original message 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 med≡m(modn)m^{ed} \equiv m \pmod{n} when ed≡1(modϕ(n))ed \equiv 1 \pmod{\phi(n)}. To decrypt the ciphertext c=8c = 8, you compute 83 mod 158^3 \bmod 15. Let's calculate this step by step: 82=64≡4(mod15)8^2 = 64 \equiv 4 \pmod{15} (since 64=4×15+464 = 4 \times 15 + 4) 83=8×82=8×4=32≡2(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 83≡8(mod15)8^3 \equiv 8 \pmod{15}, suggesting encryption is its own inverse, but our calculation shows 83≡28^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 ed≡1(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.
  17. 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 m2≡4(mod15)m^2 \equiv 4 \pmod{15}. What can Eve conclude about the message?
    Answer: The message could be m=2m = 2 or m=13m = 13, but additional information is needed 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 m2≡4(mod15)m^2 \equiv 4 \pmod{15}. Since 15=3×515 = 3 \times 5, we can use the Chinese Remainder Theorem by solving: - m2≡4≡1(mod3)m^2 \equiv 4 \equiv 1 \pmod{3}, which gives m≡1m \equiv 1 or 2(mod3)2 \pmod{3} - m2≡4(mod5)m^2 \equiv 4 \pmod{5}, which gives m≡2m \equiv 2 or 3(mod5)3 \pmod{5} Combining these using CRT, we get four solutions: m≡2,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 m2≡4(mod15)m^2 \equiv 4 \pmod{15} (since 22=42^2 = 4 and 132=169≡4(mod15)13^2 = 169 \equiv 4 \pmod{15}). Now, both candidates must also satisfy the RSA encryption: m7≡8(mod15)m^7 \equiv 8 \pmod{15}. You can verify that both 27≡8(mod15)2^7 \equiv 8 \pmod{15} and 137≡8(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.
  18. 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?
    Answer: e=25e = 25 because gcd⁡(25,288)=1\gcd(25, 288) = 1 and 25<28825 < 288 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)=144≠1\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).
  19. 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?
    Answer: The condition e2≡1(modϕ(39))e^2 \equiv 1 \pmod{\phi(39)} reduces RSA to a simple involution cipher When e=d=5e = d = 5, we have e2=25≡1(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 ed≡25≡1(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.
  20. 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 c≡26(mod77)c \equiv 26 \pmod{77}, what happens when Alice attempts to decrypt using her private key d=37d = 37?
    Answer: Alice successfully recovers the original message m=5m = 5 To verify: cd≡2637(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 ed≡13×37≡481≡1(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.

Start this quiz