RSA Public Key Cryptography
- 28Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What type of cryptographic algorithm is RSA?
RSA is a public-key algorithm.
Or swipe the card
28 cards
What type of cryptographic algorithm is RSA?
RSA is a public-key algorithm.
What are the two types of keys in RSA?
RSA uses a public key and a private key.
How is the private key typically used in RSA for digital signatures?
The private key is used to sign something.
How is the public key typically used in RSA for digital signatures?
The public key is used to verify that signature.
What are the components of the RSA public key?
The public key consists of a value e and a very large number N.
What is the component of the RSA private key?
The private key consists of the value d.
Is the value e a secret in RSA?
No, e is not a secret; it is part of the public key.
What is a common value for e in RSA?
A common value for e is 65537.
What is the typical bit length of N in RSA?
N is typically 2,000 bits, or even 4,000 bits long.
How is the value N calculated during RSA key generation?
N is calculated by multiplying two large prime numbers, P and Q (N=P×Q).
What critical information is deleted after the RSA private key is calculated?
The intermediate information, specifically the prime numbers P and Q, is deleted.
What is the goal of an attacker trying to break RSA when given e and N?
The attacker's goal is to calculate the private key d.
What is the primary step an attacker must achieve to calculate the private key d from N?
The attacker must factor N into its prime components P and Q.
What is Euler's totient of N, denoted as ϕ(N), when N=P×Q for prime P and Q?
The totient of N is ϕ(N)=(P−1)×(Q−1).
What equation relates the public exponent e, private exponent d, and Euler's totient ϕ(N) in RSA?
e×d≡1(modϕ(N))
Why can an attacker not normally calculate d even if they know e and N?
An attacker cannot normally calculate d because they do not know the prime factors P and Q, and therefore cannot calculate ϕ(N).
Is factoring a small number N into its prime factors difficult?
No, factoring a small number N is not difficult.
What is a major weakness in RSA key generation if P and Q are chosen poorly?
If P and Q are chosen badly (e.g., P=Q or P and Q are too close together), the RSA key can be broken.
Which factorization algorithm is particularly effective when P and Q are close together?
Fermat's factorization algorithm is effective when P and Q are close together.
What is the core mathematical principle behind Fermat's factorization algorithm?
The core principle is that any composite number N can be expressed as the difference of two square numbers: N=a2−b2.
In Fermat's factorization, what is the initial guess for a?
The initial guess for a is the integer immediately above the square root of N (ceiling function of N).
What condition must be met for b2=a2−N in Fermat's factorization algorithm?
b2 must be a perfect square (a number with an integer square root).
If a2−N is a perfect square in Fermat's factorization, how are P and Q calculated?
If b=a2−N, then P=a+b and Q=a−b.
Why is Fermat's factorization algorithm efficient for 'weak' RSA keys?
It is efficient because if P and Q are very close together, the value of a (which is roughly (P+Q)/2) will be very close to N, requiring few iterations.
What is SageMath?
SageMath is a Python-based mathematical software system with additional mathematical and cryptographic functionalities.
What is one way to improperly generate P and Q that makes RSA vulnerable to Fermat's factorization?
Generating P and Q such that their first half (e.g., first 500 bits of 1000-bit numbers) are identical makes them too close.
How can one properly generate P and Q to avoid Fermat's factorization attack?
One should pick a random number and find the next prime up, and then pick an entirely different random number (maybe even a different length) and find the next prime up from that.
What does the extended Euclidean algorithm compute in the context of RSA?
The extended Euclidean algorithm computes the multiplicative inverse d of e modulo ϕ(N).

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