Energy Internet data transmission protocol construction method, device and system

By using identity-based cryptography and key negotiation of the Diffie-Hellman cryptosystem in energy Internet devices, combined with lightweight encryption algorithms and hash functions, the problems of device identity authentication and data protection are solved, and a system suitable for resource users is realized. Device-limited secure data transmission protocol enhances the security of communication data.

CN114095229BActive Publication Date: 2024-09-17CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111349176.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-15
Publication Date
2024-09-17
Estimated Expiration
2041-11-15

AI Technical Summary

Technical Problem

Due to limited computing power and storage space, energy Internet devices are difficult to effectively authenticate and protect data, making them vulnerable to attacks. Traditional computer authentication protocols cannot be directly applied, leading to security issues and challenges.

Method used

The identity-based cryptography system (IBC system) is used to authenticate the identity of the public key issuer, and the Diffie-Hellman cryptosystem is used to implement key negotiation between the client and the server, and a lightweight symmetric encryption algorithm and hash function are used to construct encrypted data. Transfer protocols that ensure data confidentiality, integrity and freshness.

Benefits of technology

Provides a lightweight data transmission protocol suitable for resource-constrained energy Internet devices. It integrates identity authentication, data confidentiality, data integrity and data freshness, enhances the security of communication data, resists man-in-the-middle attacks, and is suitable for resource Constrained Energy Internet Devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114095229B
    Figure CN114095229B
Patent Text Reader

Abstract

The present invention provides a method, device and system for constructing a data transmission protocol of an energy internet, the method comprising: using an IBC system to authenticate the public key issuer among energy internet users, calculating the key of the public key issuer after the authentication is completed, sending the public and private key pair of the client to the client after the key is generated, and generating the public and private key pair of the server itself; based on the public and private key pair of the client and the public and private key pair of the server, using the Diffie-Hellman cryptographic system to negotiate the key between the client and the server; based on the key negotiation between the client and the server, using a lightweight symmetric cryptographic algorithm and encrypted data constructed by a hash function to securely transmit the power business data in the energy internet. The method incorporates a lightweight symmetric encryption algorithm into the communication process to realize data confidentiality protection, and a hash function with an authentication function ensures data integrity and a timestamp ensures data freshness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of energy internet device data transmission, and in particular relates to a method, device and system for constructing a data transmission protocol for energy internet. Background Art

[0002] Trusted authentication of energy Internet devices is the first step to ensure that information resources are legally accessed. The security goal of the energy Internet authentication mechanism is to authenticate the authenticity of the identity information of the data sender, ensure the validity and integrity of specific data, ensure the freshness of received data, and ensure that outdated data is not replayed. Providing reliable user and device identity access authentication and management solutions can ensure the secure connection of IoT devices and provide secure authorized access to device users.

[0003] Due to the challenges of computing power, memory storage requirements, dynamic security updates, and protection of physical variable capture in the devices of the Energy Internet, as well as some limitations of the devices themselves (limited computing power and storage space, resource constraints, and support for dynamic updates, etc.), traditional computer authentication protocols cannot be used directly in Energy Internet devices, resulting in some security issues and challenges facing the Energy Internet. Energy Internet devices are easily exploited by attackers to obtain user authentication information, and then forge user identities or communication nodes, and invade and attack other Energy Internet IoT terminal devices, access gateways, etc.

[0004] Intrusion protection includes two aspects: pre-intrusion and post-intrusion. Pre-intrusion protection belongs to network boundary protection, and the commonly used technology is network firewall; post-intrusion protection is intrusion detection (IDS), which is a mature security protection technology for information systems. However, for resource-constrained energy Internet systems, intrusion detection has almost no ability, so the main technology will be in the aspect of pre-intrusion security protection. For many energy Internet devices, it is also unrealistic to use firewall technology, so the main technical means for boundary protection is identity authentication. Specifically, lightweight identity authentication is a key technology to improve resource-constrained IoT devices. Summary of the invention

