- Add session compromise to all protocols that establish a session key
This commit is contained in:
@@ -12,6 +12,28 @@ secret k : Function;
|
||||
|
||||
usertype Key;
|
||||
const Fresh: Function;
|
||||
const Compromised: Function;
|
||||
|
||||
protocol yahalomSessionKeyCompromise(C)
|
||||
{
|
||||
// Read the names of 3 agents and disclose a session between them including
|
||||
// corresponding session key to simulate key compromise
|
||||
role C {
|
||||
const Ni,Nr: Nonce;
|
||||
const Kir: Key;
|
||||
var I,R,S: Agent;
|
||||
|
||||
read_C1(C,C, I,R,S);
|
||||
send_C2(C,C, I,Ni,
|
||||
R,{I,Ni,Nr}k(R,S),
|
||||
{R,Kir,Ni,Nr}k(I,S),
|
||||
{I,Kir}k(R,S),
|
||||
{Nr}Kir,
|
||||
Kir
|
||||
);
|
||||
claim_C3(C,Empty, (Compromised,Kir));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protocol yahalom(I,R,S)
|
||||
|
||||
Reference in New Issue
Block a user