The largest positive integer that divides both and is .
Incorrect! Try again.
3Which of the following numbers is prime?
Prime and Primality Testing
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
has exactly two positive divisors: and .
Incorrect! Try again.
4What is the main purpose of a primality test?
Prime and Primality Testing
Easy
A.To encrypt a plaintext message
B.To identify a prime number
C.To compress a ciphertext block
D.To calculate a private key
Correct Answer: To identify a prime number
Explanation:
A primality test determines whether a given integer is prime.
Incorrect! Try again.
5What is the prime factorization of ?
Factorization
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Both and are prime, and their product is .
Incorrect! Try again.
6Which cryptosystem relies strongly on the difficulty of factoring a large product of primes?
Factorization
Easy
A.Vigenere cipher
B.RSA cryptosystem
C.Caesar cipher
D.One-time pad
Correct Answer: RSA cryptosystem
Explanation:
RSA security is closely related to the difficulty of factoring its large modulus into prime factors.
Incorrect! Try again.
7The Chinese Remainder Theorem is commonly applied when the moduli are:
Chinese Remainder Theorem
Easy
A.All identical
B.Pairwise coprime
C.Pairwise negative
D.All even
Correct Answer: Pairwise coprime
Explanation:
The standard theorem guarantees a unique solution modulo the product when the moduli are pairwise coprime.
Incorrect! Try again.
8If the moduli are pairwise coprime, the Chinese Remainder Theorem combines several congruences into:
Chinese Remainder Theorem
Easy
A.One public exponent
B.One prime factorization
C.One combined congruence
D.One encrypted message
Correct Answer: One combined congruence
Explanation:
The theorem provides a solution that satisfies all the given congruences simultaneously.
Incorrect! Try again.
9How many different keys are normally used by a symmetric cryptosystem for encryption and decryption?
Difference of Symmetric and Assymetric Cryptosystems
Easy
A.Three session keys
B.One shared key
C.Four public keys
D.Two related keys
Correct Answer: One shared key
Explanation:
Symmetric cryptography normally uses the same shared secret key for encryption and decryption.
Incorrect! Try again.
10Which pair of keys is used in an asymmetric cryptosystem?
Difference of Symmetric and Assymetric Cryptosystems
Easy
A.Temporary and permanent keys
B.Primary and backup keys
C.Public and private keys
D.Session and master keys
Correct Answer: Public and private keys
Explanation:
Asymmetric cryptography uses a public key and a mathematically related private key.
Incorrect! Try again.
11In RSA, if and , what is the modulus ?
RSA Cryptosystem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The RSA modulus is , so .
Incorrect! Try again.
12Which pair normally forms an RSA public key?
RSA Cryptosystem
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
An RSA public key contains the modulus and the public exponent .
Incorrect! Try again.
13Which RSA value must be kept private by the key owner?
RSA Cryptosystem
Easy
A.Ciphertext
B.Public exponent
C.Private exponent
D.Modulus
Correct Answer: Private exponent
Explanation:
The exponent is used for private-key operations such as decrypting an RSA ciphertext.
Incorrect! Try again.
14The security of the ElGamal cryptosystem is mainly associated with which difficult problem?
ElGamal Cryptosystem
Easy
A.Discrete logarithm problem
B.Matrix transposition problem
C.Integer addition problem
D.String matching problem
Correct Answer: Discrete logarithm problem
Explanation:
ElGamal is based on the computational difficulty of solving discrete logarithms in a suitable group.
Incorrect! Try again.
15What does ElGamal encryption use to help produce different ciphertexts for the same message?
ElGamal Cryptosystem
Easy
A.A constant plaintext block
B.A fixed public message
C.A repeated private modulus
D.A random temporary value
Correct Answer: A random temporary value
Explanation:
ElGamal uses a fresh random value during encryption, making it probabilistic.
Incorrect! Try again.
16Which basic operation is used to encrypt a message in the Rabin cryptosystem?
Rabin Cryptosystem
Easy
A.Adding modulo
B.Negating modulo
C.Squaring modulo
D.Dividing modulo
Correct Answer: Squaring modulo
Explanation:
Rabin encryption is commonly expressed as .
Incorrect! Try again.
17A basic Rabin decryption typically produces how many possible square roots?
Rabin Cryptosystem
Easy
A.Four possible roots
B.Three possible roots
C.Two possible roots
D.One possible root
Correct Answer: Four possible roots
Explanation:
For a modulus formed from two suitable distinct primes, Rabin decryption typically gives four candidate plaintext roots.
Incorrect! Try again.
18What is the main purpose of the Diffie-Hellman method?
Diffie-Hellman cryptosystem
Easy
A.To factor a public modulus
B.To test a digital signature
C.To establish a shared secret
D.To compress a long message
Correct Answer: To establish a shared secret
Explanation:
Diffie-Hellman allows two parties to establish a shared secret over an insecure communication channel.
Incorrect! Try again.
19The security of basic Diffie-Hellman is mainly related to which difficult problem?
Diffie-Hellman cryptosystem
Easy
A.Discrete logarithm problem
B.Shortest path problem
C.Lossless coding problem
D.Prime counting problem
Correct Answer: Discrete logarithm problem
Explanation:
Recovering a Diffie-Hellman private value from its public value requires solving a difficult discrete logarithm problem.
Incorrect! Try again.
20After a successful Diffie-Hellman exchange, what do both participants compute?
Diffie-Hellman cryptosystem
Easy
A.The same private exponent
B.The same shared secret
C.Two unrelated moduli
D.Two public plaintexts
Correct Answer: The same shared secret
Explanation:
Each participant combines their private value with the other party's public value to obtain the same shared secret.
Incorrect! Try again.
21What is the multiplicative inverse of modulo ?
Mathematics of Asymmetric cryptography
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The inverse satisfies . Since , the inverse is .
Incorrect! Try again.
22For , which statement correctly applies Euler's theorem to every integer satisfying ?
Mathematics of Asymmetric cryptography
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , . Euler's theorem gives .
Incorrect! Try again.
23The composite number satisfies . What is the correct conclusion from this Fermat test?
Prime and Primality Testing
Medium
A. passes this test but may be composite
B. is certainly prime
C. is probably prime
D. is a factor of
Correct Answer: passes this test but may be composite
Explanation:
A composite number can pass a Fermat test for some bases. In fact, is a Carmichael number, so passing the test does not prove primality.
Incorrect! Try again.
24Apply the Miller–Rabin test to using base . Since , the test obtains and then . What does the test conclude?
Prime and Primality Testing
Medium
A. is composite
B. is a safe prime
C. is definitely prime
D. divides
Correct Answer: is composite
Explanation:
Neither nor its required squaring result equals . Therefore, base is a witness that is composite.
Incorrect! Try again.
25Using Fermat's factorization method, can be written as . Which factorization follows?
Factorization
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Using gives .
Incorrect! Try again.
26Suppose and . Which nontrivial factor is obtained from ?
Factorization
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Compute . This reveals the nontrivial factor of .
Incorrect! Try again.
27Find the smallest nonnegative integer satisfying , , and .
Chinese Remainder Theorem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
leaves remainders , , and when divided by , , and , respectively. The solution is unique modulo .
Incorrect! Try again.
28What is the smallest nonnegative solution to and ?
Chinese Remainder Theorem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
and . By the Chinese Remainder Theorem, the solution is unique modulo .
Incorrect! Try again.
29A network has users. How many keys are required for pairwise symmetric communication, compared with assigning one asymmetric key pair to each user?
Difference of Symmetric and Assymetric Cryptosystems
Medium
A. symmetric keys and asymmetric key pairs
B. symmetric keys and asymmetric key pairs
C. symmetric keys and asymmetric key pairs
D. symmetric keys and asymmetric key pairs
Correct Answer: symmetric keys and asymmetric key pairs
Explanation:
Pairwise symmetric communication requires shared keys. Asymmetric communication requires one public/private key pair per user.
Incorrect! Try again.
30Which design best combines the performance of symmetric encryption with the key-distribution benefit of asymmetric encryption?
Difference of Symmetric and Assymetric Cryptosystems
Medium
A.Encrypt the data asymmetrically and publish its private decryption key
B.Encrypt the data symmetrically and transmit its session key in plaintext
C.Encrypt the data symmetrically and encrypt its session key asymmetrically
D.Encrypt the data twice using two publicly distributed symmetric keys
Correct Answer: Encrypt the data symmetrically and encrypt its session key asymmetrically
Explanation:
Hybrid encryption uses a fast symmetric algorithm for bulk data and protects the session key with the recipient's public key.
Incorrect! Try again.
31In RSA, let , , and . What is the private exponent ?
RSA Cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
. The value satisfies , and .
Incorrect! Try again.
32For an RSA public key , what ciphertext is produced when the plaintext is ?
RSA Cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
RSA encryption gives .
Incorrect! Try again.
33An RSA system uses , private exponent , and public exponent . What signature is produced for a message hash ?
RSA Cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The signature is . Verification succeeds because .
Incorrect! Try again.
34In ElGamal, the public parameters are and . If the private key is , what is the public key component ?
ElGamal Cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The public component is .
Incorrect! Try again.
35In ElGamal with , , and public key , encrypt using the ephemeral key . What is the ciphertext ?
ElGamal Cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
. Also, .
Incorrect! Try again.
36In the Rabin cryptosystem with public modulus , what ciphertext results from encrypting ?
Rabin Cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Rabin encryption computes . Thus, .
Incorrect! Try again.
37Decrypting the Rabin ciphertext with modulus produces which set of four square roots modulo ?
Rabin Cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Each listed value squares to modulo . Rabin decryption normally produces four possible plaintext roots.
Incorrect! Try again.
38In Diffie–Hellman, the public parameters are and . If Alice's private value is , what public value does she send?
Diffie-Hellman cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Alice sends .
Incorrect! Try again.
39In Diffie–Hellman with , Alice receives Bob's public value and uses private value . What shared secret does Alice compute?
Diffie-Hellman cryptosystem
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Alice computes .
Incorrect! Try again.
40Why is unauthenticated Diffie–Hellman vulnerable to a man-in-the-middle attack?
Diffie-Hellman cryptosystem
Medium
A.It always uses a modulus that can be factored easily
B.It transmits both private values with each message
C.It does not verify who supplied each public value
D.It generates identical public values for every participant
Correct Answer: It does not verify who supplied each public value
Explanation:
Basic Diffie–Hellman establishes a shared secret but does not authenticate the exchanged public values. An attacker can substitute values and establish separate secrets with both parties.
Incorrect! Try again.
41Let . What is the smallest positive integer such that for every satisfying ?
Mathematics of Asymmetric cryptography
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The required value is the Carmichael function: .
Incorrect! Try again.
42Consider the power map on . What is the smallest positive exponent such that for every unit ?
Mathematics of Asymmetric cryptography
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , the inverse exponent satisfies . The smallest solution is .
Incorrect! Try again.
43Apply one Miller–Rabin round to using base . Since , let and . Which result and conclusion are correct?
Prime and Primality Testing
Hard
A.; the round accepts as probably prime
B.; the round accepts as probably prime
C.; the round proves composite
D.; the round accepts as probably prime
Correct Answer: ; the round proves composite
Explanation:
Here and . Thus is a nontrivial square root of , which proves compositeness.
Incorrect! Try again.
44Fermat's factorization method searches for . Starting with , which factorization is first obtained?
Factorization
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
At , . Hence the factors are and .
Incorrect! Try again.
45Pollard's method is applied to with base and exponent . What does return?
Factorization
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Because divides , . The corresponding condition does not hold modulo , so the gcd reveals .
Incorrect! Try again.
46Determine the complete solution to the generalized CRT system , , and .
Chinese Remainder Theorem
Hard
A.
B.
C.The system has no solution
D.
Correct Answer:
Explanation:
The first two congruences combine consistently to . Since , the complete solution is .
Incorrect! Try again.
47A system must securely transmit a multi-gigabyte file to a recipient whose authenticated public key is known. Which design best combines the properties of symmetric and asymmetric cryptography?
Difference of Symmetric and Assymetric Cryptosystems
Hard
A.Hash the file, encrypt the hash asymmetrically, and transmit the file in plaintext
B.Derive a symmetric key directly from the recipient's publicly available encryption key
C.Encrypt the entire file directly with RSA under the recipient's public key
D.Encrypt a random session key asymmetrically and protect the file with authenticated symmetric encryption
Correct Answer: Encrypt a random session key asymmetrically and protect the file with authenticated symmetric encryption
Explanation:
Hybrid encryption uses asymmetric cryptography for key establishment and efficient authenticated symmetric encryption for bulk data.
Incorrect! Try again.
48Why can a valid MAC generated with a shared symmetric key generally not provide nonrepudiation to an independent third party?
Difference of Symmetric and Assymetric Cryptosystems
Hard
A.A MAC authenticates confidentiality but does not authenticate integrity
B.Either holder of the shared key could have generated the valid MAC
C.Symmetric keys cannot be used with collision-resistant hash functions
D.A third party cannot recompute a MAC even when given the shared key
Correct Answer: Either holder of the shared key could have generated the valid MAC
Explanation:
Because both parties know the same MAC key, either could create the tag. A digital signature instead separates the private signing key from the public verification key.
Incorrect! Try again.
49The same invertible plaintext is encrypted under a common RSA modulus with exponents and , producing and . Since , which expression recovers ?
RSA Cryptosystem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Substitution gives . This is the RSA common-modulus attack.
Incorrect! Try again.
50An RSA-CRT signature is correct modulo both and . A faulty signature is correct modulo but incorrect modulo . Assuming the faulty residue is not accidentally correct, what does reveal?
RSA Cryptosystem
Hard
A.The factor
B.The factor
C.The value
D.The private exponent
Correct Answer: The factor
Explanation:
Because but , the difference is divisible by but not by . Its gcd with is therefore .
Incorrect! Try again.
51For textbook RSA, an attacker has ciphertext and access to a decryption oracle that refuses only . The attacker chooses invertible and submits , receiving . How is recovered?
RSA Cryptosystem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
RSA's multiplicative property gives . Multiplying by recovers the original plaintext.
Incorrect! Try again.
52The same unpadded message is RSA-encrypted with exponent under three pairwise coprime moduli . Under which condition does Håstad's broadcast attack recover directly?
RSA Cryptosystem
Hard
A. and all three RSA moduli share one prime factor
B. and the ciphertexts correspond to the same integer message
C. and the three private exponents are pairwise relatively prime
D. and each public exponent is relatively prime to
Correct Answer: and the ciphertexts correspond to the same integer message
Explanation:
CRT reconstructs modulo . If is smaller than that product, the reconstructed value is the exact integer cube.
Incorrect! Try again.
53Two ElGamal ciphertexts under the same public key reuse nonce : and . If is known and all values are in the message group, how is recovered?
ElGamal Cryptosystem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The second-component ratio is . Rearranging gives .
Incorrect! Try again.
54In a prime-order ElGamal-style signature, . The same nonce produces signatures and for distinct hashes and . Which formulas recover and then ?
ElGamal Cryptosystem
Hard
A. and
B. and
C. and
D. and
Correct Answer: and
Explanation:
Subtracting the two signature equations gives . Once is known, reveals .
Incorrect! Try again.
55Let and be ElGamal ciphertexts in a multiplicative group. What plaintext and effective nonce result from componentwise multiplication?
ElGamal Cryptosystem
Hard
A.Plaintext with nonce
B.Plaintext with nonce
C.Plaintext with nonce
D.Plaintext with nonce
Correct Answer: Plaintext with nonce
Explanation:
The product is , which is a valid encryption of using the summed nonce.
Incorrect! Try again.
56In the Rabin cryptosystem with , a ciphertext is . What are all square roots of modulo ?
Rabin Cryptosystem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Modulo , the roots are and ; modulo , they are and . CRT combines these choices into modulo .
Incorrect! Try again.
57Let be a Rabin modulus. An attacker chooses invertible , submits to a square-root oracle, and receives a root satisfying . Which computation factors ?
Rabin Cryptosystem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Since , is divisible by . A nontrivial root pair makes a proper factor.
Incorrect! Try again.
58In Diffie–Hellman with , , Alice chooses , and Bob chooses . Which tuple correctly gives , , and the shared key ?
Diffie-Hellman cryptosystem
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The public values are and . Both parties derive .
Incorrect! Try again.
59A Diffie–Hellman implementation uses the order- subgroup of , where and . It receives the public value . What should subgroup validation conclude?
Diffie-Hellman cryptosystem
Hard
A.Accept, because lies numerically between and
B.Accept, because every nonzero value modulo has order
C.Reject, because rather than
D.Reject, because
Correct Answer: Reject, because rather than
Explanation:
A valid element of the order- subgroup must satisfy . Since , it is outside the intended subgroup.
Incorrect! Try again.
60Unauthenticated ephemeral Diffie–Hellman is vulnerable to an active man-in-the-middle attack. Which modification most directly prevents substitution of the exchanged ephemeral public values?
Diffie-Hellman cryptosystem
Hard
A.Sign the identities, session context, and both ephemeral public values
B.Hash each ephemeral public value before sending it over the channel
C.Increase the modulus size while retaining unauthenticated key exchange
D.Reuse the same private exponent so peers can recognize later sessions
Correct Answer: Sign the identities, session context, and both ephemeral public values
Explanation:
Signatures bind the ephemeral shares to authenticated identities and the current session, preventing an attacker from replacing either share undetected.
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 →