Authentication key negotiation method of smart power grid, processor and electronic equipment
Through two-way authentication and session key generation between the smart meter and the control center and between the control center and the service provider, the communication efficiency problem in the smart grid is solved due to the participation of third-party random numbers, and efficient authentication keys are achieved exchange.
Patent Information
- Application Number
- CN202411236818.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-06
AI Technical Summary
In the smart grid, during the exchange of authentication keys between the smart meter and the control center and between the control center and the service provider, the communication efficiency decreases when the attacker attacks any party due to the participation of a third-party random number.
Through two-way authentication and session key generation between the control center and the smart meter and the power provider, the random number and public key infrastructure are used to achieve mutual authentication between the smart meter and the control center and the control center and the service provider. Key exchange avoids dependence on third-party random numbers.
When an attacker attacks on either side, communications do not affect each other, which improves the efficiency of authentication key exchange between the smart meter and the control center and between the control center and the service provider, and solves the problem of low communication efficiency.
Smart Images

Figure CN119094121A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart grid authentication security, and more specifically, to a smart grid authentication key negotiation method, a computer-readable storage medium, a processor, and an electronic device. Background Art
[0002] The first line of defense for smart grid security is that end users who join the smart grid need to undergo identity authentication and obtain secure and effective session keys. At the same time, since the user type and daily habits can be inferred from the end user's power data (such as power load, power consumption, power usage time, etc.), the mutual authentication and key exchange between the smart meter and the control center requires the participation of the service provider, and the mutual authentication and key exchange between the control center and the service provider requires the participation of the smart meter. This means that if an attacker appears on either side, the entire authentication system will fail, which in turn reduces communication efficiency.
[0003] Therefore, there is an urgent need for an authentication key negotiation method, computer-readable storage medium, processor and electronic device for a smart grid. Summary of the invention
[0004] The main purpose of the present application is to provide an authentication key negotiation method for a smart grid, a computer-readable storage medium, a processor and an electronic device, so as to at least solve the problem in the prior art that communication efficiency decreases when an attacker attacks.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a smart grid authentication key negotiation method is provided, including a control center receiving a first registration request and a first identity number of a smart meter, and generating a first random number in response to the first registration request, and generating a first pseudo identity information and a first incentive information based on at least one of the first random number and the first identity number, and sending the first pseudo identity information, a first public key and the first incentive information to the smart meter through a secure channel and receiving a first response value sent by the smart meter, wherein the first response value is generated based on the first incentive information; the control center receiving a second registration request and a second identity number of a power provider, and generating a second random number in response to the second registration request, and generating a second pseudo identity information and a second incentive information based on at least one of the second random number and the second identity number, and sending the second pseudo identity information, a second public key and the second incentive information to the power provider through a secure channel and receiving a second response value sent by the power provider, wherein the second response value is generated based on the second incentive information; the control center at least receives the second registration request and the second identity number of the power provider through a secure channel, wherein the second registration request and the second random number of the smart meter generate a second pseudo identity information and a second incentive information, and sends ... The control center receives at least the energy data provided by the power provider through the open channel, and triggers the authentication of the identity of the power provider. If the authentication is successful, the control center calculates the first session key based on at least the first identity identification number, the first response value and the first encrypted information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs the first identity authentication on the control center based on at least the first verification information. If the authentication is successful, the first session key is obtained, thereby completing the authentication key exchange; the control center at least receives the energy data provided by the power provider through the open channel, and triggers the authentication of the identity of the power provider. If the authentication is successful, the control center calculates the second session key based on at least the second identity identification number, the second response value and the second encrypted information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs the second identity authentication on the control center based on at least the second verification information. If the authentication is successful, the second session key is obtained, thereby completing the authentication key exchange.
[0006] Optionally, the control center at least receives the power consumption data request sent by the smart meter through the public channel, and triggers the authentication of the identity of the smart meter, including: the control center receives the power consumption data request and third verification information sent by the smart meter through the public channel, the third verification information includes the first encryption information, the first verification code, the first pseudo identity information and the first timestamp when the smart meter generates a third random number; the control center generates a second timestamp in response to the third verification information, and verifies whether the difference between the second timestamp and the first timestamp is within the maximum communication time. If the verification is successful, the first pseudo identity information and the result of the operation of the first identity identification number and the first incentive information by using a first signature verification algorithm are verified to meet a preset condition. The preset condition is that the first identity identification number and the first incentive information are true and valid, and the first identity identification number matches the first identity identification number corresponding to the first pseudo identity information. If the verification is successful, MAC1* is verified to be the same as the first verification code, and MAC1*=h1(m1||TSID i ||R SMi ||r1*||t1), r1*=m1⊕h1(SID i ||R SMi ), where h1 is the first one-way hash function, m1 is the first encryption information, TSID i is the first pseudo identity information, R SMi is the first response value, t1 is the first timestamp, SID i is the first identity identification number.
[0007] Optionally, the first pseudo-identity information is generated based on at least one of the first random number and the first identity identification number, including using a hash operation to calculate the first random number and the first identity identification number to obtain a first hash value, and using a first signature algorithm to calculate the first hash value to obtain the first pseudo-identity information; the first encrypted information is obtained by performing an XOR operation on the second hash value and the third random number, and the second hash value is generated by the first identity identification number and the first response value; the first verification code is obtained by performing a hash operation on the first encrypted information, the first pseudo-identity information, the third random number and the first timestamp.
[0008] Optionally, when the authentication is successful, the control center calculates a first session key based on at least the first identity identification number, the first response value and the first encryption information, including: when the authentication is successful, the control center generates a fourth random number, and uses a hash operation to perform an operation on the first identity identification number and the first response value to generate a third hash value; performs an XOR operation on the third hash value and the first encryption information to obtain a first preliminary key; and performs a hash operation on the first preliminary key and the fourth random number to obtain the first session key.
[0009] Optionally, the first identity authentication includes: a first timestamp verification and a first verification code verification, the first timestamp verification is whether the difference between the third timestamp and the second timestamp generated by the smart meter when receiving the first verification information is within the maximum communication time, the first verification information includes third encrypted information, a second verification code and the second timestamp, the third encrypted information is obtained by performing an XOR operation on the encrypted first preliminary key and a fourth random number, the second verification code contains the first session key, the first verification code verification is to verify whether MAC2* is the same as the second verification code, the MAC2* is obtained by performing a hash operation on the first preliminary session key, the third encrypted information, the first response value and the second timestamp, the first preliminary session key is obtained by performing a hash operation on the third random number and the second preliminary key, and the second preliminary key is obtained by performing an XOR operation on the hashed third random number and the third encrypted information.
[0010] Optionally, the control center at least receives energy data provided by the power provider through the public channel, and triggers authentication of the identity of the power provider, including: the control center receives energy data and fourth verification information sent by the power provider through the public channel, the fourth verification information includes second encryption information, a third verification code, the second pseudo identity information and a fourth timestamp when the power provider generates a fifth random number; the control center generates a fifth timestamp in response to the fourth verification information, and verifies whether the difference between the fifth timestamp and the fourth timestamp is within the maximum communication time. If the verification is successful, the second pseudo identity information is verified by a second signature verification algorithm and the result of the operation of the second identity number and the second incentive information by a hash operation meets a preset condition. The preset condition is that the second identity number and the second incentive information are true and valid, and the second identity number matches the second identity number corresponding to the second pseudo identity information. If the verification is successful, MAC3* is verified to be the same as the third verification code, and MAC3*=h2(m3||TPID j ||R PPj||r3*||t3), r3*=m3⊕h2(PID j ||R PPj ), where h2 is the second one-way hash function, m3 is the second encrypted information, TPID j is the second pseudo identity information, R PPj is the second response value, t3 is the fourth timestamp, PID j The second identity number.
[0011] Optionally, generating second pseudo-identity information based on at least one of the second random number and the second identity identification number includes: using a hash operation to calculate the second random number and the second identity identification number to obtain a second hash value, and using a second signature algorithm to calculate the second hash value to obtain the second pseudo-identity information; the second encrypted information is obtained by performing an XOR operation on a fifth hash value and a fifth random number, and the fifth hash value is generated by the second identity identification number and the second response value; and the third verification code is obtained by performing a hash operation on the second encrypted information, the second pseudo-identity information, the fifth random number and a fourth timestamp.
[0012] Optionally, if the authentication is successful, the control center calculates a second session key based on at least the second identity identification number, the second response value and the second encrypted information generated by the power provider, including: if the authentication is successful, the control center generates a sixth random number, and uses a hash operation to operate the second identity identification number and the second response value to generate a sixth hash value; performs an XOR operation on the sixth hash value and the second encrypted information to obtain a third preliminary key; and performs a hash operation on the third preliminary key and the sixth random number to obtain the second session key.
[0013] Optionally, the second identity authentication includes: a second timestamp verification and a second verification code verification, the second timestamp verification is whether the difference between the sixth timestamp and the fifth timestamp generated by the power provider when receiving the second verification information is within the maximum communication time, the second verification information includes fourth encrypted information, a fourth verification code and the fifth timestamp, the fourth encrypted information is obtained by performing an XOR operation on the encrypted third preliminary key and the sixth random number, the fourth verification code contains the second session key, the second verification code verification is to verify whether MAC4* is the same as the fourth verification code, the MAC4* is obtained by performing a hash operation on the second preliminary session key, the fourth encrypted information, the second response value and the fifth timestamp, the second preliminary session key is generated by performing a hash operation on the fifth random number and the fourth preliminary key, and the fourth preliminary key is obtained by performing an XOR operation on the hashed fifth random number and the fourth encrypted information.
[0014] Optionally, before the control center receives the registration request, it includes: the control center initializes the public-private key pair to obtain the first public key, the first private key, the second public key and the second private key; determines the one-way hash function, signature algorithm and signature verification algorithm used by the control center to authenticate the smart meter, the one-way hash function includes the first one-way hash function and the second one-way hash function, and the signature verification algorithm includes the first private key or the second private key.
[0015] Optionally, the control center detects the electricity usage data sent by the smart meter to determine whether there is abnormal electricity usage data in the electricity usage data; when abnormal data is detected in the electricity usage data, the first public key is used to verify the pseudo-identity information of the abnormal electricity usage data to obtain the abnormal pseudo-identity information; the first private key is used to determine the corresponding identity identification number of the abnormal electricity usage data to obtain the abnormal identity identification number, and the abnormal pseudo-identity information and the abnormal identity identification number are added to the revocation list of the control center, and the abnormal pseudo-identity information and the abnormal identity identification number in the revocation list are no longer used for communication.
[0016] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the methods described above.
[0017] According to yet another aspect of the present application, a processor is provided, wherein the processor is configured to run a program, wherein the program executes any one of the methods described above.
[0018] According to another aspect of the present application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any of the above-described methods.
[0019] Applying the technical solution of the present application, the control center receives a first registration request and a first identity number of a smart meter, and generates a first random number in response to the first registration request, and generates a first pseudo identity information and a first incentive information based on at least one of the first random number and the first identity number, and sends the first pseudo identity information, a first public key and the first incentive information to the smart meter through a secure channel and receives a first response value sent by the smart meter; the control center receives a second registration request and a second identity number of a power provider, and generates a second random number in response to the second registration request, and generates a second pseudo identity information and a second incentive information based on at least one of the second random number and the second identity number, and sends the second pseudo identity information, a second public key and the second incentive information to the power provider through a secure channel and receives a second response value sent by the power provider; the control center at least receives a request for electricity consumption data sent by the smart meter through an open channel, and triggers authentication of the identity of the smart meter. In this case, the control center calculates a first session key based on at least the first identity identification number, the first response value and the first encrypted information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs a first identity authentication on the control center based on at least the first verification information, and obtains the first session key if the authentication is successful, thereby completing the authentication key exchange; the control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider. If the authentication is successful, the control center calculates a second session key based on at least the second identity identification number, the second response value and the second encrypted information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center based on at least the second verification information, and obtains the second session key if the authentication is successful, thereby completing the authentication key exchange.Compared with the method in the prior art that requires the participation of the service provider and the smart meter in the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider, resulting in low communication efficiency, the present solution provides two-way authentication and session key generation between the smart meter and the control center, and between the control center and the power provider, respectively, during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider. This process does not require a third-party random number. In this way, during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider, if an attacker attacks the authentication system on either side, the communication between the two parts does not affect each other, and the communication process of the two parts can be completed efficiently, thereby solving the problem of low communication efficiency due to the participation of a third party when an attacker attacks either side during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0021] Figure 1 A hardware structure block diagram of a mobile terminal for executing an authentication key negotiation method for a smart grid provided in an embodiment of the present application is shown;
[0022] Figure 2 A schematic diagram of a process of an authentication key negotiation method for a smart grid provided according to an embodiment of the present application is shown;
[0023] Figure 3 A schematic diagram of interactions during an authentication key negotiation process of a smart grid provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0024] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] As introduced in the background technology, in the prior art, when an attacker attacks either party, mutual authentication between the two parties requires a third-party random number, which makes communication efficiency low. To solve the above problem, an embodiment of the present application provides a smart grid authentication key negotiation method, computer-readable storage medium, processor and electronic device.
[0028] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0029] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a smart grid authentication key negotiation method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0031] In this embodiment, a method for authentication key negotiation of a smart grid running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0032] Figure 2 FIG. 1 is a flow chart of a smart grid authentication key negotiation method according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0033] Step S201, the control center receives a first registration request and a first identity identification number of the smart meter, and generates a first random number in response to the first registration request, and generates a first pseudo-identity information and a first incentive information based on the first random number and at least one of the first identity identification number, and sends the first pseudo-identity information, the first public key and the first incentive information to the smart meter through a secure channel and receives a first response value sent by the smart meter, wherein the first response value is generated based on the first incentive information.
[0034] Specifically, the control center is an important facility that is responsible for monitoring, managing and controlling the operation of the entire power grid. The control center is usually composed of professional operators and monitoring systems, who ensure the stable and safe operation of the power grid by monitoring the operation of the power grid in real time.
[0035] Specifically, a smart meter is a meter with intelligent functions that can monitor and record electricity usage in real time and transmit data to power companies or other relevant departments through communication technology. Smart meters can realize functions such as remote meter reading, billing and power outage, greatly improving the operational efficiency of power companies and reducing the cost and error of manual meter reading.
[0036] In step S202, the control center receives a second registration request and a second identity number from the power provider, generates a second random number in response to the second registration request, and generates second pseudo-identity information and second incentive information based on at least one of the second random number and the second identity number, and sends the second pseudo-identity information, the second public key and the second incentive information to the power provider through a secure channel and receives a second response value sent by the power provider, wherein the second response value is generated based on the second incentive information.
[0037] Specifically, an electricity provider is a company or entity that generates electricity from power plants or other renewable energy facilities and transmits it to the grid to supply commercial and residential users.
[0038] Specifically, a secure channel generally refers to encrypted communication to ensure that data is not stolen or tampered with during transmission. This can be achieved by using encryption protocols and technologies, such as SSL / TLS encrypted communication, VPN tunnels, etc. The control center generates the random number, the pseudo identity information, and the incentive information, and sends the information to the power provider through a secure channel, and receives a response value sent by the power provider.
[0039] In step S203, the control center at least receives the electricity consumption data request sent by the smart meter through the public channel, and triggers the identity authentication of the smart meter. If the authentication is successful, the control center at least calculates the first session key based on the first identity identification number, the first response value and the first encryption information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs the first identity authentication on the control center at least based on the first verification information. If the authentication is successful, the first session key is obtained, thereby completing the authentication key exchange.
[0040] Specifically, a session key is an encryption key temporarily generated during the communication process to protect the security of the communication content. Usually, the session key is only valid during the session between the two communicating parties. Once the session ends, the key will be destroyed to ensure the security of the communication content. The session key is usually generated through a negotiation algorithm to ensure that the two communicating parties can perform secure data transmission during the communication process.
[0041] Specifically, when the control center receives the electricity consumption data request sent by the smart meter through the public channel, it triggers the identity authentication of the smart meter. Once the authentication is successful, the control center will generate the first session key and send the first verification information with the first session key to the smart meter, so that the smart meter performs a first identity authentication on the control center based on at least the first verification information. After the verification is successful, the first session key is obtained, thereby completing the authentication key exchange.
[0042] In step S204, the control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider. If the authentication is successful, the control center at least calculates the second session key based on the second identity identification number, the second response value and the second encryption information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center at least based on the second verification information. If the authentication is successful, the second session key is obtained, thereby completing the authentication key exchange.
[0043] Specifically, when the control center receives the energy data provided by the power provider through an open channel, it triggers the identity authentication of the smart meter. Once the authentication is successful, the control center generates the second session key and sends the second verification information with the second session key to the power provider, so that the power provider performs a second identity authentication on the control center based on at least the second verification information. After the verification is successful, the second session key is obtained, thereby completing the authentication key exchange.
[0044] In the above embodiment, first, the control center receives a first registration request and a first identity number from the smart meter, and in response to the first registration request, generates a first random number, and based on at least one of the first random number and the first identity number, generates a first pseudo identity information and a first incentive information, and sends the first pseudo identity information, the first public key and the first incentive information to the smart meter through a secure channel and receives a first response value sent by the smart meter; the control center receives a second registration request and a second identity number from the power provider, and in response to the second registration request, generates a second random number, and based on at least one of the second random number and the second identity number, generates a second pseudo identity information and a second incentive information, and sends the second pseudo identity information, the second public key and the second incentive information to the power provider through a secure channel and receives a second response value sent by the power provider; thereafter, the control center at least receives a request for electricity consumption data sent by the smart meter through an open channel, and triggers authentication of the identity of the smart meter. After the authentication is successful, In the case of , the control center calculates the first session key based on at least the first identity identification number, the first response value and the first encrypted information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs a first identity authentication on the control center based on at least the first verification information, and obtains the first session key if the authentication is successful, thereby completing the authentication key exchange; the control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider, and if the authentication is successful, the control center calculates the second session key based on at least the second identity identification number, the second response value and the second encrypted information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center based on at least the second verification information, and obtains the second session key if the authentication is successful, thereby completing the authentication key exchange.Compared with the method in the prior art that requires the participation of the service provider and the smart meter in the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider, resulting in low communication efficiency, the present solution provides two-way authentication and session key generation between the smart meter and the control center, and between the control center and the power provider, respectively, during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider. This process does not require a third-party random number. In this way, during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider, if an attacker attacks the authentication system on either side, the communication between the two parts does not affect each other, and the communication process of the two parts can be completed efficiently, thereby solving the problem of low communication efficiency due to the participation of a third party when an attacker attacks either side during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider.
[0045] In one embodiment of the present application, the above registration process can be implemented through the following steps: the above control center initializes the public-private key pair to obtain the above first public key, the first private key, the above second public key and the second private key; determines the one-way hash function, signature algorithm and signature verification algorithm used by the above control center to authenticate the above smart meter, the above one-way hash function includes the first one-way hash function and the second one-way hash function, and the above signature verification algorithm includes the above first private key or the above second private key. In this method, the above control center first initializes the public-private key pair, generates the above first public key, the first private key, the above second public key and the second private key, and selects to use the first one-way hash function and the second one-way hash function to hash the data. The above control center uses the above signature verification algorithm containing the above first private key or the above second private key to verify the above identity identification number and the identity identification number corresponding to the pseudo-identity information obtained by the above signature algorithm, so as to ensure the security, authenticity and integrity of the data.
[0046] In one embodiment of the present application, the control center at least receives the power consumption data request sent by the smart meter through the public channel, and triggers the authentication of the identity of the smart meter, including: the control center receives the power consumption data request and the third verification information sent by the smart meter through the public channel, the third verification information includes the first encryption information, the first verification code, the first pseudo identity information and the first timestamp when the smart meter generates the third random number; the control center generates a second timestamp in response to the third verification information, and verifies whether the difference between the second timestamp and the first timestamp is within the maximum communication time. If the verification is successful, the first pseudo identity information is verified by using the first signature verification algorithm and whether the result of the operation of the first identity identification number and the first incentive information by using the hash operation meets the preset condition. The preset condition is that the first identity identification number and the first incentive information are true and valid, and the first identity identification number and the first pseudo identity information corresponding to the first identity identification number match. If the verification is successful, MAC1* is verified to be the same as the first verification code, and the MAC1*=h1(m1||TSID i ||R SMi ||r1*||t1), r1*=m1⊕h1(SID i ||R SMi ), where h1 is the first one-way hash function, m1 is the first encryption information, TSID i is the first pseudo identity information, R SMi is the first response value, t1 is the first timestamp, SID i The first identity identification number is mentioned above. This method can more efficiently complete the identity authentication of the smart meter by the control center when the key is exchanged between the control center and the smart meter.
[0047] Specifically, after the control center receives the electricity consumption data request and the third verification information sent by the smart meter, the control center generates a second timestamp in response to the third verification information, and verifies whether the difference between the second timestamp and the first timestamp is within the maximum communication range. After the verification is passed, the first signature verification algorithm is used to verify that the first identity identification number and the first incentive information are authentic and valid, and that the first identity identification number matches the first identity identification number corresponding to the first pseudo-identity information. After the verification is passed, the verification is continued to verify whether MAC1* is the same as the first verification code.
[0048] In another embodiment, the first pseudo identity information is generated based on at least one of the first random number and the first identity number, including: using a hash operation to calculate the first random number and the first identity number to obtain a first hash value, using a first signature algorithm to calculate the first hash value to obtain the first pseudo identity information. This method can effectively prevent identity information from being stolen or tampered with, and improve the security and credibility of data. The first encrypted information is obtained by performing an XOR operation on the second hash value and the third random number, and the second hash value is generated by the first identity number and the first response value. This method further improves the security and credibility of data. The first verification code is obtained by performing a hash operation on the first encrypted information, the first pseudo identity information, the third random number, and the first timestamp. This method further makes the key exchange between the control center and the smart meter secure and efficient.
[0049] In order to further ensure the security and efficiency of the key exchange process between the control center and the smart meter, in some embodiments of the present application, when the authentication is passed, the control center calculates the first session key based on at least the first identity identification number, the first response value and the first encrypted information, including: when the authentication is passed, the control center generates a fourth random number, and uses a hash operation to operate the first identity identification number and the first response value to generate a third hash value; the third hash value is XORed with the first encrypted information to obtain the first preliminary key; the first preliminary key and the fourth random number are hashed to obtain the first session key. Specifically, when the smart meter identity authentication is passed, the fourth random number is generated, and the first session key is generated by the hash operation. This method ensures the security of the session key through multiple layers of operation and encryption operations throughout the process, thereby making the communication process more secure and reliable.
[0050] In order to further improve the accuracy and security of the smart meter when performing identity authentication on the control center, in some embodiments of the present application, the first identity authentication includes: a first timestamp verification and a first verification code verification. The first timestamp verification is whether the difference between the third timestamp and the second timestamp generated by the smart meter when receiving the first verification information is within the maximum communication time. The first verification information includes third encrypted information, a second verification code and the second timestamp. The third encrypted information is obtained by performing an XOR operation on the encrypted first preliminary key and a fourth random number. The second verification code includes the first session key. The first verification code verification is to verify whether MAC2* is the same as the second verification code. The MAC2* is obtained by performing a hash operation on the first preliminary session key, the third encrypted information, the first response value and the second timestamp. The first preliminary session key is obtained by performing a hash operation on the third random number and the second preliminary key. The second preliminary key is obtained by performing an XOR operation on the third random number after the hash operation and the third encrypted information. This method further improves the efficiency and security of identity authentication on the control center.
[0051] In another embodiment, the control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider, including: the control center receives the energy data and fourth verification information sent by the power provider through the public channel, the fourth verification information includes the second encrypted information, the third verification code, the second pseudo identity information and the fourth timestamp when the smart meter generates the fifth random number; the control center generates a fifth timestamp in response to the fourth verification information, and verifies whether the difference between the fifth timestamp and the first timestamp is within the maximum communication time. If the verification is successful, the second pseudo identity information is verified by the second signature verification algorithm and the result of the operation of the second identity identification number and the second incentive information by the hash operation meets the preset condition. The preset condition is that the second identity identification number and the second incentive information are true and valid, and the second identity identification number matches the second identity identification number corresponding to the second pseudo identity information. If the verification is successful, MAC3* is verified to be the same as the third verification code, and the MAC3*=h2(m3||TPID j ||R PPj ||r3*||t3), r3*=m3⊕h2(PID j ||R PPj ), where h2 is the second one-way hash function, m3 is the second encryption information, TPID j is the second pseudo identity information, R PPjis the second response value, t3 is the fourth timestamp, PID j The method can more efficiently complete the identity authentication of the power provider by the control center when the key is exchanged between the control center and the power provider.
[0052] Specifically, after the control center receives the energy data and the fourth verification information sent by the power provider, the control center generates a fifth timestamp in response to the fourth verification information, and verifies whether the difference between the fifth timestamp and the fourth timestamp is within the maximum communication range. After the verification is passed, the first signature verification algorithm is used to verify that the second identity identification number and the second incentive information are authentic and valid, and that the second identity identification number matches the second identity identification number corresponding to the second pseudo-identity information. After the verification is passed, the MAC3* is verified to be the same as the third verification code.
[0053] In another embodiment, the second pseudo identity information is generated based on at least one of the second random number and the second identity identification number, including: using a hash operation to calculate the second random number and the second identity identification number to obtain a second hash value, using a second signature algorithm to calculate the second hash value to obtain the second pseudo identity information, this method can effectively prevent the identity information from being stolen or tampered with, and improve the security and credibility of the data, the second encrypted information is obtained by performing an XOR operation on the fifth hash value and the fifth random number, the fifth hash value is generated by the second identity identification number and the second response value, this method further improves the security and credibility of the data, and the third verification code is obtained by performing a hash operation on the second encrypted information, the second pseudo identity information, the fifth random number and the fourth timestamp. This method further makes the key exchange between the control center and the power provider secure and efficient.
[0054] In order to further ensure the security and efficiency of the key exchange process between the control center and the power provider, in some embodiments of the present application, the control center calculates the second session key based on at least the second identity identification number, the second response value and the second encrypted information generated by the power provider, including: if the authentication is successful, the control center generates a sixth random number, and uses a hash operation to operate the second identity identification number and the second response value to generate a sixth hash value; the sixth hash value is XORed with the second encrypted information to obtain a third preliminary key; the third preliminary key and the sixth random number are hashed to obtain the second session key. Specifically, if the power provider's identity authentication is successful, the sixth random number is generated, and the second session key is generated using the hash operation. The entire process of this method ensures the security of the session key through multiple layers of operations and encryption operations, thereby making the communication process more secure and reliable.
[0055] In order to further improve the accuracy and security of the power provider's identity authentication of the control center, in some embodiments of the present application, the second identity authentication includes: a second timestamp verification and a second verification code verification. The second timestamp verification is whether the difference between the sixth timestamp and the fifth timestamp generated by the power provider receiving the second verification information is within the maximum communication time. The second verification information includes the fourth encrypted information, the fourth verification code and the fifth timestamp. The fourth encrypted information is obtained by performing an XOR operation on the encrypted third preliminary key and the sixth random number. The fourth verification code contains the second session key. The second verification code verification is to verify whether MAC4* is the same as the fourth verification code. The MAC4* is obtained by performing a hash operation on the second preliminary session key, the fourth encrypted information, the second response value and the fifth timestamp. The second preliminary session key is generated by performing a hash operation on the fifth random number and the fourth preliminary key. The fourth preliminary key is obtained by performing an XOR operation on the fifth random number after the hash operation and the fourth encrypted information. This method further improves the efficiency and accuracy of the control center's identity authentication.
[0056] In another embodiment, the control center detects the electricity consumption data sent by the smart meter to determine whether there is abnormal electricity consumption data in the electricity consumption data; when abnormal data is detected in the electricity consumption data, the pseudo-identity information of the abnormal electricity consumption data is verified by the first public key to obtain abnormal pseudo-identity information; the corresponding identity identification number of the abnormal electricity consumption data is determined by the first private key to obtain the abnormal identity identification number, and the abnormal pseudo-identity information and the abnormal identity identification number are added to the revocation list of the control center. The abnormal pseudo-identity information and the abnormal identity identification number in the revocation list are no longer used for communication. In this method, first, the control center detects the electricity consumption data sent by the smart meter to determine whether there is abnormal electricity consumption data. If abnormal data is detected, the control center will use the first public key to verify the pseudo-identity information of the abnormal electricity consumption data to obtain abnormal pseudo-identity information. Then, the control center will use the first private key to determine the corresponding identity identification number of the abnormal electricity consumption data to obtain the abnormal identity identification number. Finally, the control center adds the abnormal pseudo-identity information and the abnormal identity identification number to the revocation list, so that these abnormal data are no longer used for communication, which can further ensure the accuracy and security of the smart meter data, timely discover and process abnormal data, and prevent it from causing adverse effects on the system.
[0057] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the authentication key negotiation method for the smart grid of the present application will be described in detail below in combination with specific embodiments.
[0058] This embodiment relates to a specific smart grid authentication key negotiation method, including the following steps:
[0059] Step 1: The control center initializes the public and private key pair, determines the single-item hash function, signature algorithm, and signature verification algorithm;
[0060] Step 2: The control center receives the first registration request and the first identity number of the smart meter, generates a first random number, generates at least first pseudo identity information and first incentive information based on the first random number and the first identity number, sends the information to the smart meter, and receives a first response value sent by the smart meter;
[0061] Step 3: The control center receives the second registration request and the second identity number of the power provider, generates a second random number, generates at least second pseudo identity information and second incentive information based on the second random number and the second identity number, sends these information to the power provider, and receives a second response value sent by the power provider;
[0062] Step 4: The control center at least receives the electricity consumption data request sent by the smart meter through the public channel, and triggers the identity authentication of the smart meter. After the authentication is successful, the control center calculates the first session key, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs the first identity authentication on the control center based on at least the first verification information. When the authentication is successful, the first session key is obtained, thereby completing the authentication key exchange;
[0063] Step 5: The control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider. After the authentication is successful, the control center calculates the second session key, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs the second identity authentication of the control center based on at least the second verification information. When the authentication is successful, the second session key is obtained, thereby completing the authentication key exchange;
[0064] Step 6: The control center detects the electricity consumption data sent by the smart meter. When abnormal data is detected, the control center verifies the abnormal electricity consumption data using the first public key to obtain abnormal pseudo-identity information, and uses the first private key to determine the abnormal identity number of the abnormal electricity consumption data, and adds the abnormal pseudo-identity information and the abnormal identity number to the revocation list that is no longer used for communication. The specific interaction process can be found in Figure 3 shown.
[0065] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the authentication key negotiation method for the smart grid, the method comprising:
[0066] Step S201, the control center receives a first registration request and a first identity identification number of the smart meter, and generates a first random number in response to the first registration request, and generates first pseudo identity information and first incentive information based on at least one of the first random number and the first identity identification number, and sends the first pseudo identity information, the first public key and the first incentive information to the smart meter through a secure channel and receives a first response value sent by the smart meter, where the first response value is generated based on the first incentive information;
[0067] Step S202, the control center receives the second registration request and the second identity number of the power provider, and generates a second random number in response to the second registration request, and generates second pseudo identity information and second incentive information based on at least one of the second random number and the second identity number, and sends the second pseudo identity information, the second public key and the second incentive information to the power provider through a secure channel and receives a second response value sent by the power provider, where the second response value is generated based on the second incentive information;
[0068] Step S203, the control center at least receives the electricity consumption data request sent by the smart meter through the public channel, and triggers the authentication of the identity of the smart meter. If the authentication is successful, the control center at least calculates the first session key according to the first identity identification number, the first response value and the first encryption information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs the first identity authentication on the control center at least based on the first verification information. If the authentication is successful, the first session key is obtained, thereby completing the authentication key exchange;
[0069] In step S204, the control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider. If the authentication is successful, the control center at least calculates the second session key based on the second identity identification number, the second response value and the second encryption information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center at least based on the second verification information. If the authentication is successful, the second session key is obtained, thereby completing the authentication key exchange.
[0070] An embodiment of the present invention provides a processor, the processor is used to run a program, wherein when the program is run, the authentication key negotiation method for the smart grid is executed, the method comprising:
[0071] Step S201, the control center receives a first registration request and a first identity identification number of the smart meter, and generates a first random number in response to the first registration request, and generates first pseudo identity information and first incentive information based on at least one of the first random number and the first identity identification number, and sends the first pseudo identity information, the first public key and the first incentive information to the smart meter through a secure channel and receives a first response value sent by the smart meter, where the first response value is generated based on the first incentive information;
[0072] Step S202, the control center receives the second registration request and the second identity number of the power provider, and generates a second random number in response to the second registration request, and generates second pseudo identity information and second incentive information based on at least one of the second random number and the second identity number, and sends the second pseudo identity information, the second public key and the second incentive information to the power provider through a secure channel and receives a second response value sent by the power provider, where the second response value is generated based on the second incentive information;
[0073] Step S203, the control center at least receives the electricity consumption data request sent by the smart meter through the public channel, and triggers the authentication of the identity of the smart meter. If the authentication is successful, the control center at least calculates the first session key according to the first identity identification number, the first response value and the first encryption information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs the first identity authentication on the control center at least based on the first verification information. If the authentication is successful, the first session key is obtained, thereby completing the authentication key exchange;
[0074] In step S204, the control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider. If the authentication is successful, the control center at least calculates the second session key based on the second identity identification number, the second response value and the second encryption information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center at least based on the second verification information. If the authentication is successful, the second session key is obtained, thereby completing the authentication key exchange.
[0075] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0076] Step S201, the control center receives a first registration request and a first identity identification number of the smart meter, and generates a first random number in response to the first registration request, and generates first pseudo identity information and first incentive information based on at least one of the first random number and the first identity identification number, and sends the first pseudo identity information, the first public key and the first incentive information to the smart meter through a secure channel and receives a first response value sent by the smart meter, where the first response value is generated based on the first incentive information;
[0077] Step S202, the control center receives the second registration request and the second identity number of the power provider, and generates a second random number in response to the second registration request, and generates second pseudo identity information and second incentive information based on at least one of the second random number and the second identity number, and sends the second pseudo identity information, the second public key and the second incentive information to the power provider through a secure channel and receives a second response value sent by the power provider, where the second response value is generated based on the second incentive information;
[0078] Step S203, the control center at least receives the electricity consumption data request sent by the smart meter through the public channel, and triggers the authentication of the identity of the smart meter. If the authentication is successful, the control center at least calculates the first session key according to the first identity identification number, the first response value and the first encryption information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs the first identity authentication on the control center at least based on the first verification information. If the authentication is successful, the first session key is obtained, thereby completing the authentication key exchange;
[0079] In step S204, the control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider. If the authentication is successful, the control center at least calculates the second session key based on the second identity identification number, the second response value and the second encryption information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center at least based on the second verification information. If the authentication is successful, the second session key is obtained, thereby completing the authentication key exchange.
[0080] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0081] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0082] Step S201, the control center receives a first registration request and a first identity identification number of the smart meter, and generates a first random number in response to the first registration request, and generates first pseudo identity information and first incentive information based on at least one of the first random number and the first identity identification number, and sends the first pseudo identity information, the first public key and the first incentive information to the smart meter through a secure channel and receives a first response value sent by the smart meter, where the first response value is generated based on the first incentive information;
[0083] Step S202, the control center receives the second registration request and the second identity number of the power provider, and generates a second random number in response to the second registration request, and generates second pseudo identity information and second incentive information based on at least one of the second random number and the second identity number, and sends the second pseudo identity information, the second public key and the second incentive information to the power provider through a secure channel and receives a second response value sent by the power provider, where the second response value is generated based on the second incentive information;
[0084] Step S203, the control center at least receives the electricity consumption data request sent by the smart meter through the public channel, and triggers the authentication of the identity of the smart meter. If the authentication is successful, the control center at least calculates the first session key according to the first identity identification number, the first response value and the first encryption information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs the first identity authentication on the control center at least based on the first verification information. If the authentication is successful, the first session key is obtained, thereby completing the authentication key exchange;
[0085] In step S204, the control center at least receives the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider. If the authentication is successful, the control center at least calculates the second session key based on the second identity identification number, the second response value and the second encryption information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center at least based on the second verification information. If the authentication is successful, the second session key is obtained, thereby completing the authentication key exchange.
[0086] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0087] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0088] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0091] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0092] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0093] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0094] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0095] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0096] In the above embodiment, the control center receives a first registration request and a first identity number of the smart meter, and generates a first random number in response to the first registration request, and generates a first pseudo identity information and a first incentive information based on at least one of the first random number and the first identity number, and sends the first pseudo identity information, the first public key and the first incentive information to the smart meter through a secure channel and receives a first response value sent by the smart meter; the control center receives a second registration request and a second identity number of the power provider, and generates a second random number in response to the second registration request, and generates a second pseudo identity information and a second incentive information based on at least one of the second random number and the second identity number, and sends the second pseudo identity information, the second public key and the second incentive information to the power provider through a secure channel and receives a second response value sent by the power provider; the control center at least receives a request for electricity consumption data sent by the smart meter through an open channel, and triggers authentication of the identity of the smart meter. If the authentication is successful, The control center calculates a first session key based on at least the first identity identification number, the first response value and the first encrypted information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs a first identity authentication on the control center based on at least the first verification information, and obtains the first session key if the authentication is successful, thereby completing the authentication key exchange; the control center receives at least the energy data provided by the power provider through the public channel, and triggers the authentication of the identity of the power provider, and if the authentication is successful, the control center calculates a second session key based on at least the second identity identification number, the second response value and the second encrypted information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center based on at least the second verification information, and obtains the second session key if the authentication is successful, thereby completing the authentication key exchange.Compared with the method in the prior art that requires the participation of the service provider and the smart meter in the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider, resulting in low communication efficiency, the present solution provides two-way authentication and session key generation between the smart meter and the control center, and between the control center and the power provider, respectively, during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider. This process does not require a third-party random number. In this way, during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider, if an attacker attacks the authentication system on either side, the communication between the two parts does not affect each other, and the communication process of the two parts can be completed efficiently, thereby solving the problem of low communication efficiency due to the participation of a third party when an attacker attacks either side during the mutual authentication and key exchange process between the smart meter and the control center, and between the control center and the service provider.
[0097] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A smart grid authentication key negotiation method, characterized in that: include: The control center receives a first registration request and a first identity number of the smart meter, generates a first random number in response to the first registration request, generates first pseudo identity information and first incentive information based on at least one of the first random number and the first identity number, sends the first pseudo identity information, the first public key and the first incentive information to the smart meter through a secure channel, and receives a first response value sent by the smart meter, wherein the first response value is generated based on the first incentive information; The control center receives a second registration request and a second identity number from the power provider, generates a second random number in response to the second registration request, generates second pseudo identity information and second incentive information based on at least one of the second random number and the second identity number, sends the second pseudo identity information, a second public key and the second incentive information to the power provider through a secure channel, and receives a second response value sent by the power provider, wherein the second response value is generated based on the second incentive information; The control center at least receives the electricity consumption data request sent by the smart meter through the public channel, and triggers the authentication of the identity of the smart meter. If the authentication is successful, the control center calculates a first session key based on at least the first identity identification number, the first response value and the first encryption information generated by the smart meter, and sends the first verification information carrying the first session key to the smart meter, so that the smart meter performs a first identity authentication on the control center based on at least the first verification information. If the authentication is successful, the first session key is obtained, thereby completing the authentication key exchange; The control center at least receives the energy data provided by the power provider through the public channel, and triggers authentication of the identity of the power provider. If the authentication is successful, the control center at least calculates a second session key based on the second identity identification number, the second response value and the second encrypted information generated by the power provider, and sends the second verification information carrying the second session key to the power provider, so that the power provider performs a second identity authentication on the control center at least based on the second verification information. If the authentication is successful, the second session key is obtained, thereby completing the authentication key exchange.
2. The authentication key negotiation method according to claim 1, characterized in that: The control center at least receives the electricity consumption data request sent by the smart meter through the public channel, and triggers authentication of the identity of the smart meter, including: The control center receives the electricity consumption data request and third verification information sent by the smart meter through the public channel, where the third verification information includes the first encryption information, the first verification code, the first pseudo identity information, and a first timestamp when the smart meter generates a third random number; The control center generates a second timestamp in response to the third verification information, and verifies whether the difference between the second timestamp and the first timestamp is within the maximum communication time. If the verification is successful, the control center uses the first signature verification algorithm to verify whether the first pseudo-identity information and the result of the operation of the first identity number and the first incentive information using a hash operation meet the preset conditions. The preset conditions are that the first identity number and the first incentive information are true and valid, and the first identity number matches the first identity number corresponding to the first pseudo-identity information. If the verification is successful, the control center verifies whether MAC1* is the same as the first verification code, and MAC1*=h1(m1||TSID i ||R SMi ||r1*||t1), r1*=m1⊕h1(SID i ||R SMi ), where h1 is the first one-way hash function, m1 is the first encryption information, TSID i is the first pseudo identity information, R SMi is the first response value, t1 is the first timestamp, SID i is the first identity identification number.
3. The authentication key negotiation method according to claim 2, characterized in that: Generating the first pseudo-identity information based on at least one of the first random number and the first identity identification number includes: calculating a first hash value on the first random number and the first identity identification number using a hash operation, and calculating the first pseudo-identity information on the first hash value using a first signature algorithm; The first encrypted information is obtained by performing an XOR operation on a second Hash value and the third random number, and the second Hash value is generated by the first identity identification number and the first response value; The first verification code is obtained by performing a hash operation on the first encrypted information, the first pseudo identity information, the third random number, and the first timestamp.
4. The authentication key negotiation method according to claim 1, characterized in that: In the case where the authentication is successful, the control center calculates a first session key based on at least the first identity identification number, the first response value and the first encryption information, including: If the authentication is successful, the control center generates a fourth random number, and uses a hash operation to operate the first identity identification number and the first response value to generate a third hash value; Performing an XOR operation on the third hash value and the first encrypted information to obtain a first preliminary key; A hash operation is performed on the first preliminary key and the fourth random number to obtain the first session key.
5. The authentication key negotiation method according to claim 1, characterized in that: The first identity authentication includes: The first timestamp verification and the first verification code verification, the first timestamp verification is whether the difference between the third timestamp generated by the smart meter when receiving the first verification information and the second timestamp is within the maximum communication time, the first verification information includes the third encrypted information, the second verification code and the second timestamp, the third encrypted information is obtained by performing an XOR operation on the encrypted first preliminary key and the fourth random number, the second verification code contains the first session key, the first verification code verification is to verify whether MAC2* is the same as the second verification code, the MAC2* is obtained by performing a hash operation on the first preliminary session key, the third encrypted information, the first response value and the second timestamp, the first preliminary session key is obtained by performing a hash operation on the third random number and the second preliminary key, and the second preliminary key is obtained by performing an XOR operation on the hashed third random number and the third encrypted information.
6. The authentication key negotiation method according to claim 1, characterized in that: The control center at least receives the energy data provided by the power provider through the public channel and triggers authentication of the identity of the power provider, including: The control center receives the energy data and fourth verification information sent by the power provider through the public channel, wherein the fourth verification information includes the second encrypted information, the third verification code, the second pseudo identity information, and a fourth timestamp when the power provider generates a fifth random number; The control center generates a fifth timestamp in response to the fourth verification information, and verifies whether the difference between the fifth timestamp and the fourth timestamp is within the maximum communication time. If the verification is successful, the second pseudo-identity information is verified by using a second signature verification algorithm and the result of the operation of the second identity number and the second incentive information by using a hash operation meets a preset condition. The preset condition is that the second identity number and the second incentive information are true and valid, and the second identity number matches the second identity number corresponding to the second pseudo-identity information. If the verification is successful, MAC3* is verified to be the same as the third verification code, and MAC3*=h2(m3||TPID j ||R PPj ||r3*||t3), r3*=m3⊕h2(PID j ||R PPj ), where h2 is the second one-way hash function, m3 is the second encrypted information, TPID j is the second pseudo identity information, R PPj is the second response value, t3 is the fourth timestamp, PID j is the second identity identification number.
7. The authentication key negotiation method according to claim 5, characterized in that: Generating second pseudo-identity information based on at least one of the second random number and the second identity identification number, comprising: calculating the second random number and the second identity identification number using a hash operation to obtain a second hash value, and calculating the second hash value using a second signature algorithm to obtain the second pseudo-identity information; The second encrypted information is obtained by performing an XOR operation on a fifth Hash value and a fifth random number, and the fifth Hash value is generated by the second identity identification number and the second response value; The third verification code is obtained by performing a hash operation on the second encrypted information, the second pseudo identity information, the fifth random number and the fourth timestamp.
8. The authentication key negotiation method according to claim 1, characterized in that: In the case where the authentication is successful, the control center calculates a second session key based on at least the second identity identification number, the second response value and the second encryption information generated by the power provider, including: If the authentication is successful, the control center generates a sixth random number, and uses a hash operation to operate the second identity identification number and the second response value to generate a sixth hash value; Performing an XOR operation on the sixth Hash value and the second encrypted information to obtain a third preliminary key; A hash operation is performed on the third preliminary key and the sixth random number to obtain the second session key.
9. The authentication key negotiation method according to claim 1, characterized in that: The second identity authentication includes: It includes a second timestamp verification and a second verification code verification. The second timestamp verification is whether the difference between the sixth timestamp and the fifth timestamp generated by the power provider receiving the second verification information is within the maximum communication time. The second verification information includes fourth encrypted information, a fourth verification code and the fifth timestamp. The fourth encrypted information is obtained by performing an XOR operation on the encrypted third preliminary key and the sixth random number. The fourth verification code contains the second session key. The second verification code verification is to verify whether MAC4* is the same as the fourth verification code. The MAC4* is obtained by performing a hash operation on the second preliminary session key, the fourth encrypted information, the second response value and the fifth timestamp. The second preliminary session key is generated by performing a hash operation on the fifth random number and the fourth preliminary key. The fourth preliminary key is obtained by performing an XOR operation on the hashed fifth random number and the fourth encrypted information.
10. The authentication key negotiation method according to any one of claims 1 to 7, characterized in that: Before the control center receives the registration request, the method further includes: The control center initializes a public-private key pair to obtain the first public key, the first private key, the second public key and the second private key; Determine a one-way hash function, a signature algorithm, and a signature verification algorithm used by the control center to authenticate the smart meter, wherein the one-way hash function includes a first one-way hash function and a second one-way hash function, and the signature verification algorithm includes the first private key or the second private key.
11. The authentication key negotiation method according to any one of claims 1 to 7, characterized in that: The method further comprises: The control center detects the power consumption data sent by the smart meter to determine whether there is abnormal power consumption data in the power consumption data; When abnormal data is detected in the power usage data, the pseudo-identity information of the abnormal power usage data is verified by using the first public key to obtain abnormal pseudo-identity information; The first private key is used to determine the corresponding identity identification number of the abnormal power consumption data to obtain the abnormal identity identification number, and the abnormal pseudo-identity information and the abnormal identity identification number are added to the revocation list of the control center. The abnormal pseudo-identity information and the abnormal identity identification number in the revocation list are no longer used for communication.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the authentication key negotiation method according to any one of claims 1 to 11.
13. A processor, characterized in that: The processor is used to run a program, wherein the program executes the authentication key negotiation method according to any one of claims 1 to 11 when running.
14. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing the authentication key negotiation method described in any one of claims 1 to 11.
