Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Question 1 of 60 · introduction to public-key cryptography · Easy
In public-key cryptography, how many keys does each user typically have?
Not quite. Try another option.
Answer: Two keys: a public key and a private key
Public-key (asymmetric) cryptography uses a key pair: a public key that can be shared openly and a private key kept secret by the owner.
Question 2 of 60 · introduction to public-key cryptography · Easy
Which term is another name for public-key cryptography?
Not quite. Try another option.
Answer: Asymmetric cryptography
It is called asymmetric because encryption and decryption use different keys, unlike symmetric cryptography which uses one shared key.
Question 3 of 60 · introduction to public-key cryptography · Easy
In a public-key system, which key is used to encrypt a message intended for a recipient?
Not quite. Try another option.
Answer: The recipient's public key
To send a confidential message, the sender encrypts with the recipient's public key; only the recipient's private key can decrypt it.
Question 4 of 60 · introduction to public-key cryptography · Easy
Public-key cryptography helps solve which major problem of symmetric cryptography?
Not quite. Try another option.
Answer: Key distribution over insecure channels
Because public keys can be shared openly, users do not need a secure channel to exchange a secret key beforehand.
Question 5 of 60 · Diffie-Hellman key exchange · Easy
What is the main purpose of the Diffie-Hellman protocol?
Not quite. Try another option.
Answer: To securely establish a shared secret key
Diffie-Hellman allows two parties to agree on a shared secret over an insecure channel without transmitting the secret itself.
Question 6 of 60 · Diffie-Hellman key exchange · Easy
The security of the Diffie-Hellman key exchange is based on the difficulty of which problem?
Not quite. Try another option.
Answer: The discrete logarithm problem
Given , recovering (the discrete logarithm) is computationally hard, which secures the protocol.
Question 7 of 60 · Diffie-Hellman key exchange · Easy
In Diffie-Hellman, if is the prime and is the generator, what does Alice send to Bob given her secret ?
Not quite. Try another option.
Answer:
Alice computes and sends ; Bob does the same with his secret, and both derive the same shared value.
Question 8 of 60 · Diffie-Hellman key exchange · Easy
After exchanging values, both parties in Diffie-Hellman compute the same shared secret of the form:
Not quite. Try another option.
Answer:
Alice computes and Bob computes , so both arrive at the same shared secret .
Question 9 of 60 · the RSA cryptosystem · Easy
The security of RSA relies on the difficulty of which mathematical problem?
Not quite. Try another option.
Answer: Factoring large composite numbers
RSA's strength comes from the difficulty of factoring the large modulus into its prime factors.
Question 10 of 60 · the RSA cryptosystem · Easy
In RSA, the modulus is computed as:
Not quite. Try another option.
Answer:
The modulus is the product of two large distinct primes: , used in both the public and private keys.
Question 11 of 60 · the RSA cryptosystem · Easy
In RSA, Euler's totient for (with prime) equals:
Not quite. Try another option.
Answer:
For the product of two distinct primes, , which is used to compute the private exponent.
Question 12 of 60 · the RSA cryptosystem · Easy
Which pair of values forms the public key in RSA?
Not quite. Try another option.
Answer:
The public key consists of the encryption exponent and the modulus ; the private key uses and .
Question 13 of 60 · the RSA cryptosystem · Easy
In RSA key generation, the public exponent must satisfy which condition with respect to ?
Not quite. Try another option.
Answer:
The exponent must be coprime to so that its modular inverse exists.
Question 14 of 60 · RSA encryption · Easy
In RSA, a plaintext message is encrypted to ciphertext using which formula?
Not quite. Try another option.
Answer:
Encryption raises the message to the public exponent modulo : .
Question 15 of 60 · RSA encryption · Easy
Which key is used by the sender to perform RSA encryption of a confidential message?
Not quite. Try another option.
Answer: The recipient's public key
For confidentiality, the sender encrypts with the recipient's public key so only the recipient can decrypt.
Question 16 of 60 · RSA encryption · Easy
Using the public key , what is the ciphertext for the message ?
Not quite. Try another option.
Answer:
.
Question 17 of 60 · RSA decryption · Easy
In RSA, ciphertext is decrypted back to plaintext using which formula?
Not quite. Try another option.
Answer:
Decryption raises the ciphertext to the private exponent modulo : .
Question 18 of 60 · RSA decryption · Easy
Which key is required to perform RSA decryption?
Not quite. Try another option.
Answer: The private key
Only the holder of the private key (containing ) can decrypt a message encrypted with the matching public key.
Question 19 of 60 · ElGamal cryptosystem · Easy
The ElGamal cryptosystem's security is based on the hardness of which problem?
Not quite. Try another option.
Answer: The discrete logarithm problem
Like Diffie-Hellman, ElGamal relies on the difficulty of computing discrete logarithms in a finite field.
Question 20 of 60 · ElGamal cryptosystem · Easy
A key feature of ElGamal encryption is that it is:
Not quite. Try another option.
Answer: Probabilistic, producing different ciphertexts for the same message
ElGamal uses a random value during encryption, so encrypting the same plaintext twice yields different ciphertexts.
Question 21 of 60 · introduction to public-key cryptography · Medium
In a public-key cryptosystem, if Alice wants to send a confidential message to Bob, which key does she use for encryption?
Not quite. Try another option.
Answer: Bob's public key
For confidentiality, the sender encrypts with the recipient's public key so that only the recipient, who holds the matching private key, can decrypt.
Question 22 of 60 · introduction to public-key cryptography · Medium
What is the primary security assumption that makes RSA computationally secure?
Not quite. Try another option.
Answer: Difficulty of factoring large integers
RSA's security relies on the fact that factoring the product of two large primes into its prime factors is computationally infeasible with current methods.
Question 23 of 60 · introduction to public-key cryptography · Medium
In public-key cryptography, how is a digital signature typically created by a sender?
Not quite. Try another option.
Answer: By encrypting the message digest with the sender's private key
A signature is produced by applying the sender's private key to a hash of the message; anyone can verify it using the sender's public key.
Question 24 of 60 · Diffie-Hellman key exchange · Medium
In the Diffie-Hellman key exchange with public parameters and , Alice chooses secret . What is her public value ?
Not quite. Try another option.
Answer:
Compute , since and .
Question 25 of 60 · Diffie-Hellman key exchange · Medium
Which mathematical problem must be hard for the Diffie-Hellman key exchange to remain secure?
Not quite. Try another option.
Answer: The discrete logarithm problem
An eavesdropper who sees and would need to compute a discrete logarithm to recover or , which is believed to be computationally hard.
Question 26 of 60 · Diffie-Hellman key exchange · Medium
Using , , Alice's public value , and Bob's secret , what shared secret does Bob compute as ?
Not quite. Try another option.
Answer:
Compute . Since , , ; then .
Question 27 of 60 · Diffie-Hellman key exchange · Medium
The Diffie-Hellman key exchange is vulnerable to which of the following attacks if no authentication is used?
Not quite. Try another option.
Answer: Man-in-the-middle attack
Without authentication, an attacker can intercept and substitute public values, establishing separate keys with each party while relaying messages.
Question 28 of 60 · the RSA cryptosystem · Medium
In RSA, suppose and . What is the value of Euler's totient ?
Not quite. Try another option.
Answer:
With , .
Question 29 of 60 · the RSA cryptosystem · Medium
In RSA, the public exponent must satisfy which condition relative to ?
Not quite. Try another option.
Answer:
The public exponent must be coprime to so that a modular inverse exists, guaranteeing the decryption exponent can be computed.
Question 30 of 60 · the RSA cryptosystem · Medium
Given and public exponent , what is the private exponent such that ?
Not quite. Try another option.
Answer:
We need . Testing : .
Question 31 of 60 · the RSA cryptosystem · Medium
Why must the two primes and in RSA be kept secret?
Not quite. Try another option.
Answer: Knowing them allows computing and hence the private key
If and are known, an attacker computes and then finds , the private key, breaking the system.
Question 32 of 60 · RSA encryption · Medium
Using RSA with and , what is the ciphertext for the plaintext message ?
Not quite. Try another option.
Answer:
Compute .
Question 33 of 60 · RSA encryption · Medium
In RSA encryption with public key , which formula produces the ciphertext from plaintext ?
Not quite. Try another option.
Answer:
RSA encryption raises the message to the public exponent modulo : .
Question 34 of 60 · RSA encryption · Medium
Using RSA with and , what is the ciphertext for plaintext ?
Not quite. Try another option.
Answer:
Compute .
Question 35 of 60 · RSA encryption · Medium
What is a critical requirement on the plaintext before RSA encryption with modulus ?
Not quite. Try another option.
Answer: must be less than
The plaintext must satisfy ; otherwise the modular reduction loses information and decryption fails to recover .
Question 36 of 60 · RSA decryption · Medium
Using RSA with , , and ciphertext , what is the recovered plaintext ?
Not quite. Try another option.
Answer:
Compute . Since , .
Question 37 of 60 · RSA decryption · Medium
In RSA decryption, which key component is used to recover the plaintext from the ciphertext?
Not quite. Try another option.
Answer: The private exponent
Decryption computes using the private exponent , which only the key owner knows.
Question 38 of 60 · RSA decryption · Medium
Using RSA with , , and ciphertext , what plaintext is recovered? (Given , .)
Not quite. Try another option.
Answer:
Since was the encryption, decryption with the correct recovers .
Question 39 of 60 · ElGamal cryptosystem · Medium
In the ElGamal cryptosystem, on what hard problem is its security based?
Not quite. Try another option.
Answer: The discrete logarithm problem
ElGamal encryption derives its security from the difficulty of solving the discrete logarithm problem in a large cyclic group.
Question 40 of 60 · ElGamal cryptosystem · Medium
In ElGamal encryption, the ciphertext consists of which pair of components?
Not quite. Try another option.
Answer:
For a random , the sender computes and , where is the recipient's public key.
Question 41 of 60 · Diffie-Hellman key exchange · Hard
In a Diffie-Hellman key exchange with prime and generator , Alice picks private key and Bob picks private key . What is the shared secret key?
Not quite. Try another option.
Answer:
Alice sends and Bob sends . Shared secret , which equals .
Question 42 of 60 · Diffie-Hellman key exchange · Hard
Which computational problem must be hard for the Diffie-Hellman key exchange to be secure against a passive eavesdropper who observes , , , and ?
Not quite. Try another option.
Answer: The Computational Diffie-Hellman (CDH) problem
A passive attacker sees and and must compute without knowing or . This is exactly the CDH problem, whose assumed hardness underlies DH security.
Question 43 of 60 · Diffie-Hellman key exchange · Hard
The basic Diffie-Hellman protocol is vulnerable to which attack because it provides no authentication of the communicating parties?
Not quite. Try another option.
Answer: Man-in-the-middle attack
Without authentication, an active adversary can intercept and substitute the public values with each party, establishing separate shared keys with each and relaying messages, i.e., a man-in-the-middle attack.
Question 44 of 60 · the RSA cryptosystem · Hard
For RSA with and , the public exponent is . What is the private exponent ?
Not quite. Try another option.
Answer:
. We need . Solving gives since .
Question 45 of 60 · RSA encryption · Hard
Using RSA with and , the ciphertext for message is computed as . What is ?
Not quite. Try another option.
Answer:
Computing via repeated squaring yields . This is the standard RSA encryption of under the well-known key pair .
Question 46 of 60 · RSA decryption · Hard
With RSA parameters and , decrypting ciphertext gives which plaintext?
Not quite. Try another option.
Answer:
Decryption computes , recovering the original message. This confirms was the encryption of .
Question 47 of 60 · RSA decryption · Hard
Why does RSA decryption using the Chinese Remainder Theorem (CRT) provide a significant speedup over direct modular exponentiation with modulo ?
Not quite. Try another option.
Answer: Exponentiations are done modulo and separately, each with smaller moduli and reduced exponents
CRT decryption computes and with half-size moduli and reduced exponents, then recombines. This yields roughly a fourfold speedup over exponentiation mod .
Question 48 of 60 · the RSA cryptosystem · Hard
If an attacker learns both and for an RSA modulus, how can they recover the primes and ?
Not quite. Try another option.
Answer: By solving the quadratic
Since , we get and . The primes are the roots of , solvable via the quadratic formula.
Question 49 of 60 · ElGamal cryptosystem · Hard
In ElGamal encryption over with , generator , private key (so public ), a sender encrypts using ephemeral . What is the ciphertext pair ?
Not quite. Try another option.
Answer:
and . Thus .
Question 50 of 60 · ElGamal cryptosystem · Hard
In the ElGamal cryptosystem, what is the security consequence of reusing the same ephemeral key to encrypt two different messages and ?
Not quite. Try another option.
Answer: An attacker who learns can recover from the ratio
With shared , both share the same , so . Knowing one plaintext lets the attacker solve for the other, breaking confidentiality.
Question 51 of 60 · ElGamal cryptosystem · Hard
The ciphertext in ElGamal encryption is roughly twice the size of the plaintext. What is the fundamental reason for this message expansion?
Not quite. Try another option.
Answer: Each ciphertext consists of two group elements, and
ElGamal outputs a pair , each an element of . Since the plaintext occupies one such element, the ciphertext is about twice the size, causing 2:1 expansion.
Question 52 of 60 · introduction to public-key cryptography · Hard
Which property distinguishes a trapdoor one-way function, as used in public-key encryption, from an ordinary one-way function?
Not quite. Try another option.
Answer: It can be efficiently inverted only with knowledge of secret trapdoor information
A trapdoor one-way function is easy to compute and hard to invert in general, but easy to invert given secret trapdoor data (the private key). This asymmetry is the basis of public-key encryption.
Question 53 of 60 · introduction to public-key cryptography · Hard
A hybrid cryptosystem combines public-key and symmetric-key cryptography. What is the primary motivation for this design?
Not quite. Try another option.
Answer: Public-key encryption is slow, so it is used only to exchange a fast symmetric session key
Asymmetric operations are computationally expensive. Hybrid schemes use public-key crypto to securely transport a symmetric session key, then encrypt bulk data with the much faster symmetric cipher.
Question 54 of 60 · the RSA cryptosystem · Hard
In a common-modulus attack, two users share modulus with coprime public exponents and . If the same message is encrypted as and , how can an attacker recover ?
Not quite. Try another option.
Answer: Find with , then compute
Since , Bézout gives . Then , recovering the plaintext without factoring.
Question 55 of 60 · RSA encryption · Hard
Why is textbook (unpadded) RSA encryption insecure, being only deterministic and homomorphic under multiplication?
Not quite. Try another option.
Answer: Identical plaintexts always yield identical ciphertexts and enables malleability
Determinism allows chosen-plaintext distinguishing and dictionary attacks on small message spaces, while the multiplicative homomorphism makes it malleable. Padding schemes like OAEP address these flaws.
Question 56 of 60 · RSA decryption · Hard
In a low-exponent broadcast (Håstad) attack, the same message is sent to three recipients with and pairwise coprime moduli . How is recovered?
Not quite. Try another option.
Answer: Use CRT to find , then take the integer cube root
Since , CRT reconstructs the exact integer modulo the product. Because there is no wraparound, taking an ordinary integer cube root recovers directly.
Question 57 of 60 · Diffie-Hellman key exchange · Hard
To prevent small-subgroup confinement attacks in Diffie-Hellman, one uses a safe prime (with prime) and a generator of the order- subgroup. What does this ensure?
Not quite. Try another option.
Answer: Shared secrets lie in a large prime-order subgroup, so an attacker cannot force them into a small subgroup
Working in the prime-order- subgroup means valid public values have order . An attacker cannot confine the shared secret to a small subgroup to leak private-key bits, blocking small-subgroup attacks.
Question 58 of 60 · ElGamal cryptosystem · Hard
The semantic security of ElGamal encryption relies on which assumption being intractable?
Not quite. Try another option.
Answer: The Decisional Diffie-Hellman (DDH) assumption
ElGamal is IND-CPA secure precisely when DDH holds in the underlying group: an adversary cannot distinguish from , which hides the masking factor .
Question 59 of 60 · the RSA cryptosystem · Hard
Fermat's factorization method efficiently breaks an RSA modulus under which condition on the primes?
Not quite. Try another option.
Answer: When and are very close to each other, so is small
Fermat's method writes and searches near . When and are close, is near , so the search terminates quickly, factoring fast.
Question 60 of 60 · RSA encryption · Hard
For RSA to correctly encrypt and decrypt all messages, the public exponent must satisfy which condition relative to ?
Not quite. Try another option.
Answer: , so that has a multiplicative inverse modulo
The private exponent exists only if is invertible modulo , which requires . Then guarantees correct decryption for all valid messages.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of MTH381 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of MTH381 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.