- Remove some small modelling errors

- New way to model Neumann Stub (it should be 2 distinct protocols)
This commit is contained in:
gijs 2005-06-27 11:50:24 +00:00
parent 6fb6aa33dd
commit c2b3f6492f
5 changed files with 79 additions and 43 deletions

View File

@ -22,7 +22,7 @@ protocol denningSaccoSessionKeyCompromise(C)
role C { role C {
const Ni,Nr: Nonce; const Ni,Nr: Nonce;
const Kir: SessionKey; const Kir: SessionKey;
const T: Ticket; const T: TimeStamp;
var I,R,S: Agent; var I,R,S: Agent;
read_C1(C,C, I,R,S); read_C1(C,C, I,R,S);

View File

@ -28,11 +28,11 @@ protocol kaochow2SessionKeyCompromise(C)
{I,R,Ni,Kir,Kt}k(R,S), {I,R,Ni,Kir,Kt}k(R,S),
R, Nr, R, Nr,
{Nr,Kir}Kt, {Nr,Kir}Kt,
Kir, Kir
Kt // Kt
); );
claim_C3(C,Empty, (Compromised,Kir)); claim_C3(C,Empty, (Compromised,Kir));
claim_C4(C,Empty, (Compromised,Kt)); // claim_C4(C,Empty, (Compromised,Kt));
} }
} }

View File

@ -32,11 +32,11 @@ protocol kaochow3SessionKeyCompromise(C)
Nr, Nr,
{I,R,T2,Kir}k(R,S), {I,R,T2,Kir}k(R,S),
{Nr,Kir}Kt, {Nr,Kir}Kt,
Kir, Kir
Kt // Kt
); );
claim_C3(C,Empty, (Compromised,Kir)); claim_C3(C,Empty, (Compromised,Kir));
claim_C4(C,Empty, (Compromised,Kt)); // claim_C4(C,Empty, (Compromised,Kt));
} }
} }

View File