[0005] In order to solve the problems existing in the prior art, the present invention provides a method, device and system for constructing a data transmission protocol for an energy Internet. The method incorporates a lightweight symmetric encryption algorithm into the communication process to achieve data confidentiality protection, a hash function with authentication function to ensure data integrity and a timestamp to ensure data freshness.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] A method for constructing a data transmission protocol for an energy internet comprises the following steps:

[0008] The identity-based cryptographic system (i.e., IBC system) is used to authenticate the public key issuer in the Energy Internet. After the authentication is completed, the public key issuer's key is calculated. After the key is generated, the public-private key pair is sent to the client, and the server's own public-private key pair is generated.

[0009] Based on the public and private key pair of the client and the public and private key pair of the server, the Diffie-Hellman cryptographic system is used to negotiate the key between the client and the server.

[0010] Based on the key negotiation between the client and the server, the power business data in the energy internet is securely transmitted using encrypted data constructed using a lightweight symmetric cryptographic algorithm and a hash function.

[0011] As a further improvement of the present invention, the IBC system is used to authenticate the public key issuer among the energy Internet users, and after the authentication is completed, the key of the public key issuer is calculated. After the key is generated, the public-private key pair is sent to the client, and the public-private key pair of the server itself is generated; specifically, it includes:

[0012] The IBC system generates system parameters Params and system master key s based on the security parameter K;

[0013] The private key generation center of the IBC system calculates the hash value of the public key issuer's identity information based on the public key issuer's identity information ID: ID =H(ID), the hash value is used as the public key, and the private key calculation method is S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the IBC system will use the client's public and private key pair Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated

[0014] As a further improvement of the present invention, the IBC system is established by the server side.

[0015] As a further improvement of the present invention, the key negotiation between the client and the server is realized by using the Diffie-Hellman cryptographic system, which specifically includes:

[0016] Receive the first data sent by the client, the first data is randomly selected calculate

[0017] Use private key Decrypt y1, randomly selected calculate Calculate the encryption key K01 =(g a ) b mod q,, send y0 to the client;

[0018] Receive the second data sent by the client, the second data is determined by the private key Decrypt y0 and get g b , and then the encryption key K is calculated 01 =(g b ) a mod q;

[0019] Among them, the order of the cyclic group G is q.

[0020] As a further improvement of the present invention, the encrypted data constructed by using a lightweight symmetric cryptographic algorithm and a hash function is used to securely transmit the power business data in the energy internet, specifically including:

[0021] Receive the third data sent by the client. The third data is calculated by sending message m. Then the encrypted data (c, H(m)) is obtained;

[0022] According to the received encrypted data (c, H(m)), calculate H(m0), verify whether H(m0) is consistent with H(m):

[0023] If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message and perform subsequent operations;

[0024] Otherwise refuse to receive.

[0025] A data transmission protocol construction device for energy internet, comprising:

[0026] The key generation module is used to use the IBC system to authenticate the public key issuer of the energy Internet user, calculate the public key issuer's key after the authentication is completed, send the client's public and private key pair to the client after the key is generated, and generate the server's own public and private key pair;

[0027] Negotiated encryption key module, used for key negotiation between client and server based on the public and private key pair of the client and the public and private key pair of the server, using the Diffie-Hellman cryptographic system;

[0028] The data security transmission module is used to securely transmit the power business data in the energy internet based on the key negotiation between the client and the server, using the encrypted data constructed by the lightweight symmetric cryptographic algorithm and the hash function.

[0029] Preferably, the key generation module is specifically used for:

[0030] The IBC system is used to authenticate the public key issuer of the energy Internet user, and after the authentication is completed, the public key issuer's key is calculated. After the key is generated, the public and private key pair is sent to the client, and the server's own public and private key pair is generated; specifically, it includes:

[0031] The IBC system generates system parameters Params and system master key s based on the security parameter K;

[0032] The private key generation center of the IBC system calculates the hash value of the public key issuer's identity information based on the public key issuer's identity information ID: ID =H(ID), the hash value is used as the public key, and the private key calculation method is S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the IBC system will use the client's public and private key pair Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated

[0033] Preferably, the negotiation encryption key module is specifically used for:

[0034] Receive the first data sent by the client, the first data is randomly selected calculate

[0035] Use private key Decrypt y1, randomly selected calculate Calculate the encryption key K 01 =(g a ) b mod q,, send y0 to the client;

[0036] Receive the second data sent by the client, the second data is determined by the private key Decrypt y0 and get g b , and then the encryption key K is calculated 01 =(g b ) a mod q;

[0037] Among them, the order of the cyclic group G is q.

[0038] Preferably, the data security transmission module is specifically used for:

[0039] Receive the third data sent by the client. The third data is calculated by sending message m. Then the encrypted data (c, H(m)) is obtained;

[0040] According to the received encrypted data (c, H(m)), calculate H(m0), verify whether H(m0) is consistent with H(m):

[0041] If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message and perform subsequent operations;

[0042] Otherwise refuse to receive.

[0043] A data transmission protocol construction system for energy internet, comprising:

[0044] The IBC system is used to authenticate the public key issuer among energy Internet users. After the authentication is completed, the public key issuer's key is calculated. After the key is generated, the public and private key pair is sent to the client, and the server's own public and private key pair is generated;

[0045] The client is used to implement key negotiation between the client and the server using the Diffie-Hellman cryptographic system;

[0046] The server is used to implement key negotiation with the client; it uses encrypted data constructed using lightweight symmetric cryptographic algorithms and hash functions to securely transmit power business data in the energy Internet.

[0047] As a further improvement of the present invention, the IBC system is specifically used for:

[0048] The IBC system generates system parameters Params and system master key s based on the security parameter K;

[0049] The private key generation center of the IBC system calculates the hash value of the public key issuer's identity information based on the public key issuer's identity information ID: ID =H(ID), the hash value is used as the public key, and the private key calculation method is S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the IBC system will use the client's public and private key pair Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated

[0050] As a further improvement of the present invention, the client is specifically used for:

[0051] The first data sent to the server is randomly selected calculate

[0052] Accept the return data from the server, the return data is sent using the private key Decrypt y1, randomly selected calculate Calculate the encryption key K 01 =(g a ) b mod q,, send y0 to the client;

[0053] The second data sent is determined by the private key Decrypt y0 and get g b , and then the encryption key K is calculated 01 =(g b ) a mod q;

[0054] Among them, the order of the cyclic group G is q.

[0055] As a further improvement of the present invention, in the server, the encrypted data constructed by the lightweight symmetric cryptographic algorithm and the hash function is used to securely transmit the power business data in the energy internet, specifically for:

[0056] Receive the third data sent by the client. The third data is calculated by sending message m. Then the encrypted data (c, H(m)) is obtained;

[0057] According to the received encrypted data (c, H(m)), calculate H(m0), verify whether H(m0) is consistent with H(m):

[0058] If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message and perform subsequent operations;

[0059] Otherwise refuse to receive.

[0060] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0061] The data transmission protocol construction method of the present invention, the purpose of identity authentication is to establish a shared session key, so as to conduct confidential communication, and can selectively provide confidentiality and integrity of communication data. However, many data in the energy Internet system are small data. In this case, the present invention can integrate identity authentication with data protection to provide a certifiable data confidentiality lightweight protocol. Therefore, the present invention is a lightweight data transmission protocol that integrates security protection such as identity authentication, data confidentiality, data integrity, and data freshness, and is suitable for security protection technology of resource-constrained energy Internet devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A flow chart of a method for constructing a data security transmission protocol of the present invention;

[0063] Figure 2A process diagram for constructing a data security transmission protocol of the present invention;

[0064] Figure 3 A system is constructed for the data security transmission protocol of the present invention. DETAILED DESCRIPTION

