-
Notifications
You must be signed in to change notification settings - Fork 39
/
yahalom.spdl
52 lines (41 loc) · 955 Bytes
/
yahalom.spdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Yahalom
#
# Modelled after the description in the SPORE library
# http://www.lsv.ens-cachan.fr/spore/yahalom.html
#
#
usertype SessionKey;
protocol yahalom(I,R,S)
{
role I
{
fresh Ni: Nonce;
var Nr: Nonce;
var T: Ticket;
var Kir: SessionKey;
send_1(I,R, I,Ni);
recv_3(S,I, {R,Kir,Ni,Nr}k(I,S), T );
send_4(I,R, T, {Nr}Kir );
claim_I1(I, Secret,Kir);
}
role R
{
fresh Nr: Nonce;
var Ni: Nonce;
var T: Ticket;
var Kir: SessionKey;
recv_1(I,R, I,Ni);
send_2(R,S, R, {I,Ni,Nr}k(R,S) );
recv_4(I,R, {I,Kir}k(R,S) , {Nr}Kir );
claim_R1(R, Secret,Kir);
}
role S
{
fresh Kir: SessionKey;
var Ni,Nr: Nonce;
recv_2(R,S, R, {I,Ni,Nr}k(R,S) );
send_3(S,I, {R,Kir,Ni,Nr}k(I,S), {I,Kir}k(R,S) );
claim(S, Secret, Ni);
claim(S, Secret, Nr);
}
}