Research Article

From Wireless Sensor Networks to Wireless Body Area Networks: Formal Modeling and Verification on Security Using PAT

Algorithm 6

//the process of the initial :
Initiator(SenderNode, loc) =
    IniRunning_ -> //initialize paramenters
    ca!SenderNode. everyone ->
    cb?Node_. Sk_.pk_. Nonce. Nonce. CONSTANT_1 ->
    cc!SenderNode. Node__ID. Sk_. pk_. SenderNodeNonce. Node__Nonce. CONSTANT_2 ->
    skip;
//the process of the responding :
Responder(ReceiverNode, loc) =
    ResInitial_   -> //initialize paramenters
    ca?Node_.everyone ->
    cb!ReceiverNode. Sk. pk. Node__Nonce. ReceiverNodeNonce. CONSTANT_1 ->
    cc?Node_. ReceiverNodeID. Sk_. pk_. Nonce. Nonce. CONSTANT_2 ->
    skip;