Question 1
Consider the toy key exchange protocol using an online trusted 3rd party
(TTP). Suppose Alice, Bob, and Carol are three
users of this system (among many others) and each have a secret key
with the TTP denoted respectively. They wish to
generate a group session key that will be known to Alice,
Bob, and Carol but unknown to an eavesdropper. How
would you modify the protocol in the lecture to accomodate a group key
exchange of this type? (note that all these protocols are insecure against
active attacks)
Your Answer | Score | Explanation | |
---|---|---|---|
Alice contacts the TTP. TTP generates random and sends to Alice . Alice sends to Bob and to Carol. |
Correct | 1.00 | The protocol works because it lets Alice, Bob, and Carol obtain but an eaesdropper only sees encryptions of under keys he does not have. |
Alice contacts the TTP. TTP generates a random and sends to Alice . Alice sends to Bob and to Carol. |
|||
Alice contacts the TTP. TTP generates a random and a random . It sends to Alice . Alice sends to Bob and to Carol. |
|||
Bob contacts the TTP. TTP generates a random and a random . It sends to Bob . Bob sends to Alice and to Carol. |
|||
Total | 1.00 / 1.00 |
Question 2
Let be a finite cyclic group (e.g. ) with generator .
Suppose the Diffie-Hellman function is
difficult to compute in . Which of the following functions is
also difficult to compute:
As usual, identify the below for which the contra-positive holds: if is easy to compute then so is . If you can show that then it will follow that if is hard to compute in then so must be .
As usual, identify the below for which the contra-positive holds: if is easy to compute then so is . If you can show that then it will follow that if is hard to compute in then so must be .
Your Answer | Score | Explanation | |
---|---|---|---|
Correct | 0.25 | It is easy to compute as . | |
Inorrect | 0.00 | an algorithm for calculating can easily be converted into an algorithm for calculating . Therefore, if were easy to compute then so would , contrading the assumption. | |
Inorrect | 0.00 | It is easy to compute as . | |
Correct | 0.25 | an algorithm for calculating can easily be converted into an algorithm for calculating . Therefore, if were easy to compute then so would , contrading the assumption. | |
Total | 0.50 / 1.00 |
Question 3
Suppose we modify the Diffie-Hellman protocol so that Alice operates
as usual, namely chooses a random in and
sends to Bob . Bob, however, chooses a random
in and sends to Alice . What
shared secret can they generate and how would they do it?
Your Answer | Score | Explanation | |
---|---|---|---|
. Alice computes the secret as and Bob computes . | Correct | 1.00 | This is correct since it is not difficult to see that both will obtain |
. Alice computes the secret as and Bob computes . | |||
. Alice computes the secret as and Bob computes . | |||
. Alice computes the secret as and Bob computes . | |||
Total | 1.00 / 1.00 |
Question 4
Consider the toy key exchange protocol using public key encryption.
Suppose that when sending his reply to Alice, Bob
appends a MAC to the ciphertext so that what is sent
to Alice is the pair . Alice verifies the tag and rejects
the message from Bob if the tag does not verify. Will this additional step
prevent the man in the middle attack described in the lecture?
Your Answer | Score | Explanation | |
---|---|---|---|
yes | |||
no | Correct | 1.00 | an active attacker can still decrypt to recover and then replace by where and . |
it depends on what public key encryption system is used. | |||
it depends on what MAC system is used. | |||
Total | 1.00 / 1.00 |
Question 5
The numbers 7 and 23 are relatively prime and therefore
there must exist integers and such that .
Find such a pair of integers with the smallest possible .
Given this pair, can you determine the inverse of 7 in ?
Enter below comma separated values for , and for in .
Enter below comma separated values for , and for in .
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
Incorrect | 0.00 | ||
Total | 0.00 / 1.00 |
Question Explanation .
Therefore in implying
that in .
Question 6
Solve the equation in .
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
x = 8 | Correct | 1.00 | |
Total | 1.00 / 1.00 |
Question Explanation
Question 7
How many elements are there in ?
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
24 | Correct | 1.00 | |
Total | 1.00 / 1.00 |
Question Explanation .
Question 8
How much is ? (please do not use a calculator for this)
Hint: use Fermat's theorem.
Hint: use Fermat's theorem.
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
2 | Correct | 1.00 | |
Total | 1.00 / 1.00 |
Question ExplanationBy Fermat in and therefore
in .
Then in .
Question 9
While we are at it, how much is ?
Hint: use Euler's theorem (you should not need a calculator)
Hint: use Euler's theorem (you should not need a calculator)
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
32 | Correct | 1.00 | |
Total | 1.00 / 1.00 |
Question Explanation By Euler in and therefore
in .
Then in .
Question 10
What is the order of in ?
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
2,12,20,32 | Correct | 1.00 | |
Total | 1.00 / 1.00 |
Question Explanation in and 12 is the
smallest such positive integer.
Question 11
Which of the following numbers is a
generator of ?
Your Answer | Score | Explanation | |
---|---|---|---|
Correct | 0.20 | No, 9 only generates three elements in . | |
Correct | 0.20 | No, 5 only generates four elements in . | |
Correct | 0.20 | correct, 2 generates the entire group | |
Correct | 0.20 | No, 8 only generates four elements in . | |
Correct | 0.20 | correct, 6 generates the entire group | |
Total | 1.00 / 1.00 |
Question 12
Solve the equation in .
Use the method described in lecture 9.3 using the quadratic formula.
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
x = -9, 5 | Correct | 1.00 | |
Total | 1.00 / 1.00 |
Question ExplanationThe quadratic formula gives the two roots in .
Question 13
What is the 11th root of 2 in ?
(i.e. what is in )
Hint: observe that in .
Hint: observe that in .
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
13 | Correct | 1.00 | |
Total | 1.00 / 1.00 |
Question Explanation in .
Question 14
What is the discete log of 5 base 2 in ?
(i.e. what is )
Recall that the powers of 2 in are
Recall that the powers of 2 in are
You entered:
Your Answer | Score | Explanation | |
---|---|---|---|
9 | Correct | 1.00 | |
Total | 1.00 / 1.00 |
Question Explanation in .
Question 15
If is a prime, how many generators are there in ?
Your Answer | Score | Explanation | |
---|---|---|---|
Correct | 1.00 | The answer is . Here is why. Let be some generator of and let for some . It is not difficult to see that is a generator exactly when we can write as for some integer ( is a generator because if then any power of can also be written as a power of ). Since this exists exactly when is relatively prime to . The number of such is the size of which is precisely . | |
Total | 1.00 / 1.00 |