Download HLPSL Tutorial - The AVISPA Project

Transcript
3.9 Function Results
3.9
47
Function Results
In the current version of the AVISPA Tool, the return types of functions are not fully supported.
In particular, all function results (like, e.g., hashed values and keys looked up via a function)
implicitly have the most general type message. This can cause subtle executability problems
when receiving in a variable a value that has been computed by the peer using a function. If you
do not give the variable the type message, reception will fail.
3.10
Declaring Channels
For reasons related to the semantics of HLPSL, each channel used in a specification should be
different from the others. This can be easily achieved by declaring a different HLPSL variable for
each DY channel.
The fine details of this are related to the formal semantics of HLPSL and may be interesting
to advanced users. For most users, however, the following modelling rule of thumb should suffice: each agent must have access to a channel for sending and a different channel for receiving.
Channels should be variables and cannot be declared as constants. We encourage modellers to
declare channels as local variables of the session role or in the environment role. One should
avoid declaring channels in the basic roles. Whether or not agents agree on channel names does
not really matter. Look at the traces produced by the back-ends and you will see that everything
is sent to and received from the intruder anyway.
For completeness, we also note that channels cannot be owned. We have not explicitly discussed variable ownership in this tutorial, so this tip can safely be ignored by users who are not
modelling protocol specifications which include ownership.
AVISPA
HLPSL Tutorial