[0065] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0066] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention.

[0067] The present invention proposes a lightweight data transmission protocol for the energy internet, which integrates security protections such as identity authentication, data confidentiality, data integrity, and data freshness. The identity of the public key issuer among the energy internet users is authenticated by using an identity-based cryptographic system (IBC system for short), the key negotiation between the client and the server is realized by the Diffie-Hellman cryptographic system, a lightweight symmetric encryption algorithm is integrated into the communication process to realize data confidentiality protection, a hash function with authentication function ensures data integrity, and a timestamp ensures data freshness.

[0068] like Figure 1 As shown, the present invention provides a method for constructing a data transmission protocol of an energy internet, comprising the following steps:

[0069] The identity-based cryptographic system is used to authenticate the public key issuer of the energy Internet user. After the authentication is completed, the public key issuer's secret key is calculated. After the secret key is generated, the client's public and private key pair is sent to the client, and the server's own public and private key pair is generated.

[0070] Based on the public and private key pair of the client and the public and private key pair of the server, the Diffie-Hellman cryptographic system is used to negotiate the key between the client and the server.

[0071] Based on the key negotiation between the client and the server, the power business data in the energy internet is securely transmitted using encrypted data constructed using a lightweight symmetric cryptographic algorithm and a hash function.

[0072] like Figure 2 As shown, the specific steps of the present invention are as follows:

[0073] The first step is to use the IBC system to authenticate the public key issuer among energy Internet users.

[0074] (1) Establishing IBC system on the server side:

[0075] Generate system parameters Params and system master key s according to security parameter K;

[0076] (2) Parameter extraction:

[0077] The private key generation center uses the client's identity information ID to calculate the hash value of the client's identity information: ID =H(ID), the hash value is used as the client's public key, and the client's private key is calculated as S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the IBC system will use the client's public and private key pair Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated

[0078] The second step is to use the Diffie-Hellman cryptographic system to achieve key negotiation between the client and the server.

[0079] Assume that both parties in communication already know a large cyclic group G and its generator g, and the order of the cyclic group G is q, and the encryption algorithm used is the algorithm of the IBC system. The specific steps are as follows:

[0080] (1) Client 1 randomly selects calculate Send y1 to the server.

[0081] (2) The server receives y1 and uses the private key Decryption, random selection calculate Calculate the encryption key K 01 =(g a ) b mod q,, sends y0 to client 1.

[0082] (3) Client 1 receives y0 and uses the private key Decrypt and get g b , calculate the encryption key K 01 =(g b ) a mod q.

[0083] Step 3: Secure Data Transmission

[0084] The communicating parties agree in advance on the lightweight symmetric encryption algorithm SEnc and hash function H for data encryption transmission.

[0085] (1) Message m to be sent by client 1, calculation Send (c,H(m)) to the server.

[0086] (2) The server receives (c, H(m)) and calculates H(m0), verify whether H(m0) is consistent with H(m). If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message for subsequent operations, otherwise refuse to receive it.

[0087] The present invention proposes a lightweight data transmission protocol for energy Internet, which integrates security protections such as identity authentication, data confidentiality, data integrity, and data freshness.

[0088] The IBC system is used to authenticate the public key issuer of the energy Internet user. The IBC system uses the user's identity information as the user's public key to implement a public key cryptographic system that binds the user's identity information and public key. The user's public and private key pair is generated by a trusted third party, PKG. After receiving the user's identity information, PKG uses the system master key to generate the corresponding public and private key pair for the user based on the user's identity information, and transmits the user's private key to the user through a secure channel. The identity information used as the public key can be an arbitrary string. Usually, a string that is easy to remember and has a certain practical meaning is used, such as the IP of the client device, the user's email address, ID number, telephone number, etc.

[0089] The lightweight Diffie-Hellman cryptographic system implements key negotiation between the client and the server. The DH key exchange protocol does not authenticate the identities of the communicating parties, so it is vulnerable to man-in-the-middle attacks. The present invention uses the IBC system to authenticate the identities of the communicating parties, so it can effectively resist man-in-the-middle attacks.

[0090] In the communication process, a lightweight symmetric encryption algorithm is integrated to achieve data confidentiality protection. The performance measurement of the lightweight symmetric encryption algorithm is mainly considered from the perspective of hardware measurement and software measurement, which is divided into three dimensions: energy consumption, delay, and throughput. The performance requirements of the hardware platform are usually expressed in terms of (circuit design) equivalent gates. The lightweight symmetric encryption algorithm used here requires at most 2,000 equivalent gates; while the performance requirements of the software application are expressed in terms of the number of registers, the number of bytes of RAM and ROM, etc. All need to meet the requirements of the international lightweight cryptographic algorithm to ensure that it is suitable for resource-constrained energy Internet devices.

[0091] In addition, hash functions with authentication functions also need to adopt lightweight algorithms to ensure data integrity with minimal energy consumption.

[0092] like Figure 3 As shown, the present invention also provides a data transmission protocol construction device for energy Internet, which is characterized by comprising:

[0093] The key generation module is used to use the IBC system to authenticate the public key issuer of the energy Internet user, calculate the public key issuer's key after the authentication is completed, send the client's public and private key pair to the client after the key is generated, and generate the server's own public and private key pair;

[0094] Negotiated encryption key module, used for key negotiation between client and server based on the public and private key pair of the client and the public and private key pair of the server, using the Diffie-Hellman cryptographic system;

[0095] The data security transmission module is used to securely transmit the power business data in the energy internet based on the key negotiation between the client and the server, using the encrypted data constructed by the lightweight symmetric cryptographic algorithm and the hash function.

[0096] Specifically, the key generation module is specifically used to:

[0097] The IBC system is used to authenticate the public key issuer of the energy Internet user, and after the authentication is completed, the public key issuer's key is calculated. After the key is generated, the public and private key pair is sent to the client, and the server's own public and private key pair is generated; specifically, it includes:

[0098] The IBC system generates system parameters Params and system master key s based on the security parameter K;

[0099] The private key generation center of the IBC system calculates the hash value of the public key issuer's identity information based on the public key issuer's identity information ID: ID =H(ID), the hash value is used as the public key, and the private key calculation method is S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the IBC system will use the client's public and private key pair Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated

[0100] Specifically, the negotiation encryption key module is specifically used for:

[0101] Receive the first data sent by the client, the first data is randomly selected calculate

[0102] Use private key Decrypt y1, randomly selected calculate Calculate the encryption key K 01 =(g a ) b mod q,, send y0 to the client;

[0103] Receive the second data sent by the client, the second data is determined by the private key Decrypt y0 and get g b , and then the encryption key K is calculated 01 =(g b ) a mod q;

[0104] Among them, the order of the cyclic group G is q.

[0105] Specifically, the data security transmission module is specifically used for:

[0106] Receive the third data sent by the client. The third data is calculated by sending message m. Then the encrypted data (c, H(m)) is obtained;

[0107] According to the received encrypted data (c, H(m)), calculate H(m0), verify whether H(m0) is consistent with H(m):

[0108] If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message and perform subsequent operations;

[0109] Otherwise refuse to receive.

[0110] The present invention proposes three objectives to provide a data transmission protocol construction system for energy internet, including the following steps:

[0111] The IBC system is used to authenticate the public key issuer among energy Internet users. After the authentication is completed, the public key issuer's key is calculated. After the key is generated, the public and private key pair is sent to the client, and the server's own public and private key pair is generated;

[0112] The client is used to implement key negotiation between the client and the server using the Diffie-Hellman cryptographic system;

[0113] The server is used to implement key negotiation with the client; it uses encrypted data constructed using lightweight symmetric cryptographic algorithms and hash functions to securely transmit power business data in the energy Internet.

[0114] The IBC system is specifically used for:

