RSA and public-key cryptography concepts (intro) - Discrete Math
- 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.
- 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).
- In an RSA system, Charlie chooses primes and , giving . He selects public exponent . When Charlie encrypts the message , which statement about the outcome is accurate? Answer: The encryption succeeds normally since but RSA handles this case Here and , so is valid, with private exponent since . The message shares the factor 11 with , because , but RSA does not require : because is a product of distinct primes, the Chinese Remainder Theorem shows for every from 0 to 142, so encryption and decryption both work. Saying the message cannot be encrypted confuses a proof shortcut (Euler's theorem) with a requirement; the real concern is that such a message reveals a factor of . The exponent is not invalid, and RSA needs , not .
- Frank implements RSA with and . He encrypts three consecutive messages and observes that the first message produces a ciphertext equal to itself. What property must satisfy? Answer: must be one of the values where A message is a fixed point of encryption when , which is the same as . Since , solve modulo each prime. Modulo 3, every residue works, because by Fermat's little theorem. Modulo 11, the product is 0 only when or . Combining these with the Chinese Remainder Theorem gives fixed points: . Since Frank saw encrypt to itself, must be one of the values with . There is no unique fixed point, and 1 is only one of nine. The condition modulo confuses Euler's theorem, which governs exponents, with the message itself, and fixed points such as 0, 11 and 12 are not even coprime to 33. The required property is .
- 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.
- 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.
- 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).
- 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.
- 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 First check the numbers: , so , and , so is valid. Because , the private exponent equals the public one: encrypting twice returns the original message, so encryption is an involution and anyone holding the public key can decrypt. That is the weakness. Saying every ciphertext equals its plaintext is false: for example . Saying is not a product of two distinct primes is false, since . Linking to Fermat's factoring method is wrong, because Fermat's method depends on the two primes being close together, not on the exponents.
- 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: This is impossible in a correctly implemented RSA system with the given parameters Check whether the encryption map can send two different messages to the same ciphertext. Here , so , and . A decryption exponent with exists (), and because 55 is squarefree, for every , including messages that share a factor with 55. So encryption is a one-to-one map on . In fact and , so the two ciphertexts differ and the reported collision cannot happen. Both messages are coprime to 55: and , so they are not invalid. The two messages are not congruent mod 55, since . There is no collision vulnerability in correctly implemented RSA with these parameters; the observation points to an error in the computation.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 .