A remote control method based on home registration in a smart home environment
By using the registration authority authorized home gateway and Intel's SGX hardware in a smart home environment, secure communication between users and devices is achieved, solving the problem of insufficient information transmission security in the existing technology, and enhancing the security and safety of the protocol. User access control.
Patent Information
- Application Number
- CN202211045083.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The communication between users and devices in a smart home environment is vulnerable to attacks, and existing authentication protocols cannot effectively protect the security of information transmission, resulting in user privacy being exposed to risks.
Using the home gateway authorized by the registration authority as the registration center, combined with Intel's hardware SGX, the secure container Enclave stores private values and performs confidential calculations to achieve secure communication between users and smart devices.
It improves the security of information transmission, prevents authentication table leaks and internal attacks, and ensures that only authorized users can access smart devices.
Smart Images

Figure CN115484597B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of cryptography and network security, and in particular relates to a remote control method based on family registration in a smart home environment. Background Art
[0002] The progress and development of technologies such as the Internet of Things (IoT), cloud computing, big data, artificial intelligence, and 5G are constantly driving home life towards intelligence. Smart homes can provide families with information exchange functions. People can operate and monitor smart home devices through the Internet and keep abreast of what is happening at home, making people's lives more convenient and comfortable, thereby optimizing people's lifestyles. Smart home environments include various smart devices, such as smart refrigerators, smart cameras, smart curtains, etc. End-users can use mobile devices such as smartphones and tablets to operate smart home devices without being restricted by time and location.
[0003] Although smart homes have made people's lives more convenient and more efficient in all aspects, the communication between users and smart home devices is transmitted on public channels, which means that information is transmitted on public channels. This makes the transmitted information vulnerable to eavesdropping and interception by attackers, and the user's personal information, such as photos and identities, may be leaked, which poses a major challenge to the user's privacy. Therefore, it is crucial to ensure that users can safely access and control the smart home system.
[0004] In recent years, many scholars have proposed many authentication and key agreement (AKA) protocols to protect the confidentiality and security of transmitted information. Banerjee et al. designed a lightweight anonymous authentication scheme suitable for this environment, however, AL-Turjman and Deebak found that their protocol could not provide identity protection and traceability. Xiang and Zheng designed an authentication protocol based on context awareness, but Oh et al. pointed out that their protocol could not achieve mutual authentication, nor could it resist attacks such as theft of smart devices, simulation attacks, and session key leakage attacks. In order to solve the problems of Xiang and Zheng, Oh et al. proposed a secure authentication protocol. Yu et al. proposed a three-factor AKA scheme, but Bander et al. found that Yu et al.'s protocol could not provide mutual authentication. Although many scholars have proposed different schemes for this environment, most of these schemes have been attacked and cannot guarantee the security of information transmission. Summary of the invention
[0005] In order to solve the above problems, the present invention proposes a remote control method based on home registration in a smart home environment, adopts a registration authority (RA) to authorize a home gateway as a home registration center, and applies Intel's hardware (softwareguard extensions, SGX) to the smart home environment.
[0006] The technical solution of the present invention is as follows:
[0007] A remote control method based on home registration in a smart home environment is proposed, which builds a system model including four entities: registration agency, gateway, user and smart device;
[0008] The registration authority authorizes the gateway to serve as the home registration center. With the assistance of the gateway, users and smart devices complete registration authentication and establish session keys to achieve secure communication between users and smart devices.
[0009] SGX is configured in the gateway of the protocol. SGX contains a secure container Enclave. Some private values are stored in SGX during the communication process. These private values are used through the SGX interface Ecall. After SGX completes confidential calculations in Enclave, it returns the calculation results to the gateway through the SGX interface Ocall.
[0010] The remote control method includes three stages: gateway authorization stage, user and smart device registration stage, and remote access and control stage.
[0011] Furthermore, the gateway authorization stage includes the following steps:
[0012] Step 1.1: The registration authority receives the kth gateway identity ID k , choose a random number r k , as shown in formula (1), calculate the pseudo identity PID of the gateway k , and the kth gateway identity ID k and the gateway pseudo-identity PID k In the form of information pairs {ID k ,PID k}At the same time, it is transmitted to the gateway through a private channel;
[0013] PID k =h(ID k ||r k ) (1)
[0014] Where h(·) represents a one-way hash function, and || represents a connection;
[0015] Step 1.2: Gateway selects finite field F p, finite cyclic additive group G, generator P and private key x, calculate the public key X = x·P; the gateway will pseudo identity PID k Store in memory the pseudo identity PID k , the kth gateway ID k and the private key x in indexed form {(PID k ,ID k ,x)} is stored in SGX at the same time, and the kth gateway ID is made public k , finite cyclic additive group G, generator P and public key X.
[0016] Furthermore, the user and smart device registration phase includes a user registration phase and a smart device registration phase, wherein:
[0017] The user registration phase includes the following steps:
[0018] Step 2.1.1: The user selects his / her own user ID i 、Password PW i and biometrics B i , and the user ID i Send to the gateway;
[0019] Step 2.1.2: The gateway selects a random number a i , as shown in formula (2), calculate the temporary identity HID i , and send HID i to the user;
[0020] HID i =h(ID i ||a i ) (2)
[0021] Step 2.1.3: As shown in formulas (3) and (4), the user calculates Gen(B i ),Auth i , and set the authentication value to Auth i , Temporary Identity HID i , common replication parameter τ i By index {Auth i ,HID i ,τ i}Stored in your own mobile device;
[0022] Gen(B i )=(σ i ,τ i ) (3)
[0023] auth i =h(ID i ||PW i||σ i ) (4)
[0024] Where Gen(·) represents the probability generation function of the fuzzy extractor, Gen(B i ) represents the use of Gen(·) function to extract the user’s biometric features, σ i represents the biometric key, τ i Represents common replication parameters; Auth i Represents the authentication value for verifying the user's identity;
[0025] The smart device registration phase includes the following steps:
[0026] Step 2.2.1: The smart device selects its own device identity SID j and send it to the gateway;
[0027] Step 2.2.2, the gateway selects a random number r j , as shown in formula (5), calculate the pseudo identity PID of the smart device j , set PID j Stored in memory, and the pseudo identity PID j and device identity SID j In indexed form {(PID j ,ID j )} is stored in SGX; finally, the gateway sends the pseudo identity PID j Send to smart device;
[0028] PID j =h(SID j ||r j ) (5)
[0029] Step 2.2.3, the smart device will j Stored in its own memory.
[0030] Furthermore, the remote access and control phase includes the following steps:
[0031] Step 3.1: User enters identity ID i 、Password PW i 、Biometrics B i , as shown in formulas (6) and (7), calculate the biometric key σ i and the authentication value Auth′ i , and verify Auth′ i Is it equal to Auth i ; If the verification is successful, it proves that the user is a legitimate user and the session continues, otherwise, the session is terminated;
[0032] σ i=Rep(B i ||τ i ) (6)
[0033] Auth′ i =h(ID i ||PW i ||σ i ) (7)
[0034] Where Rep(·) represents the probability restoration function of the fuzzy extractor, which is used here to output the private string σ corresponding to the user's biometric features i ;
[0035] The user selects two random numbers d1 and d2 and a timestamp T1, as shown in formulas (8)-(12), calculates C1, C2, C3, C4, V1, and sends the message M1={PID k ,PID j ,C1,C3,C4,V1,T1} are sent to the gateway;
[0036] C1=d1·P (8)
[0037] C2=C1·x (9)
[0038]
[0039] V1=h(C2||ID i ||T1) (12)
[0040] Among them, P represents the generator, x represents the private key of the gateway, Indicates XOR operation; C1 is an intermediate variable, used to calculate C2; C2 is also an intermediate variable, used to calculate C3; C3 is an OR value, used to transmit the random number d2; C4 is also an OR value, used to transmit the user's identity ID i ; V1 is the verification value, which is used to verify the identity of the user and the authenticity of the transmitted message;
[0041] Step 3.2: After receiving the user's message, the gateway first checks whether the absolute value of the difference between the current timestamp T and T1 is less than the maximum allowed transmission delay ΔT, that is, |T-T1|≦ΔT, and then sets the smart device pseudo-identity PID j 、Gateway pseudo identity PID k Sent to the SGX interface; SGX based on PID j , PID k Match smart device identity SID j and gateway private key x;
[0042] As shown in formulas (13)-(16), the gateway calculates the intermediate variable C′2, the random number d′2, and the user ID i , verify the value V′1, and verify whether V′1 is equal to V1; if the verification is successful, the gateway GW selects the timestamp T2, as shown in formulas (17)-(18), calculates C5 and V2 respectively, and sends a message M2={C5, V2, T2} to the smart device;
[0043] C′2=x·C1 (13)
[0044]
[0045] V′1=h(C2||ID i ||T1) (16)
[0046]
[0047] Among them, C'2 is an intermediate variable used to calculate d'2; C5 is either a value, used to transmit V2 is the verification value, which is used to verify the identity of the gateway and the authenticity of the transmitted message;
[0048] Step 3.3: After receiving message M2, S j First, verify whether the absolute value of the difference between timestamp T and T2 is less than the maximum allowed transmission delay ΔT, that is, |T-T2|≦ΔT. Then, as shown in formulas (19)-(20), calculate the privacy value Verify the value V′2 and verify whether V′2 is equal to V2; if the verification is successful, select the timestamp T3 and the random number d3, and calculate the session key SK between the smart device and the user as shown in formulas (21)-(24) respectively ji , XOR value C6 and verification values V3, V4, and send message M3 = {C6, V3, T3, V4} to the gateway through a public channel;
[0049]
[0050] V3=h(SID j ||T3) (23)
[0051] V4=h(SK ji ||d3||SID j ) (twenty four)
[0052] Among them, C6 is an XOR value, which is used to transmit the random number d3; V3 and V4 are both verification values, which are used by the gateway and the user to verify the authenticity of the message transmitted by the smart device;
[0053] Step 3.4: After receiving message M3, the gateway verifies whether the absolute value of the difference between timestamps T and T3 is less than the maximum allowed transmission delay ΔT, that is, |T-T3|≦ΔT, calculates V′3 as shown in formula (25), and verifies whether V′3 is equal to V3; if the verification is successful, it proves that S j is a legitimate device; then it selects timestamp T4 and sends message M4={C6,V4,T4} to the user;
[0054] V′3=h(SID j ||T3) (25)
[0055] Among them, V3′ represents the verification value, which is used to verify the authenticity of the message sent by the smart device;
[0056] Step 3.5: After receiving the message M4, the user calculates the random number d3, the session key SK between the user and the smart device, as shown in formulas (26)-(28). ij , verify the value V′4, and verify whether V′4 is equal to V4; if the verification is successful, the user will use the session key with S j transfer information;
[0057]
[0058] V′4=h(SK ij ||d3||SID j ) (28)
[0059] Among them, V4′ represents the verification value, and the user verifies the authenticity of the message transmitted by the smart device.
[0060] Beneficial technical effects brought by the present invention:
[0061] The present invention changes the traditional registration method and adopts RA to authorize the home gateway as the home registration center, which not only better meets the requirements of the actual environment, but also further ensures that only authorized users can access the smart device; it innovatively applies Intel's hardware SGX to the smart home environment, improving the security of the protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is an architecture diagram of the system model in the remote control method of the present invention. DETAILED DESCRIPTION
[0063] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0064] The registration mode of the existing scheme is to register the home gateway, users and smart devices through the registration authority (RA). However, after research, it is found that in real life, users and smart devices complete registration and establish subsequent communications at home, so this mode does not meet the actual requirements of the environment. In the present invention, the traditional registration method is changed, and the home gateway is authorized as the registration center of the home through the RA, which not only better meets the requirements of the actual environment, but also further ensures that only authorized users can access the smart device.
[0065] The present invention also innovatively applies Intel's hardware (software guard extensions, SGX) to the smart home environment, improving the security of the protocol. SGX is different from other security technologies in that its trusted computing includes hardware, which avoids the existence of software security vulnerabilities and malicious threats in the system, and largely ensures the security of the system; in addition, SGX provides a trusted execution environment, and malicious code cannot access and tamper with sensitive data stored in SGX, which ensures the confidentiality and integrity of the data. SGX has a secure container called Enclave, which is used to store sensitive data and code of applications. Enclave is stored in the protected physical memory area EPC (Enclave page cache). EPC is part of PRM (processor reserved memory), and PRM is part of memory. SGX divides the application into two parts, trusted and untrusted, which are called by predefined Ecall and Ocall codes. During operation, the code and data in Enclave are always encrypted and stored in memory. The thread control structure (TCS) controls different processors. According to research and investigation, it was found that many schemes have been attacked by insiders. Therefore, in order to increase the security of the solution, in the present invention, SGX is configured in the gateway of the protocol, and some private values are stored in SGX. The gateway can use these private values through the interface Ecall. After SGX completes the confidential calculation in the Enclave, it returns the calculation result to the gateway through Ocall. Therefore, using SGX in the protocol can resist the authentication table leakage attack and the privileged personnel internal attack.
[0066] The present invention proposes a remote control method based on home registration in a smart home environment, and constructs a Figure 1 The system model shown in the figure includes four entities, namely, the registration agency, gateway, user and smart device. The registration agency authorizes the gateway to serve as the registration center of the home. With the assistance of the gateway, the user and smart device complete the registration authentication and establish the session key to achieve secure communication. The specific description of each entity in the model is as follows:
[0067] Registration Authority RA: It is a trusted organization that is primarily responsible for registering the authorized gateway as the registration center of the home;
[0068] Gateway GW: It is a semi-trusted entity with high computing power and authorization. It can serve as the registration center of the home and is responsible for the registration of users and smart home devices.
[0069] Users: Only family members can register on the gateway and become legal users. They use their own mobile devices, such as mobile phones, tablets, etc. Users can remotely access and control smart home devices through the gateway;
[0070] Smart devices: refers to various smart home appliances in the home, such as smart refrigerators, smart air conditioners, etc. They are semi-trusted entities that connect to the gateway wirelessly to provide users with various services.
[0071] The remote control method includes three stages: gateway authorization stage, user and smart device registration stage, and remote access and control stage.
[0072] Phase 1, gateway authorization phase, includes the following steps:
[0073] Step 1.1: The registration authority receives the kth gateway identity ID k , choose a random number r k , as shown in formula (1), calculate the pseudo identity PID of the gateway k , and the kth gateway identity ID k and the gateway pseudo-identity PID k In the form of information pairs {ID k ,PID k}At the same time, it is transmitted to the gateway through a private channel;
[0074] PID k =h(ID k ||r k ) (1)
[0075] Where h(·) represents a one-way hash function, and || represents a connection;
[0076] Step 1.2: Gateway selects finite field F p , finite cyclic additive group G, generator P and private key x, calculate the public key X = x·P. The gateway will pseudo identity PID k Store in memory the pseudo identity PID k , the kth gateway ID k and the private key x in indexed form {(PID k ,ID k ,x)} is stored in SGX at the same time, and the kth gateway ID is made public k , finite cyclic additive group G, generator P and public key X.
[0077] Phase 2: User registration and smart device registration phase,
[0078] As shown in Table 1, the user registration phase includes the following steps:
[0079] Step 2.1.1: The user selects his / her own user ID i 、Password PW i and biometrics B i , and the user ID i Send to the gateway;
[0080] Step 2.1.2: The gateway selects a random number a i , as shown in formula (2), calculate the temporary identity HID i , and send HID i to the user;
[0081] HID i =h(ID i ||a i ) (2)
[0082] Step 2.1.3: As shown in formulas (3) and (4), the user calculates Gen(B i ),Auth i , and set the authentication value to Auth i , Temporary Identity HID i , common replication parameter τ i By index {Auth i ,HID i ,τ i}Stored on your mobile device.
[0083] Gen(B i )=(σ i ,τ i ) (3)
[0084] Auth i =h(ID i ||PW i ||σ i ) (4)
[0085] Where Gen(·) represents the probability generation function of the fuzzy extractor, Gen(B i ) represents the use of Gen(·) function to extract the user’s biometric features, σ i represents the biometric key, τ i Represents common replication parameters; Auth i Indicates the authentication value used to verify the user's identity.
[0086] Table 1 User registration process
[0087]
[0088] As shown in Table 2, the smart device registration phase includes the following steps:
[0089] Step 2.2.1: The smart device selects its own device identity SID j and send it to the gateway;
[0090] Step 2.2.2, the gateway selects a random number r j , as shown in formula (5), calculate the pseudo identity PID of the smart device j , set PID j Stored in memory, and the pseudo identity PID j and device identity SID j In indexed form {(PID j ,ID j )} is stored in SGX. Finally, the gateway sends the pseudo identity PID j Send to smart device;
[0091] PID j =h(PID j ||r j ) (5)
[0092] Step 2.2.3, the smart device will j Stored in its own memory.
[0093] Table 2 Smart device registration process
[0094]
[0095] Phase 3: Remote access and control phase, as shown in Table 3, specifically includes the following steps:
[0096] Step 3.1: User enters identity ID i 、Password PW i 、Biometrics B i , as shown in formulas (6) and (7), calculate the biometric key σ i and the authentication value Auth′ i , and verify Auth′ i Is it equal to Auth i If the verification is successful, it proves that the user is a legitimate user and the session continues; otherwise, the session terminates.
[0097] σ i =Rep(B i ||τ i ) (6)
[0098] Auth′i =h(ID i ||PW i ||σ i ) (7)
[0099] where Rep(·) represents the probability restoration function of the fuzzy extractor, which is used here to output the private string σ corresponding to the user's biometric features i ;
[0100] The user selects two random numbers d1 and d2 and a timestamp T1, as shown in formulas (8)-(12), calculates C1, C2, C3, C4, V1, and sends the message M1={PID k ,PID j ,C1,C3,C4,V1,T1} are sent to the gateway;
[0101] C1=d1·P (8)
[0102] C2=C1·x (9)
[0103]
[0104] V1=h(C2||ID i ||T1) (12)
[0105] Among them, P represents the generator, x represents the private key of the gateway, Indicates XOR operation; C1 is an intermediate variable, used to calculate C2; C2 is also an intermediate variable, used to calculate C3; C3 is an OR value, used to transmit the random number d2; C4 is also an OR value, used to transmit the user's identity ID i ; V1 is the verification value, which is used to verify the user's identity and the authenticity of the transmitted message.
[0106] Step 3.2: After receiving the user's message, the gateway first checks whether the absolute value of the difference between the current timestamp T and T1 is less than the maximum allowed transmission delay ΔT, that is, |T-T1|≦ΔT, and then sets the smart device pseudo-identity PID j 、Gateway pseudo identity PID k Sent to the SGX interface. SGX receives the data according to PID j , PID k Match smart device identity SID j and gateway private key x.
[0107] As shown in formulas (13)-(16), the gateway calculates the intermediate variable C′2, the random number d′2, and the user ID i, verify the value V′1, and verify whether V′1 is equal to V1. If the verification is successful, the gateway GW selects the timestamp T2, as shown in formulas (17)-(18), calculates C5 and V2 respectively, and sends a message M2={C5, V2, T2} to the smart home device.
[0108] C′2=x·C1 (13)
[0109]
[0110] V′1=h(C2||ID i ||T1) (16)
[0111]
[0112] Among them, C2′ is an intermediate variable used to calculate d′2; C5 is either a value, used to transmit V2 is the verification value, which is used to verify the identity of the gateway and the authenticity of the transmitted message.
[0113] Step 3.3: After receiving message M2, S j First, verify whether the absolute value of the difference between timestamp T and T2 is less than the maximum allowed transmission delay ΔT, that is, |T-T2|≦ΔT. Then, as shown in formulas (19)-(20), calculate the privacy value Verify the value V′2 and verify whether V′2 is equal to V2. If the verification is successful, select the timestamp T3 and the random number d3, and calculate the session key SK between the smart device and the user as shown in formulas (21)-(24) respectively ji , XOR value C6 and verification values V3, V4, and send the message M3 = {C6, V3, T3, V4} to the gateway through a public channel.
[0114]
[0115] V3=h(SID j ||T3) (23)
[0116] V4=h(SK ji ||d3||SID j ) (twenty four)
[0117] Among them, C6 is an XOR value, which is used to transmit the random number d3; V3 and V4 are both verification values, which are used by the gateway and the user to verify the authenticity of the message transmitted by the smart device.
[0118] Step 3.4: After receiving message M3, the gateway verifies whether the absolute value of the difference between timestamps T and T3 is less than the maximum allowed transmission delay ΔT, that is, |T-T3|≦ΔT, calculates V3′ as shown in formula (25), and verifies whether V3′ is equal to V3. If the verification is successful, it proves that S j It is a legitimate device. Then it selects timestamp T4 and sends message M4 = {C6, V4, T4} to the user.
[0119] V′3=h(SID j ||T3) (25)
[0120] Among them, V′3 represents a verification value, which is used to verify the authenticity of the message sent by the smart device.
[0121] Step 3.5: After receiving the message M4, the user calculates the random number d3, the session key SK between the user and the smart device, as shown in formulas (26)-(28). ij , verify the value V′4, and verify whether V′4 is equal to V4. If the verification is successful, the user will use the session key to communicate with S j Transmit information.
[0122]
[0123] V′4=h(SK ij ||d3||SID j ) (28)
[0124] Among them, V′4 represents the verification value, and the user verifies the authenticity of the message transmitted by the smart device.
[0125] Table 3 Remote access and control stages
[0126]
[0127]
[0128] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A remote control method based on home registration in a smart home environment, characterized in that: A system model consisting of four entities, namely, registration agency, gateway, user and smart device, was constructed; The registration authority authorizes the gateway to serve as the home registration center. With the assistance of the gateway, users and smart devices complete registration authentication and establish session keys to achieve secure communication between users and smart devices. SGX is configured in the gateway of the protocol. SGX contains a secure container Enclave. Some private values are stored in SGX during the communication process. These private values are used through the SGX interface Ecall. After SGX completes confidential calculations in Enclave, it returns the calculation results to the gateway through the SGX interface Ocall. Remote control method, including three stages: gateway authorization stage, user and smart device registration stage, and remote access and control stage; The gateway authorization phase includes the following steps: Step 1.1: The registration authority receives the kth gateway identity ID k , choose a random number r k , as shown in formula (1), calculate the pseudo identity PID of the gateway k , and the kth gateway identity ID k and the gateway pseudo-identity PID k In the form of information pairs {ID k ,PID k }At the same time, it is transmitted to the gateway through a private channel; PID k =h(ID k ||r k ) (1) Where h(·) represents a one-way hash function, and || represents a connection; Step 1.2: Gateway selects finite field F p , finite cyclic additive group G, generator P and private key x, calculate the public key X = x·P; the gateway will pseudo identity PID k Store in memory the pseudo identity PID k , the kth gateway ID k and the private key x in indexed form {(PID k ,ID k ,x)} is stored in SGX at the same time, and the kth gateway ID is made public k , finite cyclic additive group G, generator P and public key X; The user and smart device registration phase includes the user registration phase and the smart device registration phase, among which: The user registration phase includes the following steps: Step 2.1.1: The user selects his / her own user ID i 、Password PW i and biometrics B i , and the user ID i Send to the gateway; Step 2.1.2: The gateway selects a random number a i , as shown in formula (2), calculate the temporary identity HID i , and send HID i to the user; HID i =h(ID i ||a i ) (2) Step 2.1.3: As shown in formulas (3) and (4), the user calculates Gen(B i ),Auth i , and set the authentication value to Auth i , Temporary Identity HID i , common replication parameter τ i By index {Auth i ,HID i ,τ i }Stored in your own mobile device; Gen(B i )=(σ i ,t i ) (3) Auth i =h(ID i ||PW i ||σ i ) (4) Where Gen(·) represents the probability generation function of the fuzzy extractor, Gen(B i ) represents the use of Gen(·) function to extract the user’s biometric features, σ i represents the biometric key, τ i Represents common replication parameters; Auth i Represents the authentication value for verifying the user's identity; The smart device registration phase includes the following steps: Step 2.2.1: The smart device selects its own device identity SID j and send it to the gateway; Step 2.2.2, the gateway selects a random number r j , as shown in formula (5), calculate the pseudo identity PID of the smart device j , set PID j Stored in memory, and the pseudo identity PID j and device identity SID j In indexed form {(PID j ,ID j )} is stored in SGX; finally, the gateway sends the pseudo identity PID j Send to smart device; PID j =h(PID j ||r j ) (5) Step 2.2.3, the smart device will j Stored in its own memory; The remote access and control phase includes the following steps: Step 3.1: User enters identity ID i 、Password PW i 、Biometrics B i , as shown in formulas (6) and (7), calculate the biometric key σ i and the authentication value Auth′ i , and verify Auth′ i Is it equal to Auth i ; If the verification is successful, it proves that the user is a legitimate user and the session continues, otherwise, the session is terminated; s i =Rep(B i ||t i ) (6) Auth′ i =h(ID i ||PW i ||σ i ) (7) Where Rep(·) represents the probability restoration function of the fuzzy extractor, which is used here to output the private string σ corresponding to the user's biometric features i ; The user selects two random numbers d1 and d2 and a timestamp T1, as shown in formulas (8)-(12), calculates C1, C2, C3, C4, V1, and sends the message M1={PID k ,PID j ,C1,C3,C4,V1,T1} are sent to the gateway; C1=d1·P (8) C2=C1·x (9) V1=h(C2||ID i ||T1) (12) Where P represents the generator, x represents the private key of the gateway, Indicates XOR operation; C1 is an intermediate variable, used to calculate C2; C2 is also an intermediate variable, used to calculate C3; C3 is an OR value, used to transmit the random number d2; C4 is also an OR value, used to transmit the user's identity ID i ; V1 is the verification value, which is used to verify the identity of the user and the authenticity of the transmitted message; Step 3.2: After receiving the user's message, the gateway first checks whether the absolute value of the difference between the current timestamp T and T1 is less than the maximum allowed transmission delay ΔT, that is, |T-T1|≦ΔT, and then sets the smart device pseudo-identity PID j 、Gateway pseudo identity PID k Sent to the SGX interface; SGX receives the data based on the PID j , PID k Match smart device identity SID j and gateway private key x; As shown in formulas (13)-(16), the gateway calculates the intermediate variable C′2, the random number d′2, and the user ID i , verify the value V′1, and verify whether V′1 is equal to V1; if the verification is successful, the gateway GW selects the timestamp T2, as shown in formulas (17)-(18), calculates C5 and V2 respectively, and sends a message M2={C5, V2, T2} to the smart device; C′2=x·C1 (13) V′1=h(C2||ID i ||T1) (16) Among them, C'2 is an intermediate variable used to calculate d'2; C5 is either a value, used to transmit V2 is the verification value, which is used to verify the identity of the gateway and the authenticity of the transmitted message; Step 3.3: After receiving message M2, S j First, verify whether the absolute value of the difference between timestamp T and T2 is less than the maximum allowed transmission delay ΔT, that is, |T-T2|≦ΔT. Then, as shown in formulas (19)-(20), calculate the privacy value Verify the value V′2 and verify whether V′2 is equal to V2; if the verification is successful, select the timestamp T3 and the random number d3, and calculate the session key SK between the smart device and the user as shown in formulas (21)-(24) respectively ji , XOR value C6 and verification values V3, V4, and send message M3 = {C6, V3, T3, V4} to the gateway through a public channel; V3=h(SID j ||T3) (23) V4=h(SK ji ||d3||SID j ) (24) Among them, C6 is an XOR value, which is used to transmit the random number d3; V3 and V4 are both verification values, which are used by the gateway and the user to verify the authenticity of the message transmitted by the smart device; Step 3.4: After receiving message M3, the gateway verifies whether the absolute value of the difference between timestamps T and T3 is less than the maximum allowed transmission delay ΔT, that is, |T-T3|≦ΔT, calculates V′3 as shown in formula (25), and verifies whether V′3 is equal to V3; if the verification is successful, it proves that S j is a legitimate device; then it selects timestamp T4 and sends message M4={C6,V4,T4} to the user; V′3=h(SID j ||T3) (25) Among them, V′3 represents the verification value, which is used to verify the authenticity of the message sent by the smart device; Step 3.5: After receiving the message M4, the user calculates the random number d3, the session key SK between the user and the smart device, as shown in formulas (26)-(28). ij , verify the value V′4, and verify whether V′4 is equal to V4; if the verification is successful, the user will use the session key with S j transfer information; V′4=h(SK ij ||d3||SID j ) (28) Among them, V′4 represents the verification value, and the user verifies the authenticity of the message transmitted by the smart device.