[0115] The IBC system generates system parameters Params and system master key s based on the security parameter K;

[0116] The private key generation center of the IBC system calculates the hash value of the public key issuer's identity information based on the public key issuer's identity information ID: ID =H(ID), the hash value is used as the public key, and the private key calculation method is S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the IBC system will use the client's public and private key pair Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated

[0117] The client is specifically used for:

[0118] The first data sent to the server is randomly selected calculate

[0119] Accept the return data from the server, the return data is sent using the private key Decrypt y1, randomly selected calculate Calculate the encryption key K 01 =(g a ) b mod q,, send y0 to the client;

[0120] The second data sent is determined by the private key Decrypt y0 and get g b , and then the encryption key K is calculated 01 =(g b ) a mod q;

[0121] Among them, the order of the cyclic group G is q.

[0122] In the server, the encrypted data constructed by the lightweight symmetric cryptographic algorithm and the hash function is used to securely transmit the power business data in the energy internet, specifically for:

[0123] Receive the third data sent by the client. The third data is calculated by sending message m. Then the encrypted data (c, H(m)) is obtained;

[0124] According to the received encrypted data (c, H(m)), calculate H(m0), verify whether H(m0) is consistent with H(m):

[0125] If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message and perform subsequent operations;

[0126] Otherwise refuse to receive.

[0127] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0128] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 produce 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.

[0129] 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.

[0130] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for constructing a data transmission protocol for an energy internet, characterized in that: The following steps are involved: The identity-based cryptographic system is used to authenticate the public key issuer among the energy Internet users. After the authentication is completed, the public key issuer's secret key is calculated. After the secret key is generated, the public-private key pair is sent to the client, and the server's own public-private key pair is generated. Based on the public and private key pair of the client and the public and private key pair of the server, the Diffie-Hellman cryptographic system is used to negotiate the key between the client and the server. Based on the key negotiation between the client and the server, the power business data in the energy internet is securely transmitted using encrypted data constructed using a lightweight symmetric cryptographic algorithm and a hash function; The identity-based cryptographic system is used to authenticate the public key issuer of the energy Internet user, and after the authentication is completed, the public key issuer's key is calculated. After the key is generated, the public and private key pair is sent to the client, and the server's own public and private key pair is generated; specifically, it includes: The identity-based cryptographic system generates system parameters Params and system master key s according to the security parameter K; The private key generation center of the identity-based cryptographic system calculates the hash value of the public key issuer's identity information based on the public key issuer's identity information ID: ID =H(ID), the hash value is used as the public key, and the private key calculation method is S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the identity-based cryptographic system converts the client's public and private key pair into Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated The key negotiation between the client and the server is realized by using the Diffie-Hellman cryptographic system, specifically including: Receive the first data sent by the client, the first data is randomly selected calculate Use private key Decrypt y1, randomly selected calculate Calculate the encryption key K 01 =(g a ) b mod q, send y0 to the client; Receive the second data sent by the client, the second data is determined by the private key Decrypt y0 and get g b , and then the encryption key K is calculated 01 =(g b ) a mod q; Among them, the order of the cyclic group G is q; the generator of the cyclic group G is g; The encrypted data constructed by the lightweight symmetric cryptographic algorithm and hash function is used to securely transmit the power business data in the energy internet, specifically including: Receive the third data sent by the client. The third data is calculated by sending message m. Then the encrypted data (c, H(m)) is obtained; According to the received encrypted data (c, H(m)), calculate H(m0), verify whether H(m0) is consistent with H(m): If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message and perform subsequent operations; Otherwise refuse to receive.

2. The method according to claim 1, characterized in that The identity-based password system is established by the server.

3. A data transmission protocol construction device for energy Internet, characterized in that: include: The key generation module is used to authenticate the public key issuer of the energy Internet user using an identity-based cryptographic system. After the authentication is completed, the public key issuer's key is calculated. After the key is generated, the client's public and private key pair is sent to the client, and the server's own public and private key pair is generated; Negotiated encryption key module, used for key negotiation between client and server based on the public and private key pair of the client and the public and private key pair of the server, using the Diffie-Hellman cryptographic system; A data security transmission module, used for securely transmitting power business data in the energy internet based on key negotiation between the client and the server, using encrypted data constructed using a lightweight symmetric cryptographic algorithm and a hash function; The key generation module is specifically used for: The identity-based cryptographic system is used to authenticate the public key issuer of the energy Internet user, and after the authentication is completed, the public key issuer's key is calculated. After the key is generated, the public and private key pair is sent to the client, and the server's own public and private key pair is generated; specifically, it includes: The identity-based cryptographic system generates system parameters Params and system master key s according to the security parameter K; The private key generation center of the identity-based cryptographic system calculates the hash value of the public key issuer's identity information based on the public key issuer's identity information ID: ID =H(ID), the hash value is used as the public key, and the private key calculation method is S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the identity-based cryptographic system converts the client's public and private key pair into Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated The negotiation encryption key module is specifically used for: Receive the first data sent by the client, the first data is randomly selected calculate Use private key Decrypt y1, randomly selected calculate Calculate the encryption key K 01 =(g a ) b mod q, send y0 to the client; Receive the second data sent by the client, the second data is determined by the private key Decrypt y0 and get g b , and then the encryption key K is calculated 01 =(g b ) a mod q; Among them, the order of the cyclic group G is q; the generator of the cyclic group G is g; The data security transmission module is specifically used for: Receive the third data sent by the client. The third data is calculated by sending message m. Then the encrypted data (c, H(m)) is obtained; According to the received encrypted data (c, H(m)), calculate H(m0), verify whether H(m0) is consistent with H(m): If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message and perform subsequent operations; Otherwise refuse to receive.

4. A data transmission protocol construction system for energy Internet, characterized in that: include: The identity-based cryptographic system is used to authenticate the public key issuer among energy Internet users. After the authentication is completed, the public key issuer's secret key is calculated. After the secret key is generated, the public-private key pair is sent to the client, and the server's own public-private key pair is generated. The client is used to implement key negotiation between the client and the server using the Diffie-Hellman cryptographic system; The server is used to implement key negotiation with the client; it uses lightweight symmetric cryptographic algorithms and hash functions to construct encrypted data to securely transmit power business data in the energy internet; The identity-based cryptographic system is specifically used for: The identity-based cryptographic system generates system parameters Params and system master key s according to the security parameter K; The private key generation center of the identity-based cryptographic system calculates the hash value of the public key issuer's identity information based on the public key issuer's identity information ID: ID =H(ID), the hash value is used as the public key, and the private key calculation method is S ID =s*P ID , the public key and private key are used to generate the key. After the key is generated, the identity-based cryptographic system converts the client's public and private key pair into Sent to the client, where the serial number i is determined according to the time sequence of the client accessing the system; at the same time, the server's own public and private key pair is generated The client is specifically used for: The first data sent to the server is randomly selected calculate Accept the return data from the server, the return data is sent using the private key Decrypt y1, randomly selected calculate Calculate the encryption key K 01 =(g a ) b mod q, send y0 to the client; The second data sent is determined by the private key Decrypt y0 and get g b , and then the encryption key K is calculated 01 =(g b ) a mod q; Among them, the order of the cyclic group G is q; the generator of the cyclic group G is g; In the server, the encrypted data constructed by the lightweight symmetric cryptographic algorithm and the hash function is used to securely transmit the power business data in the energy internet, specifically for: Receive the third data sent by the client. The third data is calculated by sending message m. Then the encrypted data (c, H(m)) is obtained; According to the received encrypted data (c, H(m)), calculate H(m0), verify whether H(m0) is consistent with H(m): If they are consistent, continue to verify the timestamp T0. If it is within the validity period, receive the message and perform subsequent operations; Otherwise refuse to receive.