- Fixed some agent issue.
This commit is contained in:
parent
d7bcd18fb0
commit
0db90f4243
@ -1,3 +1,5 @@
|
|||||||
|
usertype Key;
|
||||||
|
|
||||||
const pk: Function;
|
const pk: Function;
|
||||||
secret sk: Function;
|
secret sk: Function;
|
||||||
inversekeys(pk,sk);
|
inversekeys(pk,sk);
|
||||||
@ -12,7 +14,7 @@ protocol tmn(A,B,S)
|
|||||||
send_1(A,S, B,{Ka}pk(S) );
|
send_1(A,S, B,{Ka}pk(S) );
|
||||||
read_4(S,A, B,{Kb}Ka );
|
read_4(S,A, B,{Kb}Ka );
|
||||||
|
|
||||||
claim(A,Secret,Ka,Kb);
|
claim_5(A,Secret,Ka,Kb);
|
||||||
}
|
}
|
||||||
|
|
||||||
role B
|
role B
|
||||||
@ -22,7 +24,7 @@ protocol tmn(A,B,S)
|
|||||||
read_2(S,B, A );
|
read_2(S,B, A );
|
||||||
send_3(B,S, A, { Kb }pk(S) );
|
send_3(B,S, A, { Kb }pk(S) );
|
||||||
|
|
||||||
claim(B,Secret,Kb);
|
claim_6(B,Secret,Kb);
|
||||||
}
|
}
|
||||||
|
|
||||||
role S
|
role S
|
||||||
@ -34,12 +36,11 @@ protocol tmn(A,B,S)
|
|||||||
read_3(B,S, A, { Kb }pk(S) );
|
read_3(B,S, A, { Kb }pk(S) );
|
||||||
send_4(S,A, B,{Kb}Ka );
|
send_4(S,A, B,{Kb}Ka );
|
||||||
|
|
||||||
//claim(S,Secret,Ka);
|
claim_7(S,Secret,Ka);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const Alice,Bob,Eve: Agent;
|
const Alice,Bob,Eve,Simon: Agent;
|
||||||
const Simon: Server;
|
|
||||||
|
|
||||||
untrusted Eve;
|
untrusted Eve;
|
||||||
compromised sk(Eve);
|
compromised sk(Eve);
|
||||||
|
Loading…
Reference in New Issue
Block a user