KEY AGREEMENT METHOD AND ELECTRONIC DEVICE

Fecha de publicación: 07/09/2022
Fuente: Wipo "IOT"
A key negotiation method and an electronic device are provided, and relate to the field of communications technologies. Specifically, the method includes: An IoT control device multicasts, in a first local area network, a discovery message that carries a first public key, and sends a second ciphertext to a first IoT device after receiving a first ciphertext and a second public key. After receiving a third ciphertext from the first IoT device, the IoT control device decrypts the third ciphertext based on a first session key, to obtain a second signature and second session information; verifies the second signature based on a long-term public key of the first IoT device; and performs encrypted communication with the first IoT device based on the first session key after the second signature is successfully verified. In such a technical solution, because the IoT control device adds the first public key to the discovery message, an STS negotiation process is integrated into a discovery process, thereby helping reduce a quantity of message exchanges between the IoT device and the IoT control device, and improving efficiency of obtaining a session key.