1In public-key cryptography, how many keys does each user typically have?
introduction to public-key cryptography
Easy
A.Two keys: a public key and a private key
B.One shared secret key
C.Three keys for each session
D.No keys, only passwords
Correct Answer: Two keys: a public key and a private key
Explanation:
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.
Incorrect! Try again.
2Which term is another name for public-key cryptography?
introduction to public-key cryptography
Easy
A.Stream cryptography
B.Symmetric cryptography
C.Hash cryptography
D.Asymmetric cryptography
Correct Answer: Asymmetric cryptography
Explanation:
It is called asymmetric because encryption and decryption use different keys, unlike symmetric cryptography which uses one shared key.
Incorrect! Try again.
3In a public-key system, which key is used to encrypt a message intended for a recipient?
introduction to public-key cryptography
Easy
A.The sender's private key
B.A shared symmetric key
C.The recipient's private key
D.The recipient's public key
Correct Answer: The recipient's public key
Explanation:
To send a confidential message, the sender encrypts with the recipient's public key; only the recipient's private key can decrypt it.
Incorrect! Try again.
4Public-key cryptography helps solve which major problem of symmetric cryptography?
introduction to public-key cryptography
Easy
A.Lack of encryption algorithms
B.Key distribution over insecure channels
C.Excessive key length
D.Slow hashing speed
Correct Answer: Key distribution over insecure channels
Explanation:
Because public keys can be shared openly, users do not need a secure channel to exchange a secret key beforehand.
Incorrect! Try again.
5What is the main purpose of the Diffie-Hellman protocol?
Diffie-Hellman key exchange
Easy
A.To securely establish a shared secret key
B.To hash passwords
C.To compress encrypted data
D.To digitally sign documents
Correct Answer: To securely establish a shared secret key
Explanation:
Diffie-Hellman allows two parties to agree on a shared secret over an insecure channel without transmitting the secret itself.
Incorrect! Try again.
6The security of the Diffie-Hellman key exchange is based on the difficulty of which problem?
Diffie-Hellman key exchange
Easy
A.Integer factorization
B.Matrix inversion
C.The discrete logarithm problem
D.Sorting large arrays
Correct Answer: The discrete logarithm problem
Explanation:
Given , recovering (the discrete logarithm) is computationally hard, which secures the protocol.
Incorrect! Try again.
7In Diffie-Hellman, if is the prime and is the generator, what does Alice send to Bob given her secret ?
Diffie-Hellman key exchange
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Alice computes and sends ; Bob does the same with his secret, and both derive the same shared value.
Incorrect! Try again.
8After exchanging values, both parties in Diffie-Hellman compute the same shared secret of the form:
Diffie-Hellman key exchange
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Alice computes and Bob computes , so both arrive at the same shared secret .
Incorrect! Try again.
9The security of RSA relies on the difficulty of which mathematical problem?
the RSA cryptosystem
Easy
A.Finding shortest paths
B.Solving linear equations
C.Computing discrete logarithms
D.Factoring large composite numbers
Correct Answer: Factoring large composite numbers
Explanation:
RSA's strength comes from the difficulty of factoring the large modulus into its prime factors.
Incorrect! Try again.
10In RSA, the modulus is computed as:
the RSA cryptosystem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The modulus is the product of two large distinct primes: , used in both the public and private keys.
Incorrect! Try again.
11In RSA, Euler's totient for (with prime) equals:
the RSA cryptosystem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
For the product of two distinct primes, , which is used to compute the private exponent.
Incorrect! Try again.
12Which pair of values forms the public key in RSA?
the RSA cryptosystem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The public key consists of the encryption exponent and the modulus ; the private key uses and .
Incorrect! Try again.
13In RSA key generation, the public exponent must satisfy which condition with respect to ?
the RSA cryptosystem
Easy
A.
B.
C. divides
D.
Correct Answer:
Explanation:
The exponent must be coprime to so that its modular inverse exists.
Incorrect! Try again.
14In RSA, a plaintext message is encrypted to ciphertext using which formula?
RSA encryption
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Encryption raises the message to the public exponent modulo : .
Incorrect! Try again.
15Which key is used by the sender to perform RSA encryption of a confidential message?
RSA encryption
Easy
A.The sender's private key
B.The recipient's public key
C.The recipient's private key
D.The sender's public key
Correct Answer: The recipient's public key
Explanation:
For confidentiality, the sender encrypts with the recipient's public key so only the recipient can decrypt.
Incorrect! Try again.
16Using the public key , what is the ciphertext for the message ?
RSA encryption
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
.
Incorrect! Try again.
17In RSA, ciphertext is decrypted back to plaintext using which formula?
RSA decryption
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Decryption raises the ciphertext to the private exponent modulo : .
Incorrect! Try again.
18Which key is required to perform RSA decryption?
RSA decryption
Easy
A.The generator
B.A shared session key
C.The public key
D.The private key
Correct Answer: The private key
Explanation:
Only the holder of the private key (containing ) can decrypt a message encrypted with the matching public key.
Incorrect! Try again.
19The ElGamal cryptosystem's security is based on the hardness of which problem?
ElGamal cryptosystem
Easy
A.The knapsack problem
B.Graph coloring
C.Integer factorization
D.The discrete logarithm problem
Correct Answer: The discrete logarithm problem
Explanation:
Like Diffie-Hellman, ElGamal relies on the difficulty of computing discrete logarithms in a finite field.
Incorrect! Try again.
20A key feature of ElGamal encryption is that it is:
ElGamal cryptosystem
Easy
A.Based on factoring like RSA
B.Probabilistic, producing different ciphertexts for the same message
C.Deterministic, always giving the same ciphertext
D.Symmetric, using one shared key
Correct Answer: Probabilistic, producing different ciphertexts for the same message
Explanation:
ElGamal uses a random value during encryption, so encrypting the same plaintext twice yields different ciphertexts.
Incorrect! Try again.
21In a public-key cryptosystem, if Alice wants to send a confidential message to Bob, which key does she use for encryption?
introduction to public-key cryptography
Medium
A.Bob's public key
B.Alice's private key
C.Alice's public key
D.Bob's private key
Correct Answer: Bob's public key
Explanation:
For confidentiality, the sender encrypts with the recipient's public key so that only the recipient, who holds the matching private key, can decrypt.
Incorrect! Try again.
22What is the primary security assumption that makes RSA computationally secure?
introduction to public-key cryptography
Medium
A.Difficulty of factoring large integers
B.Difficulty of computing modular addition
C.Difficulty of generating random numbers
D.Difficulty of sorting large arrays
Correct Answer: Difficulty of factoring large integers
Explanation:
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.
Incorrect! Try again.
23In public-key cryptography, how is a digital signature typically created by a sender?
introduction to public-key cryptography
Medium
A.By encrypting the message digest with the sender's private key
B.By encrypting the full message with the receiver's private key
C.By encrypting the message digest with the receiver's public key
D.By encrypting the full message with the sender's public key
Correct Answer: By encrypting the message digest with the sender's private key
Explanation:
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.
Incorrect! Try again.
24In the Diffie-Hellman key exchange with public parameters and , Alice chooses secret . What is her public value ?
Diffie-Hellman key exchange
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Compute , since and .
Incorrect! Try again.
25Which mathematical problem must be hard for the Diffie-Hellman key exchange to remain secure?
Diffie-Hellman key exchange
Medium
A.The traveling salesman problem
B.The discrete logarithm problem
C.The subset-sum problem
D.The integer factorization problem
Correct Answer: The discrete logarithm problem
Explanation:
An eavesdropper who sees and would need to compute a discrete logarithm to recover or , which is believed to be computationally hard.
Incorrect! Try again.
26Using , , Alice's public value , and Bob's secret , what shared secret does Bob compute as ?
Diffie-Hellman key exchange
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Compute . Since , , ; then .
Incorrect! Try again.
27The Diffie-Hellman key exchange is vulnerable to which of the following attacks if no authentication is used?
Diffie-Hellman key exchange
Medium
A.Chosen-plaintext attack
B.Man-in-the-middle attack
C.Birthday attack on the hash
D.Timing attack on factoring
Correct Answer: Man-in-the-middle attack
Explanation:
Without authentication, an attacker can intercept and substitute public values, establishing separate keys with each party while relaying messages.
Incorrect! Try again.
28In RSA, suppose and . What is the value of Euler's totient ?
the RSA cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
With , .
Incorrect! Try again.
29In RSA, the public exponent must satisfy which condition relative to ?
the RSA cryptosystem
Medium
A.
B. divides
C. is a prime factor of
D.
Correct Answer:
Explanation:
The public exponent must be coprime to so that a modular inverse exists, guaranteeing the decryption exponent can be computed.
Incorrect! Try again.
30Given and public exponent , what is the private exponent such that ?
the RSA cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
We need . Testing : .
Incorrect! Try again.
31Why must the two primes and in RSA be kept secret?
the RSA cryptosystem
Medium
A.Knowing them speeds up encryption for attackers
B.Knowing them allows computing and hence the private key
C.Knowing them reveals the plaintext directly
D.Knowing them changes the value of
Correct Answer: Knowing them allows computing and hence the private key
Explanation:
If and are known, an attacker computes and then finds , the private key, breaking the system.
Incorrect! Try again.
32Using RSA with and , what is the ciphertext for the plaintext message ?
RSA encryption
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Compute .
Incorrect! Try again.
33In RSA encryption with public key , which formula produces the ciphertext from plaintext ?
RSA encryption
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
RSA encryption raises the message to the public exponent modulo : .
Incorrect! Try again.
34Using RSA with and , what is the ciphertext for plaintext ?
RSA encryption
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Compute .
Incorrect! Try again.
35What is a critical requirement on the plaintext before RSA encryption with modulus ?
RSA encryption
Medium
A. must be a prime number
B. must be less than
C. must equal
D. must be greater than
Correct Answer: must be less than
Explanation:
The plaintext must satisfy ; otherwise the modular reduction loses information and decryption fails to recover .
Incorrect! Try again.
36Using RSA with , , and ciphertext , what is the recovered plaintext ?
RSA decryption
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Compute . Since , .
Incorrect! Try again.
37In RSA decryption, which key component is used to recover the plaintext from the ciphertext?
RSA decryption
Medium
A.The public exponent
B.The prime alone
C.The private exponent
D.The totient
Correct Answer: The private exponent
Explanation:
Decryption computes using the private exponent , which only the key owner knows.
Incorrect! Try again.
38Using RSA with , , and ciphertext , what plaintext is recovered? (Given , .)
RSA decryption
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Since was the encryption, decryption with the correct recovers .
Incorrect! Try again.
39In the ElGamal cryptosystem, on what hard problem is its security based?
ElGamal cryptosystem
Medium
A.The discrete logarithm problem
B.The knapsack problem
C.The quadratic residue problem
D.The integer factorization problem
Correct Answer: The discrete logarithm problem
Explanation:
ElGamal encryption derives its security from the difficulty of solving the discrete logarithm problem in a large cyclic group.
Incorrect! Try again.
40In ElGamal encryption, the ciphertext consists of which pair of components?
ElGamal cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
For a random , the sender computes and , where is the recipient's public key.
Incorrect! Try again.
41In a Diffie-Hellman key exchange with prime and generator , Alice picks private key and Bob picks private key . What is the shared secret key?
Diffie-Hellman key exchange
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Alice sends and Bob sends . Shared secret , which equals .
Incorrect! Try again.
42Which computational problem must be hard for the Diffie-Hellman key exchange to be secure against a passive eavesdropper who observes , , , and ?
Diffie-Hellman key exchange
Hard
A.The integer factorization problem
B.The subset sum problem
C.The Computational Diffie-Hellman (CDH) problem
D.The quadratic residuosity problem
Correct Answer: The Computational Diffie-Hellman (CDH) problem
Explanation:
A passive attacker sees and and must compute without knowing or . This is exactly the CDH problem, whose assumed hardness underlies DH security.
Incorrect! Try again.
43The basic Diffie-Hellman protocol is vulnerable to which attack because it provides no authentication of the communicating parties?
Diffie-Hellman key exchange
Hard
A.Man-in-the-middle attack
B.Chosen-ciphertext attack
C.Timing side-channel attack
D.Birthday attack
Correct Answer: Man-in-the-middle attack
Explanation:
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.
Incorrect! Try again.
44For RSA with and , the public exponent is . What is the private exponent ?
the RSA cryptosystem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
. We need . Solving gives since .
Incorrect! Try again.
45Using RSA with and , the ciphertext for message is computed as . What is ?
RSA encryption
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Computing via repeated squaring yields . This is the standard RSA encryption of under the well-known key pair .
Incorrect! Try again.
46With RSA parameters and , decrypting ciphertext gives which plaintext?
RSA decryption
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Decryption computes , recovering the original message. This confirms was the encryption of .
Incorrect! Try again.
47Why does RSA decryption using the Chinese Remainder Theorem (CRT) provide a significant speedup over direct modular exponentiation with modulo ?
RSA decryption
Hard
A.Exponentiations are done modulo and separately, each with smaller moduli and reduced exponents
B.It removes the need to compute during decryption
C.It converts the private exponent into a public one to skip a step
D.It replaces exponentiation with a single modular inversion
Correct Answer: Exponentiations are done modulo and separately, each with smaller moduli and reduced exponents
Explanation:
CRT decryption computes and with half-size moduli and reduced exponents, then recombines. This yields roughly a fourfold speedup over exponentiation mod .
Incorrect! Try again.
48If an attacker learns both and for an RSA modulus, how can they recover the primes and ?
the RSA cryptosystem
Hard
A.By computing directly
B.By taking and
C.By factoring into its prime powers
D.By solving the quadratic
Correct Answer: By solving the quadratic
Explanation:
Since , we get and . The primes are the roots of , solvable via the quadratic formula.
Incorrect! Try again.
49In ElGamal encryption over with , generator , private key (so public ), a sender encrypts using ephemeral . What is the ciphertext pair ?
ElGamal cryptosystem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
and . Thus .
Incorrect! Try again.
50In the ElGamal cryptosystem, what is the security consequence of reusing the same ephemeral key to encrypt two different messages and ?
ElGamal cryptosystem
Hard
A.An attacker who learns can recover from the ratio
B.The private key is immediately exposed to any observer
C.Both ciphertexts decrypt to the same value regardless of the messages
D.The modulus can be factored from the two ciphertext pairs
Correct Answer: An attacker who learns can recover from the ratio
Explanation:
With shared , both share the same , so . Knowing one plaintext lets the attacker solve for the other, breaking confidentiality.
Incorrect! Try again.
51The ciphertext in ElGamal encryption is roughly twice the size of the plaintext. What is the fundamental reason for this message expansion?
ElGamal cryptosystem
Hard
A.The plaintext is padded to twice its length before encryption
B.Both the public and private keys are appended to the ciphertext
C.Each ciphertext consists of two group elements, and
D.The message is encrypted twice using two independent ephemeral keys
Correct Answer: Each ciphertext consists of two group elements, and
Explanation:
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.
Incorrect! Try again.
52Which property distinguishes a trapdoor one-way function, as used in public-key encryption, from an ordinary one-way function?
introduction to public-key cryptography
Hard
A.It maps arbitrarily long inputs to fixed-length outputs deterministically
B.It requires the same key for both evaluation and inversion
C.It is impossible to invert even with the secret key
D.It can be efficiently inverted only with knowledge of secret trapdoor information
Correct Answer: It can be efficiently inverted only with knowledge of secret trapdoor information
Explanation:
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.
Incorrect! Try again.
53A hybrid cryptosystem combines public-key and symmetric-key cryptography. What is the primary motivation for this design?
introduction to public-key cryptography
Hard
A.Symmetric encryption cannot protect messages longer than the key length
B.Public-key encryption is slow, so it is used only to exchange a fast symmetric session key
C.Public-key algorithms cannot decrypt data they themselves encrypted
D.Symmetric keys must be published while asymmetric keys remain private
Correct Answer: Public-key encryption is slow, so it is used only to exchange a fast symmetric session key
Explanation:
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.
Incorrect! Try again.
54In 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 ?
the RSA cryptosystem
Hard
A.Factor using and then decrypt normally
B.Compute
C.Compute
D.Find with , then compute
Correct Answer: Find with , then compute
Explanation:
Since , Bézout gives . Then , recovering the plaintext without factoring.
Incorrect! Try again.
55Why is textbook (unpadded) RSA encryption insecure, being only deterministic and homomorphic under multiplication?
RSA encryption
Hard
A.Decryption fails whenever the message exceeds half the modulus size
B.The ciphertext is always smaller than the plaintext, leaking information
C.Identical plaintexts always yield identical ciphertexts and enables malleability
D.The public exponent can be recovered directly from any ciphertext
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.
Incorrect! Try again.
56In a low-exponent broadcast (Håstad) attack, the same message is sent to three recipients with and pairwise coprime moduli . How is recovered?
RSA decryption
Hard
A.Use CRT to find , then take the integer cube root
B.Average the three ciphertexts and reduce modulo the smallest
C.Multiply all three ciphertexts and take the ninth root modulo
D.Compute the pairwise of the three moduli to factor them
Correct Answer: Use CRT to find , then take the integer cube root
Explanation:
Since , CRT reconstructs the exact integer modulo the product. Because there is no wraparound, taking an ordinary integer cube root recovers directly.
Incorrect! Try again.
57To 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?
Diffie-Hellman key exchange
Hard
A.Both private keys are guaranteed to be quadratic residues modulo
B.The discrete logarithm becomes solvable only by the legitimate parties
C.The modulus can no longer be factored by any known algorithm
D.Shared secrets lie in a large prime-order subgroup, so an attacker cannot force them into a small subgroup
Correct Answer: Shared secrets lie in a large prime-order subgroup, so an attacker cannot force them into a small subgroup
Explanation:
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.
Incorrect! Try again.
58The semantic security of ElGamal encryption relies on which assumption being intractable?
ElGamal cryptosystem
Hard
A.The integer factorization assumption
B.The Decisional Diffie-Hellman (DDH) assumption
C.The elliptic-curve pairing assumption
D.The RSA problem
Correct Answer: The Decisional Diffie-Hellman (DDH) assumption
Explanation:
ElGamal is IND-CPA secure precisely when DDH holds in the underlying group: an adversary cannot distinguish from , which hides the masking factor .
Incorrect! Try again.
59Fermat's factorization method efficiently breaks an RSA modulus under which condition on the primes?
the RSA cryptosystem
Hard
A.When is chosen smaller than both and
B.When and differ by exactly a factor of two
C.When and are both Sophie Germain primes
D.When and are very close to each other, so is small
Correct Answer: When and are very close to each other, so is small
Explanation:
Fermat's method writes and searches near . When and are close, is near , so the search terminates quickly, factoring fast.
Incorrect! Try again.
60For RSA to correctly encrypt and decrypt all messages, the public exponent must satisfy which condition relative to ?
RSA encryption
Hard
A. must be a prime factor of
B. and must share exactly one common prime factor
C., so that has a multiplicative inverse modulo
D. must equal for invertibility
Correct Answer: , so that has a multiplicative inverse modulo
Explanation:
The private exponent exists only if is invertible modulo , which requires . Then guarantees correct decryption for all valid messages.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →