2005-03-02 16:28:09 +00:00
|
|
|
#
|
|
|
|
# protocol list
|
|
|
|
#
|
2005-03-03 11:47:53 +00:00
|
|
|
#
|
|
|
|
def list_ppfix(list, prefix, postfix):
|
|
|
|
newlist = []
|
|
|
|
for i in list:
|
|
|
|
newlist.append(prefix + i + postfix)
|
|
|
|
return newlist
|
|
|
|
|
2005-03-02 16:28:09 +00:00
|
|
|
def from_literature():
|
|
|
|
list = [ \
|
|
|
|
"andrew-ban.spdl",
|
|
|
|
"andrew-lowe-ban.spdl",
|
|
|
|
"bkepk.spdl",
|
|
|
|
"bke.spdl",
|
|
|
|
"boyd.spdl",
|
|
|
|
"ccitt509-ban.spdl",
|
|
|
|
"denning-sacco-shared.spdl",
|
|
|
|
"gong-nonce-b.spdl",
|
|
|
|
"gong-nonce.spdl",
|
|
|
|
"isoiec11770-2-13.spdl",
|
|
|
|
"kaochow-palm.spdl",
|
|
|
|
"kaochow.spdl",
|
|
|
|
"ns3.spdl",
|
|
|
|
"nsl3.spdl",
|
|
|
|
"nsl7.spdl",
|
|
|
|
"ns-symmetric-amended.spdl",
|
|
|
|
"ns-symmetric.spdl",
|
|
|
|
"otwayrees.spdl",
|
|
|
|
"soph-keyexch.spdl",
|
|
|
|
"soph.spdl",
|
|
|
|
"splice-as-hc-cj.spdl",
|
|
|
|
"splice-as-hc.spdl",
|
|
|
|
"splice-as.spdl",
|
|
|
|
"tmn.spdl",
|
|
|
|
"wmf-brutus.spdl",
|
|
|
|
"woolam-ce.spdl",
|
|
|
|
"woolam-cmv.spdl",
|
|
|
|
"yahalom-ban.spdl",
|
|
|
|
"yahalom-lowe.spdl",
|
|
|
|
"yahalom-paulson.spdl",
|
|
|
|
"yahalom.spdl" ]
|
|
|
|
|
2005-03-03 11:47:53 +00:00
|
|
|
return list_ppfix(list, "../spdl/","")
|
2005-03-02 16:28:09 +00:00
|
|
|
|
|
|
|
def from_others():
|
|
|
|
list = [ \
|
|
|
|
"bke-broken.spdl",
|
|
|
|
"bke-one.spdl",
|
|
|
|
"bkepk-ce2.spdl",
|
|
|
|
"bkepk-ce.spdl",
|
|
|
|
"broken1.spdl",
|
|
|
|
"carkey-broken-limited.spdl",
|
|
|
|
"carkey-broken.spdl",
|
|
|
|
"carkey-ni2.spdl",
|
|
|
|
"carkey-ni.spdl",
|
|
|
|
"five-run-bound.spdl",
|
|
|
|
"helloworld.spdl",
|
|
|
|
"ns3-brutus.spdl",
|
|
|
|
"nsl3-nisynch-rep.spdl",
|
|
|
|
"onetrace.spdl",
|
|
|
|
"samasc-broken.spdl",
|
|
|
|
"simplest.spdl",
|
|
|
|
"speedtest.spdl",
|
|
|
|
"unknown2.spdl"]
|
2005-03-03 11:47:53 +00:00
|
|
|
|
|
|
|
return list_ppfix(list, "../spdl/","")
|
2005-03-02 16:28:09 +00:00
|
|
|
|
2005-03-03 15:25:59 +00:00
|
|
|
def from_all():
|
|
|
|
return from_literature() + from_others()
|
|
|
|
|
2005-03-02 16:28:09 +00:00
|
|
|
def select(type):
|
2005-03-03 15:25:59 +00:00
|
|
|
n = int(type)
|
|
|
|
if n == 0:
|
2005-03-02 16:28:09 +00:00
|
|
|
# 0 means all protocols
|
2005-03-03 15:25:59 +00:00
|
|
|
return from_all()
|
|
|
|
elif n == 1:
|
|
|
|
# 1 means from literature
|
|
|
|
return from_literature()
|
|
|
|
else:
|
|
|
|
# Otherwise empty list
|
|
|
|
return []
|
2005-03-02 16:28:09 +00:00
|
|
|
|