Local communication lightweight authentication method, system, device and medium for power terminal

Using quantum technology to design a lightweight identity authentication mechanism for power terminals solves the complexity and security issues of identity authentication in local power communication networks, achieves hierarchical data security management and control, reduces maintenance costs and business risks, and improves the security level of the communication network. .

CN118449786BActive Publication Date: 2024-09-03STATE GRID ZHEJIANG ELECTRIC POWER CO LTD HANGZHOU POWER SUPPLY CO

Patent Information

Application Number
CN202410903179.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-03
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

When the existing power local communication network faces a massive number of adjustable resource terminals, identity authentication is complex and system maintenance costs increase. Moreover, traditional cryptography technology is difficult to cope with the threat of quantum computing and cannot meet the security needs of the power communication network.

Method used

Quantum technology is used to design a lightweight identity authentication mechanism for power terminals. The quantum server generates terminal identity authentication data, the edge server configures the identity data, and the target terminal generates a security key pair to achieve hierarchical data security management and control and reduce potential business risks.

Benefits of technology

It improves the data security level of the power local communication network, reduces communication network data maintenance costs, meets the low-power and low-cost business requirements of power terminals, and enhances network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118449786B
    Figure CN118449786B
Patent Text Reader

Abstract

The present invention provides a local communication lightweight authentication method, system, device and medium for power terminals, which are applied to a power local communication network including a quantum server, an edge server and a target terminal, wherein the target terminal includes a network access device and a power terminal; the quantum server generates terminal identity authentication data and completes the target terminal identity data configuration through the edge server for generating a security key pair, the edge server receives a network access registration request from a network access device, and after verifying the validity of the device identity information obtained by decrypting the central private key, the obtained device key and device ID are stored and synchronized to the quantum server, and the device key ciphertext obtained by encrypting the device key with the device public key is sent to the network access device, so that the network access device obtains the device communication key. The present invention improves the security of the local communication network and greatly reduces the data maintenance cost through hierarchical data security management and control based on quantum keys.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a local communication lightweight authentication method, system, computer equipment and storage medium for a power terminal based on quantum keys. Background Art

[0002] With the continuous development and advancement of the construction of the power Internet of Things, the number of power terminal devices connected to the network continues to grow, but the boundary protection mechanism of the power system is difficult to extend to various distributed photovoltaic and user-side terminals, resulting in weak network security protection capabilities for massive adjustable resource terminals, and local communication networks are vulnerable to network attacks such as pseudo-terminals and air interface data eavesdropping and tampering, which leads to problems such as malicious tampering and control of power terminal instructions. In order to cope with the new risks brought about by the openness of communication networks, the local power communication network needs to improve its ability to identify terminal identities, manage access rights, and protect data privacy.

[0003] The existing local power communication network mainly uses inherent encryption methods and conventional cryptographic technology at the network layer to maintain the security of data flows and prevent intrusion by unauthorized terminals. However, the existing asymmetric cryptographic technology needs to rely on a complete certificate system. When faced with a large number of adjustable resource terminals, the complexity of managing certificates will significantly increase the system maintenance cost and also bring application restrictions to identity authentication. Symmetric cryptographic technology is prone to key data leakage risks during the key distribution process because both parties need to share the same encryption key. In addition, the increasing maturity of quantum computing technology has also brought substantial threats to traditional cryptographic technology. Therefore, the existing security authentication protection measures can no longer meet the security needs of the local power communication network. It is urgent to adopt a new security identity authentication framework to adapt to the ever-increasing security requirements in order to improve the security level of the local power communication network and reduce potential business risks. Summary of the invention

[0004] The purpose of the present invention is to provide a lightweight authentication method for local communication of power terminals. By taking into account the limited resources and dynamic network topology of local power communication terminals, a lightweight identity authentication mechanism for power terminals that introduces quantum technology is designed to achieve hierarchical management and control of data security, effectively improve the data security of the local communication network, improve the security level of the local power communication network, reduce potential business risks, and greatly reduce the data maintenance cost of the communication network, thereby meeting the low-power and low-cost business requirements of power terminals.

[0005] In order to achieve the above objectives, it is necessary to provide a local communication lightweight authentication method, system, computer equipment and storage medium for power terminals in response to the above technical problems.

[0006] In a first aspect, an embodiment of the present invention provides a local communication lightweight authentication method for a power terminal, which is applied to a power local communication network; the power local communication network includes a quantum server, an edge server, and a target terminal; the target terminal includes a network access device and a power terminal; the method includes the following steps:

[0007] The quantum server generates terminal identity authentication data of each target terminal, and configures corresponding identity data to each target terminal through the corresponding edge server according to the terminal identity authentication data, so that each target terminal generates a corresponding security key pair according to the identity data; the terminal identity authentication data includes an identity ID, a public key matrix and a central key pair;

[0008] In response to the network registration request of the network access device, the edge server decrypts the corresponding encrypted identity information according to the central private key in the central key pair to obtain the device identity information, and after verifying the validity of the information according to the device identity information, the obtained first quantum random number is used as the device key and mapped with the corresponding device ID, stored and synchronized to the quantum server, and the device key is encrypted with the obtained device public key to obtain a device key ciphertext, and the device key ciphertext is sent to the network access device, so that the network access device decrypts the device key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding device communication key.

[0009] Further, the identity data includes an identity ID, a public key matrix, and a central public key in a central key pair;

[0010] The step of each target terminal generating a corresponding security key pair according to the identity data comprises:

[0011] Each target terminal generates a corresponding terminal random key pair through a built-in security encryption chip, adds the random public key in the terminal random key pair to the central public key in the central key pair to obtain the accompanying public key in the security key pair, and sends the accompanying public key to the edge server, so that the edge server generates corresponding private key composite data according to the accompanying public key, the identity ID and the private key matrix stored in the cryptographic device, and sends the private key composite data to the corresponding target terminal; the private key elements in the private key matrix correspond to the public key elements in the public key matrix one by one;

[0012] The private key composite data sent by the edge server is received, and the private key composite data is compositely calculated with the random private key in the terminal random key pair to obtain the composite private key in the security key pair.

[0013] Furthermore, the step of generating corresponding private key composite data by the edge server according to the accompanying public key, the identity ID and the private key matrix stored in the cryptographic device includes:

[0014] The edge server performs hash digest calculation on the accompanying public key and the identity ID to obtain a corresponding first mapping sequence, and performs a modulo operation on the first mapping sequence and the dimension of the private key matrix to obtain a corresponding private key mapping coordinate set;

[0015] The private key mapping coordinate set is sent to the cryptographic device, and the central key data returned by the cryptographic device is received; the central key data is calculated by the cryptographic device according to the private key mapping coordinate set and the private key matrix; the central key data is expressed as:

[0016]

[0017] In the formula, Indicates the first i Line The private key element of the column; Represents the column coordinate element in the private key mapping coordinate set; m Represents the dimension of the private key matrix; Represents central key data;

[0018] The central key data and the central private key in the central key pair are added together to obtain the private key composite data.

[0019] Further, the network registration request includes the encrypted identity information and a corresponding encrypted information signature; the encrypted identity information is obtained by encrypting the device identity information using the central public key in the central key pair; the device identity information includes a device ID, a device accompanying public key and a timestamp; the encrypted information signature is obtained by signing and calculating the encrypted identity information using the composite private key in the security key pair;

[0020] The step of verifying the validity of information according to the device identity information includes:

[0021] The edge server verifies the validity of the timestamp in the device identity information. If the timestamp is invalid, it is discarded. Otherwise, the device ID in the device identity information is encrypted and sent to the quantum server for ID verification, and the ID verification result returned by the quantum server is received.

[0022] When the ID verification result is verification passed, the corresponding device public key is calculated according to the device ID, the device accompanying public key and the public key matrix;

[0023] The encrypted information signature in the device identity information is authenticated according to the device public key.

[0024] Furthermore, the step of calculating the corresponding device public key according to the device ID, the device accompanying public key and the public key matrix includes:

[0025] Performing hash digest calculation on the device ID according to the device accompanying public key to obtain an ID digest;

[0026] Grouping the ID digests to obtain a corresponding second mapping sequence, and performing a modulo operation on the second mapping sequence and the dimension of the public key matrix to obtain a corresponding public key mapping coordinate set;

[0027] According to the public key mapping coordinate set, selecting a corresponding public key matrix element from the public key matrix, and adding all the public key matrix elements to obtain corresponding public key composite data;

[0028] The public key compound data is added to the device accompanying public key to obtain the device public key.

[0029] Furthermore, the method further comprises:

[0030] In response to the network access request of the power terminal, the network access device forwards the network access request to the edge service end;

[0031] The edge server obtains the terminal identity information corresponding to the network access request by decrypting the central private key in the central key pair, obtains the second quantum random number as the terminal key after verifying the validity of the terminal identity information data, and encrypts the obtained terminal public key, the terminal key and the corresponding terminal ID by the device communication key to generate authentication encryption data, and sends the authentication encryption data to the network access device;

[0032] The authentication encrypted data is received, and the network access device decrypts the authentication plaintext data according to the device communication key to obtain the corresponding authentication plaintext data. After storing the authentication plaintext data, the terminal key is encrypted by the terminal public key to obtain the terminal key ciphertext, and the terminal key ciphertext is sent to the corresponding power terminal, so that the power terminal decrypts the terminal key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding terminal communication key, and encrypts the uploaded data according to the terminal communication key.

[0033] In a second aspect, an embodiment of the present invention provides a local communication lightweight authentication system for a power terminal, which is applied to a power local communication network; the power local communication network includes a quantum server, an edge server, and a target terminal; the target terminal includes a network access device and a power terminal; the system includes:

[0034] The quantum server is used to generate terminal identity authentication data of each target terminal, and configure corresponding identity data to each target terminal through the corresponding edge server according to the terminal identity authentication data; the terminal identity authentication data includes identity ID, public key matrix and central key pair; and is also used to receive the mapping relationship between device ID and device key sent by the network access device;

[0035] The edge server is used to receive the terminal identity authentication data sent by the quantum server, and configure corresponding identity data for each target terminal according to the terminal identity authentication data; it is also used to receive the network registration request of the network access device, decrypt the corresponding encrypted identity information according to the central private key in the central key pair, obtain the device identity information, and after verifying the validity of the information according to the device identity information, map the obtained first quantum random number as the device key and the corresponding device ID, store and synchronize to the quantum server, and encrypt the device key with the obtained device public key to obtain the device key ciphertext, and send the device key ciphertext to the network access device;

[0036] The target terminal is used to generate a corresponding security key pair according to the identity data configured by the edge server; the network access device is used to send a network registration request to the edge server, and decrypt the device key ciphertext responded by the edge server according to the composite private key in the corresponding security key pair to obtain the corresponding device communication key.

[0037] Furthermore, the system further comprises:

[0038] The power terminal is used to send a network access request to the network access device, receive a terminal key ciphertext sent by the network access device, decrypt the terminal key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding terminal communication key, and encrypt the uploaded data according to the terminal communication key;

[0039] The network access device is used to forward the network access request sent by the power terminal to the edge server, receive the authentication encrypted data sent by the edge server, decrypt according to the device communication key to obtain the corresponding authentication plaintext data, and after storing the authentication plaintext data, encrypt the corresponding terminal key using the terminal public key in the authentication plaintext data to obtain the terminal key ciphertext, and send the terminal key ciphertext to the corresponding power terminal;

[0040] The edge server is used to decrypt and obtain the terminal identity information corresponding to the network access request according to the central private key in the central key pair, and after verifying the validity of the terminal identity information data, obtain a second quantum random number as the terminal key, and encrypt the obtained terminal public key, the terminal key and the corresponding terminal ID through the device communication key to generate authentication encrypted data, and send the authentication encrypted data to the network access device.

[0041] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0042] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0043] The above-mentioned application provides a local communication lightweight authentication method, system, computer device and storage medium of a power terminal, which is applied to a power local communication network including a quantum server, an edge server and a target terminal, and the target terminal includes a network access device and a power terminal; through the method, the terminal identity authentication data including an identity ID, a public key matrix and a central key pair of each target terminal is generated by the quantum server, and the corresponding identity data is configured to each target terminal through the corresponding edge server according to the terminal identity authentication data, so that each target terminal generates a corresponding security key pair according to the identity data, and then responds to the network access device The registration request, the edge server decrypts the corresponding encrypted identity information according to the central private key in the central key pair to obtain the device identity information, and after verifying the validity of the information according to the device identity information, the obtained first quantum random number is used as a device key and the corresponding device ID is mapped and stored and synchronized to the quantum server, and the device key is encrypted using the obtained device public key to obtain a device key ciphertext, and the device key ciphertext is sent to the network access device, so that the network access device decrypts the device key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding device communication key. Technical solution. Compared with the existing technology, the local communication lightweight authentication method of the power terminal takes into account the characteristics of limited resources and dynamic network topology of the local communication terminal of the power terminal, designs a lightweight identity authentication mechanism for the power terminal that introduces quantum technology, realizes data security layered management and control, effectively improves the data security of the local communication network, improves the security level of the local communication network of the power, reduces potential business risks, and can also greatly reduce the cost of communication network password maintenance, thereby meeting the low-power and low-cost business requirements of the power terminal, and has high application value. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a flowchart of a local communication lightweight authentication method of a power terminal in an embodiment of the present invention;

[0045] Figure 2 is a schematic diagram of the identity data configuration process of the target terminal in an embodiment of the present invention;

[0046] Figure 3 Schematic diagram of the composite private key generation process of the target terminal in an embodiment of the present invention;

[0047] Figure 4 Schematic diagram of the network access authentication process of a network access device in an embodiment of the present invention;

[0048] Figure 5 Schematic diagram of the device public key process of computing the network access device at the edge server end in an embodiment of the present invention;

[0049] Figure 6 is another flow chart of a local communication lightweight authentication method of a power terminal in an embodiment of the present invention;

[0050] Figure 7 Schematic diagram of the network access authentication process of the power terminal in an embodiment of the present invention;

[0051] Figure 8 is a structural diagram of a local communication lightweight authentication system for a power terminal in an embodiment of the present invention;

[0052] Fig. 9 It is a diagram of the internal structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical scheme and beneficial effects of the present application clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Obviously, the embodiments described below are part of the embodiments of the present invention and are only used to illustrate the present invention, but are not used to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] The local communication lightweight authentication method for power terminals provided by the present invention can be understood as a data security hierarchical management and control lightweight identity authentication scheme that introduces quantum key technology based on the characteristics of limited power local communication terminal system resources and dynamic network topology, which is difficult to adapt to the application status of the traditional data encryption security protection mechanism based on the existing power local communication network for the security management of the access of power terminals with massive adjustable resources. The following embodiments will explain the local communication lightweight authentication method for power terminals of the present invention in detail.

[0055] In one embodiment, Figure 1 As shown, a local communication lightweight authentication method for power terminals is provided, which is applied to the local communication network of power; the local communication network of power includes a quantum server, an edge server and a target terminal; wherein the quantum server can be understood as a terminal that deploys a quantum key distribution device, which can simultaneously communicate with multiple edge servers in the local communication network of power; the edge server can be understood as an edge device deployed in the local communication network of power for managing power terminals and collecting data information of power terminals, and is deployed with a quantum communication device that can be used for quantum channel transmission with the quantum server, which can simultaneously manage multiple network access devices, and indirectly manage multiple power terminals through each network access device; correspondingly, the target terminal includes a network access device that directly communicates with the edge server, and multiple power terminals managed by the network access device, and the network access device and the power terminal are both equipped with a quantum security encryption chip; it should be noted that there is a one-to-many relationship between the quantum server and the edge server, a one-to-many relationship between the edge server and the network access device, and a one-to-many relationship between the network access device and the power terminal. Specifically, the local communication lightweight authentication method for power terminals includes the following steps:

[0056] S11. The quantum server generates terminal identity authentication data of each target terminal, and configures corresponding identity data to each target terminal through the corresponding edge server according to the terminal identity authentication data, so that each target terminal generates a corresponding security key pair according to the identity data; wherein, the target terminal includes a network access device and a power terminal as described above. Since the identity data configuration process of the network access device and the power terminal is the same, the target terminal is used for unified description here, and will be described separately in the subsequent network access device and power terminal network access authentication process.

[0057] In practical applications, whether it is the network access device in the target terminal or the power terminal, the quantum server needs to pre-generate an identity ID, and write it together with the public key matrix and central public key shared by each target terminal into the quantum security encryption chip of the terminal, which will serve as a reliable basis for the target terminal to generate the composite private key and accompanying public key used for encrypted data transmission. In this embodiment, preferably, the terminal identity authentication data is set to include an identity ID, a public key matrix and a central key pair; wherein, the method for generating the identity ID can be selected according to the management requirements of the actual target terminal, and the associated edge server identifier can be carried to facilitate the simultaneous configuration of identity data for multiple target terminals through multiple edge servers, thereby ensuring configuration security and effectively improving configuration efficiency; the corresponding central key pair can be generated using an existing asymmetric key mechanism, including a central public key and the central private key , no specific limitation is given here.

[0058] The method for generating the public key matrix in this embodiment is preferably implemented using the SM2 elliptic curve public key cryptography algorithm. The specific dimension of the public key matrix can be selected according to actual application requirements. The following description takes 32 dimensions as an example, and the reference is as follows:

[0059] 32*32 pairs of SM2 key pairs are randomly generated through the SM2 elliptic curve public key cryptography algorithm, and each key pair is sequentially stored in the corresponding public key matrix ( ) and the private key matrix ( ), we get:

[0060]

[0061]

[0062] Each public key element in the public key matrix The public key matrix is ​​stored in a file in sequence, and the file can be sent to each edge server later. For the convenience of description, the public key matrix is ​​R matrix Indicates; at the same time, each private key element corresponding to the public key element The security key area of ​​the cryptographic device is stored in sequence, that is, protected by the hardware cryptographic device. When it is needed later, the corresponding calculation results can be queried and fed back through the cryptographic device to ensure the privacy of the private key matrix and provide reliable protection for the security encryption of the entire power local communication. It should be noted that the cryptographic device in this embodiment can adopt any type that meets the required functions, and is not specifically limited here.

[0063] After the quantum server generates the corresponding terminal identity authentication data for each target terminal through the above method, it can Figure 2 The process shown configures the identity data of each target terminal. The specific process includes: according to the preset identity ID encoding rule (the edge server identifier is carried in the identity ID), it can identify which edge server needs to be transmitted to, and then send the data encryption key K for communicating with each edge server to the corresponding edge server through the corresponding quantum key distribution channel, and use the data encryption key K to encrypt the terminal identity authentication data and send it to the corresponding edge server. After the edge server completes the storage of each terminal identity authentication data, the identity ID, public key matrix and central public key in the central key pair in the identity authentication data of each terminal are written as identity data to the corresponding target terminal through the docking production environment. It should be noted that when the quantum server sends the terminal identity authentication data to each edge server, the corresponding data of each target terminal managed by the edge server can be sent separately, or the corresponding data of multiple target terminals managed by the edge server can be sent in combination according to the preset method. The specific transmission method can be selected according to the actual application requirements and is not specifically limited here.

[0064] After the corresponding identity data is injected into the quantum security encryption chip of each target terminal, the corresponding security key pair can be calculated by the preset calculation program in each startup chip, that is, the accompanying public key and the composite private key of the target terminal are calculated; in order to solve the problem that the key can only be generated by the quantum server (center) and does not meet the security application requirements of the electronic signature, this embodiment is preferably completed by the target terminal, the edge server and the hardware cryptographic device storing the private key matrix in collaboration to ensure that the composite private key of each target terminal is owned by the target terminal only and the edge server cannot perceive the privacy and security of the terminal private key; specifically, the step of each target terminal generating the corresponding security key pair according to the identity data includes:

[0065] Each target terminal generates a corresponding terminal random key pair through a built-in security encryption chip, adds the random public key in the terminal random key pair to the central public key in the central key pair to obtain the accompanying public key in the security key pair, and sends the accompanying public key to the edge server, so that the edge server generates corresponding private key composite data based on the accompanying public key, the identity ID and the private key matrix stored in the cryptographic device, and sends the private key composite data to the corresponding target terminal; the private key elements in the private key matrix correspond one-to-one to the public key elements in the public key matrix.

[0066] The terminal random key pair in this embodiment includes a random public key and a random private key, which can be generated by a security encryption chip built into the target terminal based on a preset asymmetric encryption algorithm. In practical applications, the target terminal generates a terminal random key pair ( , ) will be used to generate a random public key. The central public key in the central key pair Add together to get the required accompanying public key , and will be accompanied by the public key It is sent to the edge server for the subsequent edge server to jointly calculate the composite private key and verify the validity of the message received from the target terminal. For details on the relevant use of the validity verification of the information, please refer to the relevant authentication process of the network access device and the power terminal below, which will not be described in detail here. It should be noted that in the subsequent network access device and power terminal identity authentication process, in order to better distinguish the description, the corresponding accompanying public key is used respectively. and express.

[0067] Correspondingly, the edge server needs to cooperate with the hardware cryptographic device storing the private key matrix in the process of calculating the composite private key of the target terminal in collaboration with the accompanying public key; specifically, Figure 3As shown, the step of generating corresponding private key composite data by the edge server according to the accompanying public key, the identity ID and the private key matrix stored in the cryptographic device includes:

[0068] The edge server performs hash digest calculation on the accompanying public key and the identity ID to obtain a corresponding first mapping sequence, and performs a modulus operation on the first mapping sequence and the dimension of the private key matrix to obtain a corresponding private key mapping coordinate set; wherein the first mapping sequence can be understood as the identity ID and the accompanying public key. The mapping sequence obtained by performing summary calculation using the preset hash function has the same dimension as the public key matrix / private key matrix. For example, if the public key matrix is ​​32-dimensional, the sequence obtained here can be expressed as w= ; Perform a modulo operation on the mapping sequence obtained and the dimension 32 of the private key matrix , we can get the 32 mapping coordinates of the identity ID on the private key matrix skm, that is, we get the required private key mapping coordinate set.

[0069] The private key mapping coordinate set is sent to the cryptographic device, and the central key data returned by the cryptographic device is received; the central key data is calculated by the cryptographic device according to the private key mapping coordinate set and the private key matrix; wherein the central key data can be understood as the value returned by the cryptographic device by performing a large number addition operation on all coordinate corresponding values ​​in the private key mapping coordinate set, which can be expressed as:

[0070]

[0071] In the formula, Indicates the first i Line The private key element of the column; Represents the column coordinate element in the private key mapping coordinate set; m Represents the dimension of the private key matrix; Represents central key data.

[0072] The central key data and the central private key in the central key pair are added together to obtain the private key composite data; wherein the private key composite data can be understood as the central key data obtained above. The central private key in the central key pair Private key composite data obtained by adding large numbers , which can be expressed as: After the edge server obtains the corresponding private key composite data through collaborative calculation with the target terminal and the cryptographic device, it can be sent to the corresponding target terminal so that the target terminal can generate the composite private key for communication encryption.

[0073] Receive the private key composite data sent by the edge server, and perform composite calculation on the private key composite data and the random private key in the terminal random key pair to obtain the composite private key in the security key pair; correspondingly, the composite private key It can be expressed as: It should be noted that in the subsequent network access device and power terminal identity authentication process, in order to better distinguish the description, the corresponding composite public key is used and express.

[0074] In this embodiment, a quantum server is used to configure identity data for all target terminals in the local power communication network through an edge server, and a composite private key of the target terminal is generated collaboratively by the target terminal, the edge server and the hardware cryptographic device. This can ensure the privacy of the private keys of each target terminal and the legitimacy of the electronic signature of the data, and provide reliable basic data support for the subsequent introduction of quantum technology to design a data security authentication architecture and realize data security management and control.

[0075] S12. In response to the network registration request of the network access device, the edge server decrypts the corresponding encrypted identity information according to the central private key in the central key pair to obtain the device identity information, and after verifying the validity of the information according to the device identity information, the obtained first quantum random number is mapped with the corresponding device ID as the device key and stored and synchronized to the quantum server, and the device key is encrypted with the obtained device public key to obtain a device key ciphertext, and the device key ciphertext is sent to the network access device, so that the network access device decrypts the device key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding device communication key.

[0076] The power local communication network is at the edge of the power communication network, and is mainly composed of network access devices (access points AP) and power terminals (terminals STA). Therefore, the corresponding identity authentication is also divided into AP authentication process and STA identity authentication process. The network registration request in this embodiment can be understood as the network access request of the network access device corresponding to the AP authentication process; in actual applications, such as Figure 4 As shown, the network access device provides its own identity information G1 to the edge server, including the device ID AP , device accompanying public key R AP and timestamp time and other information, and use the central public key R cen Encrypt G1 by SM2 algorithm to obtain the encrypted package G'1, that is, G'1=encrypt(G1, R cen ), and then use the composite private key of the network access device rAP Perform SM2 signature on G'1 and get sign(G'1,r AP ), the encrypted data packet G'1 and the signature data are concatenated through "||" to form data packet M1, that is, M1=G'1||sign(G'1,r AP ). That is, preferably, the network registration request includes the encrypted identity information and the corresponding encrypted information signature; the encrypted identity information is obtained by encrypting the device identity information using the central public key in the central key pair; the device identity information includes a device ID, a device accompanying public key and a timestamp; the encrypted information signature is calculated by signing the encrypted identity information using the composite private key in the security key pair. In this embodiment, the network registration request first uses the central public key to encrypt the data, and then uses the composite private key of the network access device to sign the encrypted package, which can effectively improve the confidentiality of the data.

[0077] After the edge server receives the network registration request sent by the network access device, it can use the central private key in the stored central key pair to Execute decrypt(G ' 1,r cen ) operation to decrypt the corresponding encrypted identity information G'1 to obtain the device identity information G1, and then perform information validity verification including timestamp validity verification, ID legitimacy verification and signature legitimacy verification based on the device identity information G1. Specifically, the step of performing information validity verification based on the device identity information includes:

[0078] The edge server verifies the validity of the timestamp in the device identity information. If the timestamp is invalid, it is discarded. Otherwise, the device ID in the device identity information is encrypted and sent to the quantum server for ID verification, and the ID verification result returned by the quantum server is received; that is, the timestamp is verified to be valid through check(time), and then the device ID is encrypted. AP The data encryption key K used to communicate with the quantum server is encrypted and sent to the quantum server, which executes the check (ID AP ) operation, by comparing it with the terminal identity authentication data stored during production filing to complete the ID AP Verify the legitimacy of the AP The verification result is sent to the edge server.

[0079] When the ID verification result is verification passed, the corresponding device public key is calculated according to the device ID, the device accompanying public key and the public key matrix; wherein the device public key can be understood as a key calculated by the edge server and can be paired with the composite private key used by the network access device, and is used for data encryption transmission between the edge server and the network access device; specifically, Figure 5 As shown, the device ID and the public key of the device are and the public key matrix R matrix Execute F(ID AP , ,R matrix ) operation, the steps of calculating the corresponding device public key include:

[0080] A hash digest is calculated for the device ID according to the device accompanying public key to obtain an ID digest; wherein the hash algorithm used for calculating the ID digest needs to be consistent with the hash algorithm used for calculating the composite private key in the previous text.

[0081] The ID summaries are grouped to obtain a corresponding second mapping sequence, and the second mapping sequence is modulo-operated with the dimension of the public key matrix to obtain a corresponding public key mapping coordinate set; wherein the second mapping sequence and the corresponding public key mapping coordinate set will be consistent with the first mapping sequence and the private key mapping coordinate set obtained in the aforementioned composite private key calculation.

[0082] According to the public key mapping coordinate set, the corresponding public key matrix element is selected from the public key matrix, and all public key matrix elements are added together to obtain the corresponding public key composite data. ;

[0083] The public key composite data is added to the device companion public key to obtain the device public key, that is, the device public key is expressed as: = + , that is Figure 5 R used in ' AP .

[0084] The embodiment provided that the identity authentication party uses the identity ID and accompanying public key of the person being authenticated and the public key matrix to calculate the device public key of the person being authenticated as needed, which can effectively ensure the authenticity of the device public key and avoid the complex authentication process where the person being authenticated actively sends the device public key, resulting in the verifier being unable to ensure the authenticity of the device public key and having to rely on a third-party CA center to verify the authenticity of the digital certificate to prove the association between the received device public key and the device ID. This can effectively improve the authentication efficiency while ensuring the reliability of authentication.

[0085] According to the device public key, the encrypted information signature in the device identity information is authenticated; specifically, the device public key R ' AP Verify the encrypted information signature (M1, R ' AP ) The decryption and authentication method can be implemented by referring to the existing technology and will not be described in detail here.

[0086] After the edge server completes the verification of the network access device's registration request through the above method, the quantum random number technology QRNG will be used to generate the first quantum random number as the device key K for subsequent use by the network access device. SAP , using the device public key R of the network access device ' AP The random number K is converted into SAP Encrypt to get the corresponding device key ciphertext K SAP ' Send it to the network access device and send the device key K SAP After being mapped and stored with the corresponding device ID, it is sent to the quantum server for data backup. This completes the registration process of the entire network access device. The subsequent network access device AP can use the composite private key r AP Perform decryption operation K SAP =decrypt(K SAP' ,r AP ), get your own data encryption key K SAP Participate in subsequent data interaction operations.

[0087] This embodiment optimizes the AP authentication process of network access devices by introducing quantum key distribution technology and quantum random number technology, which can not only ensure the identity information security of network access devices in the local communication network, but also ensure the security of data encryption keys in each communication stage of the local communication network. At the same time, it can also ensure that the data communication keys between the network access device and the edge server, and between the edge server and the quantum server are different, and the security keys of each communication stage are only used and maintained between the corresponding communication nodes, which greatly reduces the password maintenance cost of the quantum server for the entire communication system.

[0088] In addition, considering the dynamic networking characteristics of power terminals and network access devices in the power local communication network, in order to ensure the security of the entire communication network, this embodiment preferably also designs a two-way identity authentication process between the network access device (access node AP) and the power terminal (terminal STA) for the new power terminal access network scenario based on the optimization of the AP authentication process, so as to ensure the legitimacy of the identities of both parties in communication, thereby effectively ensuring the security level of the power local communication network and reducing potential business risks. Specifically, Figure 6As shown, the method also includes:

[0089] S13. In response to the network access request of the power terminal, the network access device forwards the network access request to the edge server; wherein the network access request can be understood as the request information sent by the power terminal (STA) corresponding to the STA identity authentication process when it first applies to join the network. Figure 7 As shown, the power terminal provides its own identity information G2 to the network access device to prove the legitimacy of the identity. The identity information of the power terminal preferably includes the device ID STA , device accompanying public key R STA and timestamp time, etc., using the central public key R cen Encrypt G2 by SM2 algorithm to obtain the encrypted package G'2, that is, G'2=encrypt(G2,R cen ), and then use the composite private key of the network access device r STA Perform SM2 signature on G'2 and get sign(G'2, r STA ), the encrypted data packet G'2 and the signature data are concatenated through "||" to form data packet M2, that is, M2=G'2||sign(G'2,r STA ). In this embodiment, the network access request first uses the central public key to encrypt the data, and then uses the composite private key of the power terminal to sign the encrypted package, which can effectively improve the confidentiality of the power terminal data.

[0090] S14. The edge server obtains the terminal identity information corresponding to the network access request by decrypting the central private key in the central key pair, and obtains the second quantum random number as the terminal key after verifying the validity of the terminal identity information data, and encrypts the obtained terminal public key, the terminal key and the corresponding terminal ID through the device communication key to generate authentication encrypted data, and sends the authentication encrypted data to the network access device.

[0091] After receiving the network access request from the power terminal, the edge server uses the central private key in the stored central key pair to Execute decrypt(G ' 2,r cen ) operation to decrypt the corresponding encrypted identity information G'2 to obtain the terminal identity information G2, and then perform information validity verification including timestamp validity verification, ID legitimacy verification and signature legitimacy verification based on the terminal identity information G2. The specific process of performing information validity verification based on the terminal identity information includes:

[0092] The edge server first verifies the validity of the timestamp in the terminal identity information. If the timestamp is invalid, it is discarded. Otherwise, if the timestamp is valid through check(time), the device ID in the terminal identity information is STA The data encryption key K used to communicate with the quantum server is encrypted and sent to the quantum server, which executes the check (ID STA ) operation, by comparing it with the terminal identity authentication data stored during production filing to complete the ID STA Verify the legitimacy of the STA The verification result is sent to the edge server.

[0093] When ID STA If the verification result is passed, the terminal ID STA 、Terminal accompanied by public key R STA and the public key matrix R matrix , calculate the corresponding terminal public key; where the terminal public key can be understood as the key calculated by the edge server and can be paired with the composite private key used by the power terminal, which is used for subsequent data encryption transmission between the power terminal and the network access device; specifically, F(ID STA ,R STA ,R matrix ) operation to obtain the terminal public key R ' STA , and according to the terminal public key R ' STA Execute verify(M2,R ' STA ) operation to verify the legitimacy of the signature can be implemented by referring to the relevant description in the aforementioned network access device authentication process and will not be described in detail here.

[0094] After the edge server completes the verification of the network access request of the power terminal through the above method, the second quantum random number will be generated by the quantum random number technology QRNG as the terminal key K for subsequent use by the power terminal. SSTA , together with the ID STA , R ' STA Use the device encryption key K of the network access device SAP Through the SM1 algorithm encryption operation encrypt(K SSTA ||ID STA ||R ' STA ,K SAP ) Get the authenticated encrypted data M ' 2 and then returned to the network access device.

[0095] S15. Receive the authentication encrypted data, the network access device decrypts the authentication plaintext data according to the device communication key to obtain the corresponding authentication plaintext data, and after storing the authentication plaintext data, uses the terminal public key to encrypt the terminal key to obtain the terminal key ciphertext, and sends the terminal key ciphertext to the corresponding power terminal, so that the power terminal decrypts the terminal key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding terminal communication key, and encrypts the uploaded data according to the terminal communication key.

[0096] like Figure 7 As shown, the network access device receives the authentication encrypted data M sent by the edge server. ' 2, use its own device encryption key K SAP Execute decrypt(M ' 2,K SAP ) decryption operation to obtain the corresponding K SSTA ||ID STA ||R ' STA ; Then use the terminal public key R ' STA The K SSTA Encrypt to get the terminal key ciphertext K' SSTA , and send it to the power terminal, and at the same time send the power terminal's identity ID STA With the terminal public key R ' STA and K SSTA Map(ID STA ,K SSTA ||R ' STA ) is mapped and stored in the security encryption chip of the network access device.

[0097] The power terminal receives the terminal key ciphertext K' sent by the corresponding network access device SSTA , using its own composite private key r STA Through the SM2 algorithm decrypt(K ' SSTA ,r STA ) decrypt it to obtain the corresponding terminal communication key K SSTA , the terminal communication key K can be used in subsequent terminal data reporting SSTA The reported data is encrypted using the SM1 algorithm (data, K SSTA ) Encryption operation and report to the corresponding network access device, the network access device according to the identity ID of the power terminal STA Get its corresponding K SSTAAfter completing the decryption of the data packet at this stage, the device communication key K of the network access device is used SAP Through the SM1 algorithm encrypt(data,K SAP ) encrypts the data packet and sends it to the corresponding edge server, which then accesses the device through the network ID AP Get its corresponding K SAP After completing the decryption of the data packet at this stage, the data packet is encrypted through the SM1 algorithm encrypt(data,K) with the data encryption key K of the quantum server, and transmitted to the quantum server so that the quantum server can assist in reporting to the corresponding integrated power control system.

[0098] In the embodiment of the present application, a quantum server generates terminal identity authentication data including an identity ID, a public key matrix and a central key pair for each target terminal, and configures corresponding identity data to each target terminal through a corresponding edge server according to the terminal identity authentication data, so that each target terminal generates a corresponding security key pair according to the identity data, and then responds to a network access registration request of a network access device, and the edge server decrypts the corresponding encrypted identity information according to the central private key in the central key pair to obtain the device identity information, and after verifying the validity of the information according to the device identity information, the obtained first quantum random number is used as a device key and mapped to the corresponding device ID, stored and synchronized to the quantum server, and the obtained device public key is used to encrypt the device key to obtain a device key ciphertext, and the device key ciphertext is sent to the network access device, so that the network access device decrypts the device key ciphertext according to the composite private key in the corresponding security key pair. The corresponding device communication key is obtained by encryption, and in response to the network access request of the power terminal, the network access device forwards the network access request to the edge server, and the edge server decrypts the terminal identity information corresponding to the network access request according to the central private key in the central key pair, and obtains the second quantum random number as the terminal key after verifying the validity of the terminal identity information data, and sends the obtained terminal public key, terminal key and corresponding terminal ID to the network access device through the device communication key encryption to generate the authentication encrypted data, and then the network access device decrypts the corresponding authentication plaintext data according to the device communication key, and after storing the authentication plaintext data, the terminal key ciphertext obtained by encrypting the terminal key with the terminal public key is sent to the corresponding power terminal, so that the power terminal decrypts the terminal key ciphertext according to the composite private key in the corresponding security key pair to obtain the terminal communication key, and encrypts the uploaded data according to the terminal communication key. Technical solution. Compared with the existing technology, the local communication lightweight authentication method of the power terminal, by considering the limited resources and dynamic network topology of the local communication terminal of the power, introduces quantum technology to optimize the design of the network access device authentication process and the power terminal authentication process in the local communication network of the power, and obtains a new data communication security architecture that does not rely on the traditional CA certificate mechanism. The data security in the local communication network of the power is hierarchically managed and controlled, which can not only effectively ensure the identity information security of the network access equipment and the power terminal of the local communication network, but also ensure the security of the data encryption keys in each communication stage of the local communication network. At the same time, it can also ensure that the data communication keys between the power terminal and the network access device, between the network access device and the edge server, and between the edge server and the quantum server are different, and the security keys of each communication stage are only used and maintained between the corresponding communication nodes, which greatly reduces the password maintenance cost of the quantum server for the entire communication system, and can also effectively reduce the data maintenance cost of the local communication network terminal, thereby better meeting the low-power and low-cost business requirements of the power terminal, and has high application value.

[0099] It should be noted that although the steps in the above flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders.

[0100] In one embodiment, Figure 8 As shown, a local communication lightweight authentication system for power terminals is provided, which is applied to a power local communication network; the power local communication network includes a quantum server 1, an edge server 2 and a target terminal 3; the target terminal 3 includes a network access device 31 and a power terminal 32; the system includes:

[0101] The quantum server 1 is used to generate terminal identity authentication data of each target terminal, and configure corresponding identity data to each target terminal 3 through the corresponding edge server according to the terminal identity authentication data; the terminal identity authentication data includes identity ID, public key matrix and central key pair; and is also used to receive the mapping relationship between device ID and device key sent by the network access device 31;

[0102] The edge server 2 is used to receive the terminal identity authentication data sent by the quantum server 1, and configure corresponding identity data to each target terminal 3 according to the terminal identity authentication data; it is also used to receive the network registration request of the network access device 31, decrypt the corresponding encrypted identity information according to the central private key in the central key pair, obtain the device identity information, and after verifying the validity of the information according to the device identity information, map the obtained first quantum random number as the device key and the corresponding device ID, store and synchronize it to the quantum server 1, and encrypt the device key with the obtained device public key to obtain the device key ciphertext, and send the device key ciphertext to the network access device 31;

[0103] The target terminal 3 is used to generate a corresponding security key pair according to the identity data configured by the edge server 2; the network access device 31 is used to send a network registration request to the edge server 2, and decrypt the device key ciphertext responded by the edge server 2 according to the composite private key in the corresponding security key pair to obtain the corresponding device communication key.

[0104] In one embodiment, a local communication lightweight authentication system for a power terminal is provided, the system further comprising:

[0105] The power terminal 32 is used to send a network access request to the network access device 31, and receive the terminal key ciphertext sent by the network access device 31, decrypt the terminal key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding terminal communication key, and encrypt the uploaded data according to the terminal communication key;

[0106] The network access device 31 is used to forward the network access request sent by the power terminal 32 to the edge server 2, and receive the authentication encrypted data sent by the edge server 2, decrypt according to the device communication key to obtain the corresponding authentication plaintext data, and after storing the authentication plaintext data, use the terminal public key in the authentication plaintext data to encrypt the corresponding terminal key to obtain the terminal key ciphertext, and send the terminal key ciphertext to the corresponding power terminal;

[0107] The edge server 2 is used to decrypt the terminal identity information corresponding to the network access request according to the central private key in the central key pair, and after verifying the validity of the terminal identity information data, obtain a second quantum random number as the terminal key, and encrypt the obtained terminal public key, the terminal key and the corresponding terminal ID through the device communication key to generate authentication encryption data, and send the authentication encryption data to the network access device 31.

[0108] For the specific limitations on the local communication lightweight authentication system for power terminals, please refer to the limitations on the local communication lightweight authentication method for power terminals mentioned above, and the corresponding technical effects can also be equivalently obtained, which will not be repeated here. Each module in the above-mentioned local communication lightweight authentication system for power terminals can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0109] Fig. 9 FIG. 1 shows an internal structure diagram of a computer device in an embodiment, and the computer device may specifically be a terminal or a server. Fig. 9As shown, the computer device includes a processor, a memory, a network interface, a display, a camera and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a local communication lightweight authentication method of the power terminal is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0110] It can be understood by those skilled in the art that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the computer device to which the present application scheme is applied. The specific computing device may include more or fewer components than shown in the figure, or combine certain components, or have the same component arrangement.

[0111] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.

[0112] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0113] In summary, the embodiments of the present invention provide a local communication lightweight authentication method, system, computer device and storage medium for power terminals. The local communication lightweight authentication method for power terminals realizes that the quantum server generates terminal identity authentication data including identity ID, public key matrix and central key pair for each target terminal, and configures corresponding identity data to each target terminal through the corresponding edge server according to the terminal identity authentication data, so that each target terminal generates a corresponding security key pair according to the identity data, and then responds to the network access registration request of the network access device, and the edge server decrypts the corresponding encrypted identity information according to the central private key in the central key pair to obtain the device identity information, and after verifying the validity of the information according to the device identity information, the obtained The first quantum random number is mapped and stored as a device key with the corresponding device ID and synchronized to the quantum server, and the device key is encrypted with the obtained device public key to obtain the device key ciphertext, and the device key ciphertext is sent to the network access device, so that the network access device decrypts the device key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding device communication key, and in response to the network access request of the power terminal, the network access device forwards the network access request to the edge server, and the edge server decrypts the terminal identity information corresponding to the network access request according to the central private key in the central key pair, and obtains the second quantum random number as the terminal key after verifying the validity of the terminal identity information data, and the obtained terminal public key, terminal key and corresponding terminal are encrypted. The authentication encrypted data generated by the ID is encrypted by the device communication key and sent to the network access device, and then the network access device decrypts the corresponding authentication plaintext data according to the device communication key. After the authentication plaintext data is stored, the terminal key ciphertext obtained by encrypting the terminal key with the terminal public key is sent to the corresponding power terminal, so that the power terminal decrypts the terminal key ciphertext according to the composite private key in the corresponding security key pair to obtain the terminal communication key, and encrypts the uploaded data according to the terminal communication key. This method introduces quantum technology to optimize the design of the network access device authentication process and the power terminal authentication process in the power local communication network by considering the characteristics of limited power local communication terminal resources and dynamic network topology, and obtains a technical solution that does not rely on traditional C The new data communication security architecture of the A certificate mechanism manages the data security in the local power communication network in layers, which can not only effectively ensure the identity information security of the local communication network access equipment and power terminals, but also ensure the security of the data encryption keys in each communication stage of the local communication network. It can also ensure that the data communication keys between the power terminal and the network access equipment, between the network access equipment and the edge server, and between the edge server and the quantum server are different, and the security keys of each communication stage are only used and maintained between the corresponding communication nodes, which greatly reduces the password maintenance cost of the quantum server for the entire communication system, and can also effectively reduce the data maintenance cost of the local communication network terminal, thereby better meeting the low-power and low-cost business requirements of the power terminal.It has high application value.

[0114] Each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be directly referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. It should be noted that the technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0115] The above-mentioned embodiments only express several preferred implementation modes of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in the technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be based on the protection scope of the claims.

Claims

1. A lightweight authentication method for local communication of power terminals, It is characterized in that Applied to a local power communication network; the local power communication network includes a quantum server, an edge server and a target terminal; the target terminal includes a network access device and a power terminal; the method includes the following steps: The quantum server generates terminal identity authentication data of each target terminal, and configures corresponding identity data to each target terminal through the corresponding edge server according to the terminal identity authentication data, so that each target terminal generates a corresponding security key pair according to the identity data; the terminal identity authentication data includes an identity ID, a public key matrix and a central key pair; In response to the network access device's network registration request, the edge server decrypts the corresponding encrypted identity information according to the central private key in the central key pair to obtain the device identity information, and after verifying the validity of the information according to the device identity information, maps the obtained first quantum random number as the device key and the corresponding device ID, stores and synchronizes it to the quantum server, and encrypts the device key with the obtained device public key to obtain a device key ciphertext, and sends the device key ciphertext to the network access device, so that the network access device decrypts the device key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding device communication key; In response to the network access request of the power terminal, the network access device forwards the network access request to the edge service end; The edge server obtains the terminal identity information corresponding to the network access request by decrypting the central private key in the central key pair, obtains the second quantum random number as the terminal key after verifying the validity of the terminal identity information data, and encrypts the obtained terminal public key, the terminal key and the corresponding terminal ID by the device communication key to generate authentication encryption data, and sends the authentication encryption data to the network access device; The authentication encrypted data is received, and the network access device decrypts the authentication plaintext data according to the device communication key to obtain the corresponding authentication plaintext data. After storing the authentication plaintext data, the terminal key is encrypted by the terminal public key to obtain the terminal key ciphertext, and the terminal key ciphertext is sent to the corresponding power terminal, so that the power terminal decrypts the terminal key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding terminal communication key, and encrypts the uploaded data according to the terminal communication key.

2. The local communication lightweight authentication method of the power terminal according to claim 1, It is characterized in that The identity data includes an identity ID, a public key matrix, and a central public key in a central key pair; The step of each target terminal generating a corresponding security key pair according to the identity data comprises: Each target terminal generates a corresponding terminal random key pair through a built-in security encryption chip, adds the random public key in the terminal random key pair to the central public key in the central key pair to obtain the accompanying public key in the security key pair, and sends the accompanying public key to the edge server, so that the edge server generates corresponding private key composite data according to the accompanying public key, the identity ID and the private key matrix stored in the cryptographic device, and sends the private key composite data to the corresponding target terminal; the private key elements in the private key matrix correspond to the public key elements in the public key matrix one by one; The private key composite data sent by the edge server is received, and the private key composite data is compositely calculated with the random private key in the terminal random key pair to obtain the composite private key in the security key pair.

3. The local communication lightweight authentication method of the power terminal as claimed in claim 2, It is characterized in that The step of generating corresponding private key composite data by the edge server according to the accompanying public key, the identity ID and the private key matrix stored in the cryptographic device comprises: The edge server performs hash digest calculation on the accompanying public key and the identity ID to obtain a corresponding first mapping sequence, and performs a modulo operation on the first mapping sequence and the dimension of the private key matrix to obtain a corresponding private key mapping coordinate set; The private key mapping coordinate set is sent to the cryptographic device, and the central key data returned by the cryptographic device is received; the central key data is calculated by the cryptographic device according to the private key mapping coordinate set and the private key matrix; the central key data is expressed as: In the formula, Indicates the first i Line The private key element of the column; Represents the column coordinate element in the private key mapping coordinate set; m Represents the dimension of the private key matrix; Represents central key data; The central key data and the central private key in the central key pair are added together to obtain the private key composite data.

4. The local communication lightweight authentication method of the power terminal according to claim 1, It is characterized in that The network registration request includes the encrypted identity information and the corresponding encrypted information signature; the encrypted identity information is obtained by encrypting the device identity information using the central public key in the central key pair; the device identity information includes the device ID, the device accompanying public key and the timestamp; The encrypted information signature is obtained by calculating the signature of the encrypted identity information using the composite private key in the security key pair; The step of verifying the validity of information according to the device identity information includes: The edge server verifies the validity of the timestamp in the device identity information. If the timestamp is invalid, it is discarded. Otherwise, the device ID in the device identity information is encrypted and sent to the quantum server for ID verification, and the ID verification result returned by the quantum server is received. When the ID verification result is verification passed, the corresponding device public key is calculated according to the device ID, the device accompanying public key and the public key matrix; The encrypted information signature in the device identity information is authenticated according to the device public key.

5. The local communication lightweight authentication method of the power terminal as claimed in claim 4, It is characterized in that The step of calculating the corresponding device public key according to the device ID, the device accompanying public key and the public key matrix comprises: Performing hash digest calculation on the device ID according to the device accompanying public key to obtain an ID digest; Grouping the ID digests to obtain a corresponding second mapping sequence, and performing a modulo operation on the second mapping sequence and the dimension of the public key matrix to obtain a corresponding public key mapping coordinate set; According to the public key mapping coordinate set, selecting a corresponding public key matrix element from the public key matrix, and adding all the public key matrix elements to obtain corresponding public key composite data; The public key compound data is added to the device accompanying public key to obtain the device public key.

6. A local communication lightweight authentication system for power terminals, It is characterized in that Applied to a local power communication network; the local power communication network includes a quantum server, an edge server and a target terminal; The target terminal includes a network access device and a power terminal; the system includes: The quantum server is used to generate terminal identity authentication data of each target terminal, and configure corresponding identity data to each target terminal through the corresponding edge server according to the terminal identity authentication data; the terminal identity authentication data includes identity ID, public key matrix and central key pair; and is also used to receive the mapping relationship between device ID and device key sent by the network access device; The edge server is used to receive the terminal identity authentication data sent by the quantum server, and configure corresponding identity data to each target terminal according to the terminal identity authentication data; it is also used to receive the network registration request of the network access device, decrypt the corresponding encrypted identity information according to the central private key in the central key pair, obtain the device identity information, and after verifying the validity of the information according to the device identity information, map the obtained first quantum random number as the device key and the corresponding device ID, store and synchronize to the quantum server, and encrypt the device key with the obtained device public key to obtain the device key ciphertext, and send the device key ciphertext to the network access device; The target terminal is used to generate a corresponding security key pair according to the identity data configured by the edge server; the network access device is used to send a network registration request to the edge server, and decrypt the device key ciphertext responded by the edge server according to the composite private key in the corresponding security key pair to obtain the corresponding device communication key; The power terminal is used to send a network access request to the network access device, receive a terminal key ciphertext sent by the network access device, decrypt the terminal key ciphertext according to the composite private key in the corresponding security key pair to obtain the corresponding terminal communication key, and encrypt the uploaded data according to the terminal communication key; The network access device is further used to forward the network access request sent by the power terminal to the edge server, receive the authentication encrypted data sent by the edge server, decrypt according to the device communication key to obtain the corresponding authentication plaintext data, and after storing the authentication plaintext data, use the terminal public key in the authentication plaintext data to encrypt the corresponding terminal key to obtain the terminal key ciphertext, and send the terminal key ciphertext to the corresponding power terminal; The edge server is also used to decrypt and obtain the terminal identity information corresponding to the network access request according to the central private key in the central key pair, and after verifying the validity of the terminal identity information data, obtain a second quantum random number as the terminal key, and encrypt the obtained terminal public key, the terminal key and the corresponding terminal ID through the device communication key to generate authentication encrypted data, and send the authentication encrypted data to the network access device.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Power distribution network information secure transmission method based on quantum encryption

    CN113114460A

  • Lightweight IBC bidirectional identity authentication system and method based on quantum key

    CN114531680A

  • Power terminal data trusted access authentication method and device

    CN116418579A

  • Transformer substation business data intelligent weaving method based on multi-access edge computing technology

    CN116546011A

  • Cross-domain service implementation method and device, electronic equipment and storage medium

    CN117955696A

Cited By

  • Quantum key offline charging and online collaborative updating method for power terminal

    CN122908884A