1. Home
  2. Explore
  3. Computer Science
  4. RSA Public Key Cryptography

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

RSA Public Key Cryptography

  • 28Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: RSA Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What type of cryptographic algorithm is RSA?

Tap to flipClick to flipspace

RSA is a public-key algorithm.

Or swipe the card

28 cards

  1. What type of cryptographic algorithm is RSA?

    RSA is a public-key algorithm.

  2. What are the two types of keys in RSA?

    RSA uses a public key and a private key.

  3. How is the private key typically used in RSA for digital signatures?

    The private key is used to sign something.

  4. How is the public key typically used in RSA for digital signatures?

    The public key is used to verify that signature.

  5. What are the components of the RSA public key?

    The public key consists of a value eee and a very large number NNN.

  6. What is the component of the RSA private key?

    The private key consists of the value ddd.

  7. Is the value eee a secret in RSA?

    No, eee is not a secret; it is part of the public key.

  8. What is a common value for eee in RSA?

    A common value for eee is 65537.

  9. What is the typical bit length of NNN in RSA?

    NNN is typically 2,000 bits, or even 4,000 bits long.

  10. How is the value NNN calculated during RSA key generation?

    NNN is calculated by multiplying two large prime numbers, PPP and QQQ (N=P×QN = P \times QN=P×Q).

  11. What critical information is deleted after the RSA private key is calculated?

    The intermediate information, specifically the prime numbers PPP and QQQ, is deleted.

  12. What is the goal of an attacker trying to break RSA when given eee and NNN?

    The attacker's goal is to calculate the private key ddd.

  13. What is the primary step an attacker must achieve to calculate the private key ddd from NNN?

    The attacker must factor NNN into its prime components PPP and QQQ.

  14. What is Euler's totient of NNN, denoted as ϕ(N)\phi(N)ϕ(N), when N=P×QN = P \times QN=P×Q for prime PPP and QQQ?

    The totient of NNN is ϕ(N)=(P−1)×(Q−1)\phi(N) = (P - 1) \times (Q - 1)ϕ(N)=(P−1)×(Q−1).

  15. What equation relates the public exponent eee, private exponent ddd, and Euler's totient ϕ(N)\phi(N)ϕ(N) in RSA?

    e×d≡1(modϕ(N))e \times d \equiv 1 \pmod{\phi(N)}e×d≡1(modϕ(N))

  16. Why can an attacker not normally calculate ddd even if they know eee and NNN?

    An attacker cannot normally calculate ddd because they do not know the prime factors PPP and QQQ, and therefore cannot calculate ϕ(N)\phi(N)ϕ(N).

  17. Is factoring a small number NNN into its prime factors difficult?

    No, factoring a small number NNN is not difficult.

  18. What is a major weakness in RSA key generation if PPP and QQQ are chosen poorly?

    If PPP and QQQ are chosen badly (e.g., P=QP=QP=Q or PPP and QQQ are too close together), the RSA key can be broken.

  19. Which factorization algorithm is particularly effective when PPP and QQQ are close together?

    Fermat's factorization algorithm is effective when PPP and QQQ are close together.

  20. What is the core mathematical principle behind Fermat's factorization algorithm?

    The core principle is that any composite number NNN can be expressed as the difference of two square numbers: N=a2−b2N = a^2 - b^2N=a2−b2.

  21. In Fermat's factorization, what is the initial guess for aaa?

    The initial guess for aaa is the integer immediately above the square root of NNN (ceiling function of N\sqrt{N}N​).

  22. What condition must be met for b2=a2−Nb^2 = a^2 - Nb2=a2−N in Fermat's factorization algorithm?

    b2b^2b2 must be a perfect square (a number with an integer square root).

  23. If a2−Na^2 - Na2−N is a perfect square in Fermat's factorization, how are PPP and QQQ calculated?

    If b=a2−Nb = \sqrt{a^2 - N}b=a2−N​, then P=a+bP = a + bP=a+b and Q=a−bQ = a - bQ=a−b.

  24. Why is Fermat's factorization algorithm efficient for 'weak' RSA keys?

    It is efficient because if PPP and QQQ are very close together, the value of aaa (which is roughly (P+Q)/2(P+Q)/2(P+Q)/2) will be very close to N\sqrt{N}N​, requiring few iterations.

  25. What is SageMath?

    SageMath is a Python-based mathematical software system with additional mathematical and cryptographic functionalities.

  26. What is one way to improperly generate PPP and QQQ that makes RSA vulnerable to Fermat's factorization?

    Generating PPP and QQQ such that their first half (e.g., first 500 bits of 1000-bit numbers) are identical makes them too close.

  27. How can one properly generate PPP and QQQ 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.

  28. What does the extended Euclidean algorithm compute in the context of RSA?

    The extended Euclidean algorithm computes the multiplicative inverse ddd of eee modulo ϕ(N)\phi(N)ϕ(N).

Card 1 of 28
Card 1 of 28

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent