Research Article

Formal Security Analysis and Improvement Based on LonTalk Authentication Protocol

Algorithm 2

Receive_Msg2().
(1)Receive Msg2, where Msg2 = Encrypt (msg2con, kas)
(2)Decrypt Msg2 using kas’.
if (kas = = kas’) then
 msg2con = Decrypt (Msg2, kas’)
else return Fail
(3)na, msg2sendb = Split (msg2con)
(4)if (na = = na’) then
send msg2sendb’ = {id1,msg2sendb}
else return Fail