2006-11-21 13:42:06 +00:00
|
|
|
# BAN modified Andrew Secure RPC
|
|
|
|
#
|
|
|
|
# Modelled after the description in the SPORE library
|
|
|
|
# http://www.lsv.ens-cachan.fr/spore/andrewBAN.html
|
|
|
|
#
|
|
|
|
# Note:
|
|
|
|
# The shared key between I and R is modelled as k(I,R) currently
|
|
|
|
# there is no way to express that this key is equal to k(R,I)
|
|
|
|
# So it is possile that certain attacks that use this property are not found
|
|
|
|
#
|
|
|
|
# Note:
|
|
|
|
# According to SPORE there are no known attacks on this protocol
|
|
|
|
#
|
|
|
|
usertype SessionKey;
|
|
|
|
const Fresh: Function;
|
|
|
|
const Compromised: Function;
|
|
|
|
|
|
|
|
protocol andrew-Ban(I,R)
|
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
2012-04-23 14:53:28 +01:00
|
|
|
fresh ni: Nonce;
|
2006-11-21 13:42:06 +00:00
|
|
|
var nr,nr2: Nonce;
|
|
|
|
var kir: SessionKey;
|
|
|
|
|
|
|
|
send_1(I,R, I,{ni}k(I,R) );
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_2(R,I, {ni,nr}k(I,R) );
|
2006-11-21 13:42:06 +00:00
|
|
|
send_3(I,R, {nr}k(I,R) );
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_4(R,I, {kir,nr2,ni}k(I,R) );
|
2006-11-21 13:42:06 +00:00
|
|
|
claim_I1(I,Nisynch);
|
|
|
|
claim_I2(I,Niagree);
|
|
|
|
claim_I3(I,Secret, kir);
|
|
|
|
claim_I4(I,Secret, k(I,R));
|
|
|
|
claim_I5(I,Empty, (Fresh,kir));
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var ni: Nonce;
|
2012-04-23 14:53:28 +01:00
|
|
|
fresh nr,nr2: Nonce;
|
|
|
|
fresh kir: SessionKey;
|
2006-11-21 13:42:06 +00:00
|
|
|
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_1(I,R, I,{ni}k(I,R) );
|
2006-11-21 13:42:06 +00:00
|
|
|
send_2(R,I, {ni,nr}k(I,R) );
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_3(I,R, {nr}k(I,R) );
|
2006-11-21 13:42:06 +00:00
|
|
|
send_4(R,I, {kir,nr2,ni}k(I,R) );
|
|
|
|
claim_R1(R,Nisynch);
|
|
|
|
claim_R2(R,Niagree);
|
|
|
|
claim_R3(R,Secret, kir);
|
|
|
|
claim_R4(R,Secret, k(I,R));
|
|
|
|
claim_R5(R,Empty, (Fresh,kir));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|