RSA Public-Key Cryptography
- 54Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What makes RSA a public-key cryptosystem?
What makes RSA a public-key cryptosystem?
54 questions
- 1
What makes RSA a public-key cryptosystem?
- A
The sender and receiver share a secret key before exchanging messages
- B
The receiver publishes both the encryption key and the decryption key
- C
The sender encrypts messages using a key that changes after every transmission
- D
The receiver publishes information that anyone can use to encrypt a message, while retaining secret information needed to decrypt it
Correct answer
DThe receiver publishes information that anyone can use to encrypt a message, while retaining secret information needed to decrypt it
Explanation
RSA allows a receiver to publish a public key for encryption while keeping a separate private key secret for decryption.
- A
- 2
What unusual communication advantage does a public-key cryptosystem provide?
- A
A sender can make a message secret by hiding the public key from other people
- B
A receiver can decrypt messages without having any secret information
- C
A sender can send a secret message to a receiver without prior contact or a previously shared secret
- D
A sender can prevent the receiver from identifying who sent a message
Correct answer
CA sender can send a secret message to a receiver without prior contact or a previously shared secret
Explanation
Anyone can use the receiver's public information to encrypt a message, so the sender does not need to arrange a shared secret in advance.
- A
- 3
In the RSA setup described, who is intended to be able to decrypt a message encrypted with the receiver's public key?
- A
Any sender who knows the receiver's public key
- B
Only a sender who has contacted the receiver beforehand
- C
Anyone who can see the encrypted message
- D
Only the receiver, who holds the corresponding private key
Correct answer
DOnly the receiver, who holds the corresponding private key
Explanation
The public key is available to senders for encryption, but the receiver keeps the private key needed to decrypt.
- A
- 4
Why does public-key encryption seem paradoxical at first?
- A
The receiver must publish the private key before the sender can encrypt
- B
The sender and receiver use identical keys but are not allowed to communicate
- C
A secret message can be sent even though the encryption information and transmitted ciphertext are publicly visible
- D
A message can be encrypted only if its contents are already known to the receiver
Correct answer
CA secret message can be sent even though the encryption information and transmitted ciphertext are publicly visible
Explanation
The apparent paradox is that secrecy can be achieved even when the public encryption information and the ciphertext can be seen by everyone.
- A
- 5
What is mental chess?
- A
Using a chessboard to calculate several games simultaneously
- B
Playing chess by describing moves aloud without using a board or pieces
- C
Memorizing a chess position and reconstructing it using a computer
- D
Playing chess while concealing each move from the opponent
Correct answer
BPlaying chess by describing moves aloud without using a board or pieces
Explanation
In mental chess, players communicate moves in chess notation and play without a physical board or pieces.
- A
- 6
What ability of chess grandmasters is highlighted by the example of mental chess?
- A
They can play multiple games from memory against opponents who use boards
- B
They can play only when both players use the same physical pieces
- C
They can guarantee a win against any other grandmaster without seeing the board
- D
They can infer an opponent's hidden moves from the game's final position
Correct answer
AThey can play multiple games from memory against opponents who use boards
Explanation
The example describes grandmasters playing multiple mental games against opponents who are looking at chessboards and winning most of those games.
- A
- 7
What is the central challenge posed by the idea of mental poker?
- A
Players want to keep the rules of poker secret from the person dealing
- B
Players want to deal and play poker without trusting one player with an unfair advantage from handling the cards
- C
Players want to play poker without knowing which cards are in the deck
- D
Players want to replace poker betting with a public encryption contest
Correct answer
BPlayers want to deal and play poker without trusting one player with an unfair advantage from handling the cards
Explanation
The proposed scenario asks whether people can play poker when one participant deals, while still preserving the fairness and secrecy needed for the game.
- A
- 8
What does the mental-poker example illustrate about public-key cryptography?
- A
It can support surprising protocols in which participants manage secret information without relying on ordinary physical dealing
- B
It makes games fair by preventing participants from making strategic choices
- C
It works only for encrypting short written messages and cannot support interactive tasks
- D
It requires all participants to reveal their private keys before a game begins
Correct answer
AIt can support surprising protocols in which participants manage secret information without relying on ordinary physical dealing
Explanation
The content presents mental poker as an application of public-key cryptography, showing that the technology can enable more than ordinary message encryption.
- A
- 9
Why does knowing how to compute an injective function not automatically make its inverse easy to find?
- A
The input is unique, but searching for it from the output may require prohibitive computation
- B
The inverse is always a different function that cannot be represented mathematically
- C
An injective function has multiple possible inputs, so the inverse cannot be defined
- D
Computing a function requires secret information that is never available to an inverting algorithm
Correct answer
AThe input is unique, but searching for it from the output may require prohibitive computation
Explanation
Injectivity guarantees that an output has a unique originating input, but it does not guarantee that finding that input is computationally practical.
- A
- 10
Which description best captures a one-way function as presented in the content?
- A
A function that is hard to compute in either direction
- B
A function that produces the same output for every possible input
- C
A function that is easy to invert but difficult to compute
- D
A function that is easy to compute in one direction but hard to invert
Correct answer
DA function that is easy to compute in one direction but hard to invert
Explanation
One-way functions are described as easy to evaluate but computationally difficult to reverse.
- A
- 11
Which operation is used as an example of an easy forward computation underlying RSA?
- A
Testing every possible key until a message is readable
- B
Finding the prime factors of a large composite number
- C
Recovering a private key from a public key
- D
Multiplying two large prime numbers
Correct answer
DMultiplying two large prime numbers
Explanation
Multiplying two large primes to obtain their product is considered easy, while recovering the primes from the product is believed to be hard.
- A
- 12
What is the computational challenge associated with a number known to be the product of two large primes?
- A
Checking whether the product has an even number of digits
- B
Writing the product as a decimal number
- C
Multiplying the two primes to obtain the product
- D
Finding the two prime factors from the product
Correct answer
DFinding the two prime factors from the product
Explanation
The content contrasts easy multiplication with the apparent difficulty of factoring the resulting number into its prime components.
- A
- 13
What is the status of the claim that factoring large integers is computationally difficult?
- A
It is equivalent to proving that every number is prime
- B
It is widely believed, but the general difficulty has not been proved
- C
It has been disproved by a known efficient general factoring method
- D
It has been proved to be impossible for every computer
Correct answer
BIt is widely believed, but the general difficulty has not been proved
Explanation
The content characterizes factoring's difficulty as an open problem: it is widely believed to be hard, but this has not been theoretically settled.
- A
- 14
How does the content relate factoring to the question of whether P=NP?
- A
Factoring is stated to be harder than every problem in NP
- B
Proving factoring difficult would automatically prove that P=NP
- C
Factoring is a related open problem, but it is possible for factoring to be easy even if P=NP
- D
Factoring and P=NP are stated to be exactly the same problem
Correct answer
CFactoring is a related open problem, but it is possible for factoring to be easy even if P=NP
Explanation
The content says the problems are related in kind, but notes that factoring could be tractable without implying that P=NP.
- A
- 15
What does the content say about the relationship between one-way functions and the P=NP question?
- A
One-way functions have been proved impossible whenever P=NP
- B
The existence of one-way functions is unrelated to computational complexity
- C
The existence of one-way functions is closely related to the question
- D
One-way functions have been proved to make P=NP true
Correct answer
CThe existence of one-way functions is closely related to the question
Explanation
The content describes the existence of one-way functions as closely related to the famous open question of whether P=NP.
- A
- 16
Why do organizations use RSA despite the lack of a proof that factoring is hard?
- A
They rely on a theorem proving that every RSA ciphertext is impossible to decrypt
- B
They use RSA only when the factors of the public number are already known
- C
They rely on the strong practical belief that factoring large numbers is difficult
- D
They know that factoring has been mathematically proved impossible
Correct answer
CThey rely on the strong practical belief that factoring large numbers is difficult
Explanation
Banks, governments, and businesses rely on the widely held belief that factoring large numbers is difficult, even though the general question remains open.
- A
- 17
What does the receiver generate first when setting up RSA?
- A
A ciphertext and its corresponding message
- B
Two composite numbers whose factors are already public
- C
A public key and a second public key
- D
Two large prime numbers, p and q
Correct answer
DTwo large prime numbers, p and q
Explanation
The receiver begins by generating two substantial primes, called p and q.
- A
- 18
Why should the receiver choose the primes p and q in a way that is difficult to predict?
- A
Predictable prime selection could create a vulnerability by making the primes easier to guess
- B
Unpredictable primes ensure that the receiver can avoid using a private key
- C
Unpredictable primes make multiplication possible, whereas predictable primes cannot be multiplied
- D
Predictable primes prevent the public key from being published
Correct answer
APredictable prime selection could create a vulnerability by making the primes easier to guess
Explanation
The content warns that a predictable procedure for choosing the primes would be a vulnerability, and recommends choosing them more or less randomly.
- A
- 19
How is the RSA modulus n constructed?
- A
By multiplying the two primes, so that n=pq
- B
By multiplying the public exponent by the private exponent
- C
By subtracting the smaller prime from the larger one
- D
By adding the two primes, so that n=p+q
Correct answer
ABy multiplying the two primes, so that n=pq
Explanation
The receiver multiplies p and q to form the modulus n.
- A
- 20
What role does (p−1)(q−1) play in the RSA setup described?
- A
It is the value to which the public exponent e must be relatively prime
- B
It is the product of the public modulus and the ciphertext
- C
It is the published pair of numbers that replaces e and n
- D
It is the value that the sender uses as the plaintext message
Correct answer
AIt is the value to which the public exponent e must be relatively prime
Explanation
The receiver chooses e to be relatively prime to (p−1)(q−1), which the content identifies as Euler's function of n.
- A
- 21
Which condition must the receiver ensure when choosing the public exponent e?
- A
e must equal one of the prime factors of n
- B
e must be divisible by both p−1 and q−1
- C
e must be relatively prime to (p−1)(q−1)
- D
e must be the same number as the private key d
Correct answer
Ce must be relatively prime to (p−1)(q−1)
Explanation
The receiver selects e so that it has a multiplicative inverse modulo (p−1)(q−1); this requires the two to be relatively prime.
- A
- 22
Which information makes up the receiver's public key in the RSA procedure described?
- A
The pair (p−1,q−1)
- B
The pair (d,n)
- C
The pair (e,n)
- D
The pair (p,q)
Correct answer
CThe pair (e,n)
Explanation
The receiver publishes e and n as the public key.
- A
- 23
How is the private exponent d defined?
- A
It is the product of e and n
- B
It is the remainder when n is divided by e
- C
It is the sum of the secret primes p and q
- D
It is the multiplicative inverse of e modulo (p−1)(q−1)
Correct answer
DIt is the multiplicative inverse of e modulo (p−1)(q−1)
Explanation
The receiver computes d as the inverse of e modulo (p−1)(q−1).
- A
- 24
Why can the receiver find d once e has been chosen appropriately?
- A
Because the receiver can derive d by multiplying p and q
- B
Because d is always equal to n−e
- C
Because the sender publishes d along with the ciphertext
- D
Because the extended Euclidean algorithm can compute the required modular inverse
Correct answer
DBecause the extended Euclidean algorithm can compute the required modular inverse
Explanation
The extended Euclidean algorithm, also called the Pulverizer in the content, can find the inverse of e modulo (p−1)(q−1).
- A
- 25
What should the receiver keep secret after creating the RSA keys?
- A
The private exponent d
- B
The public modulus n
- C
The public exponent e
- D
The ciphertext sent by every sender
Correct answer
AThe private exponent d
Explanation
The receiver publishes e and n but keeps d private because it is used to decrypt messages.
- A
- 26
How should a message be represented for the RSA operation described?
- A
As a number m in the range from 1 to n
- B
As a prime number larger than n
- C
As a number that must equal the public exponent e
- D
As a pair of numbers whose product is n
Correct answer
AAs a number m in the range from 1 to n
Explanation
The sender represents the message as a number in the stated range from 1 to n.
- A
- 27
What does the content recommend if a message is too large to fit into the permitted number range?
- A
Ask the receiver to publish the factors of n
- B
Send the entire message as the private exponent
- C
Break the message into smaller pieces that fit the range
- D
Replace the message with the modulus n
Correct answer
CBreak the message into smaller pieces that fit the range
Explanation
A message that is too large can be divided into pieces that each fit within the range used by RSA.
- A
- 28
What does the sender do with the public key to encrypt a message m?
- A
Computes me modulo n
- B
Computes nm modulo e
- C
Computes md modulo n
- D
Computes em modulo d
Correct answer
AComputes me modulo n
Explanation
The sender raises the message to the public exponent e in arithmetic modulo n, producing the encrypted value.
- A
- 29
In the RSA procedure, what is the encrypted message often denoted by?
- A
p
- B
d
- C
ϕ(n)
- D
m^
Correct answer
Dm^
Explanation
The content denotes the encoded or encrypted message as m^ after computing the public-key exponentiation.
- A
- 30
How does the receiver recover a message from the encrypted value m^?
- A
Multiplies m^ by each of the primes
- B
Computes m^d modulo n
- C
Computes m^e modulo (p−1)(q−1)
- D
Divides m^ by the public exponent
Correct answer
BComputes m^d modulo n
Explanation
The receiver uses the private exponent d to raise the ciphertext to the dth power modulo n.
- A
- 31
Why does the RSA decryption procedure recover the original message when m is relatively prime to n?
- A
The ciphertext is always identical to the message
- B
The sender publishes the original message together with the ciphertext
- C
The primes p and q cancel out during ordinary integer division
- D
Euler's theorem supports the identity obtained by applying the exponents e and d
Correct answer
DEuler's theorem supports the identity obtained by applying the exponents e and d
Explanation
The content explains that Euler's theorem justifies decryption when m is relatively prime to n.
- A
- 32
Why does the content describe messages that are not relatively prime to n as rare in practice?
- A
They are excluded because the public exponent is always prime
- B
Finding such a message would reveal a factor of n, which is believed to be difficult
- C
Such messages cannot be written as numbers
- D
They are rare because every message must be a prime larger than n
Correct answer
BFinding such a message would reveal a factor of n, which is believed to be difficult
Explanation
A message sharing a factor with n would enable someone to factor n; because factoring is believed to be hard, such a case is considered negligible.
- A
- 33
What stronger theoretical fact about RSA decryption does the content mention?
- A
Decryption works for all messages only if p=q
- B
Decryption works only when the message equals one of the primes
- C
Decryption works only when the ciphertext is publicly factored
- D
The decryption procedure works for all messages, not only those relatively prime to n
Correct answer
DThe decryption procedure works for all messages, not only those relatively prime to n
Explanation
Although the Euler's theorem explanation is straightforward for messages relatively prime to n, the content states that RSA decryption in fact works for all messages.
- A
- 34
What does the prime number theorem estimate for the number of primes up to n?
- A
The count is approximately n for large n
- B
The count is exactly logn for every n
- C
The count is approximately n/logn for large n
- D
The count is approximately n2 for large n
Correct answer
CThe count is approximately n/logn for large n
Explanation
The content states that the prime-counting function π(n) is asymptotically close to n/logn.
- A
- 35
What does the prime-counting function π(n) represent?
- A
The number of digits in the prime factorization of n
- B
The largest prime factor of n
- C
The product of all primes less than or equal to n
- D
The number of primes less than or equal to n
Correct answer
DThe number of primes less than or equal to n
Explanation
The content defines π(n) as the number of primes less than or equal to n.
- A
- 36
What lower bound does the content give for π(n) using Chebyshev's bound?
- A
logn/(4n)
- B
4n/logn
- C
n/(4logn)
- D
n2/(4logn)
Correct answer
Cn/(4logn)
Explanation
The stated Chebyshev bound is that n/(4logn) is a lower bound on the number of primes up to n.
- A
- 37
Why is the density of primes relevant when generating RSA keys?
- A
It suggests that a search through candidate numbers need not be excessively long before finding a prime
- B
It ensures that the public modulus has only one prime factor
- C
It proves that every randomly chosen number is prime
- D
It allows the receiver to skip checking whether candidates are prime
Correct answer
AIt suggests that a search through candidate numbers need not be excessively long before finding a prime
Explanation
Because primes occur often enough among large numbers, the receiver can search candidate numbers and expect to find primes without an impractically long search.
- A
- 38
Why must a practical RSA key-generation process include an efficient way to test whether a candidate is prime?
- A
The sender must test whether every message is prime before encrypting it
- B
The public key is valid only if the exponent is composite
- C
The receiver needs to prove that the ciphertext is a prime number
- D
The receiver needs to recognize prime candidates while searching for the required large primes
Correct answer
DThe receiver needs to recognize prime candidates while searching for the required large primes
Explanation
Finding candidate primes is useful only if the receiver can efficiently identify which candidates are prime.
- A
- 39
What does Fermat's theorem say about a nonzero residue a when n is prime?
- A
an is always congruent to 0 modulo n
- B
an−1 is congruent to 1 modulo n
- C
a must be equal to n−1
- D
an−1 is congruent to n modulo a
Correct answer
Ban−1 is congruent to 1 modulo n
Explanation
For prime n and a nonzero residue a, Fermat's theorem gives an−1≡1(modn).
- A
- 40
If a candidate n fails the Fermat test for a chosen nonzero a, what can be concluded?
- A
a must be a factor of n
- B
n is definitely prime
- C
n is not prime
- D
n must be a Carmichael number
Correct answer
Cn is not prime
Explanation
A prime must satisfy Fermat's congruence for every nonzero residue. A failure therefore proves that the candidate is composite.
- A
- 41
If a candidate n passes a Fermat test for one chosen value of a, what can be concluded?
- A
n is certainly prime
- B
a is the private exponent associated with n
- C
The result is inconclusive, because some composite numbers also pass
- D
n has exactly two prime factors
Correct answer
CThe result is inconclusive, because some composite numbers also pass
Explanation
Passing the test does not prove primality, since a composite number may still satisfy the Fermat congruence for the chosen base.
- A
- 42
For a nonprime number that is not a Carmichael-number exception, what does the content say about Fermat testing across possible bases?
- A
Every number from 1 to n passes the test
- B
At least half of the numbers from 1 to n fail the test
- C
At least half of the numbers from 1 to n are prime
- D
Exactly one number from 1 to n fails the test
Correct answer
BAt least half of the numbers from 1 to n fail the test
Explanation
The content states that for a nonprime n, at least half of the candidate bases fail the Fermat test, apart from the noted Carmichael-number complication.
- A
- 43
Under the test assumptions described, what is the chance that a composite candidate passes 50 independent random Fermat tests?
- A
At most 1/50
- B
At least 50/2
- C
Exactly 1/2
- D
At most 1/250
Correct answer
DAt most 1/250
Explanation
If each random test has at least a one-half chance of detecting compositeness, then the chance of passing all 50 tests is at most (1/2)50.
- A
- 44
What are Carmichael numbers in the context of Fermat testing?
- A
Bases that make every composite number fail a Fermat test
- B
Composite numbers that complicate the claim that at least half of the bases will fail the Fermat test
- C
Numbers that are automatically the product of exactly two large primes
- D
Prime numbers that never satisfy Fermat's theorem
Correct answer
BComposite numbers that complicate the claim that at least half of the bases will fail the Fermat test
Explanation
The content identifies Carmichael numbers as exceptions to the general failure-rate property of Fermat tests for composites.
- A
- 45
Why does the content treat Carmichael numbers as a limited practical concern for randomly selected candidates?
- A
They can always be identified by checking whether a number is even
- B
They cannot occur among numbers with many digits
- C
They are described as the most common type of integer
- D
They are described as sparse, making a random encounter unlikely
Correct answer
DThey are described as sparse, making a random encounter unlikely
Explanation
The content says Carmichael numbers are sparse, so randomly choosing candidates makes the chance of encountering one small.
- A
- 46
How can the receiver efficiently check whether a candidate exponent e is relatively prime to (p−1)(q−1)?
- A
Compute their greatest common divisor using Euclid's algorithm
- B
Compare the number of digits in e and n
- C
Factor the public modulus using trial division
- D
Raise the message to the power e and inspect the ciphertext
Correct answer
ACompute their greatest common divisor using Euclid's algorithm
Explanation
The receiver can test relative primality by computing the greatest common divisor with Euclid's algorithm.
- A
- 47
Why can the receiver typically find a suitable exponent e without testing many candidates?
- A
Every integer is relatively prime to (p−1)(q−1)
- B
The exponent must be one of the secret prime factors
- C
A randomly chosen candidate is likely to be relatively prime to (p−1)(q−1)
- D
The receiver can use any value without checking it
Correct answer
CA randomly chosen candidate is likely to be relatively prime to (p−1)(q−1)
Explanation
The content says that searching among candidate values for e is expected to find one relatively prime to (p−1)(q−1) after only a few steps.
- A
- 48
What algorithm does the receiver use to find the private exponent d?
- A
A search through all possible messages
- B
The extended Euclidean algorithm
- C
The Fermat primality test
- D
The prime number theorem
Correct answer
BThe extended Euclidean algorithm
Explanation
The extended Euclidean algorithm computes the modular inverse that defines d.
- A
- 49
If an attacker can factor the public modulus n, why can the attacker recover the RSA private exponent?
- A
The factors reveal (p−1)(q−1), allowing the attacker to compute the inverse of e
- B
The factors reveal the original message without needing any computation
- C
The factors eliminate the need for a modular inverse
- D
The factors make the public exponent equal to the ciphertext
Correct answer
AThe factors reveal (p−1)(q−1), allowing the attacker to compute the inverse of e
Explanation
Factoring n reveals p and q, and therefore (p−1)(q−1). The attacker can then use the extended Euclidean algorithm to find d.
- A
- 50
What reverse implication about RSA security does the content say can be proved?
- A
If someone can publish n, they can also recover every message
- B
If someone can find the private key d, they can also factor n
- C
If someone can encrypt a message, they can also factor n
- D
If someone can find a prime, they can automatically find d
Correct answer
BIf someone can find the private key d, they can also factor n
Explanation
The content states that an argument can show that finding the private key d would also allow the attacker to factor n.
- A
- 51
What stronger security guarantee is not known for RSA?
- A
A proof that decrypting messages by any method is as hard as factoring
- B
A proof that multiplying two numbers produces a product
- C
A proof that the receiver can publish the pair (e,n)
- D
A proof that the extended Euclidean algorithm can find inverses
Correct answer
AA proof that decrypting messages by any method is as hard as factoring
Explanation
The content notes that it is not known whether breaking RSA by any possible method is as hard as factoring; an attacker might conceivably decrypt without finding d.
- A
- 52
Why does the content say that knowing factoring is hard does not fully prove that every RSA message is secure?
- A
The public exponent is never used during encryption
- B
An attacker might decrypt messages through a method that does not recover the private key
- C
Factoring the modulus is required for every legitimate decryption
- D
The receiver publishes the prime factors along with the public key
Correct answer
BAn attacker might decrypt messages through a method that does not recover the private key
Explanation
The content allows for the logical possibility that messages could be decrypted by a route other than finding the private exponent and factoring the modulus.
- A
- 53
What practical evidence for RSA's security does the content emphasize?
- A
Extensive efforts by mathematicians and cryptographers had not broken it during the period described
- B
A mathematical theorem proves that no computer can ever factor an RSA modulus
- C
RSA has never required any changes to its implementation rules
- D
The ciphertext is too large for computers to store
Correct answer
AExtensive efforts by mathematicians and cryptographers had not broken it during the period described
Explanation
The content points to many years of work by mathematicians and powerful cryptographic efforts that had not cracked RSA during the period being discussed.
- A
- 54
What does the content say about glitches discovered during RSA's history?
- A
Some issues led to additional rules for choosing p, q, and e, and those issues were identified and fixed
- B
They showed that prime numbers cannot be used in encryption
- C
They made factoring unnecessary for recovering the private key
- D
They proved that the public exponent must be kept secret
Correct answer
ASome issues led to additional rules for choosing p, q, and e, and those issues were identified and fixed
Explanation
The content says that various glitches required additional rules for selecting the primes and exponent, but that these issues were identified and fixed.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.