304 North Cardinal St.
Dorchester Center, MA 02124

# Asymmetric Cryptography and Key Management Coursera Quiz Answers

## Get Asymmetric Cryptography and Key Management Coursera Quiz Answers

Welcome to Asymmetric Cryptography and Key Management!

In asymmetric cryptography or public-key cryptography, the sender and the receiver use a pair of public-private keys, as opposed to the same symmetric key, and therefore their cryptographic operations are asymmetric. This course will first review the principles of asymmetric cryptography and describe how the use of the pair of keys can provide different security properties. Then, we will study the popular asymmetric schemes in the RSA cipher algorithm and the Diffie-Hellman Key Exchange protocol and learn how and why they work to secure communications/access.

Lastly, we will discuss the key distribution and management for both symmetric keys and public keys and describe the important concepts in public-key distribution such as public-key authority, digital certificate, and public-key infrastructure.

This course also describes some mathematical concepts, e.g., prime factorization and discrete logarithm, which become the bases for the security of asymmetric primitives, and working knowledge of discrete mathematics will be helpful for taking this course; the Symmetric Cryptography course (recommended to be taken before this course) also discusses modulo arithmetic.

This course is cross-listed and is a part of the two specializations, the Applied Cryptography specialization and the Introduction to Applied Cryptography specialization.

Enroll on Coursera

#### Quiz: Asymmetric Cryptography Overview

Q1. Given any plaintext p, a cipher supporting asymmetric cryptography with an encryption function (Enc) and the corresponding decryption function (Dec), and the public-private key pair (Ki,ki) for any user i, which of the followings are true for a cipher that can be used for both message confidentiality and source integrity/signature, e.g., RSA cipher? Select all that applies.

• Dec(k1,Enc(K1,p))=p
• Dec(K2,Enc(k2,p))=p
• Dec(K1,Enc(k2,p))=p
• Dec(k1,Enc(k1,p))=p

Q2. Which of the followings are true about asymmetric cryptography? Check all that applies.

• Asymmetric cryptography is also called private-key cryptography.
• Key distribution and management should be addressed when using asymmetric cryptography.
• Asymmetric cryptography supersedes and generalizes symmetric cryptography.
• Given the same key length, asymmetric cryptographic scheme is more secure than symmetric cryptographic scheme.

Q3. Which of the followings are false for asymmetric cipher requirements? Select all that applies.

• It is computationally easy for any user to generate his/her own public-private key pair.
• The encryption and the decryption computations are easy only with the key that is being used.
• Both the public key and the private key should remain secret against an attacker.
• It is computationally infeasible for an attacker to derive the private key from a public key.
• It is computationally infeasible from an attacker to derive the plaintext from the public key and the ciphertext.
• Both the sender and the receiver can use the same private key for encryption and decryption.

Q4. Suppose f is a trapdoor one-way function designed to be used with the key, k. Which of the followings are computationally easy?

• Solving f(x) if the input and k are known
• Solving the inverse of f if the input to the f-inverse and k are known
• Solving the inverse of f if the input to the f-inverse is known
• Finding k if the input and the corresponding output of f are known

Q5. Which of the followings does the RSA algorithm support? Select all that apply.

• Encryption/decryption
• Key exchange
• Digital signature

Q6. Which of the followings does Diffie-Hellman Key Exchange support: encryption/decryption, digital sig- natures, key exchange? Select all that apply.

• Key exchange
• Encryption/decryption
• Digital signature

#### Quiz 1: RSA Operations

Q1. What is the Euler Totient Function of 12, phi(12)?

``Answer: 4``

Q2. Using the same notations as in the lecture, e.g., p and q are the two primes and e and d are the public key and the private key, respectively, p=5, q=11, e=3. What is the value of phi(n) where phi(n) is the Euler Totient function of n and n is the modulus for RSA cipher?

``Answer: 40``

Q3. (This question builds on the previous question.) Using the same notations as in the lecture, e.g., p and q are the two primes and e and d are the public key and the private key, respectively, p=5, q=11, e=3. Using the phi(n) that you found in the previous question and the Extended Euclidean algorithm yields d=27. What is the ciphertext C when encrypting M=9?

``Answer: 14``

