Certification and key exchange protocol of body area network

The invention discloses a certification and key exchange protocol of a body area network. The protocol comprises the following steps that primary nodes broadcast identifiers of the primary nodes and generated random numbers; after receiving broadcast information of the primary nodes, secondary nodes transmit the identifiers, the random numbers and information encrypted by a pre-shared key Kas to the primary nodes; after receiving the information, the primary nodes transmit information encrypted by a pre-shared key Kbs to a control node; after receiving the information, the control node generates a session key KBS of the control node and the primary nodes and a session key KAB of the secondary nodes and the primary nodes, and transmits the related information encrypted by the Kbs and the Kas to the primary nodes; after receiving the information transmitted by the control node, the primary nodes obtain the key KAB and the key KBS through Kbs decryption, and transmit information encrypted by the Kas and the KAB to the secondary nodes A; the second nodes decrypt the information transmitted by the primary nodes through Kas, obtain the random numbers of the primary nodes, and carry out certification. The certification and key exchange protocol of the body area network is efficient, concise, safe and suitable for the body area network and similar networks.