@ -12,15 +12,14 @@
usertype Server, SessionKey, GeneralizedTimestamp, TicketKey; usertype Server, SessionKey, GeneralizedTimestamp, TicketKey;
secret k: Function; secret k: Function;
const a, b, e: Agent; const Alice, Bob, Simon, Eve: Agent;
const s: Server;
const Fresh: Function; const Fresh: Function;
const Compromised: Function; const Compromised: Function;
const ne: Nonce; const ne: Nonce;
const kee: SessionKey; const kee: SessionKey;
untrusted e; untrusted Eve;
compromised k(e,s); compromised k(Eve,Simon);
protocol kslSessionKeyCompromise(C) protocol kslSessionKeyCompromise(C)
{ {
@ -37,7 +36,7 @@ protocol kslSessionKeyCompromise(C)
send_C2(C,C, (Ni,I), send_C2(C,C, (Ni,I),
(Ni,I,Nr,R), (Ni,I,Nr,R),
{Nr,I,Kir}k(R,S),{Ni,R,Kir}k(I,S), {Nr,I,Kir}k(R,S),{Ni,R,Kir}k(I,S),
{Tr,I,Kir}Kbb,Nc,{Ni}k(I,R), {Tr,I,Kir}Kbb,Nc,{Ni}Kir,
{Nc}Kir, {Nc}Kir,
Ma, Ma,
Mb,{Ma}Kir, Mb,{Ma}Kir,
@ -51,22 +50,22 @@ protocol kslSessionKeyCompromise(C)
} }
protocol ksl(A,B,S) protocol ksl(I,R,S)
{ {
role A role I
{ {
const Na, Ma: Nonce; const Ni, Mi: Nonce;
var Nc, Mb: Nonce; var Nr2, Mr: Nonce;
var T: Ticket; var T: Ticket;
var Kab: SessionKey; var Kir: SessionKey;
send_1(A,B, Na, A); send_1(I,R, Ni, I);
read_4(B,A, { Na,B,Kab }k(A,S), T, Nc, {Na}Kab ); read_4(R,I, {Ni,R,Kir}k(I,S), T, Nr2, {Ni}Kir);
send_5(A,B, { Nc }Kab ); send_5(I,R, {Nr2}Kir );
send_6(A,B, Ma,T ); send_6(I,R, Mi,T );
read_7(B,A, Mb,{Ma}Kab ); read_7(R,I, Mr,{Mi}Kir );
send_8(A,B, {Mb}Kab ); send_8(I,R, {Mr}Kir );
claim_A1(A,Secret, Kab); claim_A1(A,Secret, Kab);
claim_A2(A,Niagree); claim_A2(A,Niagree);
@ -77,8 +76,8 @@ protocol ksl(A,B,S)
role B role B
{ {
var Na,Ma: Nonce; var Na,Ma: Nonce;
const Nb,Nc,Mb: Nonce; const Nr,Nr2,Mr: Nonce;
var Kab: SessionKey; var Kir: SessionKey;
const Kbb: TicketKey; const Kbb: TicketKey;
const Tb: GeneralizedTimestamp; const Tb: GeneralizedTimestamp;
var T: Ticket; var T: Ticket;
@ -109,7 +108,7 @@ protocol ksl(A,B,S)
} }
} }
run ksl.A(a,b,s); run ksl.A(Alice,Bob,Simon);
run ksl.B(a,b,s); run ksl.B(Alice,Bob,Simon);
run ksl.S(a,b,s); run ksl.S(Alice,Bob,Simon);

View File

@ -7,20 +7,23 @@
# This protocol uses a ticket so scyther will only be able to verify # This protocol uses a ticket so scyther will only be able to verify
# the protocol using the ARACHNE engine (-a) # the protocol using the ARACHNE engine (-a)
# #
# Note:
# In SPORE this protocol is not described correctly, there are in fact 2
# different protocols (the key establishment protocol and the repeated
# authentication protocol)
usertype Server, SessionKey, TimeStamp, TicketKey; usertype Server, SessionKey, TimeStamp, TicketKey;
secret k: Function; secret k: Function;
const a, b, e: Agent; const Alice, Bob, Simon, Eve: Agent;
const s: Server;
const Fresh: Function; const Fresh: Function;
const Compromised: Function; const Compromised: Function;
const ne: Nonce; const ne: Nonce;
const kee: SessionKey; const kee: SessionKey;
untrusted e; untrusted Eve;
compromised k(e,s); compromised k(Eve,Simon);
protocol neustubSessionKeyCompromise(C) protocol neustubSessionKeyCompromise(C)
{ {
@ -47,12 +50,52 @@ protocol neustubSessionKeyCompromise(C)
} }
} }
protocol neustubRepeat(I,R,S)
{
const Kir: SessionKey;
role I
{
const Mi: Nonce;
var Mr: Nonce;
const Kir: SessionKey;
const Tr: TimeStamp;
send_5(I,R,Mi,{I,Kir,Tr}k(R,S));
read_6(R,I,Mr,{Mi}Kir);
send_7(I,R,{Mr}Kir);
claim_I1(I,Secret, Kir);
claim_I2(I,Niagree);
claim_I3(I,Nisynch);
claim_I4(I,Empty,(Fresh,Kir));
}
role R
{
const Mr: Nonce;
var Tr: TimeStamp;
var Kir: SessionKey;
var Mi: Nonce;
read_5(I,R,Mi,{I,Kir,Tr}k(R,S));
send_6(R,I,Mr,{Mi}Kir);
read_7(I,R,{Mr}Kir);
claim_R1(R,Secret, Kir);
claim_R2(R,Niagree);
claim_R3(R,Nisynch);
claim_R4(R,Empty,(Fresh,Kir));
}
role S
{
}
}
protocol neustub(I,R,S) protocol neustub(I,R,S)
{ {
role I role I
{ {
const Ni,Mi: Nonce; const Ni: Nonce;
var Nr,Mr: Nonce; var Nr: Nonce;
var T: Ticket; var T: Ticket;
var Tb: TimeStamp; var Tb: TimeStamp;
var Kir: SessionKey; var Kir: SessionKey;
@ -60,9 +103,6 @@ protocol neustub(I,R,S)
send_1(I,R, I, Ni); send_1(I,R, I, Ni);
read_3(S,I, { R,Ni,Kir,Tb}k(I,S), T, Nr); read_3(S,I, { R,Ni,Kir,Tb}k(I,S), T, Nr);
send_4(I,R,T,{Nr}Kir); send_4(I,R,T,{Nr}Kir);
send_5(I,R,Mi,T);
read_6(R,I,Mr,{Mi}Kir);
send_7(I,R,{Mr}Kir);
claim_I1(I,Secret, Kir); claim_I1(I,Secret, Kir);
claim_I2(I,Niagree); claim_I2(I,Niagree);
@ -81,9 +121,6 @@ protocol neustub(I,R,S)
read_1(I,R, I, Ni); read_1(I,R, I, Ni);
send_2(R,S, R, {I, Ni, Tb}k(R,S),Nr); send_2(R,S, R, {I, Ni, Tb}k(R,S),Nr);
read_4(I,R,{I,Kir,Tb}k(R,S),{Nr}Kir); read_4(I,R,{I,Kir,Tb}k(R,S),{Nr}Kir);
read_5(I,R,Mi,T);
send_6(R,I,Mr,{Mi}Kir);
read_7(I,R,{Mr}Kir);
claim_R1(R,Secret, Kir); claim_R1(R,Secret, Kir);
claim_R2(R,Niagree); claim_R2(R,Niagree);
@ -102,7 +139,7 @@ protocol neustub(I,R,S)
} }
} }
run neustub.A(a,b,s); run neustub.I(Alice,Bob,Simon);
run neustub.B(a,b,s); run neustub.R(Alice,Bob,Simon);
run neustub.S(a,b,s); run neustub.S(Alice,Bob,Simon);