Public-Key Encryption
- 51Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What contribution to public-key cryptography did Diffie and Hellman make in 1976?
51 questions
- 1
What contribution to public-key cryptography did Diffie and Hellman make in 1976?
Model answer
They laid foundational ideas in a paper on key exchange and proposed a trapdoor method in which knowledge of a secret makes a difficult problem easy to solve.
Explanation
The content identifies their 1976 work as laying the foundations for public-key encryption.
- 2
Who introduced RSA, and when?
Model answer
Rivest, Shamir, and Adleman introduced the RSA method in 1977.
Explanation
RSA is described as a public-key method that remains in use.
- 3
What is the basic idea behind a trapdoor problem in public-key cryptography?
Model answer
Solving the problem is difficult without a secret, but knowing the secret makes it comparatively easy.
Explanation
The secret provides a shortcut through a problem that would otherwise be expensive to solve.
- 4
What are the two keys in a public-key pair, and how are they treated?
Model answer
A key pair consists of a public key that can be shared and a private key that its owner keeps secret.
Explanation
For example, Bob can make his public key known while keeping his private key confidential.
- 5
What three mathematical problem families are presented as foundations for public-key methods?
Model answer
They are integer factorization, discrete logarithms, and elliptic-curve methods.
Explanation
The content identifies these as the three main types of mathematical puzzles used.
- 6
What makes the RSA mathematical problem difficult?
Model answer
Given a modulus formed from two large primes, it is difficult to find the two primes that produced it.
Explanation
RSA relies on the difficulty of factoring the product of its prime numbers.
- 7
In the discrete-log problem y=gxmodp, which value is difficult to determine when the others are known?
Model answer
The difficult value to determine is the exponent x, given y, g, and p.
Explanation
The content describes finding the secret exponent as the challenge of the discrete-log method.
- 8
How does the content compare elliptic-curve methods with RSA and discrete-log methods in terms of key sizes and performance?
Model answer
Elliptic-curve methods can provide strong performance with keys of about 160 or 256 bits, whereas the other methods may use prime numbers thousands of bits long.
Explanation
The content presents elliptic-curve methods as more efficient and requiring shorter values.
- 9
Why does the content say current public-key methods may eventually need to be replaced?
Model answer
It says quantum computers could make the mathematical problems underlying these methods no longer hard to solve.
Explanation
The stated concern is that quantum computing threatens the difficulty assumptions on which the methods rely.
- 10
What uses for RSA and ElGamal are mentioned in the content?
Model answer
RSA is described as being used in identifying websites, while ElGamal is mentioned in connection with digital signatures.
Explanation
These are the specific applications associated with the methods in the content.
- 11
What are the three main uses of public-key cryptography described in the content?
Model answer
They are encrypting data, exchanging a symmetric key, and proving identity through a digital signature.
Explanation
The content distinguishes confidentiality, key exchange, and identity verification as separate uses.
- 12
Why is public-key encryption generally not used by itself to encrypt large amounts of data?
Model answer
Its mathematical operations can be computationally expensive for large amounts of data, so symmetric encryption is typically used instead.
Explanation
Public-key methods are used to help establish a symmetric key, which can then encrypt the larger data set.
- 13
How can Bob use Alice’s public-key pair to send her confidential data?
Model answer
Bob encrypts the data with Alice’s public key, and Alice decrypts it with her private key.
Explanation
The recipient’s public key is used for encryption, while the matching private key is needed to decrypt.
- 14
How can public-key cryptography help Bob and Alice establish a shared symmetric key?
Model answer
Bob encrypts the symmetric key with Alice’s public key, and Alice uses her private key to recover it.
Explanation
The recovered key can then be used by both parties to encrypt their communications symmetrically.
- 15
What information does a digital certificate provide, and who vouches for it?
Model answer
A digital certificate contains key information and is signed by a trusted entity whose signature can be checked by its recipients.
Explanation
The trusted signer allows Bob and Alice to rely on the certificate’s association with a public key.
- 16
What is the difference between a secret certificate and a distributable certificate as described in the content?
Model answer
A secret certificate can contain both private and public keys and must be kept secure; a distributable form contains only the public key.
Explanation
The public-only form can be shared, while the private key must remain confidential.
- 17
How can Alice check that a public key received in Bob’s certificate is trustworthy?
Model answer
She checks that the certificate was signed by a trusted entity that she and Bob both trust.
Explanation
Verifying the trusted signer’s signature helps establish confidence in the certificate’s public key.
- 18
How can a key ring make it easier for Alice to use other people’s public keys?
Model answer
Alice can store public keys she expects to use on her key ring instead of requesting them each time.
Explanation
The key ring serves as a local collection of public keys for later communication.
- 19
What security precaution is needed if Alice stores her own private key on a key ring?
Model answer
She must keep the key ring secure so that her private key remains secret.
Explanation
A private key stored alongside public keys still requires protection from unauthorized access.
- 20
How are the RSA modulus and its two prime factors related?
Model answer
The modulus is the product of the two primes: n=p×q.
Explanation
RSA begins by choosing primes p and q and multiplying them to form n.
- 21
Why is factoring the RSA modulus difficult when its prime factors are large?
Model answer
It is computationally difficult to recover the large primes p and q from their product n.
Explanation
The difficulty of this reverse operation underlies RSA’s security as described in the content.
- 22
What does the label “2K RSA” refer to in the example described?
Model answer
It refers to an RSA modulus of about 2,000 bits, formed from two primes of about 1,000 bits each.
Explanation
The modulus is the product of the two prime numbers, so its size is roughly twice that of either prime.
- 23
How does RSA encrypt a message and decrypt the resulting ciphertext?
Model answer
Encryption raises the message to the power of e modulo n, and decryption raises the ciphertext to the power of d modulo n.
Explanation
The operations are c=memodn and m=cdmodn.
- 24
In modular arithmetic, what does taking a value modulo n mean?
Model answer
It means taking the remainder after dividing the value by n.
Explanation
RSA uses this remainder rather than the full result of exponentiation.
- 25
How is the RSA value φ calculated from the primes p and q?
Model answer
It is calculated as φ=(p−1)(q−1).
Explanation
The content uses this value to select the encryption exponent and calculate the decryption exponent.
- 26
What condition must the RSA encryption exponent e satisfy relative to φ?
Model answer
It must be relatively prime to φ, meaning gcd(e,φ)=1.
Explanation
The exponents can be constructed as described only when e and φ share no factor greater than one.
- 27
How is the RSA decryption exponent d related to e and φ?
Model answer
It is chosen so that de≡1(modφ); in other words, d is the modular inverse of e modulo φ.
Explanation
This relationship makes the RSA decryption operation recover the original message.
- 28
For the example with p=3 and q=11, what are the modulus n and the value φ?
Model answer
The modulus is n=33, and φ=(3−1)(11−1)=20.
Explanation
Multiplying the primes gives 33, while multiplying one less than each prime gives 20.
- 29
For the example with n=33 and φ=20, why can e=3 be selected?
Model answer
Because 3 and 20 are relatively prime, they satisfy gcd(3,20)=1.
Explanation
An RSA encryption exponent must share no factors with φ.
- 30
For e=3 and φ=20, why is d=7 a suitable decryption exponent?
Model answer
Because 7×3=21≡1(mod20).
Explanation
This makes 7 the modular inverse of 3 modulo 20.
- 31
What are the public and private key pairs in the small RSA example?
Model answer
The public key is (3,33) and the private key is (7,33).
Explanation
The example uses e=3, d=7, and the shared modulus n=33.
- 32
What general elliptic-curve equation is given in the content?
Model answer
The equation is y2≡x3+ax+b(modp).
Explanation
The modulus p restricts the arithmetic to integer values in the described curve system.
- 33
What are the basic parameters of an elliptic curve listed in the content?
Model answer
They are a, b, the prime number p, the order n, and the base point G.
Explanation
The content identifies a and b in the curve equation, p as the prime modulus, n as the order, and G as the base point.
- 34
What does the order n represent in the elliptic-curve parameters described?
Model answer
It is the number of points that can be on the elliptic curve.
Explanation
The content names the number of curve points as the order.
- 35
What role does the base point G play in elliptic-curve operations?
Model answer
It is the starting point used for elliptic-curve operations and is known to the participants.
Explanation
A public key is formed by repeatedly adding this base point.
- 36
What property of elliptic-curve point addition is described?
Model answer
Adding points on the curve produces another point on the curve.
Explanation
This closure property allows the curve’s point operation to be used in cryptographic calculations.
- 37
How is an elliptic-curve public key derived from a private key?
Model answer
The public key is P=nG, meaning the base point G is added to itself n times, where n is the private-key value in the content’s notation.
Explanation
The result P is a point on the curve that can be shared publicly.
- 38
Which elliptic-curve information can be public, and which value must remain secret?
Model answer
The public key, base point, and curve parameters can be known publicly; the private-key value must remain secret.
Explanation
The private value is needed for operations such as signing, while the associated curve information is not secret.
- 39
Which two named elliptic curves are mentioned, and what application is associated with one of them?
Model answer
The curves are Curve 25519 and secp256k1; secp256k1 is associated with Bitcoin transactions.
Explanation
The content gives both as examples of commonly used curves and specifically links secp256k1 with Bitcoin.
- 40
What prime number is associated with Curve 25519 in the content?
Model answer
It is 2255−19.
Explanation
The content identifies this prime as the field modulus used by Curve 25519.
- 41
How can an elliptic-curve private key be chosen, according to the content?
Model answer
A random number can be generated and used as the private-key value.
Explanation
The content contrasts this approach with RSA’s generation of prime numbers.
- 42
What does ECDSA stand for, and what is it used for in the content?
Model answer
ECDSA stands for Elliptic Curve Digital Signature Algorithm, and it is used to sign messages or transactions.
Explanation
The content presents ECDSA as an elliptic-curve method for creating digital signatures.
- 43
How does Bob create a digital signature for a message in the described signing process?
Model answer
He hashes the message and uses his private key to create a signature from the hash.
Explanation
The signature is associated with the message’s hash and Bob’s private key.
- 44
How can Alice verify a signature using Bob’s public key?
Model answer
She hashes the received message, uses Bob’s public key to check the signature, and compares the resulting hash with her own.
Explanation
Matching hashes indicate that the signature corresponds to the message.
- 45
What does a matching hash comparison tell Alice about a signed message?
Model answer
It indicates that the message was signed by the holder of Bob’s private key and has not been changed since it was signed.
Explanation
The signature check links the message to the private key, while the hash comparison checks message integrity.
- 46
How does the content describe the use of a private key when Bob sends a Bitcoin transaction?
Model answer
Bob signs the transaction with his private key, and the transaction can be associated with the corresponding public key.
Explanation
The content describes the signature as the means by which the transaction is linked to Bob’s key.
- 47
In the described PGP-style process, why does Bob hash the message and attach a signature before encrypting the data?
Model answer
The signature lets Alice check who signed the message and whether it was altered, while the message and signature can then be encrypted for confidentiality.
Explanation
The process combines a signed hash with encryption of the message contents.
- 48
Why does Bob encrypt the message and signature with a newly created symmetric key in the described PGP process?
Model answer
The message may be large, so symmetric encryption is used to encrypt the combined data efficiently.
Explanation
The content uses public-key encryption for the symmetric key and symmetric encryption for the larger message.
- 49
How does Bob securely send the symmetric key to Alice in the PGP-style process?
Model answer
He encrypts the symmetric key with Alice’s public key and sends it alongside the symmetrically encrypted message.
Explanation
Only Alice’s matching private key can recover the encrypted symmetric key.
- 50
What steps does Alice take to recover the message in the described PGP process?
Model answer
She decrypts the symmetric key with her private key, then uses that key to decrypt the message and its attached signature.
Explanation
The public-key operation recovers the key; the symmetric-key operation opens the larger encrypted data.
- 51
After decrypting the PGP-style message, how does Alice check its integrity and signer?
Model answer
She hashes the recovered message, checks Bob’s signature using his public key, and compares the hashes.
Explanation
If the hashes match, the process supports the conclusion that Bob signed the message and it was not changed in transmission.

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