Q4. Using the same notations as in the lecture, e.g., p and q are the two primes and e and d are the public key and the private key, respectively, p=7, q=11, e=17. What is the value of phi(n) where phi(n) is the Euler Totient function of n and n is the modulus for RSA cipher?

``Answer: 60``

Q5. (This question builds on the previous question.) Using the same notations as in the lecture, e.g., p and q are the two primes and e and d are the public key and the private key, respectively, p=7, q=11, e=17. Using the phi(n) that you found in the previous question and the Extended Euclidean algorithm yields d=53. What is the ciphertext C when encrypting M=8?

``Answer: 57``

#### Quiz 2: RSA Algorithm

Q1. Using the same notations as in the lecture, p and q are the two prime factors of n, and e and d are the public key and the private key, respectively. Which of the followings are to be secret against the attacker, assuming that the Prime Factorization problem remains difficult to solve?

• q
• The Euler totient function of e, phi(e)
• n
• e
• p
• d
• The Euler totient function of n, phi(n)
• The Euler totient function of p, phi(p)

Q2. Using the same notations as in the lecture, p and q are the two prime factors of n, and e and d are the public key and the private key, respectively.

Which of the following statements about the RSA cipher are true? Select all that applies.

• For the public-private keys of RSA, e and d, given any plaintext m, m raised to the power of e.d (m^{e.d}) is equal to m.
• e and d are independent from p and q.
• RSA encryption and decryption computations (from plaintext to ciphertext and from ciphertext to plaintext) use all of p, q, e, and d.
• After choosing e, the Extended Euclidean algorithm can be used to derive d.
• After choosing d, the Extended Euclidean algorithm can be used to derive e.

Q3. Using the same notations as in the lecture, e.g., p and q are the two primes and e and d are the public key and the private key, respectively, p=5, q=11. Alice chooses a private key d and derives the public key e. Which of the followings can work for the values of d?

• 8
• 2
• 5
• 9
• 21
• 17

Q4. Using the same notations as in the lecture, e.g., p and q are the two primes and e and d are the public key and the private key, respectively, p=3, q=11, and e=7.

The attacker performs a chosen-ciphertext attack (CCA). It has a known ciphertext 14 and wants to retrieve the corresponding plaintext. It computes c’ = c * r^e mod n and chooses the ciphertext 14 * 2187 mod 33 = 27 and retrieves the corresponding plaintext, 15. What is the plaintext corresponding to the ciphertext 14?

• 5
• 12
• 37
• 23
• 3

#### Quiz 1: Discrete Logarithm and Primitive Root

Q1. What is the value of the discrete logarithm of 3 base 2 mod 5?

``Answer: 3``

Q2. What is the value of the discrete logarithm of 4 base 5 mod 7?

``Answer: 2``

Q3. Identify the primitive roots of the prime number 3. Select all that applies.

• 1
• 0
• 2

Q4. Identify the primitive roots of the prime number 7. Select all that applies.

• 1
• 6
• 5
• 3
• 4
• 2

Q5. Which of the following statements are true?

• Given a large modulus n, the discrete logarithm problem is computationally difficult.
• The discrete logarithm mod p always exist and is unique if p is a prime number.
• Given a large modulus n, the exponential operation mod n is computationally difficult.
• Using the primitive roots of a prime modulus p yields the maximum p-1 possible outcome values for the discrete logarithm, which is desired for cryptography.

#### Quiz 2: Diffie-Hellman Key Exchange and El Gamal Encryption

Q1. Alice and Bob exchanges a key using Diffie-Hellman Key Exchange protocol. Which of the followings do Alice know by the end of the protocol? Select all that applies.

• Bob’s public key (Y_B)
• The prime modulus (p)
• Bob’s private key (X_B)
• The primitive root of the prime modulus (a)
• The shared key by the protocol (K)

Q2. Alice and Bob exchanges a key using Diffie-Hellman Key Exchange protocol. Which of the followings are to be secret against a passive attacker (who wishes to learn the shared key)? Select all that applies.

• Bob’s private key (Y_B)
• Bob’s public key (X_B)
• The prime modulus (p)
• The primitive root of the prime modulus (a)
• The shared key by the protocol (K)

Q3. Alice and Bob uses Diffie-Hellman Key Exchange to share a key with a common prime p=11 and a primitive root a=2. If Alice has a public key Y_A=9, what is her private key X_A?

``Answer: 6``

Q4. (This question builds on the previous question.) Alice and Bob uses Diffie-Hellman Key Exchange to share a key with a common prime p=11 and a primitive root a=2. If Bob has a public key Y_B=3, what is the secret key K shared with Alice?

``Answer: 3``

Q5. Which of the followings are true for Diffie-Hellman Key Exchange and Man-in-the-middle (MITM) attack? Select all that applies.

• Diffie-Hellman Key Exchange protocol establishes a shared secret key between the two parties involved in the protocol and therefore is considered symmetric cryptography.
• MITM attack is a passive attack.
• Diffie-Hellman Key Exchange protocol is widely used for digital signature.
• Diffie-Hellman Key Exchange protocol is vulnerable to MITM attack because of the lack of authentication.

Q6. Which of the followings are true about El Gamal Encryption?

• El Gamal Encryption uses a prime modulus and a primitive root of the modulus.
• El Gamal Encryption relies on prime factorization problem.
• El Gamal Encryption includes the message and the key that is used to protect the message, and the key itself is protected against eavesdropping.
• El Gamal Encryption is used for key exchange between the participating parties.

#### Quiz: Key Distribution and Management

Q1. Alice and Bob wants to communicate with each other. They first use Diffie-Hellman Key Exchange protocol to establish a session key and then use the session key to encrypt the messages from Alice to Bob. An attacker eavesdrops on the resulting ciphertext and conducts a brute-force attack on the encryption. Suppose the attacker succeeds in her brute-force search. Which of the followings remain secure (secret against the attacker)? Select all that applies.

• The message from Alice to Bob
• Bob’s private key
• The session key
• Bob’s public key
• Alice’s private key

Q2. Which of the followings is the most temporary by design?

• Session key
• Public-key certificate
• A user’s public-private key pair
• Nonce
• Master key

Q3. What are the purposes of a nonce in key distribution? Select all that applies.

• To use it for encryption so that the ciphertext does not make sense to the attacker
• For padding the packet
• To use it as a replacement key in case of compromise
• To connect the response to the corresponding communication
• It is used by convention and has no practical use

Q4. There are 5 computers (hardware. Each computer hosts 4 virtual machines (VM) with different addresses, and each VM hosts 10 applications. How many key exchange sessions (in one session, two logical parties share a key) are needed if the decentralized key distribution is used so that all VM’s share a pair-wise keys?

``Answer: 190``

Q5. (This problem has the same setup as the previous question but asks a different question.) There are 5 computers (hardware. Each computer hosts 4 virtual machines (VM) with different addresses, and each VM hosts 10 applications. How many key exchange sessions (in one session, two logical parties share a key) are needed if the decentralized key distribution is used so that all applications share a pair-wise keys?

``Answer: 19900``

Q6. Which of the followings are needed for a CA to generate a digital certificate?

• The private key of CA
• The private key of the user (the certificate subject)
• The public key of the user (the certificate subject)
• The public key of CA
• The nonce used by the user in the last communication
• The request for the user’s certificate

Q7. Which of the followings are required to verify the signature of the digital certificate signed by a CA?

• The public key of CA
• The nonce involved in the user-CA communication
• The private key of CA
• The certificate itself
• The user’s request for the digital certificate

Q8. Which of the following statements are true? Select all that applies.

• Digital certificates can be requested before using it to share the public key.
• Any user has the authority to revoke a certificate.
• The communication between the Public-Key Authority and the requesting user needs to be secure, so that a third party cannot decrypt and learn the content of the communication
• Digital certificates remain valid until it explicitly gets revoked.
• Once receiving the digital certificates signed by a Certificate Authority (CA), a user can share it with anybody whom it wants to communicate.
• Digital certificates need to be accessible only the user that requested for it.

Q9. Which of the followings are the PKI’s responsibilities? Select all that applies.

• Create certificates
• Manage certificates
• Store certificates
• Distribute certificates
• Revoke certificates
##### Conclusion:

I hope this Asymmetric Cryptography and Key Management Coursera Quiz Answers would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

More Coding Solutions >>

LeetCode Solutions

Hacker Rank Solutions

CodeChef Solutions