Method, Apparatus, and Device for Key Generation and Terminal Provisioning - Patent application

By enabling direct network reconfiguration through shared key generation between enrollees and configurators, the method simplifies and enhances the efficiency of Wi-Fi IoT device provisioning by eliminating redundant authentication steps in the DPP process.

JP7572425B2Active Publication Date: 2024-10-23ALIBABA GROUP HOLDING LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2022508883
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-09-06
Filing Date
2020-08-31
Publication Date
2024-10-23
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

The existing Device Provisioning Protocol (DPP) for Wi-Fi IoT devices is complex and redundant due to the need for network reconfiguration after changes in SSID or access password, requiring additional authentication protocols that increase protocol complexity and redundancy.

Method used

A method and apparatus for generating session keys between an enrollee and configurator, allowing direct network reconfiguration without additional authentication steps by exchanging key information, enabling efficient network reconfiguration using shared key generation between the enrollee and configurator.

Benefits of technology

This approach simplifies the network configuration process by eliminating the need for redundant authentication steps, improving efficiency and reducing protocol complexity in Wi-Fi IoT device provisioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007572425000001
    Figure 0007572425000001
  • Figure 0007572425000002
    Figure 0007572425000002
  • Figure 0007572425000003
    Figure 0007572425000003
Patent Text Reader

Abstract

An embodiment of the present application provides a key generation and terminal provisioning method, apparatus, and device thereof. The method for generating a key includes: an enrollee sending a first request message to a configurator, the first request message including a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation; the enrollee receiving a first message including first key information sent by the configurator; the enrollee generating a session key according to the first key information; and the enrollee sending a second message to the configurator, the second message including second key information, thereby enabling the configurator to generate the session key according to the second key information. During the initial provisioning process, the enrollee and the configurator exchange key information with each other to generate a session key required for subsequent network configuration performed on the enrollee. Therefore, when network reconfiguration is performed on the enrollee, it is not necessary to perform the authentication process again, thereby improving network configuration efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001]

[0001] This application claims priority to Chinese Patent Application No. 20190842413.7, filed on September 6, 2019, and entitled "METHOD, APPARATUS, AND DEVICE FOR KEY GENERATION AND TERMINAL PROVISIONING", which is incorporated herein by reference in its entirety.

[0002]

[0002] The present application relates to the field of communications technology, and in particular to methods, apparatus and devices for generating keys and provisioning terminals. [Background technology]

[0003]

[0003] Due to the rapid development of communication technology, wireless local area network (WLAN) technology conforming to the IEEE 802.11 protocol standard has been widely applied in various devices. Among these devices, some of the devices, such as smart terminal devices such as mobile phones and computers, have a screen (display screen), while some devices, such as Internet of Things (IoT) devices such as smart air conditioners and smart rice cookers, do not have a screen.

[0004]

[0004] Terminal provisioning has always been a weak point for Wi-Fi IoT. After purchasing a Wi-Fi IoT device, the user needs to configure the device to the home Wi-Fi network. Device Provisioning Protocol (DPP) is a protocol defined by the Wi-Fi Alliance to solve the terminal provisioning problem. DPP consists of three sub-protocols, namely, DPP authentication protocol, DPP configuration protocol, and DPP deployment protocol. The DPP authentication protocol is mainly used to enable bidirectional authentication between the configurator and the enrollee, and to generate the session key required for the subsequent DPP configuration protocol. The DPP configuration protocol is mainly used to enable the enrollee to obtain the service set identifier (SSID) and access password required to connect to the access point (AP) from the configurator. The DPP deployment protocol is mainly used to generate the session key required for mutual communication between the enrollees by using the public key and the private key, respectively.

[0005]

[0005] After the SSID or access password is reset, the AP is usually rebooted. Since the enrollee does not obtain the reset information, the configurator needs to perform the configuration again, i.e., the network reconfiguration, and the reconfiguration can only be started from the DPP authentication protocol, which results in an increase in the complexity and redundancy of the protocol. Summary of the Invention

[0006]

[0006] In view of the above problems, embodiments of the present application are proposed to provide methods, apparatus, and devices for key generation and terminal provisioning that overcome or at least partially solve the above problems.

[0007] In a first aspect, in an embodiment of the present application, there is provided a method for generating a key, the method comprising:

[0008] sending, by the enrollee, a first request message to the configurator, the first request message comprising a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation;

[0009] receiving, by the enrollee, a first message sent by the configurator, the first message comprising first key information;

[0010] generating, by the enrollee, a session key according to the first key information;

[0011] sending, by the enrollee, a second message to the configurator, the second message comprising second key information thereby enabling the configurator to generate a session key in accordance with the second key information; Equipped with.

[0008]

[0012] In a second aspect, an apparatus for generating a key located in an enrollee in an embodiment of the present application is provided, the apparatus comprising:

[0013] a sending module configured to send a first request message to a configurator, the first request message comprising a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation;

[0014] a receiving module configured to receive a first message sent by the configurator, the first message comprising first key information;

[0015] a generation module configured to generate a session key according to the first key information; Equipped with

[0016] The sending module is further configured to send a second message to the configurator, the second message comprising second key information, thereby enabling the configurator to generate a session key according to the second key information.

[0009]

[0017] In a third aspect, there is provided an enrollee in an embodiment of the present application comprising a processor and a memory, the memory storing executable code which, when executed by the processor, causes the processor to perform the method for generating a key of the first aspect.

[0010]

[0018] In one embodiment of the present application, a non-transitory machine-readable storage medium is provided, the non-transitory machine-readable storage medium storing executable code that, when executed by a processor of an enrollee, causes the processor to perform a method for generating a key of the first aspect.

[0011]

[0019] In a fourth aspect, a method for generating a key in an embodiment of the present application is provided, the method comprising:

[0020] receiving, by the configurator, a first request message sent by the enrollee, the first request message comprising a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation;

[0021] sending, by the configurator, a first message to the enrollee according to the first identifier, the first message comprising first key information thereby enabling the enrollee to generate a session key according to the first key information;

[0022] receiving, by the configurator, a second message sent by the enrollee, the second message comprising second key information;

[0023] generating, by the configurator, a session key according to the second key information; Equipped with.

[0012]

[0024] In a fifth aspect, an apparatus for generating a key located in a configurator in an embodiment of the present application is provided, the apparatus comprising:

[0025] a receiving module configured to receive a first request message sent by an enrollee, the first request message comprising a first identifier, the first identifier being used to instruct a configurator to perform a network reconfiguration operation; and

[0026] a sending module configured to send a first message to the enrollee according to the first identifier, the first message comprising first key information, thereby enabling the enrollee to generate a session key according to the first key information;

[0027] the receiving module further configured to receive a second message sent by an enrollee, the second message comprising second key information;

[0028] a generation module configured to generate a session key according to the second key information; Equipped with.

[0013]

[0029] In a sixth aspect, there is provided a configurator in an embodiment of the present application comprising a processor and a memory, the memory storing executable code which, when executed by the processor, causes the processor to perform the method for generating a key of the fourth aspect.

[0014]

[0030] In one embodiment of the present application, a non-transitory machine-readable storage medium is provided, the non-transitory machine-readable storage medium storing executable code which, when executed by a processor of a configurator, causes the processor to perform a method for generating a key of the fourth aspect.

[0015]

[0031] In a seventh aspect, a terminal provisioning method in an embodiment of the present application is provided, the method including:

[0032] sending, by the enrollee, a first request message to the configurator, the first request message comprising a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation;

[0033] receiving, by the enrollee, a first message sent by the configurator, the first message comprising first key information;

[0034] generating, by the enrollee, a session key according to the first key information;

[0035] sending, by the enrollee, a second message to the configurator, the second message comprising second key information thereby enabling the configurator to generate a session key in accordance with the second key information, the session key being used in a network reconfiguration process performed on the enrollee; Equipped with.

[0016]

[0036] In an eighth aspect, a terminal provisioning device located at an enrollee in an embodiment of the present application is provided, the device comprising:

[0037] a sending module configured to send a first request message to a configurator, the first request message comprising a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation;

[0038] a receiving module configured to receive a first message sent by the configurator, the first message comprising first key information;

[0039] a generation module configured to generate a session key according to the first key information; Equipped with

[0040] The sending module is further configured to send a second message to the configurator, the second message comprising second key information, thereby enabling the configurator to generate a session key according to the second key information;

[0041] The session key is used in the network reconfiguration process performed on the enrollee.

[0017]

[0042] In a ninth aspect, there is provided an enrollee in an embodiment of the present application comprising a memory and a processor, the memory storing executable code which, when executed by the processor, causes the processor to perform a terminal provisioning method according to the seventh aspect.

[0018]

[0043] In a tenth aspect, a terminal provisioning method in an embodiment of the present application is provided, the method including:

[0044] receiving, by the configurator, a first request message sent by the enrollee, the first request message comprising a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation;

[0045] sending, by the configurator, a first message to the enrollee according to the first identifier, the first message comprising first key information thereby enabling the enrollee to generate a session key according to the first key information;

[0046] receiving, by the configurator, a second message sent by the enrollee, the second message comprising second key information;

[0047] generating, by the configurator, a session key according to the second key information, the session key being used in a network reconfiguration process performed on the enrollee; Equipped with.

[0019]

[0048] In an eleventh aspect, there is provided a terminal provisioning device located in a configurator in an embodiment of the present application, the device comprising:

[0049] a receiving module configured to receive a first request message sent by an enrollee, the first request message comprising a first identifier, the first identifier being used to instruct a configurator to perform a network reconfiguration operation; and

[0050] a sending module configured to send a first message to the enrollee according to the first identifier, the first message comprising first key information, thereby enabling the enrollee to generate a session key according to the first key information;

[0051] the receiving module further configured to receive a second message sent by an enrollee, the second message comprising second key information;

[0052] a generation module configured to generate a session key according to the second key information, the session key being used in a network reconfiguration process performed on the enrollee; and Equipped with.

[0020]

[0053] In a twelfth aspect, there is provided a configurator in one embodiment of the present application comprising a memory and a processor, the memory storing executable code which, when executed by the processor, causes the processor to perform a terminal provisioning method according to the tenth aspect.

[0021]

[0054] In the key generation method and terminal provisioning method provided in the above various aspects, in a network configuration scenario, in the process in which the enrollee currently requests the configurator to perform network configuration, the configurator interacts with the enrollee, and the configurator transmits the first key information generated by the configurator to the enrollee, and the enrollee transmits the second key information generated by the configurator, so that the configurator and the enrollee can generate a session key required for the subsequent network reconfiguration to be performed for the enrollee according to the key information generated by the configurator and other key information received from each other. Therefore, when a network reconfiguration needs to be performed for the enrollee, it is not necessary to perform the DPP authentication process, and it is only necessary to perform the DPP configuration process based on the newly generated session key, thereby improving the network configuration efficiency.

[0022]

[0055] In a thirteenth aspect, a method for generating a key in an embodiment of the present application is provided, the method comprising:

[0056] receiving, by the enrollee, an authentication request message sent by the configurator, the authentication request message comprising first random number information and second random number information;

[0057] generating, by the enrollee, a first session key and a second session key according to the first random number information, the second random number information, and third and fourth random number information corresponding to the enrollee;

[0058] sending, by the enrollee, an authentication response message corresponding to the authentication request message to the configurator, the authentication response message comprising third random number information and fourth random number information, whereby the configurator generates a first session key and a second session key according to the first random number information, the second random number information, the third random number information, and the fourth random number information; Equipped with.

[0023]

[0059] In a fourteenth aspect, an apparatus for generating a key located at an enrollee in an embodiment of the present application is provided, the apparatus comprising:

[0060] a receiving module configured to receive an authentication request message sent by the configurator, the authentication request message comprising first random number information and second random number information;

[0061] a generating module configured to generate a first session key and a second session key according to the first random number information, the second random number information, and third and fourth random number information corresponding to the enrollee;

[0062] a sending module configured to send an authentication response message corresponding to the authentication request message to the configurator, the authentication response message comprising third random number information and fourth random number information, thereby enabling the configurator to generate a first session key and a second session key according to the first random number information, the second random number information, the third random number information, and the fourth random number information; Equipped with.

[0024]

[0063] In a fifteenth aspect, there is provided an enrollee in an embodiment of the present application comprising a processor and a memory, the memory storing executable code which, when executed by the processor, causes the processor to perform the method for generating a key of the thirteenth aspect.

[0025]

[0064] In a sixteenth aspect, a method for generating a key in an embodiment of the present application is provided, the method comprising:

[0065] sending, by the configurator, an authentication request message to the enrollee, the authentication request message comprising the first random number information and the second random number information, thereby enabling the enrollee to generate a first session key and a second session key according to the first random number information, the second random number information, and third random number information and fourth random number information corresponding to the enrollee;

[0066] receiving, by the configurator, an authentication response message sent by the enrollee corresponding to the authentication request message, the authentication response message comprising third random number information and fourth random number information;

[0067] generating, by a configurator, a first session key and a second session key according to the first random number information, the second random number information, the third random number information, and the fourth random number information; Equipped with.

[0026]

[0068] In a seventeenth aspect, there is provided an apparatus for generating a key located at a configurator in an embodiment of the present application, the apparatus comprising:

[0069] a sending module configured to send an authentication request message to the enrollee, the authentication request message comprising first and second random number information, thereby enabling the enrollee to generate a first and second session keys according to the first and second random number information, and third and fourth random number information corresponding to the enrollee;

[0070] a receiving module configured to receive an authentication response message sent by an enrollee in response to the authentication request message, the authentication response message comprising a third random number information and a fourth random number information;

[0071] a generating module configured to generate a first session key and a second session key according to the first random number information, the second random number information, the third random number information, and the fourth random number information; Equipped with.

[0027]

[0072] In an eighteenth aspect, there is provided a configurator in an embodiment of the present application comprising a processor and a memory, the memory storing executable code which, when executed by the processor, causes the processor to perform the method for generating a key of the sixteenth aspect.

[0028]

[0073] The method for generating keys provided in the above thirteenth aspect may be applicable to a DPP authentication process, in which the configurator and the enrollee each generate two random numbers to generate session keys for two provisioning processes. Using the configurator triggering the authentication process as an example, the configurator sends the two random numbers generated by itself (assuming the two random numbers are represented as I-nonce1 and I-nonce2) to the enrollee. Similarly, the enrollee also sends the two random numbers generated by itself (assuming the two random numbers are represented as R-nonce1 and R-nonce2) to the configurator. Thus, the configurator and the enrollee each obtain four random numbers. Both the configurator and the enrollee can generate a first session key (assuming the first session key is denoted as ke1) according to I-nonce1 and R-nonce1, and generate a second session key (assuming the second session key is denoted as ke2) according to I-nonce2 and R-nonce2. The first session key and the second session key can be used in two subsequent network configuration processes between the enrollee and the configurator. Two session keys are generated at once, and different session keys are used in different network configuration processes, so there is no need to go through the authentication protocol procedure again in the reconfiguration process, which improves the network configuration efficiency. [Brief description of the drawings]

[0029]

[0074] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that need to be used in the description of the embodiments are briefly introduced below. It is clear that the accompanying drawings described below are only some embodiments of the present application, and those skilled in the art can also obtain other accompanying drawings according to these drawings without inventive efforts.

[0030] [Figure 1]

[0075] FIG. 2 is a schematic diagram of the principle of a method for generating a key according to an embodiment of the present application; [Diagram 2]

[0076] 1 is a schematic flowchart of a method for generating a key according to an embodiment of the present application; [Diagram 3]

[0077] 4 is a schematic flowchart of a method for generating a key according to another embodiment of the present application; [Figure 4]

[0078] 1 is a schematic flowchart of a terminal provisioning method according to an embodiment of the present application; [Diagram 5]

[0079] 4 is a schematic flowchart of a terminal provisioning method according to another embodiment of the present application; [Figure 6]

[0080] 4 is a schematic flowchart of a terminal provisioning method according to another embodiment of the present application; [Figure 7]

[0081] 4 is a schematic flowchart of a terminal provisioning method according to another embodiment of the present application; [Figure 8]

[0082] 4 is a schematic flowchart of a method for generating a key according to another embodiment of the present application; [Figure 9]

[0083] 4 is a schematic flowchart of implementing network configuration using ke1 and ke2 according to an embodiment of the present application; [Figure 10]

[0084] FIG. 1 is a schematic structural diagram of an apparatus for generating a key according to an embodiment of the present application; [Figure 11]

[0085] 11 is a schematic structural diagram of an enrollee corresponding to the apparatus for generating a key according to the embodiment shown in FIG. 10; [Figure 12]

[0086] FIG. 2 is a schematic structural diagram of another apparatus for generating a key according to an embodiment of the present application; [Figure 13]

[0087] 13 is a schematic structural diagram of a configurator corresponding to the apparatus for generating a key according to the embodiment shown in FIG. 12; [Figure 14]

[0088] FIG. 2 is a schematic structural diagram of a terminal provisioning device according to an embodiment of the present application; [Figure 15]

[0089] FIG. 15 is a schematic structural diagram of an enrollee corresponding to the terminal provisioning apparatus according to the embodiment shown in FIG. 14; [Figure 16]

[0090] FIG. 2 is a schematic structural diagram of another terminal provisioning device according to an embodiment of the present application; [Figure 17]

[0091] 17 is a schematic structural diagram of a configurator corresponding to the terminal provisioning device according to the embodiment shown in FIG. 16; [Figure 18]

[0092] FIG. 2 is a schematic structural diagram of another apparatus for generating a key according to an embodiment of the present application; [Figure 19]

[0093] 19 is a schematic structural diagram of an enrollee corresponding to the apparatus for generating a key according to the embodiment shown in FIG. 18; [Figure 20]

[0094] FIG. 2 is a schematic structural diagram of another apparatus for generating a key according to an embodiment of the present application; [Figure 21]

[0095] FIG. 21 is a schematic structural diagram of a configurator corresponding to the apparatus for generating a key according to the embodiment shown in FIG. 20; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0031]

[0096] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions of the embodiments of the present application with reference to the accompanying drawings of the embodiments of the present application. It is obvious that the described embodiments are only some, not all, of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without inventive efforts shall fall within the protection scope of the present application.

[0032]

[0097] The terms used in the embodiments of the present application are merely for describing specific embodiments and are not intended to limit the present application. The singular forms "a(n)", "said" and "the" used in the embodiments of the present application and the appended claims are intended to include the plural forms unless the context clearly dictates otherwise, and "a plurality of" generally includes at least two.

[0033]

[0098] Depending on the context, the words "in case of" and "if" as used herein may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrase "if it is determined" or "if (a stated condition or event) is detected" may be interpreted to mean "when determined" or "in response to determining" or "when (the stated condition or event) is detected" or "in response to detecting (the stated condition or event)," depending on the context.

[0034]

[0099] It is further noted that the terms "including," "comprising," or other variations thereof are intended to cover a non-exclusive inclusion, such that an article or system including a set of elements includes not only those elements but also other elements not expressly listed or further elements inherent to such article or system. In the absence of further constraints, an element defined by a statement "including a ..." does not exclude other identical elements from the article or system including that element.

[0035]

[0100] Additionally, the sequence of steps in the method embodiments described below is merely an example and is not strictly limiting.

[0036]

[0101] Before specifically introducing the solutions provided in the embodiments of the present application, some concepts related to this specification will first be explained.

[0037]

[0102] As used herein, an enrollee may be an IoT device such as a smart refrigerator, a smart speaker, a robot, etc. In particular, an enrollee may also be an IoT device with low power consumption requirements, such as an infrared sensor, a smoke sensor, etc. An enrollee refers to a device that needs to be provisioned, and is so named because the device has never been connected to the particular wireless network that it is expected to access.

[0038]

[0103] In this specification, a configurator may be a terminal device such as a mobile phone or a tablet computer. The configurator may have accessed a particular wireless network through a network device such as an AP. For example, a user's mobile phone may have accessed a home Wi-Fi network through a wireless router installed in the home.

[0039]

[0104] The configurator may be a terminal device that has accessed an AP but does not have a human-machine interaction screen, such as a smart refrigerator or a smart speaker. In this case, the configurator may locally store network setting information of an AP that the configurator has accessed in order to implement network settings for an enrollee who has not accessed an AP. The network setting information includes the SSID and access password of the AP.

[0040]

[0105] The configurator may also execute a provisioning application and implement the network settings for the enrollee through the provisioning application. In this specification, the terms configurator and provisioning application may be interchanged equivalently.

[0041]

[0106] The solutions provided in the embodiments of the present application are described below.

[0042]

[0107] 1 is a schematic diagram of a method for generating a key according to an embodiment of the present application. As shown in FIG. 1, the method for generating a key may include the following steps:

[0043]

[0108] At 101, an enrollee sends a first request message to a configurator, the first request message including a first identifier, which is used to instruct the configurator to perform a network reconfiguration operation.

[0044]

[0109] In a scenario where a configurator performs network configuration for an enrollee, the method for generating keys of the present embodiment may be implemented in the DPP configuration process.

[0045]

[0110] The above-mentioned first request message may be a request message (which may be expressed as DPP configuration request) that the enrollee requests the configurator to perform network configuration. Also, the first request message may be sent to the configurator when the enrollee performs network configuration for the first time. The first identifier included in the first request message is used to indicate that the enrollee has the ability of network reconfiguration. Optionally, the first identifier may also be used to instruct the configurator to carry the first key information in a DPP configuration response message to be sent later. The DPP configuration response message may be the first message. The first key information may be a public key included in a connector generated by the configurator. The first identifier may be referred to as a reconfiguration status identifier (ReconfigStatus) or a send connector status identifier (SendConnectorStatus). The first identifier may be given other names, which are not specifically limited in the present invention. Here, the connector generated by the configurator comprises a public key of the configurator's generated public private key pair. In general, the function of a connector is to provide a secure channel for a communication connection between two devices, which may be, for example, an enrollee and a configurator.

[0046]

[0111] It can be seen that the first identifier is carried in the first request message to cause the configurator to perform a network reconfiguration operation, i.e. to perform the following steps:

[0047]

[0112] At 102, the configurator sends a first message to the enrollee according to the first identifier, where the first message includes first key information.

[0048]

[0113] Upon receiving the first request message, the configurator analyzes the first request message to determine that a preset first identifier is included in the first request message, determines that the enrollee has network reconfiguration capability, and triggers transmission of a first message including first key information to the enrollee.

[0049]

[0114] Here, the first key information may be a public key of a public-private key pair generated by the configurator upon receiving the first request message including the first identifier.

[0050]

[0115] Optionally, the first request message may not include the first identifier. The configurator may directly carry the first key information in the first message. After receiving the first message, if it is detected that the reconfiguration capability is not supported, the enrollee may ignore the first key information in the first message. Otherwise, the enrollee may carry the second key information in a second message sent to the configurator.

[0051]

[0116] Optionally, the first request message may further include information about the number of session keys to be generated. After receiving the information about the number of session keys to be generated, the enrollee will generate a corresponding number of connectors according to such information. For example, if the information about the number of session keys to be generated is 3, the configurator will add "Connector 1" to the first information sent to the enrollee, respectively. confC1 Connector confC2 , and Connector confC3 The enrollee will generate Ks1, Ks2, and Ks3 in sequence according to the received public keys of the three connectors and the private key of the self-generated public-private key pair. Similarly, the enrollee will include the public keys of the three connectors in the second message sent to the configurator. confE1 Connector confE2 , and Connector confE3The configurator will sequentially generate Ks1, Ks2, and Ks3 according to the received public keys of the three connectors and the private key of the self-generated public-private key pair. The three session keys will be used sequentially for the second configuration process, the third configuration process, and the fourth configuration process. After receiving and sending the connection status inquiry result message in the configuration process, the configurator and the enrollee will delete the session keys used in the current provisioning process.

[0052]

[0117] For simplicity, the present specification will only use the generation of the session key Ks required in the second setup process as an example.

[0053]

[0118] At 103, the enrollee generates a session key Ks according to the first key information.

[0054]

[0119] After sending the above first request message, the enrollee may generate a public-private key pair and use the public key as the second key information.

[0055]

[0120] After obtaining the first key material, the enrollee combines it with self-generated second key material (i.e., in combination with a private key corresponding to the self-generated public key) to generate a session key Ks required for subsequent network reconfiguration for the enrollee.

[0056]

[0121] Here, the session key Ks is calculated as follows:

[0122] N=first key information*secret key corresponding to second key information;

[0123] Session key Ks=HKDF(< >,“DPP second config”,Nx)

[0057]

[0124] where * represents multiplication, "DPP second config" represents a string that can be customized, < > is used as the salt passed to HKDF, represents an unsalted HKDF call, and HKDF represents a specific key derivation function (HMAC-based key derivation function).

[0058]

[0125] Now, in the process of using the HKDF function, each point on the elliptic curve has an (x,y) coordinate. A complex element may be converted to a scalar by using the x coordinate of the element and ignoring the y coordinate of the element. For example, val=Pub.x.

[0059]

[0126] Based on this, Nx may represent a scalar of the complex number N, where x is the abscissa corresponding to the complex number N on the elliptic curve.

[0060]

[0127] As explained above, the first key information is the public key of a public-private key pair generated by the configurator, and the second key information is the public key of a public-private key pair generated by the enrollee.

[0061]

[0128] At 104, the enrollee sends a second message to the configurator, the second message including second key information.

[0062]

[0129] At 105, the configurator generates a session key Ks according to the second key information.

[0063]

[0130] The manner in which the configurator generates the session key Ks is the same as the manner in which the enrollee generates the session key Ks. It will be appreciated that both the enrollee and the configurator ultimately obtain the same session key, which will be denoted as Ks.

[0064]

[0131] In an optional embodiment, the session key Ks generated by the configurator and the enrollee may be used in a network reconfiguration process performed on the enrollee.

[0065]

[0132] Here, network reconfiguration means that, assuming that the enrollee has accessed the AP in the first network configuration process, the SSID or the access password of the AP is updated after that, so the AP is triggered to reboot. After the AP is rebooted, the enrollee does not obtain the new network configuration information of the AP at this time, so the enrollee and the AP are disconnected. Therefore, in order to enable the enrollee to access the AP again, it is necessary to perform network reconfiguration for the enrollee. Based on this, the session key Ks can be used in the network reconfiguration process performed for the enrollee.

[0066]

[0133] It can be understood that when the session key Ks is used in the network reconfiguration process performed on the enrollee, if the enrollee accesses the AP again, the session key Ks will be invalid, i.e., data exchanges between the enrollee and the configurator will no longer be encrypted with the session key Ks. Of course, optionally, a life cycle of the session key Ks may be set. For example, data exchanges between the enrollee and the configurator may be encrypted with the session key Ks even after the enrollee accesses the AP again.

[0067]

[0134] The embodiment shown in FIG. 1 is only a brief introduction to the principle of the method for generating a key, and some specific implementation processes of the method for generating a key are illustratively described below with reference to the following embodiments.

[0068]

[0135] 2 is a schematic flowchart of a method for generating a key according to an embodiment of the present application. As shown in FIG. 2, the method for generating a key may include the following steps:

[0069]

[0136] At 201, the enrollee and the configurator generate an initial session key Ke through a DPP authentication process.

[0070]

[0137] In this embodiment, optionally, the first time the configurator configures the network settings for the enrollee, the implementation of the DPP authentication process may be triggered. The DPP authentication process may be initiated by the enrollee or by the configurator.

[0071]

[0138] A session key Ke may be generated during the DPP authentication process (the generation of Ke belongs to the prior art and the details will not be repeated), and during the subsequent process of initially configuring the network for the enrollee, the session key Ke may be used to encrypt messages exchanged for transmission between the enrollee and the configurator.

[0072]

[0139] At 202, the enrollee sends a first request message to the configurator, the first request message being encrypted by Ke, the first request message including a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation.

[0073]

[0140] At 203, the configurator sends a first response message corresponding to the first request message to the enrollee according to the first identifier, where the first response message is encrypted by Ke, and the first response message includes first key information.

[0074]

[0141] At 204, the enrollee generates a session key Ks according to the first key information.

[0075]

[0142] At 205, the enrollee sends a first confirmation message to the configurator corresponding to the first response message, where the first confirmation message is encrypted by Ke, and where the first confirmation message includes the second key information.

[0076]

[0143] At 206, the configurator generates a session key Ks according to the second key information.

[0077]

[0144] The above steps 201 to 206 may be performed in the process in which the configurator first configures the network settings for the enrollee.

[0078]

[0145] Here, the first request message may also be referred to as a DPP configuration request and may be expressed as a DPP Configuration Request, which carries the above-mentioned first identifier, which may be expressed as SecondConfigStatus.

[0079]

[0146] In response to the first request message, the configurator sends a first response message to the enrollee, the first response message including the first key information. The first key information may be a public key currently generated by the configurator, and the first key information may be a Connector confC Connector confC Regarding the process in which the enrollee generates the session key Ks according to the above, reference may be made to the description of the embodiment mentioned above. The Connector is a connector. The first response message may be expressed as a DPP configuration Response, and therefore the first response message may also be referred to as a first DPP configuration confirmation message.

[0080]

[0147] If the enrollee successfully receives the first response message, the enrollee may send a first confirmation message including second key information to the configurator, where the first confirmation message may be denoted as DPP configuration confirm. Here, the second key information may be a public key of a public-private key pair currently generated by the enrollee. The first key information may be a Connector confE Connector confE Regarding the process in which the configurator generates the session key Ks according to the above, the description of the embodiment mentioned above may be referred to.

[0081]

[0148] At this point, the first network configuration process for the enrollee generates a session key Ks necessary to perform network reconfiguration for the enrollee.

[0082]

[0149] At 207, the enrollee sends a second request message to the configurator, where the second request message is encrypted with the session key Ks.

[0083]

[0150] At 208, the configurator sends a second response message to the enrollee corresponding to the second request message, the second response message being encrypted with the session key Ks.

[0084]

[0151] At 209, the enrollee sends a second confirmation message to the configurator, the second confirmation message being encrypted with the session key Ks.

[0085]

[0152] Here, the second confirmation message may be expressed as DPP configuration confirm, and therefore the second response message may also be referred to as a second DPP configuration confirmation message.

[0086]

[0153] The above steps 207 to 208 may be implemented in a network reconfiguration process performed by the configurator on the enrollee.

[0087]

[0154] In practical applications, changes in the SSID or access password of the AP are often caused by a user's manual update. Therefore, after changing the SSID or access password of the AP, the user may optionally apply a trigger action to the enrollee, thereby triggering the enrollee to perform step 207. For example, the enrollee may be equipped with a button to start provisioning, and the user presses the button to trigger the enrollee to perform step 207.

[0088]

[0155] 3 is a schematic flowchart of a method for generating a key according to another embodiment of the present application. As shown in FIG. 3, the method for generating a key may include the following steps:

[0089]

[0156] At 301, the enrollee and the configurator generate an initial session key Ke through a DPP authentication process.

[0090]

[0157] At 302, the enrollee sends a first request message to the configurator, where the first request message is encrypted by Ke and where the first request message includes a first identifier, where the first identifier is used to instruct the configurator to perform a network reconfiguration operation.

[0091]

[0158] At 303, the configurator sends a first response message corresponding to the first request message to the enrollee according to the first identifier, where the first response message is encrypted by Ke.

[0092]

[0159] At 304, the enrollee sends a first confirmation message to the configurator corresponding to the first response message, where the first confirmation message is encrypted by Ke, and where the first confirmation message includes the second key information.

[0093]

[0160] At 305, the configurator generates a session key Ks according to the second key information.

[0094]

[0161] Optionally, the first response message may include current first network setting information of the AP, thereby enabling the enrollee to access the AP according to the first network setting information.

[0095]

[0162] In an optional embodiment, after receiving the first confirmation message, the enrollee may send a connection status query result message (which may be represented as Status Query Result) to the configurator after a preset time interval to inform the configurator whether the enrollee and the AP are in a connection state. Based on this, the enrollee may optionally accompany the second key information in the connection status report information, so that the second key information is sent to the configurator.

[0096]

[0163] At 306, the configurator sends a notification message to the enrollee, the notification message is used to cause the enrollee to begin a network reconfiguration process, the notification message includes the first key information, the notification message being encrypted by Ke.

[0097]

[0164] At 306, when the enrollee cannot access the AP, the configurator may be triggered to send a notification message to the enrollee. Optionally, when the network setting information of the AP changes, the user may trigger the configurator to send a notification message to the enrollee by operating the configurator to scan a two-dimensional code set for the enrollee.

[0098]

[0165] Note that the enrollee is often a low power consumption device. To reduce energy consumption, the enrollee is configured to operate in a passive monitoring mode and to periodically monitor the notification messages sent by the configurator when it finds that it cannot access the AP. If the enrollee is not a low power consumption device, when the enrollee detects that it cannot access the AP, it may directly fall back to the configuration channel and periodically send a DPP configuration request message (i.e., corresponding to the second request message below) on the configuration channel, and the sent DPP configuration request message is encrypted by Ks.

[0099]

[0166] Optionally, a preset second identifier may be carried in the notification message, and the second identifier is used to instruct the enrollee to start the network reconfiguration process. In other words, upon receiving the notification message containing the second identifier, the enrollee starts to perform the network reconfiguration process, i.e., starts to perform the next step.

[0100]

[0167] At 307, the enrollee generates a session key Ks according to the first key information.

[0101]

[0168] At 308, the enrollee sends a second request message to the configurator, where the second request message is encrypted with the session key Ks.

[0102]

[0169] At 309, the configurator sends a second response message to the enrollee corresponding to the second request message, the second response message being encrypted with the session key Ks.

[0103]

[0170] At 310, the enrollee sends a second confirmation message to the configurator, the second confirmation message being encrypted with the session key Ks.

[0104]

[0171] As can be seen from the embodiments shown in Figures 2 and 3, the timing of transmission of the above first key information and second key information is not strictly limited, as long as the session key Ks is generated before the reconfiguration process is started.

[0105]

[0172] The embodiment shown in Figures 2 and 3 focuses on how to implement the method for generating a key in the network configuration process for an enrollee. Correspondingly, when this method for generating a key is used, the following embodiment for implementing a terminal provisioning solution can be referred to.

[0106]

[0173] 4 is a schematic flowchart of a terminal provisioning method according to an embodiment of the present application. As shown in FIG. 4, the terminal provisioning method may include the following steps:

[0107]

[0174] At 401, the enrollee and the configurator generate an initial session key Ke through a DPP authentication process.

[0108]

[0175] At 402, the enrollee sends a first request message to the configurator, where the first request message is encrypted by Ke and where the first request message includes a first identifier, where the first identifier is used to instruct the configurator to perform a network reconfiguration operation.

[0109]

[0176] In 403, the configurator sends a first response message corresponding to the first request message to the enrollee according to the first identifier, where the first response message is encrypted by Ke, and the first response message includes first key information and first network setting information of the AP.

[0110]

[0177] At 404, the enrollee generates a session key Ks according to the first key information.

[0111]

[0178] At 405, the enrollee sends a first confirmation message to the configurator corresponding to the first response message, where the first confirmation message is encrypted by Ke, and where the first confirmation message includes the second key information.

[0112]

[0179] At 406, the enrollee accesses the AP according to the first network configuration information.

[0113]

[0180] The configurator may also carry the network configuration information of the current AP (referred to as first network configuration information) in the first response message for transmission to the enrollee.

[0114]

[0181] The enrollee performs decryption by using Ke to obtain the first network setting information, and then accesses the AP.

[0115]

[0182] At 407, the configurator generates a session key Ks according to the second key information.

[0116]

[0183] At 408, the enrollee sends a second request message to the configurator, where the second request message is encrypted with the session key Ks.

[0117]

[0184] At 409, the configurator sends a second response message corresponding to the second request message to the enrollee, where the second response message is encrypted by the session key Ks, and the second response message includes second network configuration information of the AP.

[0118]

[0185] After the network setting information of the AP is changed, the current network setting information of the AP is referred to as the second network setting information.

[0119]

[0186] At 410, the enrollee sends a second confirmation message to the configurator, the second confirmation message being encrypted with the session key Ks.

[0120]

[0187] At 411, the enrollee performs decryption according to the session key Ks to obtain the second network setting information for accessing the AP.

[0121]

[0188] 5 is a schematic flowchart of a terminal provisioning method according to another embodiment of the present application. As shown in FIG. 5, the terminal provisioning method may include the following steps:

[0122]

[0189] At 501, the enrollee and the configurator generate an initial session key Ke through a DPP authentication process.

[0123]

[0190] At 502, the enrollee sends a first request message to the configurator, the first request message being encrypted by Ke, the first request message including a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation.

[0124]

[0191] In 503, the configurator sends a first response message corresponding to the first request message to the enrollee according to the first identifier, where the first response message is encrypted by Ke, and the first response message includes first key information and first network setting information of the AP.

[0125]

[0192] At 504, the enrollee generates a session key Ks according to the first key information.

[0126]

[0193] At 505, the enrollee sends a first confirmation message to the configurator corresponding to the first response message, the first confirmation message being encrypted by Ke.

[0127]

[0194] At 506, the enrollee accesses the AP according to the first network configuration information.

[0128]

[0195] At 507, the enrollee sends a connection status inquiry result message to the configurator, where the connection status inquiry result message includes the second key information.

[0129]

[0196] It can be understood that the connection status inquiry result message may further comprise a field indicating whether the enrollee and the AP are in a connection state.

[0130]

[0197] At 508, the configurator generates a session key Ks according to the second key information.

[0131]

[0198] At 509, the configurator sends a notification message to the enrollee, the notification message including the second identifier to cause the enrollee to begin the network reconfiguration process, the notification message being encrypted with the session key Ks.

[0132]

[0199] At 510, the enrollee sends a second request message to the configurator, where the second request message is encrypted with the session key Ks.

[0133]

[0200] At 511, the configurator sends a second response message corresponding to the second request message to the enrollee, where the second response message is encrypted by the session key Ks, and the second response message includes second network configuration information of the AP.

[0134]

[0201] The second network setting information includes an SSID and an access password corresponding to the SSID, where the SSID and / or the access password of the second network setting information are different from the SSID and the access password included in the first network setting information.

[0135]

[0202] At 512, the enrollee sends a second confirmation message to the configurator, the second confirmation message being encrypted with the session key Ks.

[0136]

[0203] At 513, the enrollee performs decryption according to the session key Ks to obtain the second network setting information for accessing the AP.

[0137]

[0204] 6 is a schematic flowchart of a terminal provisioning method according to another embodiment of the present application. As shown in FIG. 6, the terminal provisioning method may include the following steps:

[0138]

[0205] At 601, the enrollee and the configurator generate an initial session key Ke through a DPP authentication process.

[0139]

[0206] At 602, the enrollee sends a first request message to the configurator, where the first request message is encrypted by Ke and where the first request message includes a first identifier, where the first identifier is used to instruct the configurator to perform a network reconfiguration operation.

[0140]

[0207] At 603, the configurator sends a first response message corresponding to the first request message to the enrollee according to the first identifier, where the first response message is encrypted by Ke, and the first response message includes first network configuration information of the AP.

[0141]

[0208] At 604, the enrollee sends a first confirmation message to the configurator corresponding to the first response message, the first confirmation message being encrypted by Ke.

[0142]

[0209] At 605, the enrollee accesses the AP according to the first network configuration information.

[0143]

[0210] At 606, the enrollee sends a connection status inquiry result message to the configurator, where the connection status inquiry result message includes the second key information, and the connection status inquiry result message is encrypted by Ke.

[0144]

[0211] At 607, the configurator generates a session key Ks according to the second key information.

[0145]

[0212] At 608, the configurator sends a notification message to the enrollee, the notification message including the second identifier and the first key information to cause the enrollee to begin a network reconfiguration process, the notification message being encrypted by Ke.

[0146]

[0213] At 609, the enrollee generates a session key Ks according to the first key information.

[0147]

[0214] At 610, the enrollee sends a second request message to the configurator, where the second request message is encrypted with the session key Ks.

[0148]

[0215] At 611, the configurator sends a second response message corresponding to the second request message to the enrollee, where the second response message is encrypted by the session key Ks, and the second response message includes second network configuration information of the AP.

[0149]

[0216] At 612, the enrollee sends a second confirmation message to the configurator, the second confirmation message being encrypted with the session key Ks.

[0150]

[0217] At 613, the enrollee performs decryption according to the session key Ks to obtain the second network configuration information for accessing the AP.

[0151]

[0218] 7 is a schematic flowchart of a terminal provisioning method according to another embodiment of the present application. As shown in FIG. 7, the terminal provisioning method may include the following steps:

[0152]

[0219] At 701, the enrollee and the configurator generate an initial session key Ke through a DPP authentication process.

[0153]

[0220] At 702, the enrollee sends a first request message to the configurator, where the first request message is encrypted by Ke and where the first request message includes a first identifier, where the first identifier is used to instruct the configurator to perform a network reconfiguration operation.

[0154]

[0221] At 703, the configurator sends a first response message corresponding to the first request message to the enrollee according to the first identifier, where the first response message is encrypted by Ke, and the first response message includes first network configuration information of the AP.

[0155]

[0222] At 704, the enrollee sends a first confirmation message to the configurator corresponding to the first response message, where the first confirmation message is encrypted by Ke, and where the first confirmation message includes the second key information.

[0156]

[0223] At 705, the enrollee accesses the AP according to the first network configuration information.

[0157]

[0224] At 706, the configurator generates a session key Ks according to the second key information.

[0158]

[0225] At 707, the enrollee sends a connection status inquiry result message to the configurator.

[0159]

[0226] At 708, the configurator sends a notification message to the enrollee, the notification message including the second identifier and the first key information, the second identifier being used to cause the enrollee to initiate a network reconfiguration process, and the notification message being encrypted by Ke.

[0160]

[0227] At 709, the enrollee generates a session key Ks according to the first key information.

[0161]

[0228] At 710, the enrollee sends a second request message to the configurator, where the second request message is encrypted with the session key Ks.

[0162]

[0229] At 711, the configurator sends a second response message corresponding to the second request message to the enrollee, where the second response message is encrypted by the session key Ks, and the second response message includes second network configuration information of the AP.

[0163]

[0230] At 712, the enrollee sends a second confirmation message to the configurator, the second confirmation message being encrypted with the session key Ks.

[0164]

[0231] At 713, the enrollee performs decryption according to the session key Ks to obtain the second network configuration information for accessing the AP.

[0165]

[0232] In summary, the above various embodiments provide a new implementation solution for the DPP configuration process, in which in a first network configuration process, the enrollee and the configurator exchange first and second key information, which are key information required in a subsequent second network reconfiguration process, and thus both the configurator and the enrollee generate a session key Ks required in the next network reconfiguration process. In this way, the DPP configuration process can be directly implemented in the network reconfiguration process based on the session key Ks, so there is no need to implement the DPP authentication process again, thereby improving provisioning efficiency.

[0166]

[0233] The solution provided in the above embodiment mainly includes a DPP setting process. A method for generating a key implemented in the DPP authentication process is further provided in the following embodiments of the present application.

[0167]

[0234] 8 is a schematic flowchart of a method for generating a key according to another embodiment of the present application. As shown in FIG. 8, the method for generating a key includes the following steps:

[0168]

[0235] At 801, the configurator sends an authentication request message to the enrollee, where the authentication request message includes the first random number information and the second random number information.

[0169]

[0236] At 802, the enrollee generates a first session key and a second session key according to the first random number information, the second random number information, and the third and fourth random number information corresponding to the enrollee.

[0170]

[0237] At 803, the enrollee sends an authentication response message corresponding to the authentication request message to the configurator, where the authentication response message includes the third random number information and the fourth random number information.

[0171]

[0238] At 804, the configurator generates a first session key and a second session key according to the first random number information, the second random number information, the third random number information, and the fourth random number information.

[0172]

[0239] For ease of explanation below, the first random number information and the second random number information are represented as I-nonce1 and I-nonce2, respectively, the third random number information and the fourth random number information are represented as R-nonce1 and R-nonce2, respectively, and the first session key and the second session key are represented as ke1 and ke2, respectively.

[0173]

[0240] The method for generating keys provided in this embodiment may be applicable to a scenario in which a configurator performs network settings for an enrollee.

[0174]

[0241] Optionally, a two-dimensional code may be set for the enrollee, and when the network settings need to be implemented for the enrollee, the configurator may be triggered to send an authentication request message to the enrollee by scanning the two-dimensional code.

[0175]

[0242] In this embodiment, the description is given by using the configurator that actively triggers the DPP authentication process as an example. In practice, the DPP authentication process can also be triggered by the enrollee. In this case, the enrollee sends an authentication request message (which can be expressed as a DPP authentication request) including the enrollee's third random number information and fourth random number information to the configurator, and the configurator sends an authentication response message (which can be expressed as a DPP authentication response) including the configurator's first random number information and second random number information to the enrollee. At this point, optionally, a button for triggering provisioning may be provided on the enrollee. When the user presses the button, the enrollee may be triggered to send an authentication request message to the configurator.

[0176]

[0243] It can be seen that for both the configurator and the enrollee, the four random numbers described above, namely I-nonce1, I-nonce2, R-nonce1, and R-nonce2, will be obtained.

[0177]

[0244] In summary, for a configurator, the configurator may generate ke1 based on I-nonce1 and R-nonce1, and may generate ke2 based on I-nonce2 and R-nonce2. Similarly, for an enrollee, the enrollee may also generate ke1 according to I-nonce1 and R-nonce1, and may generate ke2 according to I-nonce2 and R-nonce2.

[0178]

[0245] Note that the enrollee may be configured as follows: upon receiving an authentication request message containing two random numbers I-nonce1 and I-nonce2, it knows that two session keys need to be generated, one for use in the first network configuration process of the enrollee's configurator and the other for use in the network reconfiguration process of the enrollee's configurator. It is assumed that ke1 will be used in the first network configuration process of the enrollee's configurator and ke2 will be used in the network reconfiguration process of the enrollee's configurator.

[0179]

[0246] Of course, optionally, the authentication request message may include a preset first identifier, which instructs the enrollee to generate a session key for performing network reconfiguration. In other words, the first identifier may be carried in the authentication request message, so that when receiving the authentication request message including the first identifier, the enrollee directly knows that two session keys ke1 and ke2 need to be generated. That is, the enrollee knows that, based on the first identifier, in addition to the session key ke1 used in the first network configuration process of the configurator for the enrollee, the session key ke2 used in the network reconfiguration process of the configurator for the enrollee also needs to be generated.

[0180]

[0247] The detailed process of generating ke1 and ke2 is described below.

[0181]

[0248] Regarding Enrollee,

[0249] Ke1=HKDF(I-nonce1|R-nonce1,“DPP Re-configuration Key”,Mx|Nx[|Lx]);

[0250] Ke2=HKDF(I-nonce2|R-nonce2,“DPP Re-configuration Key”,Mx|Nx[|Lx]) It is.

[0182]

[0251] where Mx represents a scalar in M, where x can be the abscissa corresponding to the complex number M on the elliptic curve, and M is the public key P of the configurator’s protocol key pair. l and the private key of the enrollee's bootstrap key pair b R and the generating formula is

[0252] M=b R ×P l It is.

[0183]

[0253] Here, Nx represents a scalar of N, where x can be the abscissa corresponding to the complex number N on the elliptic curve, and N is the public key P of the configurator’s protocol key pair. l and the private key p of the enrollee's protocol key pair R and the generating formula is

[0254] N=p R ×P l It is.

[0184]

[0255] Here, Lx represents a scalar in L, where x can be the abscissa corresponding to the complex number L on the elliptic curve, and L is the private key b R and the private key p of the enrollee's protocol key pair R and the public key B of the configurator's bootstrap key pair l and the generating formula is

[0256] L=((b R +p R ) modulo q) × B l It is.

[0185]

[0257] where | represents the merge operation, "DPP Re-configuration Key" represents the string here, whose value can be self-defined, [ ] indicates that the variable or field Lx within the brackets is optional or is used only under certain conditions, and modulo q represents the modulo operation.

[0186]

[0258] Regarding the configurator,

[0259] Ke1=HKDF(I-nonce1|R-nonce1,“DPP Re-configuration Key”,Mx|Nx[|Lx]);

[0260] Ke2=HKDF(I-nonce2|R-nonce2,“DPP Re-configuration Key”,Mx|Nx[|Lx]) It is.

[0187]

[0261] Here, M is the private key p of the configurator's protocol key pair. l and the public key of the enrollee's bootstrap key pair B R and the generating formula is

[0262] M=p l ×B R It is.

[0188]

[0263] where N is the private key p of the configurator's protocol key pair. l and the public key of the enrollee's protocol key pair P R and the generating formula is

[0264] N=p l ×P R It is.

[0189]

[0265] where L is the private key of the configurator's bootstrap key pair b l and the public key P of the enrollee's protocol key pair R and the public key of the enrollee's bootstrap key pair BR and the generating formula is

[0266] L=b l ×(B R +P R ) It is.

[0190]

[0267] Note that the calculation methods for M, N, and L in the above formula are different for the configurator and the enrollee.

[0191]

[0268] Optionally, the DPP authentication request message may further include information about the number of session keys to be generated. Network reconfiguration may need to be performed more than twice. Therefore, the configurator and the enrollee may generate more than two session keys in the DPP authentication process. For example, if the information about the number of session keys to be generated is 3, three random numbers I-nonce1, I-nonce2, and I-nonce3 are carried in sequence in the DPP authentication request information sent by the configurator to the enrollee. After receiving the DPP authentication request message sent by the configurator, the enrollee generates three session keys Ke1, Ke2, and Ke3 in sequence according to the three random numbers received and the three random numbers R-nonce1, R-nonce2, and R-nonce3 generated by itself. Then, the enrollee sends a DPP authentication response message to the configurator, and the DPP authentication response message includes R-nonce1, R-nonce2, and R-nonce3. After receiving the DPP authentication response message sent by the enrollee, the configurator generates three session keys Ke1, Ke2, and Ke3 in sequence according to the received three random numbers and the previously generated three random numbers I-nonce1, I-nonce2, and I-nonce3. The three session keys are used in the first configuration process, the second configuration process, and the third configuration process in sequence. After receiving and sending the connection status inquiry result message in the configuration process, the configurator and the enrollee will delete the session keys used in the current provisioning process.

[0192]

[0269] In a scenario where the configurator performs network configuration for the enrollee, the ke1 and ke2 generated above can be used in the two subsequent DPP configuration processes. The process of using ke1 and ke2 is described below with reference to the embodiment shown in FIG.

[0193]

[0270] 9 is a schematic flowchart of implementing network configuration using ke1 and ke2 according to an embodiment of the present application. As shown in FIG. 9, the following steps are included:

[0194]

[0271] At 901, the enrollee and the configurator generate a first session key ke1 and a second session key ke2 in a DPP authentication process.

[0195]

[0272] Here, the process of generating ke1 and ke2 may be referred to the description of the embodiment shown in FIG. 8 and will not be described again.

[0196]

[0273] At 902, the enrollee sends a first request message to the configurator, where the first request message is encrypted with the first session key, ke1.

[0197]

[0274] At 903, the configurator sends a first response message corresponding to the first request message to the enrollee, where the first response message is encrypted by the first session key ke1, and the first response message includes first network configuration information of the AP.

[0198]

[0275] At 904, the enrollee sends a first confirmation message to the configurator, where the first confirmation message is encrypted with the first session key, ke1.

[0199]

[0276] At 905, the enrollee performs decryption using the first session key ke1 to obtain the first network configuration information for accessing the AP.

[0200]

[0277] At 906, the enrollee sends a connection status inquiry result message to the configurator, where the connection status inquiry result message is encrypted with the first session key ke1.

[0201]

[0278] Optionally, after receiving the first confirmation message, the enrollee may send a connection status query result message (which may be represented as a Status Query Result) to the configurator after a preset time interval to inform the configurator whether the enrollee and the AP are in a connected state.

[0202]

[0279] At 907, the configurator sends a notification message to the enrollee, the notification message is used to cause the enrollee to begin a network reconfiguration process, the notification message being encrypted with the second session key ke2.

[0203]

[0280] As described above, when the AP's network configuration information changes from the first network configuration information to the second network configuration information and when the enrollee is a low power consumption device, the configurator may be triggered to send a notification message to the enrollee.

[0204]

[0281] Optionally, when the network configuration information of the AP changes, the user may operate the configurator to scan the two-dimensional code of the enrollee, thereby triggering the configurator to send a notification message to the enrollee.

[0205]

[0282] Note that the enrollee is often a low-power device. To reduce energy consumption, the enrollee is configured to operate in a passive monitoring mode, and when it finds that it cannot access the AP, it periodically monitors the notification messages sent by the configurator. If the enrollee is not a low-power device, when it detects that it cannot access the AP, it may directly return to the configuration channel and periodically send a DPP configuration request message (i.e., corresponding to the second request message below) over the configuration channel, and the sent DPP configuration request message is encrypted by Ks.

[0206]

[0283] Optionally, the notification message may include a second identifier, which is used to instruct the enrollee to begin a network reconfiguration process.

[0207]

[0284] At 908, the enrollee sends a second request message to the configurator, where the second request message is encrypted with the second session key ke2.

[0208]

[0285] At 909, the configurator sends a second response message corresponding to the second request message to the enrollee, where the second response message is encrypted by the second session key ke2, and the second response message includes second network configuration information of the AP.

[0209]

[0286] At 910, the enrollee sends a second confirmation message to the configurator, the second confirmation message being encrypted with the second session key ke2.

[0210]

[0287] At 911, the enrollee performs decryption using the second session key ke2 to obtain second network configuration information for accessing the AP.

[0211]

[0288] The key generating device and the terminal provisioning device of one or more embodiments of the present application are described in detail below. Those skilled in the art can understand that all of these devices can be constructed by using commercially available hardware components through the steps taught in this solution.

[0212]

[0289] 10 is a schematic structural diagram of an apparatus for generating a key according to an embodiment of the present application. As shown in FIG. 10, the apparatus includes: a sending module 11, a receiving module 12 and a generating module 13.

[0213]

[0290] The sending module 11 is configured to send a first request message to the configurator, the first request message including a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation.

[0214]

[0291] The receiving module 12 is configured to receive a first message sent by the configurator, the first message including first key information.

[0215]

[0292] The generation module 13 is configured to generate a session key according to the first key information.

[0216]

[0293] The sending module 11 is further configured to send a second message to the configurator, the second message including second key information, thereby enabling the configurator to generate a session key according to the second key information.

[0217]

[0294] Optionally, the first message is a first response message corresponding to the first request message.

[0218]

[0295] Optionally, the second message is a first confirmation message corresponding to the first response message.

[0219]

[0296] Optionally, the first message is a notification message, which is used to cause the enrollee to begin a network reconfiguration process.

[0220]

[0297] Optionally, the notification message includes a second identifier, which is used to instruct the enrollee to begin a network reconfiguration process.

[0221]

[0298] Optionally, after sending the second message to the configurator, the sending module 11 is further configured to send a second request message to the configurator, where the second request message is encrypted by the session key. The receiving module 12 is further configured to receive a second response message sent by the configurator corresponding to the second request message, where the second response message is encrypted by the session key.

[0222]

[0299] Optionally, after receiving a second response message sent by the configurator corresponding to the second request message, the sending module 11 is further configured to send a second confirmation message to the configurator, where the second confirmation message is encrypted by the session key.

[0223]

[0300] The device shown in Fig. 10 can perform the steps performed by the enrollee in the embodiments shown in Fig. 1 to Fig. 3. For the parts not described in detail in this embodiment, reference can be made to the relevant descriptions in the previous embodiments, and they will not be described again.

[0224]

[0301] In one possible design, the structure of the apparatus for generating a key shown in Figure 10 above may be implemented as an enrollee. As shown in Figure 11, the enrollee may include a first processor 21 and a first memory 22, where the first memory 22 stores executable code that, when executed by the first processor 21, causes the first processor 21 to perform at least the various steps performed by the enrollee in the aforementioned embodiments shown in Figures 1 to 3.

[0225]

[0302] Here, the enrollee structure may further include a first communication interface 23 configured to communicate with another device or a communication network.

[0226]

[0303] Also, in one embodiment of the present application, a non-transitory machine-readable storage medium is provided, which stores executable code that, when executed by a processor of the enrollee, causes the processor to perform various steps performed by the enrollee in the above-described embodiment shown in Figures 1 to 3.

[0227]

[0304] 12 is a schematic structural diagram of another apparatus for generating a key according to an embodiment of the present application. As shown in FIG. 12, the apparatus includes: a receiving module 31, a sending module 32 and a generating module 33.

[0228]

[0305] The receiving module 31 is configured to receive a first request message sent by an enrollee, the first request message having a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation.

[0229]

[0306] The sending module 32 is configured to send a first message to the enrollee according to the first identifier, the first message comprising first key information, thereby enabling the enrollee to generate a session key according to the first key information.

[0230]

[0307] The receiving module 31 is further configured to receive a second message sent by the enrollee, the second message including second key information.

[0231]

[0308] The generation module 33 is configured to generate a session key according to the second key information.

[0232]

[0309] Optionally, the first message is a first response message corresponding to the first request message.

[0233]

[0310] Optionally, the second message is a first confirmation message corresponding to the first response message.

[0234]

[0311] Optionally, the first message is a notification message, which is used to cause the enrollee to begin a network reconfiguration process.

[0235]

[0312] Optionally, the notification message includes a second identifier, which is used to instruct the enrollee to begin a network reconfiguration process.

[0236]

[0313] Optionally, after the session key is generated according to the second key information, the receiving module 31 is further configured to receive a second request message sent by the enrollee, where the second request message is encrypted by the session key. The sending module 32 is further configured to send a second response message corresponding to the second request message to the enrollee, where the second response message is encrypted by the session key. The receiving module 31 is further configured to receive a second confirmation message sent by the enrollee, where the second confirmation message is encrypted by the session key.

[0237]

[0314] The device shown in Fig. 12 can perform the steps performed by the configurator in the above-mentioned embodiments shown in Fig. 1 to Fig. 3. For the parts not described in detail in this embodiment, reference can be made to the relevant descriptions in the above-mentioned embodiments, and they will not be described again.

[0238]

[0315] In one possible design, the structure of the apparatus for generating a key shown in Figure 12 above may be implemented as a configurator. As shown in Figure 13, the configurator may include a second processor 41 and a second memory 42. The second memory 42 stores executable code, which, when executed by the second processor 41, causes the second processor 41 to perform at least the various steps performed by the configurator in the above-mentioned embodiments shown in Figures 1 to 3.

[0239]

[0316] The configurator structure may further include a second communication interface 43 configured to communicate with another device or a communication network.

[0240]

[0317] Also, in one embodiment of the present application, a non-transitory machine-readable storage medium is provided, which stores executable code that, when executed by a processor of a configurator, causes the processor to perform various steps performed by the configurator in the above-described embodiment shown in Figures 1 to 3.

[0241]

[0318] 14 is a schematic structural diagram of a terminal provisioning device according to an embodiment of the present application. The terminal provisioning setting device is located in the enrollee. As shown in FIG. 14, the device includes: a sending module 51, a receiving module 52 and a generating module 53.

[0242]

[0319] The sending module 51 is configured to send a first request message to the configurator, the first request message including a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation.

[0243]

[0320] The receiving module 52 is configured to receive a first message sent by the configurator, the first message including first key information.

[0244]

[0321] The generation module 53 is configured to generate a session key according to the first key information.

[0245]

[0322] The sending module 51 is further configured to send a second message to the configurator, the second message including the second key information, thereby enabling the configurator to generate a session key according to the second key information, which is used in a network reconfiguration process performed on the enrollee.

[0246]

[0323] Optionally, the first message is a first response message corresponding to the first request message.

[0247]

[0324] Optionally, the second message is a first confirmation message corresponding to the first response message.

[0248]

[0325] Optionally, after the first request message is sent to the configurator, the receiving module 52 is further configured to receive a first response message sent by the configurator corresponding to the first request message, where the first response message includes first network setting information of the access point.

[0249]

[0326] Optionally, the sending module 51 is further configured to send a connection status query result message to the configurator, where the second message is the connection status query result message.

[0250]

[0327] Optionally, after the connection status inquiry result message is sent to the configurator, the receiving module 52 is further configured to receive a notification message sent by the configurator, the notification message is used to cause the enrollee to initiate a network reconfiguration process, and the first message is the notification message.

[0251]

[0328] Optionally, the sending module 51 is further configured to send a second request message to the configurator, where the second request message is encrypted by the session key. The receiving module 52 is further configured to receive a second response message sent by the configurator corresponding to the second request message, where the second response message includes second network setting information of the access point, where the second response message is encrypted by the session key. The sending module 51 is further configured to send a second confirmation message to the configurator, where the second confirmation message is encrypted by the session key.

[0252]

[0329] The device shown in Fig. 14 can perform the steps performed by the enrollee in the above-mentioned embodiments shown in Fig. 4 to Fig. 7. For the parts not described in detail in this embodiment, reference can be made to the relevant descriptions in the above-mentioned embodiments, and they will not be described again.

[0253]

[0330] In one possible design, the structure of the terminal provisioning apparatus shown in Figure 14 may be implemented as an enrollee. As shown in Figure 15, the enrollee may include a third processor 61 and a third memory 62, where the third memory 62 stores executable code that, when executed by the third processor 61, causes the third processor 61 to perform at least the various steps performed by the enrollee in the aforementioned embodiments shown in Figures 4 to 7.

[0254]

[0331] Here, the enrollee structure may further include a third communication interface 63 configured to communicate with another device or communication network.

[0255]

[0332] Also, in one embodiment of the present application, a non-transitory machine-readable storage medium is provided, which stores executable code that, when executed by a processor of the enrollee, causes the processor to perform various steps performed by the enrollee in the above-described embodiments shown in Figures 4 to 7.

[0256]

[0333] 16 is a schematic structural diagram of another terminal provisioning device located in an enrollee according to an embodiment of the present application. As shown in FIG. 16, the device includes: a receiving module 71, a sending module 72 and a generating module 73.

[0257]

[0334] The receiving module 71 is configured to receive a first request message sent by an enrollee, the first request message having a first identifier, the first identifier being used to instruct the configurator to perform a network reconfiguration operation.

[0258]

[0335] The sending module 72 is configured to send a first message to the enrollee according to the first identifier, the first message comprising first key information, thereby enabling the enrollee to generate a session key according to the first key information.

[0259]

[0336] The receiving module 71 is further configured to receive a second message sent by the enrollee, the second message including second key information.

[0260]

[0337] The generation module 73 is configured to generate a session key according to the second key information, the session key being used in a network reconfiguration process performed on the enrollee.

[0261]

[0338] Optionally, the first message is a first response message corresponding to the first request message.

[0262]

[0339] Optionally, the second message is a first confirmation message corresponding to the first response message.

[0263]

[0340] Optionally, the sending module 72 is further configured to send a first response message to the enrollee corresponding to the first request message, where the first response message includes first network setting information of the access point.

[0264]

[0341] Optionally, after the first response message corresponding to the first request message is sent to the enrollee, the receiving module 71 is further configured to receive a connection status inquiry result message sent by the enrollee, and the second message is the connection status inquiry result message. The sending module 72 is further configured to send a notification message to the enrollee, the notification message is used to cause the enrollee to start a network reconfiguration process, and the first message is the notification message.

[0265]

[0342] Optionally, the receiving module 71 is further configured to receive a second request message sent by the enrollee, the second request message being encrypted by the session key. The sending module 72 is further configured to send a second response message to the enrollee corresponding to the second request message, the second response message being encrypted by the session key, the second response message including second network configuration information of the access point. The receiving module 71 is further configured to receive a second confirmation message sent by the enrollee, the second confirmation message being encrypted by the session key.

[0266]

[0343] The device shown in Fig. 16 can perform the steps performed by the configurator in the above-mentioned embodiments shown in Fig. 4 to Fig. 7. For the parts not described in detail in this embodiment, reference can be made to the relevant descriptions in the above-mentioned embodiments, and they will not be described again.

[0267]

[0344] In one possible design, the structure of the terminal provisioning apparatus shown in Fig. 16 may be implemented as a configurator. As shown in Fig. 17, the configurator may include a fourth processor 81 and a fourth memory 82. Here, the fourth memory 82 stores executable code, which, when executed by the fourth processor 81, causes the fourth processor 81 to perform at least various steps performed by the configurator in the aforementioned embodiments shown in Figs. 4 to 7.

[0268]

[0345] Here, the configurator structure may further comprise a fourth communication interface 83 configured to communicate with another device or a communication network.

[0269]

[0346] Also, in one embodiment of the present application, a non-transitory machine-readable storage medium is provided, which stores executable code that, when executed by a processor of a configurator, causes the processor to perform various steps performed by the configurator in the above-described embodiment shown in Figures 4 to 7.

[0270]

[0347] 18 is a schematic structural diagram of another apparatus for generating a key according to an embodiment of the present application. As shown in FIG. 18, the apparatus includes: a receiving module 91, a generating module 92 and a sending module 93.

[0271]

[0348] The receiving module 91 is configured to receive an authentication request message sent by the configurator, where the authentication request message comprises first random number information and second random number information.

[0272]

[0349] The generation module 92 is configured to generate a first session key and a second session key according to the first random number information, the second random number information, and the third random number information and the fourth random number information corresponding to the enrollee.

[0273]

[0350] The transmitting module 93 is configured to transmit an authentication response message corresponding to the authentication request message to the configurator, the authentication response message comprising third random number information and fourth random number information, thereby enabling the configurator to generate a first session key and a second session key according to the first random number information, the second random number information, the third random number information and the fourth random number information.

[0274]

[0351] Optionally, the authentication request message includes a first identifier, which instructs the enrollee to generate a session key for performing a network reconfiguration.

[0275]

[0352] Optionally, the sending module 93 is further configured to send a first request message to the configurator, the first request message being encrypted by the first session key. The receiving module 91 is further configured to receive a first response message sent by the configurator corresponding to the first request message, the first response message being encrypted by the first session key, the first response message including first network setting information of the access point. The sending module 93 is further configured to send a first confirmation message to the configurator, the first confirmation message being encrypted by the first session key.

[0276]

[0353] Optionally, the sending module 93 is further configured to send a connection status inquiry result message to the configurator, where the connection status inquiry result message is encrypted by the first session key.

[0277]

[0354] Optionally, the receiving module 91 is further configured to receive a notification message sent by the configurator, the notification message being used to cause the enrollee to initiate a network reconfiguration process, the notification message being encrypted by a second session key.

[0278]

[0355] Here, optionally, the notification message includes a second identifier, which is used to instruct the enrollee to begin a network reconfiguration process.

[0279]

[0356] Optionally, after the notification message sent by the configurator is received, the sending module 93 is further configured to send a second request message to the configurator, where the second request message is encrypted by the second session key. The receiving module 91 is further configured to receive a second response message sent by the configurator corresponding to the second request message, where the second response message is encrypted by the second session key, where the second response message includes second network setting information of the access point. The sending module 93 is further configured to send a second confirmation message to the configurator, where the second confirmation message is encrypted by the second session key.

[0280]

[0357] The device shown in Fig. 18 can perform the steps performed by the enrollee in the embodiments shown in Fig. 8 to Fig. 9. For the parts not described in detail in this embodiment, reference can be made to the relevant descriptions in the previous embodiments, and they will not be described again.

[0281]

[0358] In one possible design, the structure of the apparatus for generating a key shown in Figure 18 above may be implemented as an enrollee. As shown in Figure 19, the enrollee may include a fifth processor 191 and a fifth memory 192, where the fifth memory 192 stores executable code that, when executed by the fifth processor 191, causes the fifth processor 191 to perform at least the various steps performed by the enrollee in the aforementioned embodiments shown in Figures 8-9.

[0282]

[0359] Here, the enrollee structure may further include a fifth communication interface 193 configured to communicate with another device or a communication network.

[0283]

[0360] Also, in one embodiment of the present application, a non-transitory machine-readable storage medium is provided, which stores executable code that, when executed by a processor of the enrollee, causes the processor to perform various steps performed by the enrollee in the above-described embodiment shown in Figures 8-9.

[0284]

[0361] 20 is a schematic structural diagram of another apparatus for generating a key according to an embodiment of the present application. As shown in FIG. 20, the apparatus includes: a sending module 2001, a receiving module 2002 and a generating module 2003.

[0285]

[0362] The sending module 2001 is configured to send an authentication request message to the enrollee, where the authentication request message includes first random number information and second random number information, thereby enabling the enrollee to generate a first session key and a second session key according to the first random number information, the second random number information, and the third random number information and fourth random number information corresponding to the enrollee.

[0286]

[0363] The receiving module 2002 is configured to receive an authentication response message sent by an enrollee corresponding to the authentication request message, where the authentication response message includes the third random number information and the fourth random number information.

[0287]

[0364] The generation module 2003 is configured to generate a first session key and a second session key according to the first random number information, the second random number information, the third random number information and the fourth random number information.

[0288]

[0365] Optionally, the authentication request message includes a first identifier, which instructs the enrollee to generate a session key for performing a network reconfiguration.

[0289]

[0366] Optionally, the receiving module 2002 is further configured to receive a first request message sent by the enrollee, the first request message being encrypted by the first session key. The sending module 2001 is further configured to send a first response message to the enrollee corresponding to the first request message, the first response message being encrypted by the first session key, the first response message including first network setting information of the access point. The receiving module 2002 is further configured to receive a first confirmation message sent by the enrollee, the first confirmation message being encrypted by the first session key.

[0290]

[0367] Optionally, after a first response message corresponding to the first request message is sent to the enrollee, the receiving module 2002 is further configured by the configurator to receive a connection status query result message sent by the enrollee, where the connection status query result message is encrypted by the first session key.

[0291]

[0368] Optionally, the sending module 2001 is further configured to send a notification message to the enrollee, the notification message being used to cause the enrollee to initiate a network reconfiguration process, the notification message being encrypted by the second session key.

[0292]

[0369] Here, optionally, the notification message includes a second identifier, which is used to instruct the enrollee to begin a network reconfiguration process.

[0293]

[0370] Optionally, after the notification message is sent, the receiving module 2002 is further configured by the configurator to receive a second request message sent by the enrollee, the second request message being encrypted by the second session key. The sending module 2001 is further configured to send a second response message to the enrollee corresponding to the second request message, the second response message being encrypted by the second session key, the second response message including second network setting information of the access point. The receiving module 2002 is further configured to receive a second confirmation message sent by the enrollee, the second confirmation message being encrypted by the second session key.

[0294]

[0371] The device shown in Fig. 20 can perform the steps performed by the configurator in the above-mentioned embodiment shown in Fig. 8 to Fig. 9. For the parts not described in detail in this embodiment, reference can be made to the relevant descriptions in the above-mentioned embodiment, and they will not be described again.

[0295]

[0372] In one possible design, the structure of the apparatus for generating a key shown in Figure 20 above may be implemented as a configurator. As shown in Figure 21, the configurator may include a sixth processor 2101 and a sixth memory 2102. Here, the sixth memory 2102 stores executable code, which, when executed by the sixth processor 2101, causes the sixth processor 2101 to perform at least various steps performed by the configurator in the aforementioned embodiments shown in Figures 8 to 9.

[0296]

[0373] Here, the configurator structure may further include a sixth communication interface 2103 configured to communicate with another device or a communication network.

[0297]

[0374] Also, in one embodiment of the present application, a non-transitory machine-readable storage medium is provided, which stores executable code that, when executed by a processor of a configurator, causes the processor to perform various steps performed by the configurator in the above-described embodiment shown in Figures 8 to 9.

[0298]

[0375] The above-described device embodiments are merely illustrative, and the units described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the objectives of the technical solutions provided by the embodiments. Those skilled in the art can understand and implement the technical solutions without inventive efforts.

[0299]

[0376] From the above description of the implementation forms, those skilled in the art can clearly understand that these implementation forms can be implemented by a required general-purpose hardware platform, and can certainly be implemented by a combination of hardware and software. Based on such understanding, the technical solutions can be essentially or the part that contributes to the prior art can be embodied in the form of a computer product. The present application can take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to magnetic disk memory, CD-ROM, optical memory, etc.) that comprises computer usable program code.

[0300]

[0377] The network configuration method provided in the embodiments of the present application may be implemented by one or more programs / software. The programs / software may be provided by the network side. The configurator and enrollee mentioned in the above embodiments may download the required corresponding programs / software to a local non-volatile storage medium. And when the method for generating a key and the terminal provisioning method need to be implemented, the programs / software are loaded into memory through the CPU, and then the CPU executes the programs / software to implement the method for generating a key and the terminal provisioning method provided in the above embodiments. The execution process may be referred to the schematic diagrams in Figures 1 to 9.

[0301]

[0378] Finally, it should be noted that the above embodiments are merely used to illustrate the technical solutions of the present application, and are not limited to these technical solutions. Although the present application is described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions recorded in the above embodiments can still be modified, or some of its technical features may be equivalently replaced. However, such modifications or replacements do not cause the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. 1. A method for provisioning an enrollee by a configurator, comprising: performing an authentication process between the enrollee and the configurator to share a first session key; sending, by the enrollee, a first request message encrypted with the first session key to the configurator, the first request message comprising a first identifier, the first identifier being an identifier used by the configurator to determine whether the enrollee has network reconfiguration capabilities; receiving, by the enrollee, from the configurator, a first response message corresponding to the first request message, encrypted with the first session key, the first response message comprising first key information; generating, by the enrollee, a second session key according to the first key information; sending, by the enrollee to the configurator, a first confirmation message corresponding to the first response message, encrypted by the first session key, the first confirmation message comprising second key information, thereby enabling the configurator to generate the second session key in accordance with the second key information, the second session key being used in a network reconfiguration process performed by the configurator on the enrollee; A method comprising:

2. 2. The method of claim 1, wherein the first response message comprises first network configuration information for the enrollee to access an access point.

3. sending, by the enrollee, a connection status inquiry result message to the configurator; receiving a notification message from the configurator by the enrollee; initiating a network reconfiguration process in response to said notification message; The method of claim 2 further comprising:

4. The network reconfiguration process comprises: sending, by the enrollee, a second request message to the configurator, the second request message being encrypted with the second session key; receiving, by the enrollee, from the configurator, a second response message corresponding to the second request message, the second response message comprising second network configuration information for the enrollee to re-access the access point, the second response message being encrypted with the second session key; The method of claim 2 comprising:

5. sending, by the enrollee to the configurator, a second confirmation message corresponding to the second response message, the second confirmation message being encrypted with the second session key. The method of claim 4 further comprising:

6. 1. A terminal provisioning method for provisioning an enrollee by a configurator, comprising: performing an authentication process between the enrollee and the configurator to share a first session key; receiving, by the configurator, a first request message sent by the enrollee, encrypted with the first session key, the first request message comprising a first identifier, the first identifier being an identifier used by the configurator to determine whether the enrollee has network reconfiguration capabilities; sending, by the configurator to the enrollee, a first response message corresponding to the first request message encrypted by the first session key, the first response message comprising first key information thereby enabling the enrollee to generate a second session key in accordance with the first key information; receiving, by the configurator, from the enrollee, a first confirmation message corresponding to the first response message, encrypted with the first session key, the first confirmation message comprising second key information; generating, by the configurator, the second session key according to the second key information, the second session key being used in a network reconfiguration process performed by the configurator on the enrollee; A terminal provisioning method comprising:

7. 7. The method of claim 6, wherein the first response message comprises first network configuration information for the enrollee to access an access point.

8. receiving, by the configurator, a connection status inquiry result message sent by the enrollee; sending, by the configurator, a notification message to the enrollee to cause the enrollee to begin a network reconfiguration process; The method of claim 7 further comprising:

9. The network reconfiguration process comprises: receiving, by the configurator, a second request message sent by the enrollee, the second request message being encrypted with the second session key; transmitting, by the configurator, a second response message to the enrollee corresponding to the second request message, the second response message being encrypted by the second session key, the second response message comprising second network configuration information for the enrollee to re-access the access point; The method of claim 7 comprising:

10. receiving, by the configurator, from the enrollee, a second confirmation message corresponding to the second response message, the second confirmation message being encrypted with the second session key; The method of claim 9 further comprising:

Citation Information

Patent Citations

  • Communication device, communication method, and program

    JP2018037978A

  • Communication device, control method of the same, and program

    JP2019029989A

  • Hosted device provisioning protocol with servers and a networked initiator

    US10169587B1

  • Managed object to provision a device according to one of plural provisioning techniques

    US20170295448A1

  • Configurator key package for device provisioning protocol (DPP)

    WO2018075135A1