- Add session compromise to all protocols that establish a session key
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
usertype SessionKey;
|
||||
secret k: Function;
|
||||
const Fresh: Function;
|
||||
const Compromised: Function;
|
||||
|
||||
protocol swapkey(X)
|
||||
{
|
||||
@@ -31,6 +32,28 @@ protocol swapkey(X)
|
||||
send_X2(X,X,{T}k(R,I));
|
||||
}
|
||||
}
|
||||
|
||||
protocol andrewConcreteSessionKeyCompromise(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: SessionKey;
|
||||
var I,R: Agent;
|
||||
|
||||
read_C1(C,C, I,R);
|
||||
send_C2(C,C, (I,ni),
|
||||
{ni,kir}k(I,R),
|
||||
{ni}kir,
|
||||
nr,
|
||||
kir
|
||||
);
|
||||
claim_C3(C,Empty, (Compromised,kir));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protocol andrewConcrete(I,R)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user