1. Home
  2. Explore
  3. Computer Science
  4. Public-Key Encryption

Study methods

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

Public-Key Encryption

  • 53Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Foundations and Uses
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What foundational idea did Diffie and Hellman propose in their 1976 paper?

Tap to flipClick to flipspace

A key-exchange method based on a trapdoor idea: a problem can be difficult without a secret but easy to solve when the secret is known.

Or swipe the card

53 cards

  1. What foundational idea did Diffie and Hellman propose in their 1976 paper?

    A key-exchange method based on a trapdoor idea: a problem can be difficult without a secret but easy to solve when the secret is known.

  2. Who developed RSA, and when?

    Rivest, Shamir, and Adleman developed RSA in 1977.

  3. What is the trapdoor property of a public-key cryptographic problem?

    Solving the problem is impractical without secret information, but comparatively easy when the secret is known.

  4. What two keys make up a public-key pair, and how are they treated?

    A public key, which can be shared, and a private key, which its owner keeps secret.

  5. What three broad mathematical problem families are used in public-key cryptography?

    Integer factorization, discrete logarithms, and elliptic-curve methods.

  6. What makes the integer-factorization problem useful for cryptography?

    It is difficult to recover two large prime factors from their product, even when the product is known.

  7. What is the discrete logarithm problem in the form described?

    Given yyy, ggg, and a large prime ppp, find xxx such that y=gx mod py=g^x \bmod py=gxmodp.

  8. What is the relationship between key size and the efficiency of elliptic-curve methods described in the content?

    They can provide efficient performance with keys around 160 or 256 bits, compared with public-key methods that may use thousands of bits.

  9. Why does the content warn that quantum computers could threaten the described public-key methods?

    Because quantum computers could make the problems underlying these methods no longer hard to solve.

  10. What are the three main uses of public-key cryptography described?

    Encrypting data, exchanging a symmetric key, and proving identity through digital signatures.

  11. How does Bob encrypt data so that only Alice can decrypt it?

    Bob encrypts it with Alice's public key; Alice decrypts it with her private key.

  12. Why is public-key encryption generally not used to encrypt large amounts of data?

    Its computations can be expensive, so a symmetric cipher is typically used for the data instead.

  13. How can public-key cryptography help two people exchange a symmetric key?

    The sender encrypts the symmetric key with the recipient's public key, and the recipient decrypts it with their private key.

  14. How does signing a message hash support proof of identity?

    The signer signs the hash with their private key; the recipient uses the signer's public key to verify it and compares the recovered hash with a newly computed hash.

  15. What does a successful comparison of the signed hash and the recipient's recomputed hash show?

    It supports that the message has not been altered and that it was signed using the private key corresponding to the public key used for verification.

  16. What is a digital certificate, and what does it contain?

    A digital certificate is information signed by a trusted entity and contains key information, such as a public key.

  17. Why is a certificate containing a private key kept secret?

    Because it contains secret key material that must not be exposed.

  18. What is the purpose of exporting a certificate in a public-key-only form?

    It allows the public key to be distributed to others without exposing the private key.

  19. How can Alice check whether Bob's public-key certificate is trustworthy?

    She checks that it was signed by a trusted entity that both she and Bob trust.

  20. What is a key ring, and how can it help Alice?

    A key ring stores public keys Alice may use, so she can retrieve them without repeatedly requesting them.

  21. Under what condition could Alice keep her own private key on a key ring?

    Only if the key ring is kept secure.

  22. How is RSA's modulus constructed?

    Choose primes ppp and qqq, then compute n=pqn=pqn=pq.

  23. What is the hard problem underlying RSA as described?

    Finding the prime factors ppp and qqq of a known modulus n=pqn=pqn=pq when the primes are large.

  24. In the RSA size example, what modulus size results from two 1,000-bit primes?

    A modulus of about 2,000 bits, called 2K RSA in the content.

  25. What are the RSA encryption and decryption operations?

    Encrypt with c=me mod nc=m^e \bmod nc=memodn; decrypt with m=cd mod nm=c^d \bmod nm=cdmodn.

  26. What does taking a value modulo nnn mean in RSA?

    Keeping the remainder after division by nnn.

  27. How is the RSA value ϕ\phiϕ calculated from ppp and qqq?

    ϕ=(p−1)(q−1)\phi=(p-1)(q-1)ϕ=(p−1)(q−1).

  28. What condition must the RSA encryption exponent eee satisfy?

    It must be relatively prime to ϕ\phiϕ, so gcd⁡(e,ϕ)=1\gcd(e,\phi)=1gcd(e,ϕ)=1.

  29. How is the RSA decryption exponent ddd related to eee and ϕ\phiϕ?

    It satisfies de mod ϕ=1de \bmod \phi=1demodϕ=1; equivalently, it is the multiplicative inverse of eee modulo ϕ\phiϕ.

  30. For RSA with p=3p=3p=3 and q=11q=11q=11, what are nnn and ϕ\phiϕ?

    n=33n=33n=33 and ϕ=20\phi=20ϕ=20.

  31. For the RSA example with p=3p=3p=3, q=11q=11q=11, and e=3e=3e=3, why is eee an acceptable choice?

    Because 333 and ϕ=20\phi=20ϕ=20 are relatively prime.

  32. For p=3p=3p=3, q=11q=11q=11, and e=3e=3e=3, what decryption exponent ddd satisfies the RSA inverse condition?

    d=7d=7d=7, because 7×3=217\times3=217×3=21 and 21 mod 20=121\bmod20=121mod20=1.

  33. What are the RSA public and private key pairs in the example with p=3p=3p=3, q=11q=11q=11, e=3e=3e=3, and d=7d=7d=7?

    The encryption key is (3,33)(3,33)(3,33) and the decryption key is (7,33)(7,33)(7,33).

  34. How does RSA recover a message in the example with e=3e=3e=3, d=7d=7d=7, and n=33n=33n=33?

    Compute the ciphertext as m3 mod 33m^3\bmod33m3mod33, then recover the message with c7 mod 33c^7\bmod33c7mod33.

  35. What general elliptic-curve equation is given in the content?

    y2=x3+ax+b mod py^2=x^3+ax+b\bmod py2=x3+ax+bmodp.

  36. What is the role of the modulus ppp in the elliptic-curve equation described?

    It restricts calculations to integer values modulo the prime ppp.

  37. What closure property does elliptic-curve point addition have?

    Adding points on the curve produces another point on the curve.

  38. What basic parameters describe an elliptic curve in the content?

    The values aaa, bbb, and ppp, the order nnn, and the base point GGG.

  39. What is the base point GGG used for in elliptic-curve cryptography?

    It is the known starting point used for elliptic-curve operations.

  40. What public-key relationship does the content give for elliptic-curve cryptography?

    P=nGP=nGP=nG, where nnn is the private key and GGG is the base point.

  41. Which elliptic-curve values can be public, and which must remain secret?

    The public key PPP, base point GGG, and curve parameters may be known; the private key must remain secret.

  42. What is ECDSA used for in the content?

    Creating digital signatures using an elliptic-curve private key.

  43. Which named elliptic curves are mentioned, and where is one used?

    Curve 25519 and secp256k1 are mentioned; secp256k1 is used in Bitcoin transactions.

  44. What prime is specified for Curve 25519 in the content?

    2255−192^{255-19}2255−19.

  45. How does the content describe Bob signing a Bitcoin transaction?

    Bob uses his private key to sign the transaction, and the signature can be associated with his public key.

  46. In the PGP-style example, how does Bob create a signature for his message?

    He hashes the message and signs the hash using his private key.

  47. Why does Bob attach the signed hash to the message before encrypting it?

    It lets Alice check the message's signature and whether its contents changed.

  48. How does the PGP-style process protect a large message?

    Bob encrypts the message and signed hash with a newly created symmetric key.

  49. How does Bob protect the symmetric key in the PGP-style process?

    He encrypts the symmetric key with Alice's public key.

  50. What encrypted items does Bob send Alice in the PGP-style process?

    The symmetrically encrypted message and the symmetric key encrypted with Alice's public key.

  51. How does Alice recover the message in the PGP-style process?

    She decrypts the symmetric key with her private key, then uses that symmetric key to decrypt the message.

  52. How does Alice verify Bob's message after decrypting it?

    She hashes the message, verifies the signed hash with Bob's public key, and checks that the hashes match.

  53. Why does the PGP-style example combine public-key and symmetric encryption?

    Public-key encryption securely delivers the symmetric key, while symmetric encryption efficiently protects the message.

Card 1 of 53
Card 1 of 53

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent