Security industrial controller, method and device based on national cryptographic algorithm and storage medium
By adopting a secure industrial controller based on the national secret algorithm in the industrial controller, the encryption process is optimized by splitting and transforming the key, solving the problem of wasting computing resources of the existing encryption algorithm under high data volume, and realizing Fast, lightweight and secure transmission of industrial controller data.
Patent Information
- Application Number
- CN202410877267.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-20
AI Technical Summary
Due to the large amount of data in industrial controllers, existing encryption algorithms produce a large number of invalid operations and invalid parameters during the encryption process, resulting in a waste of computing resources and affecting data transmission efficiency.
Adopting a security industrial controller based on the national secret algorithm, through the acquisition module, selection module, generation module, split module, deformation module, sorting module and encryption module, the key is generated and optimized to reduce invalid operations and achieve fast and lightweight Data transfer.
By splitting, crossing, mutating and splicing keys, new keys are constructed, the encryption process is optimized, computing overhead is reduced, industrial controller data transmission efficiency is improved, and fast, lightweight, and secure data transmission is achieved.
Smart Images

Figure CN118677614A
Abstract
Description
Background Art
[0002] Industrial controllers are devices designed specifically to monitor, manage and control industrial processes. They are often used in industrial environments such as factories, production lines, and mechanical equipment to ensure the efficiency, safety and reliability of the production process.
[0003] Industrial controllers may contain confidential information such as production processes, product designs, commercial secrets, control instructions, sensor data, etc. Once leaked, they can be used by criminals to cause production line shutdowns, equipment damage, or product quality problems, seriously affecting the production efficiency and economic benefits of the company. Therefore, it is necessary to encrypt and protect the data of industrial controllers.
[0004] Although there are many methods for encrypting data using encryption algorithms and chaotic systems, although the current encryption algorithms have made great breakthroughs in security, considering that industrial controllers generate a lot of data every moment, current encryption algorithms often abuse encryption algorithms and chaotic systems in the encryption process, generating a large number of invalid operations and invalid parameters, resulting in a waste of computing resources and affecting the data transmission efficiency of industrial controllers. Summary of the invention
[0005] In order to solve the technical problem that although the current encryption algorithm has made great breakthroughs in security, considering that the industrial controller generates a lot of data every moment, the current encryption algorithm often abuses the encryption algorithm and the chaotic system in the encryption process, generates a large number of invalid operations and invalid parameters, causes a waste of computing resources, and affects the data transmission efficiency of the industrial controller, the present invention provides a secure industrial controller, method, device and storage medium based on the national secret algorithm, which are as follows:
[0006] 1) In the first aspect, the present invention provides a secure industrial controller based on a national secret algorithm, and the specific technical solution is as follows:
[0007] It includes: acquisition module, selection module, generation module, splitting module, deformation module, sorting module and encryption module;
[0008] The acquisition module is used to: acquire the plaintext data to be transmitted from the security industrial controller;
[0009] The selection module is used to: select N national secret algorithms from the national secret algorithm library;
[0010] The generation module is used to: randomly generate an initial key;
[0011] The splitting module is used to: split the initial key to obtain 2N key blocks;
[0012] The deformation module is used to: perform crossover, mutation and splicing processing on 2N key blocks in pairs to obtain N deformed keys, and the N deformed keys correspond one-to-one to the N selected national encryption algorithms;
[0013] The sorting module is used to: randomly sort N selected national secret algorithms to obtain random sorting results;
[0014] The encryption module is used to: perform N rounds of encryption processing on the plaintext data to be transmitted using each selected national secret algorithm and the corresponding transformed key in turn according to the random sorting results.
[0015] The beneficial effects of a secure industrial controller based on a national secret algorithm provided by the present invention are as follows:
[0016] In the present invention, the abuse of encryption algorithms and chaotic systems is avoided, the keys are effectively transformed, and new keys are constructed by splitting, crossing, mutating and splicing the keys. The key generation and encryption process are optimized, and unnecessary computing overhead is reduced. Then, based on the existing very mature national secret algorithm and the constructed new key, encryption of industrial controller data is achieved, rather than simply superimposing and abusing encryption algorithms or chaotic systems, reducing invalid operations and invalid parameters, saving computing resources, and thus improving the data transmission efficiency of industrial controllers, and achieving rapid, lightweight and secure transmission of industrial controller data.
[0017] On the basis of the above scheme, the security industrial controller based on the national secret algorithm of the present invention can also be improved as follows.
[0018] Further, the selection module is specifically used for:
[0019] Calculate the selection probability of each national secret algorithm in the national secret algorithm library;
[0020] According to the selection probability of each national secret algorithm, N national secret algorithms are randomly selected from the national secret algorithm library, and the selection probability of each selected national secret algorithm is greater than the preset selection probability threshold.
[0021] Furthermore, the selection module is also specifically used for:
[0022] Obtain a sample data set, where the sample data set includes multiple plaintext data;
[0023] Use each national secret algorithm in the national secret algorithm library to encrypt each plaintext data to obtain an encryption result;
[0024] Determine the energy consumption performance and communication performance when each national secret algorithm in the national secret algorithm library is used, and determine the encryption performance when each national secret algorithm in the national secret algorithm library is used according to the encryption processing result;
[0025] According to the energy consumption performance, communication performance and encryption performance when any national secret algorithm in the national secret algorithm library is adopted, the comprehensive performance value of the national secret algorithm is calculated, and the weight parameter of the national secret algorithm is calculated according to the comprehensive performance value of the national secret algorithm, and the weight parameter of the national secret algorithm is used as the selection probability of the national secret algorithm, until the selection probability of each national secret algorithm in the national secret algorithm library is calculated.
[0026] Furthermore, the selection module is also specifically used for:
[0027] The weight parameter calculation formula is used to calculate the weight parameter of each national secret algorithm in the national secret algorithm library. The weight parameter calculation formula is:
[0028]
[0029] Among them, p i Represents: the weight parameter of the i-th national secret algorithm in the national secret algorithm library, δ i It represents the comprehensive performance value of the i-th national secret algorithm in the national secret algorithm library, i=1,2,…,n, and n represents the total number of national secret algorithms in the national secret algorithm library.
[0030] Furthermore, the generation module is specifically used to randomly generate an initial key based on elliptic curve parameters.
[0031] Furthermore, the encryption module is specifically used for:
[0032] Split the plaintext data to be transmitted into multiple data blocks;
[0033] According to the random sorting results, each data block is encrypted in N rounds using each selected national secret algorithm and the corresponding transformed key.
[0034] Further, it also includes: an initialization module and a protection module;
[0035] The initialization module is used to: initialize the chaotic system through the initial key;
[0036] The protection module is used to protect the encryption parameters through the initialized chaotic system.
[0037] 2) In the second aspect, the present invention also provides a secure industrial control method based on a national secret algorithm, and the specific technical solution is as follows:
[0038] Obtain the plaintext data to be transmitted from the secure industrial controller;
[0039] Select N national secret algorithms from the national secret algorithm library;
[0040] Randomly generate an initial key;
[0041] The initial key is split to obtain 2N key blocks;
[0042] The 2N key blocks are cross-linked, mutated and concatenated in pairs to obtain N deformed keys, which correspond one-to-one to the N selected national secret algorithms.
[0043] Randomly sort the N selected national secret algorithms to obtain a random sorting result;
[0044] According to the random sorting results, each selected national secret algorithm and the corresponding transformed key are used in turn to perform N rounds of encryption on the plaintext data to be transmitted.
[0045] On the basis of the above scheme, the secure industrial control method based on the national secret algorithm of the present invention can also be improved as follows.
[0046] Further, N national secret algorithms are selected from the national secret algorithm library, including:
[0047] Calculate the selection probability of each national secret algorithm in the national secret algorithm library;
[0048] According to the selection probability of each national secret algorithm, N national secret algorithms are randomly selected from the national secret algorithm library, and the selection probability of each selected national secret algorithm is greater than the preset selection probability threshold.
[0049] Furthermore, the selection probability of each national secret algorithm in the national secret algorithm library is calculated, including:
[0050] Obtain a sample data set, where the sample data set includes multiple plaintext data;
[0051] Use each national secret algorithm in the national secret algorithm library to encrypt each plaintext data to obtain an encryption result;
[0052] Determine the energy consumption performance and communication performance when each national secret algorithm in the national secret algorithm library is used, and determine the encryption performance when each national secret algorithm in the national secret algorithm library is used according to the encryption processing result;
[0053] According to the energy consumption performance, communication performance and encryption performance when any national secret algorithm in the national secret algorithm library is adopted, the comprehensive performance value of the national secret algorithm is calculated, and the weight parameter of the national secret algorithm is calculated according to the comprehensive performance value of the national secret algorithm, and the weight parameter of the national secret algorithm is used as the selection probability of the national secret algorithm, until the selection probability of each national secret algorithm in the national secret algorithm library is calculated.
[0054] Furthermore, the process of calculating the weight parameters includes:
[0055] The weight parameter calculation formula is used to calculate the weight parameter of each national secret algorithm in the national secret algorithm library. The weight parameter calculation formula is:
[0056]
[0057] Among them, p i Represents: the weight parameter of the i-th national secret algorithm in the national secret algorithm library, δ i It represents the comprehensive performance value of the i-th national secret algorithm in the national secret algorithm library, i=1,2,…,n, and n represents the total number of national secret algorithms in the national secret algorithm library.
[0058] Furthermore, the initial key is randomly generated, including:
[0059] Based on the elliptic curve parameters, the initial key is randomly generated.
[0060] Further, according to the random sorting results, each selected national encryption algorithm and the corresponding transformed key are used in turn to perform N rounds of encryption processing on the plaintext data to be transmitted, including:
[0061] Split the plaintext data to be transmitted into multiple data blocks;
[0062] According to the random sorting results, each data block is encrypted in N rounds using each selected national secret algorithm and the corresponding transformed key.
[0063] Furthermore, it also includes:
[0064] Initialize the chaotic system through the initial key;
[0065] The encrypted parameters are protected by the initialized chaotic system.
[0066] 3) In a third aspect, the present invention further provides an electronic device, comprising a processor, the processor being coupled to a memory, the memory storing at least one computer program, and the at least one computer program being loaded and executed by the processor so that the electronic device implements any of the above-mentioned security industrial control methods based on national secret algorithms.
[0067] 4) In a fourth aspect, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored, and at least one computer program is loaded and executed by a processor so that the computer implements any of the above-mentioned security industrial control methods based on national secret algorithms.
[0068] It should be noted that the beneficial effects achieved by the technical solutions of the second to fourth aspects of the present invention and the corresponding possible implementation methods can be found in the above-mentioned technical effects of the first aspect and its corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0070] Figure 1 A schematic diagram of the structure of a secure industrial controller based on a national secret algorithm according to an embodiment of the present invention;
[0071] Figure 2 This is a schematic diagram of a process of encrypting plaintext data to be transmitted by a secure industrial controller based on a national secret algorithm according to an embodiment of the present invention;
[0072] Figure 3 A schematic flow chart of a secure industrial control method based on a national secret algorithm according to an embodiment of the present invention;
[0073] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0074] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0075] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.
[0076] In order to simplify the drawings, only the parts related to the invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".
[0077] It should be further understood that the term “and / or” used in the present specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0078] In this document, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection. It can be a mechanical connection or an electrical connection. It can be directly connected or indirectly connected through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0079] In addition, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0080] like Figure 1 As shown, a secure industrial controller based on a national secret algorithm according to an embodiment of the present invention comprises: an acquisition module 1, a selection module 2, a generation module 3, a splitting module 4, a deformation module 5, a sorting module 6 and an encryption module 7;
[0081] The acquisition module 1 is used to: acquire the plaintext data to be transmitted from the security industrial controller;
[0082] The selection module 2 is used to: select N national secret algorithms from the national secret algorithm library, where N is a positive integer;
[0083] The generating module 3 is used to: randomly generate an initial key, specifically generate an initial key;
[0084] The splitting module 4 is used to: split the initial key to obtain 2N key blocks;
[0085] The deformation module 5 is used to perform crossover, mutation and splicing processing on the 2N key blocks in pairs to obtain N deformed keys, and the N deformed keys correspond to the N selected national encryption algorithms one by one;
[0086] The sorting module 6 is used to: randomly sort the N selected national secret algorithms to obtain a random sorting result;
[0087] The encryption module 7 is used to: perform N rounds of encryption processing on the plaintext data to be transmitted using each selected national secret algorithm and the corresponding transformed key in turn according to the random sorting result.
[0088] The 2N key blocks split from the initial key are defined as the 1st key block, the 2nd key block, ... the 2N-1th key block and the 2Nth key block, respectively. The 1st key block, the 2nd key block, ... the 2N-1th key block and the 2Nth key block are crossed in pairs in the order of the 1st key block, the 2nd key block, ... the 2N-1th key block and the 2Nth key block. Specifically, the 1st key block and the 2nd key block are crossed to generate two new key blocks, the 3rd key block and the 4th key block are crossed to generate two new key blocks, ... …, the 2N-1th key block and the 2Nth key block are crossed to generate two new key blocks, and then each new key block is mutated to generate a mutated new key block, and the two mutated new key blocks corresponding to the two crossed key blocks are spliced to generate a deformed key. Specifically, the two mutated new key blocks generated based on the 1st key block and the 2nd key block are spliced to generate the 1st deformed key, and the 3rd key block and the 4th key block are spliced to generate the 5th deformed key. The two mutated new key blocks generated by the 2N-1th key block and the 2Nth key block are spliced to generate the second deformed key, ..., the two mutated new key blocks generated based on the 2N-1th key block and the 2Nth key block are spliced to generate the Nth deformed key, and then according to the random sorting result, each selected national secret algorithm and the corresponding deformed key are used in turn to perform N rounds of encryption processing on the plaintext data to be transmitted. Specifically, the first national secret algorithm and the first deformed key in the random sorting result are used to perform a first round of encryption processing on the plaintext data to be transmitted, and then the second national secret algorithm and the second deformed key in the random sorting result are used to perform a second round of encryption on the plaintext data to be transmitted after the first round of encryption processing, ..., until the Nth national secret algorithm and the Nth deformed key in the random sorting result are used to perform an N-round encryption on the plaintext data to be transmitted after the N-1th round of encryption processing, and N rounds of encryption are completed. Figure 2 shown.
[0089] Optionally, in the above technical solution, the selection module 2 is specifically used for:
[0090] Calculate the selection probability of each national secret algorithm in the national secret algorithm library;
[0091] According to the selection probability of each national secret algorithm, N national secret algorithms are randomly selected from the national secret algorithm library, and the selection probability of each selected national secret algorithm is greater than the preset selection probability threshold.
[0092] Optionally, in the above technical solution, the selection module 2 is further specifically used for:
[0093] Obtain a sample data set, where the sample data set includes multiple plaintext data;
[0094] Use each national secret algorithm in the national secret algorithm library to encrypt each plaintext data to obtain an encryption result;
[0095] Determine the energy consumption performance and communication performance when each national secret algorithm in the national secret algorithm library is used, and determine the encryption performance when each national secret algorithm in the national secret algorithm library is used according to the encryption processing result;
[0096] According to the energy consumption performance, communication performance and encryption performance when any national secret algorithm in the national secret algorithm library is adopted, the comprehensive performance value of the national secret algorithm is calculated, and the weight parameter of the national secret algorithm is calculated according to the comprehensive performance value of the national secret algorithm, and the weight parameter of the national secret algorithm is used as the selection probability of the national secret algorithm, until the selection probability of each national secret algorithm in the national secret algorithm library is calculated.
[0097] Optionally, in the above technical solution, the selection module 2 is further specifically used for:
[0098] The weight parameter calculation formula is used to calculate the weight parameter of each national secret algorithm in the national secret algorithm library. The weight parameter calculation formula is:
[0099]
[0100] Among them, p i Represents: the weight parameter of the i-th national secret algorithm in the national secret algorithm library, δ i It represents the comprehensive performance value of the i-th national secret algorithm in the national secret algorithm library, i=1,2,…,n, and n represents the total number of national secret algorithms in the national secret algorithm library.
[0101] Optionally, in the above technical solution, the generation module 3 is specifically used to: randomly generate an initial key based on elliptic curve parameters.
[0102] Optionally, in the above technical solution, the encryption module 7 is specifically used for:
[0103] Split the plaintext data to be transmitted into multiple data blocks;
[0104] According to the random sorting results, each data block is encrypted in N rounds using each selected national secret algorithm and the corresponding transformed key.
[0105] Optionally, in the above technical solution, it also includes: an initialization module and a protection module;
[0106] The initialization module is used to: initialize the chaotic system through the initial key;
[0107] The protection module is used to protect the encryption parameters through the initialized chaotic system.
[0108] like Figure 1and Figure 2 As shown, a secure industrial control method based on a national secret algorithm of the present invention is described as follows through the following embodiments:
[0109] It includes: an acquisition module 1, a selection module 2, a generation module 3, a splitting module 4, a deformation module 5, a sorting module 6 and an encryption module 7.
[0110] The acquisition module 1 is used to acquire the plaintext data to be transmitted from the security industrial controller.
[0111] The plaintext data to be transmitted may specifically include: production process parameters, product design drawings, model files, process routes, control instructions, sensor data, event logs, and real-time monitoring images, etc.
[0112] Selection module 2 is used to randomly select the plaintext data to be transmitted from the national encryption algorithm library for encryption. The national encryption algorithm mainly includes symmetric encryption algorithm, asymmetric encryption algorithm, hash algorithm and digital signature algorithm, some of which have become international standards.
[0113] In one possible implementation, the national secret algorithm library includes: SM1, SM2, SM3, SM4, SM7, SM9 and Zu Chongzhi cryptographic algorithms.
[0114] Specifically, SM1 is a block cipher algorithm suitable for symmetric encryption with a key length of 128 bits. It is mainly used to encrypt and decrypt data. SM2 is an asymmetric encryption algorithm suitable for scenarios such as digital signatures, key negotiation and public key encryption. Based on elliptic curve cryptography, it provides an efficient and secure asymmetric encryption scheme. SM3 is a cryptographic hash algorithm suitable for scenarios such as data integrity verification, digital signatures and message authentication. It has the characteristics of strong anti-collision and high computational efficiency. SM4 is a block cipher algorithm suitable for symmetric encryption. The key length is 128 bits and the block length is 128 bits. It is widely used in the field of data encryption and protection. SM7 is a new block cipher algorithm with the characteristics of high efficiency and security. It is suitable for symmetric encryption and data protection. SM9 is an asymmetric encryption algorithm based on elliptic curve cryptography that supports functions such as digital signatures, key negotiation and public key encryption. Zu Chongzhi cryptographic algorithm is a lightweight symmetric encryption algorithm suitable for encryption and authentication in resource-constrained environments.
[0115] In the present invention, multiple national secret algorithms are randomly selected to encrypt the plaintext data to be transmitted, which can enhance the security of the system. Even if a certain encryption algorithm has a vulnerability or is attacked, other encryption algorithms can still protect the security of the data, thereby improving the anti-attack ability of the overall system. At the same time, the randomness of the national secret algorithm will greatly increase the difficulty of decryption and improve data security. N national secret algorithms.
[0116] In a possible implementation manner, the selection module 2 is specifically used for:
[0117] The weight parameters of each national encryption algorithm are set to the selection probability of each national encryption algorithm.
[0118] According to the selection probability of each national secret algorithm, N national secret algorithms for encrypting the plaintext data to be transmitted are randomly selected from the national secret algorithm library.
[0119] In the present invention, the selection probability can be adjusted according to the weight parameters of each national secret algorithm, increasing the probability of the algorithm with a higher weight parameter being selected, thereby enhancing the security of the overall system. By randomly selecting encryption algorithms according to the selection probabilities of each national secret algorithm, the optimal balance between performance, security and randomness can be found, thereby improving the effect and applicability of the encryption scheme.
[0120] Optionally, the N selected national secret algorithms can be repeated, that is, if the SM2 algorithm is selected for the first time, the SM2 algorithm may also be selected for the second time.
[0121] In a possible implementation, the calculation method of the weight parameter of each national secret algorithm in the national secret algorithm library specifically includes:
[0122] A sample data set is obtained, where the sample data set includes multiple plaintext data.
[0123] Each plaintext data is encrypted using each national encryption algorithm in the national encryption algorithm library to obtain an encryption result.
[0124] Determine the energy consumption performance and communication performance when each national secret algorithm in the national secret algorithm library is used, and determine the encryption performance when each national secret algorithm in the national secret algorithm library is used according to the encryption processing result;
[0125] Optionally, the energy consumption performance is calculated specifically as follows: the energy consumed after each national encryption algorithm in the national encryption algorithm library runs for a unit period of time.
[0126] It should be noted that by directly measuring the energy consumption of the national encryption algorithm per unit time, the energy consumption performance of the algorithm can be evaluated more accurately, avoiding the uncertainty of estimation based on theoretical models or assumptions, and improving the accuracy of the evaluation. At the same time, using energy consumption as an indicator to measure energy consumption performance can provide intuitive comparability. By comparing the energy consumed by different algorithms in the same unit time, we can clearly understand their differences in energy consumption, which helps to select more energy-efficient algorithms.
[0127] Furthermore, the energy consumption can be normalized using a Sigmoid function.
[0128] Optionally, the communication performance is calculated specifically as follows: the success rate of receiving plaintext data after running each national encryption algorithm for a unit period of time.
[0129] It should be noted that the success rate of receiving plaintext data directly reflects the quality and efficiency of communication. By measuring the success rate of receiving plaintext data of various national encryption algorithms in the same unit time, their performance in the actual communication process can be intuitively evaluated, which is conducive to selecting algorithms with higher communication efficiency.
[0130] Optionally, the encryption performance is calculated specifically as follows: the amount of data successfully encrypted after each national encryption algorithm is run for a unit period of time.
[0131] It should be noted that the amount of data successfully encrypted directly reflects the speed and efficiency of the encryption algorithm. By measuring the amount of data successfully encrypted by each national encryption algorithm in the same unit of time, we can intuitively evaluate their performance in the actual encryption process, which helps to select an algorithm with faster encryption speed.
[0132] According to the energy consumption performance, communication performance and encryption performance of each national encryption algorithm, the comprehensive performance value of each national encryption algorithm is calculated:
[0133] δ=μ 1 ×e+μ 2 ×s+μ 3 ×d
[0134] Among them, δ represents the comprehensive performance value, e represents the energy consumption performance, μ 1 represents the weight coefficient of energy consumption performance, s represents communication performance, μ 2 represents the weight coefficient of communication performance, d represents encryption performance, μ 3 The weight coefficient representing the encryption performance.
[0135] Among them, those skilled in the art can set the weight coefficient μ of energy consumption performance according to actual conditions. 1 , the weight coefficient μ of communication performance 2 and the encryption performance weight coefficient μ 3 The present invention does not limit the size.
[0136] It should be noted that in industrial control systems, there is often a trade-off between energy consumption, communication rate, encryption efficiency, and other performance requirements. By introducing weight coefficients, different performance indicators can be weighted according to the needs of specific application scenarios, thereby better meeting the comprehensive performance requirements of the system.
[0137] In the present invention, indicators such as energy consumption performance, communication performance and encryption performance are taken into consideration. By calculating the comprehensive performance value, the comprehensive performance of the algorithm can be evaluated more comprehensively, different performance requirements can be weighed, the algorithm selection process can be simplified, the performance comparison can be quantified, and ultimately the overall performance of the industrial control system can be optimized.
[0138] The weight parameter calculation formula is used to calculate the weight parameter of each national secret algorithm in the national secret algorithm library. The weight parameter calculation formula is:
[0139]
[0140] Among them, p i Represents: the weight parameter of the i-th national secret algorithm in the national secret algorithm library, δ i It represents the comprehensive performance value of the i-th national secret algorithm in the national secret algorithm library, i=1,2,…,n, and n represents the total number of national secret algorithms in the national secret algorithm library.
[0141] In the present invention, by normalizing the comprehensive performance value into a weight parameter, it is possible to ensure that each national secret algorithm is fairly compared in the evaluation. In this way, the performance differences between different algorithms can be presented more intuitively without being affected by the absolute size of the performance value. The weight parameter reflects the importance or usage ratio of each national secret algorithm in the overall system. By determining the weight parameter, the usage ratio of each algorithm can be reasonably allocated to better meet the performance requirements and security requirements of the system.
[0142] The generation module 3 is used to randomly generate the initial key of the national encryption algorithm based on the elliptic curve parameters.
[0143] Specifically, select appropriate elliptic curve parameters. National cryptographic algorithms usually use specified elliptic curve parameters, such as the elliptic curve parameters specified in the SM2 algorithm. These parameters are usually predefined, including curve equations, base point coordinates, prime numbers, etc. Use a random number generator to generate a random number as a private key. The private key is usually a large integer that needs to meet certain length requirements and is randomly selected within a specified range. Use the generated private key and elliptic curve parameters to calculate the corresponding public key. This usually involves point multiplication on the elliptic curve, multiplying the base point by the private key to obtain the corresponding public key point. The final initial key may be a combination of public keys, private keys, or symmetric keys, which is determined according to specific design requirements. It should be noted that the derivation of the key needs to ensure its security to prevent the key from being leaked or cracked.
[0144] It should be noted that the generation of keys based on elliptic curve parameters is a very mature prior art and will not be described in detail in the present invention.
[0145] The splitting module 4 is used to split the initial key to obtain 2N key blocks.
[0146] It should be noted that the 2N key blocks will be combined and spliced in pairs after subsequent transformation to form the N key blocks required for the final encryption.
[0147] The deformation module 5 is used to perform crossover, mutation and splicing processing on the split key blocks in pairs to obtain N deformed keys, and the deformed keys correspond to the national encryption algorithms one by one.
[0148] Among them, cross processing refers to exchanging partial information of two key blocks to create a new key structure. Through the cross operation, partial features of two different key blocks can be combined to generate a key block with new features. This helps to increase the diversity and complexity of the key and improve the security of the system.
[0149] Mutation processing refers to randomly modifying part of the information in the key block and introducing new changes to increase the randomness of the key. The mutation operation can introduce randomness and uncertainty into the key block, making the key structure more complex and random. This helps to increase the security of the key and prevent attackers from guessing or cracking it based on known key characteristics.
[0150] Among them, splicing processing refers to connecting two or more key blocks together according to certain rules to form a longer key structure. By splicing multiple key blocks together, the length and complexity of the key can be increased, making the key more difficult to crack. The splicing operation can increase the number of bits and randomness of the key and improve the security of the system.
[0151] In the present invention, a more complex key structure can be generated by splitting, crossing, mutating and splicing the initial key. This complex structure increases the randomness and security of the key and improves the system's ability to resist cryptographic attacks. The process of generating the deformed key increases the randomness of the key, making it difficult for an attacker to crack or predict the next key. This can improve the security of the encryption system and reduce the risk of password cracking. By introducing operations such as crossing and mutation, the generated deformed key has higher complexity and diversity in structure, thereby increasing the difficulty for attackers to crack it. This helps to improve the system's ability to resist attacks and protect the security of sensitive information. In addition, the key generation and encryption process are optimized, unnecessary computing overhead is reduced, and the generation of invalid operations and invalid parameters is reduced.
[0152] Optionally, the crossover processing is divided into two types: single-point crossover and double-point crossover.
[0153] In a possible implementation manner, the single-point crossover processing in the deformation module 5 specifically includes:
[0154] Randomly determine the first intersection point of the first key block and the second key block:
[0155] c 1 =r 1 ×(ub-lb)+lb
[0156] Among them, c 1 represents the first intersection point, r 1 Represents a random number between 0 and 1, ub represents the upper limit of the key block string, and lb represents the lower limit of the key block string.
[0157] It should be noted that since the first intersection c 1 The position is determined by the random number r 1 Therefore, the generated new key block will have higher randomness and unpredictability, which helps to enhance the obfuscation of the key, making it more difficult for the key to be cracked or for attackers to infer the structure and characteristics of the key.
[0158] According to the first intersection point, the first key block is divided into a first part and a second part, and the second key block is divided into a third part and a fourth part.
[0159] The first part of the first key block and the fourth part of the second key block are combined to form a new third key block, and the second part of the first key block and the third part of the second key block are combined to form a new fourth key block.
[0160] In the present invention, by randomly selecting the crossover point, each crossover operation will generate a different new key block combination. This can increase the diversity of the key, make the generated deformed key more random, and improve the security of the encryption system. At the same time, by recombining part of the information of different key blocks, the newly generated key block has higher obfuscation and randomness, making it more difficult for the key to be cracked or for the attacker to infer the structure and characteristics of the key, thereby improving the security of the encryption system.
[0161] In a possible implementation manner, the double-point crossover processing in the deformation module 5 specifically includes:
[0162] The second intersection point and the third intersection point of the fifth key block and the sixth key block are randomly determined:
[0163] c 2 =r 2 ×(ub-lb)+lb
[0164] c 3 =r 3 ×(ub-lb)+lb
[0165] Among them, c 2 represents the second intersection point, c 3 represents the third intersection point, r 2 and r 3Represents a random number between 0 and 1, ub represents the upper limit of the key block string, and lb represents the lower limit of the key block string.
[0166] Determine whether the third intersection point is smaller than the second intersection point. If so, swap the positions of the second intersection point and the third intersection point.
[0167] According to the second intersection point and the third intersection point, the fifth key block is divided into the fourth part, the fifth part and the fourth part, and the sixth key block is divided into the seventh part, the eighth part and the ninth part.
[0168] The fourth part, the sixth part and the eighth part of the fifth key block are combined to form a new seventh key block, and the seventh part, the ninth part and the sixth part of the sixth key block and the sixth part of the fifth key block are combined to form a new eighth key block.
[0169] In the present invention, by randomly selecting the second intersection point c 2 and the third intersection c 3 , and possibly swapping their positions, can increase key variability and randomness. The new key block generated in this way will have higher randomness, making the key more difficult to guess or analyze. Since the position of the intersection is randomly determined, each crossover operation will generate a different key structure and combination. This can increase the diversity of keys, improve the system's anti-attack ability, and make the encryption process more secure and reliable.
[0170] In a possible implementation, the variation processing in the variation module 5 specifically includes:
[0171] Set the mutation probability.
[0172] Generate a random number. If the random number is greater than the mutation probability, mutate the key block:
[0173] s 2 =R(s 1 )
[0174] Among them, s 2 represents the mutated key block, R() represents a random number function that takes 0 or 1 bit by bit, R(s 1 ) represents the random number function used to generate s 1 Bitwise 0 or 1, s 1 Represents the key block before mutation.
[0175] In the present invention, randomness can be introduced by performing mutation processing on the key block, so that the generated mutated key has higher randomness. In this way, the complexity of the key can be increased and the security of the encryption system can be improved. The mutation processing causes the generated mutated key to be different from the original key, thereby increasing the diversity of the key. In this way, the difficulty for an attacker to crack the key can be increased and the security of the system can be improved. The mutation processing makes the generated key different from the original key in structure and combination, which increases the difficulty for an attacker to crack the key. Even if the attacker knows part of the information of the original key, it is difficult to infer the mutated key.
[0176] In a possible implementation, the mutation probability is specifically:
[0177]
[0178] Among them, P j represents the mutation probability of the jth key block, P max represents the maximum mutation probability, P min represents the minimum mutation probability, τ j represents the key complexity of the jth key block, τ avg represents the average value of the key complexity of all key blocks, τ max Indicates the maximum value of the key complexity of all key blocks.
[0179] Specifically, the complexity of the key can be described by calculating the information entropy of the key. The higher the information entropy, the greater the uncertainty and randomness of the key block, and the higher the complexity of the key block. Therefore, the complexity of the key block can be evaluated based on the size of the information entropy.
[0180] In the present invention, the mutation probability is calculated according to the key complexity of the key block, so that the mutation probability of each key block can be dynamically adjusted according to its own complexity. A key block with a higher key complexity will have a higher mutation probability, while a key block with a lower key complexity will have a lower mutation probability, thereby better adapting to the characteristics of different key blocks. By dynamically adjusting the mutation probability according to the key complexity of the key block, the adaptability and effectiveness of the mutation can be improved, the diversity of the key can be increased, and the security and performance of the system can be optimized.
[0181] The sorting module 6 is used to randomly sort the N selected national secret algorithms.
[0182] The encryption module 7 is used to perform N rounds of encryption processing on the plaintext data to be transmitted using the transformed keys and the corresponding national encryption algorithm in turn according to the random sorting results.
[0183] In the present invention, through random sorting, each round of encryption process uses a different national secret algorithm and a corresponding deformed key, making the entire encryption process more complex and diversified. This can increase the difficulty for attackers to crack the encryption and improve the security of the system. At the same time, the use of multiple rounds of encryption can improve the security of encryption. Even if a certain round of encryption is cracked by an attacker, the attacker still needs to successfully crack other rounds of encryption to obtain the original plaintext information. The use of multiple rounds of encryption can enhance the protection of data. Even in the process of data transmission, even if part of the data is stolen, it is difficult to restore the original plaintext information, thereby protecting the confidentiality of the data.
[0184] In a possible implementation, the encryption module 7 is specifically used for:
[0185] Split the plaintext data to be transmitted into N data blocks.
[0186] According to the random sorting results, each data block is encrypted in turn using the transformed key and the corresponding national secret algorithm.
[0187] In the present invention, the plaintext data to be transmitted is divided into multiple data blocks, each of which is encrypted using a different encryption algorithm and key. Even if an attacker successfully decrypts some of the data blocks, the complete plaintext information cannot be obtained, thereby improving the confidentiality of the data.
[0188] In a possible implementation, it further includes:
[0189] The initialization module is used to initialize the chaotic system through the initial key.
[0190] Among them, chaotic systems are a type of dynamical systems with highly complex, nonlinear and random properties. Their behavior is very sensitive to small changes in initial conditions and parameters, and they exhibit unpredictable and non-periodic motion. Chaotic systems, with their unpredictability, randomness and nonlinear characteristics, play an important role in information security, communication systems and cryptography, and provide an effective means to protect the security and confidentiality of data.
[0191] The protection module is used to protect the encryption parameters through the chaotic system.
[0192] The encryption parameters include: initial key, total number N of selected national encryption algorithms, random number r 1 、r 2 、r 3 , mutation probability, etc.
[0193] In the present invention, the use of a chaotic system to initialize and protect encryption parameters can enhance the security of the system. The chaotic system has a high degree of unpredictability and complexity, so it can generate an initial key with randomness and uniqueness, improve the security of the encryption process, and reduce the risk of being attacked. By protecting the encryption parameters through the chaotic system, the security and confidentiality of key information such as encryption algorithms and keys can be effectively protected. The unpredictability and complexity of the chaotic system make it difficult for attackers to obtain information about the encryption parameters, thereby improving the confidentiality of the data.
[0194] In a possible implementation, the chaotic system is specifically:
[0195]
[0196] Among them, X(t+1) represents the encryption parameter value at the t+1th verification, X(t) represents the encryption parameter value at the tth verification, a and b represent chaotic parameters, and the chaotic parameters are generated according to the initial key.
[0197] It should be noted that the above equations exhibit typical chaotic characteristics, that is, they are very sensitive to initial conditions, and the behavior of the system is very complex and unpredictable.
[0198] Furthermore, the parameters a and b of the chaotic system are usually generated by the initial key, which means that the choice of the initial key will directly affect the behavior of the chaotic system. Through the iterative equation, the parameters generated by the initial key will guide the chaotic system into a specific orbit, thus generating a series of seemingly random and unpredictable numerical sequences.
[0199] Specifically, the first 4 digits of the initial key can be converted into a decimal number, and then normalized by a Sigmoid function to form parameter a. The 5th to 8th digits of the initial key are converted into a decimal number, and then normalized by a Sigmoid function to form parameter b.
[0200] In the present invention, different parts of the initial key are mapped to the parameters of the chaotic system and normalized by the Sigmoid function, which can improve the security, flexibility and anti-attack capability of the system and increase the nonlinearity of the system, thereby better protecting the security of data.
[0201] Compared with the prior art, the present invention has at least the following beneficial technical effects:
[0202] In the present invention, the abuse of encryption algorithms and chaotic systems is avoided, the keys are effectively transformed, and new keys are constructed by splitting, crossing, mutating and splicing the keys. The key generation and encryption process are optimized, and unnecessary computing overhead is reduced. Then, based on the existing very mature national secret algorithm and the constructed new key, encryption of industrial controller data is achieved, rather than simply superimposing and abusing encryption algorithms or chaotic systems, reducing invalid operations and invalid parameters, saving computing resources, and thus improving the data transmission efficiency of industrial controllers, and achieving rapid, lightweight and secure transmission of industrial controller data.
[0203] like Figure 3 As shown, a secure industrial control method based on a national secret algorithm according to an embodiment of the present invention comprises the following steps:
[0204] S1. Obtain the plaintext data to be transmitted from the security industrial controller;
[0205] S2, select N national secret algorithms from the national secret algorithm library;
[0206] S3, randomly generate an initial key;
[0207] S4, split the initial key to obtain 2N key blocks;
[0208] S5. Perform crossover, mutation and concatenation processing on the 2N key blocks in pairs to obtain N deformed keys, and the N deformed keys correspond one to one with the N selected national secret algorithms;
[0209] S6. Randomly sort the N selected national secret algorithms to obtain a random sorting result;
[0210] S7. According to the random sorting results, use each selected national secret algorithm and the corresponding transformed key to perform N rounds of encryption processing on the plaintext data to be transmitted.
[0211] Optionally, in S2, N national secret algorithms are selected from the national secret algorithm library, including:
[0212] S20, calculating the selection probability of each national secret algorithm in the national secret algorithm library;
[0213] S21. According to the selection probability of each national secret algorithm, N national secret algorithms are randomly selected from the national secret algorithm library, and the selection probability of each selected national secret algorithm is greater than the preset selection probability threshold.
[0214] Optionally, in S20, calculating the selection probability of each national secret algorithm in the national secret algorithm library includes:
[0215] S200, obtaining a sample data set, where the sample data set includes a plurality of plaintext data;
[0216] S201, using each national secret algorithm in the national secret algorithm library to encrypt each plaintext data to obtain an encryption result;
[0217] S202, determining the energy consumption performance and communication performance when each national secret algorithm in the national secret algorithm library is used, and determining the encryption performance when each national secret algorithm in the national secret algorithm library is used according to the encryption processing result;
[0218] S203. Calculate the comprehensive performance value of any national secret algorithm in the national secret algorithm library based on its energy consumption performance, communication performance, and encryption performance, and calculate the weight parameter of the national secret algorithm based on the comprehensive performance value of the national secret algorithm, and use the weight parameter of the national secret algorithm as the selection probability of the national secret algorithm, until the selection probability of each national secret algorithm in the national secret algorithm library is calculated.
[0219] Optionally, in S203, the process of calculating the weight parameter includes:
[0220] S2030. Calculate the weight parameter of each national secret algorithm in the national secret algorithm library using the weight parameter calculation formula. The weight parameter calculation formula is:
[0221]
[0222] Among them, p i Represents: the weight parameter of the i-th national secret algorithm in the national secret algorithm library, δ i It represents the comprehensive performance value of the i-th national secret algorithm in the national secret algorithm library, i=1,2,…,n, and n represents the total number of national secret algorithms in the national secret algorithm library.
[0223] Optionally, in S3, an initial key is randomly generated, including:
[0224] S30. Randomly generate an initial key based on the elliptic curve parameters.
[0225] Optionally, in S7, according to the random sorting result, each selected national encryption algorithm and the corresponding transformed key are used in turn to perform N rounds of encryption processing on the plaintext data to be transmitted, including:
[0226] S70, splitting the plaintext data to be transmitted into multiple data blocks;
[0227] S71. According to the random sorting result, each data block is encrypted in N rounds using each selected national encryption algorithm and the corresponding transformed key.
[0228] Optionally, in the above technical solution, it also includes:
[0229] S8, initializing the chaotic system through the initial key;
[0230] S9. Protect the encryption parameters through the initialized chaotic system.
[0231] It should be noted that the beneficial effects of the secure industrial control method based on the national secret algorithm provided in the above embodiment are the same as the beneficial effects of the secure industrial controller based on the national secret algorithm, which will not be repeated here. In addition, the method provided in the above embodiment and the controller embodiment belong to the same concept, and the specific implementation process is detailed in the controller embodiment, which will not be repeated here.
[0232] In the above embodiments, although the steps are numbered S1, S2, etc., these are only specific embodiments given by the present invention. Those skilled in the art may adjust the execution order of S1, S2, etc. according to actual conditions, which is also within the protection scope of the present invention. It can be understood that in some embodiments, some or all of the above embodiments may be included.
[0233] like Figure 4 As shown, an electronic device 300 of an embodiment of the present invention includes a processor 320, the processor 320 is coupled to a memory 310, and the memory 310 stores at least one computer program 330, and the at least one computer program 330 is loaded and executed by the processor 320, so that the electronic device 300 implements any of the above-mentioned security industrial control methods based on the national secret algorithm, specifically:
[0234] The electronic device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors 320 (Central Processing Units, CPU) and one or more memories 310, wherein the one or more memories 310 store at least one computer program 330, and the at least one computer program 330 is loaded and executed by the one or more processors 320, so that the electronic device 300 implements any of the security industrial control methods based on the national secret algorithm provided in the above embodiments. Of course, the electronic device 300 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The electronic device 300 may also include other components for realizing the functions of the device, which will not be described in detail here. The electronic device may specifically be a computer, etc.
[0235] A computer-readable storage medium according to an embodiment of the present invention stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements any of the above-mentioned secure industrial control methods based on national secret algorithms.
[0236] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0237] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes any of the above-mentioned secure industrial control methods based on the national secret algorithm.
[0238] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects and represent the definition of a specific order or sequence. The order of use of similar objects can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than the order shown or described.
[0239] Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present invention can be specifically implemented in the following forms, namely: it can be complete hardware, it can be complete software (including firmware, resident software, microcode, etc.), or it can be a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" herein. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium contains computer-readable program code.
[0240] Any combination of one or more computer-readable media can be used. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0241] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are 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.
[0242] The above embodiments only express several implementation methods of the present invention, 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 those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A secure industrial controller based on national secret algorithm, It is characterized in that include: Acquisition module, selection module, generation module, splitting module, deformation module, sorting module and encryption module; The acquisition module is used to: acquire the plaintext data to be transmitted from the safety industrial controller; The selection module is used to: select N national secret algorithms from the national secret algorithm library; The generation module is used to: randomly generate an initial key; The splitting module is used to: split the initial key to obtain 2N key blocks; The deformation module is used to: perform crossover, mutation and splicing processing on 2N key blocks in pairs to obtain N deformed keys, and the N deformed keys correspond to the N selected national encryption algorithms one by one; The sorting module is used to: randomly sort N selected national secret algorithms to obtain a random sorting result; The encryption module is used to: perform N rounds of encryption processing on the plaintext data to be transmitted using each selected national secret algorithm and the corresponding transformed key in turn according to the random sorting result.
2. A secure industrial controller based on a national secret algorithm according to claim 1, It is characterized in that The selection module is specifically used for: Calculating the selection probability of each national secret algorithm in the national secret algorithm library; According to the selection probability of each national secret algorithm, N national secret algorithms are randomly selected from the national secret algorithm library, and the selection probability of each selected national secret algorithm is greater than the preset selection probability threshold.
3. A secure industrial controller based on a national secret algorithm according to claim 2, It is characterized in that The selection module is also specifically used for: Obtain a sample data set, where the sample data set includes multiple plaintext data; Using each national secret algorithm in the national secret algorithm library to encrypt each plaintext data to obtain an encryption result; Determine the energy consumption performance and communication performance when each national secret algorithm in the national secret algorithm library is used, and determine the encryption performance when each national secret algorithm in the national secret algorithm library is used according to the encryption processing result; According to the energy consumption performance, communication performance and encryption performance when any national secret algorithm in the national secret algorithm library is adopted, the comprehensive performance value of the national secret algorithm is calculated, and the weight parameter of the national secret algorithm is calculated according to the comprehensive performance value of the national secret algorithm, and the weight parameter of the national secret algorithm is used as the selection probability of the national secret algorithm, until the selection probability of each national secret algorithm in the national secret algorithm library is calculated.
4. A secure industrial controller based on a national secret algorithm according to claim 3, It is characterized in that The selection module is also specifically used for: The weight parameter calculation formula is used to calculate the weight parameter of each national secret algorithm in the national secret algorithm library. The weight parameter calculation formula is: Among them, p i Represents: the weight parameter of the i-th national secret algorithm in the national secret algorithm library, δ i It represents the comprehensive performance value of the i-th national secret algorithm in the national secret algorithm library, i=1,2,…,n, and n represents the total number of national secret algorithms in the national secret algorithm library.
5. A secure industrial controller based on a national secret algorithm according to claim 1, It is characterized in that The generation module is specifically used to randomly generate an initial key based on elliptic curve parameters.
6. A secure industrial controller based on a national secret algorithm according to claim 1, It is characterized in that The encryption module is specifically used for: Splitting the plaintext data to be transmitted into multiple data blocks; According to the random sorting result, each data block is encrypted in N rounds using each selected national secret algorithm and the corresponding transformed key.
7. A secure industrial controller based on a national secret algorithm according to claim 6, It is characterized in that Also includes: Initialization module and protection module; The initialization module is used to: initialize the chaotic system through an initial key; The protection module is used to perform protection processing on the encryption parameters through the initialized chaotic system.
8. A secure industrial control method based on national secret algorithm, It is characterized in that include: Obtain the plaintext data to be transmitted from the secure industrial controller; Select N national secret algorithms from the national secret algorithm library; Randomly generate an initial key; Splitting the initial key to obtain 2N key blocks; The 2N key blocks are cross-linked, mutated and concatenated in pairs to obtain N deformed keys, which correspond one to one with the N selected national secret algorithms; Randomly sort the N selected national secret algorithms to obtain a random sorting result; According to the random sorting result, each selected national encryption algorithm and the corresponding transformed key are used in turn to perform N rounds of encryption processing on the plaintext data to be transmitted.
9. An electronic device, It is characterized in that The electronic device includes a processor, the processor is coupled to a memory, at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the electronic device implements a secure industrial control method based on a national secret algorithm as described in claim 8.
10. A computer-readable storage medium, It is characterized in that At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by the processor so that the computer implements the secure industrial control method based on the national secret algorithm as described in claim 8.
Citation Information
Cited By
Key generation method and device based on BB84 protocol, equipment and medium
CN120455002A
Key generation method, device, equipment and medium based on BB84 protocol
CN120455002B
