Docsity

CS 425: Distributed Systems - Authentication Protocol Analysis, Assignments of Computer Science

Toggle sidebar
bg1
CS 425: Distributed Systems Homework III
Due date: Optional
Problem 1 As discussed in class, the authentication procedure based on a
shared secret key consists of the following message exchange between Alice and
Bob:
1.
Alice -> Bob
:
A
;
2.
Bob -> Alice
:
RB
;
3.
Alice -> Bob
:
KA,B
(
RB
);
4.
Alice -> Bob
:
RA
;
5.
Bob -> Alice
:
KA,B
(
RA
);
where RA and RB are some random numbers generated by Alice and Bob
respectively. Would it be safe to join message 3 and message 4 in the above
authentication protocol into
KA,B
(
RB
,
RA
)? Justify your answer.
Problem 2 In message 2 of the Needham-Schroeder authentication protocol, the
ticket is encrypted with the secret key shared between Alice and the KDC. Is this
encryption necessary (i.e., is it necessary to encrypt the ticket with
KA
?)
Problem 3 In the Needham-Schroeder authentication protocol, is it necessary to
include Bob's identity
B
in message 2, i.e., can we replace message 2 with:
<
NA
,
KAB
, {
KAB
,
A
}
KB
>
KA
?
(Hint: Can Chuck fool Alice into believing she is talking to Bob, but in reality she
is talking to Chuck?)
Problem 4 An authentication protocol that uses a public-key cryptosystems is as
follows.
1. Alice -> Bob: KB+ (
A
,
NA
);
2. Bob -> Alice: KA+ (
NA
,
NB
,
KAB
);
3. Alice -> Bob:
KAB
(
RB
);
where
NA
and
NB
are some large random numbers generated, respectively, by
Alice and Bob. (Convince yourself that the above authentication protocol does
work.) Can we safely adapt the above protocol such that message 3 consists only
of RB? Justify your answer.

Partial preview of the text

Download CS 425: Distributed Systems - Authentication Protocol Analysis and more Assignments Computer Science in PDF only on Docsity!

CS 425: Distributed Systems Homework III Due date: Optional Problem 1 As discussed in class, the authentication procedure based on a shared secret key consists of the following message exchange between Alice and Bob:

  1. Alice -> Bob : A;
  2. Bob -> Alice : RB;
  3. Alice -> Bob : KA,B ( RB);
  4. Alice -> Bob : RA;
  5. Bob -> Alice : KA,B ( RA); where RA and RB are some random numbers generated by Alice and Bob respectively. Would it be safe to join message 3 and message 4 in the above authentication protocol into KA,B ( RB, RA)? Justify your answer. Problem 2 In message 2 of the Needham-Schroeder authentication protocol, the ticket is encrypted with the secret key shared between Alice and the KDC. Is this encryption necessary (i.e., is it necessary to encrypt the ticket with KA?) Problem 3 In the Needham-Schroeder authentication protocol, is it necessary to include Bob's identity B in message 2, i.e., can we replace message 2 with: < NA, KAB, { KAB, A} K B

> K

A

(Hint: Can Chuck fool Alice into believing she is talking to Bob, but in reality she is talking to Chuck?) Problem 4 An authentication protocol that uses a public-key cryptosystems is as follows.

  1. Alice -> Bob: KB+^ ( A, NA);
  2. Bob -> Alice: KA+^ ( NA, NB, KAB);
  3. Alice -> Bob: KAB ( RB); where NA and NB are some large random numbers generated, respectively, by Alice and Bob. (Convince yourself that the above authentication protocol does work.) Can we safely adapt the above protocol such that message 3 consists only of RB? Justify your answer.