RSA and public-key cryptography concepts (intro) - Discrete Math
- Henry analyzes an RSA system where the public key is and notices that messages and 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 . Let's examine why messages 21 and 34 both encrypt to the same ciphertext with modulus . Since , we need to check if these messages share factors with 55. For message 21: . So 21 is actually valid. For message 34: . Wait - let me recalculate: and , so . Actually, let's check this differently. If both encrypt to the same ciphertext, then . This means the messages must be congruent modulo some factor. Since and , and , we find that but 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 . Study tip: Always verify that RSA messages are coprime to the modulus by computing . Messages that aren't coprime to can cause unexpected behavior in RSA encryption.
- Grace discovers that in an RSA system with and , the message encrypts to . She wants to verify this is correct by checking the decryption. If the private key is , what should equal? Answer: 3, confirming the encryption-decryption cycle works correctly In RSA, decryption should recover the original message. Since , we have . We can verify that . By the RSA correctness property, . Therefore . Choice B would indicate a fixed point, which 61 is not. Choice C suggests an impossible relationship. Choice D incorrectly applies modular complement properties.
- Grace generates RSA keys using and . She chooses and correctly computes . However, she accidentally uses (which is ) as her private exponent. What happens when she attempts to decrypt a ciphertext ? Answer: Decryption succeeds normally since and Since , and , we have . The RSA decryption formula depends only on , so using instead of 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.
- In the RSA cryptosystem, Alice chooses primes and , computes , and selects as her public exponent. When Bob encrypts the message using Alice's public key, what is the resulting ciphertext ? Answer: To encrypt, Bob computes . Using repeated squaring: , , , . Since , we have . Choice B results from computing (using instead of ). Choice C comes from (using as modulus). Choice D is (arithmetic error in exponent).
- Diana receives the ciphertext encrypted with her RSA public key . Given that her private key is , what is the original plaintext message ? Answer: using the Chinese Remainder Theorem optimization To decrypt, compute . Since , we can use CRT: and . Since and , we get . Using CRT to combine and gives . Choice A gives an incorrect direct computation result. Choice C incorrectly reduces modulo . Choice D misapplies Fermat's Little Theorem.
- Frank implements RSA with , , and . He receives two ciphertexts: (encrypting ) and (encrypting ). If Frank wants to decrypt the product without individually decrypting and , what ciphertext should he decrypt? Answer: using the multiplicative property with proper reduction RSA has the multiplicative homomorphic property: if and , then . So decrypting gives . Here , so we need . Choice A incorrectly assumes additive homomorphism. Choice B forgets to reduce modulo . Choice D invents a non-existent exponential property.
- Jack implements RSA with and accidentally reveals that his private exponent is . An adversary who intercepts this information wants to determine Jack's public exponent . What is the most efficient approach? Answer: Factor first, then solve directly When you encounter RSA problems involving finding one exponent given the other, you need to understand the fundamental relationship: , where is Euler's totient function. The most efficient approach is D because it follows the logical sequence RSA requires. First, you factor . Then you calculate . Finally, you solve using the extended Euclidean algorithm to find . A is incorrect because it uses the wrong modulus. The equation is mathematically wrong—RSA requires the modulus to be , not itself. B reverses the logical order inefficiently. While is mathematically correct, you'd still need to know first, which requires factoring . 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 , not . When you need to find and is composite, factoring is your essential first step. This pattern appears frequently in cryptography problems.
- Henry implements a variant where he uses but mistakenly chooses as his public exponent. When he tries to compute the corresponding private exponent , what problem does he encounter? Answer: No integer satisfies since For RSA to work, we need . Here , and . Therefore, the modular inverse of modulo doesn't exist, and no private exponent can be computed. Choice B uses the wrong modulus ( instead of ). Choice C is incorrect because when a modular inverse doesn't exist, there are zero solutions, not multiple. Choice D assumes , which isn't generally true and doesn't address the fundamental issue.
- Frank implements RSA with and . He encrypts three consecutive messages and observes that exactly one of them produces a ciphertext equal to the original message. What property must satisfy? Answer: must be one of the values where When you encounter RSA problems involving messages that encrypt to themselves, you're looking for fixed points where . This means the encryption operation leaves the message unchanged. For this problem, you need to find which values of satisfy . This equation can be rewritten as , which factors as . Since , by the Chinese Remainder Theorem, you need modulo both 3 and 11. The solutions are and . Combining these gives six fixed points: modulo 33. Answer C correctly identifies that must satisfy , 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 works, missing the other five solutions. Answer D confuses the encryption condition with Euler's theorem and incorrectly involves , which isn't relevant here. Remember: when dealing with RSA self-encryption problems, always look for the complete set of solutions to by factoring and using modular arithmetic properties. Don't assume there's only one solution.
- In an RSA system, Charlie chooses primes and , giving . He selects public exponent . When Charlie tries to encrypt the message , what is the primary issue he encounters? Answer: The message cannot be encrypted because , violating RSA requirements For RSA to work properly, the message must be coprime to the modulus. Here because 22 = 2 × 11. This violates the fundamental requirement that messages be in the multiplicative group . Choice A incorrectly suggests RSA handles non-coprime messages. Choice C is wrong because . Choice D mentions an irrelevant condition about message size relative to .
- In a simplified RSA scenario, Eve intercepts Alice's public key and wants to factor to break the system. After successfully finding and , what private exponent should Eve compute to decrypt Alice's messages? Answer: since The private exponent satisfies . With and , we have . We need . Testing: , so . Choice A incorrectly assumes . Choice B computes the congruence modulo instead of . Choice C has the wrong value of since is false ( but we need , which gives , but this doesn't help since we need , and is true, making this explanation confusing - the real issue is is wrong).
- An RSA implementation uses and . A cryptanalyst observes that encrypting yields . What does this reveal about the security of this particular RSA instance? Answer: The message 6 is a fixed point that reveals the factorization When , this means 6 encrypts to 1, revealing structural information. Since , we have . Computing 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 - , so 24 doesn't divide 11.
- In an RSA digital signature scheme, Alice signs a message hash using her private key with , . The resulting signature is . When Bob verifies this signature using Alice's public key , what value should he obtain? Answer: Bob computes , matching the original hash In RSA signatures, Alice computes , and Bob verifies by checking that . Here, Bob computes . Using repeated squaring: , , , . Since , we get , 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.
- Oscar uses RSA with and . He wants to encrypt the message but first checks whether this creates any security vulnerabilities. What should be his primary concern? Answer: Since , the encrypted message may leak information about the factorization Since , the message shares a factor with . This is problematic because: (1) anyone computing learns a factor of , and (2) the RSA decryption may not work correctly since the mathematical foundations assume . 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.
- In a public-key infrastructure, three users have the following RSA public keys: Alice , Bob , and Carol . If they all use the same public exponent and someone broadcasts the same message to all three, what vulnerability might this create? Answer: An attacker can use the Chinese Remainder Theorem to recover and then find This describes Håstad's broadcast attack. With the same message encrypted to three users with , an attacker obtains , , and . Since and for typical message sizes, the Chinese Remainder Theorem can recover , and then . 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.
- Paula implements a simplified RSA variant where she uses , , and computes (since where ). When she encrypts , she gets . However, when she tries to decrypt , what result does she obtain? Answer: , successfully recovering the original message RSA encryption relies on modular exponentiation, where encryption uses the public key and decryption uses the private key . The fundamental property is that when . To decrypt the ciphertext , you compute . Let's calculate this step by step: (since ) (since ) The decryption successfully recovers the original message , confirming that choice D is correct. Choice A contains a calculation error, claiming , which is mathematically impossible since , not 17. Choice B incorrectly states that , suggesting encryption is its own inverse, but our calculation shows , 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 . Study tip: When solving RSA problems, always verify that 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.
- Eve intercepts an RSA ciphertext sent to a recipient with public key . She also discovers that the original message satisfied . What can Eve conclude about the message? Answer: The message could be or , 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 . Since , we can use the Chinese Remainder Theorem by solving: - , which gives or - , which gives or Combining these using CRT, we get four solutions: . However, we can verify that only and actually satisfy (since and ). Now, both candidates must also satisfy the RSA encryption: . You can verify that both and , so both are valid. Answer A is wrong because is also a valid solution. Answer B is incorrect because (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.
- In RSA key generation, Charlie selects and . He correctly computes and . Which of the following values would be a valid choice for his public exponent ? Answer: because and For RSA, the public exponent must satisfy and . Since and , we have , making valid. Choice A is wrong because must be coprime to , not divisible by it (). Choice B fails because means but using a prime factor creates security vulnerabilities. Choice D violates the requirement .
- Iris implements RSA with and discovers that her choice of public exponent creates a system where the private exponent as well. What mathematical property of this system makes it insecure? Answer: The condition reduces RSA to a simple involution cipher When , we have since . 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 ), 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 issue. Choice D incorrectly links this to factoring vulnerabilities.
- Alice generates an RSA key pair with modulus and public exponent . Bob encrypts the message using Alice's public key. If Bob's encrypted message is , what happens when Alice attempts to decrypt using her private key ? Answer: Alice successfully recovers the original message To verify: . Since , we have . We can verify . Computing 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 , this is valid.