Hyperchaotic key one-time pad transmission method, device, equipment, medium and product
Through the hyperchaotic key one-time transmission method, the key stream is generated using chaotic parameters and large prime parameters, which solves the problem of security risks of symmetric key sharing in the existing technology and realizes efficient and secure key transmission.
Patent Information
- Application Number
- CN202411165571.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-23
AI Technical Summary
The existing one-time transmission scheme has security risks through symmetric key sharing, making it difficult to ensure the security and efficiency of the key in data transmission.
The super chaotic key one-secret transmission method is used to obtain chaotic parameters and large prime parameters through the generated symmetric key decryption, determine the chaotic function to generate a random sequence, and generate a key stream based on the random sequence and large prime parameters, which is used to one at a time. Secure data transmission to avoid security risks arising from key sharing.
While ensuring that encrypted data can be decrypted, avoid third parties from obtaining plaintext information, improve the security performance of key transmission, and improve the efficiency and security of data transmission.
Smart Images

Figure CN118890154A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of security technology, and in particular to a hyperchaotic key one-time-one-pad transmission method, device, equipment, medium and product. Background Art
[0002] In the data transmission security protection, the one-time pad is considered to be the most secure protection method. Shannon discovered and proved the theoretical significance of the one-time pad method, and Soviet mathematician Kotelnikov proved the absolute security of the one-time pad at the same time. In order to ensure the security of data transmission, the one-time pad will use a new key to encrypt and decrypt data every time the two communicating parties transmit data.
[0003] The existing one-time pad transmission scheme generates a symmetric key stream by generating true random numbers for each data encryption and decryption transmission. However, this method requires the symmetric key to be shared between the sender and the receiver. This direct sharing of the symmetric key stream poses security risks. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes a hyperchaotic key one-time one-pad transmission method, device, equipment, medium and product to avoid the security risks caused by key stream sharing and improve the security performance of key transmission.
[0005] The embodiment of the present invention provides a hyperchaotic key one-time one-pad transmission method, comprising:
[0006] Use the generated symmetric key to decrypt the obtained chaotic parameters and large prime number parameters;
[0007] Determine a chaotic function according to the chaotic parameters, and use the chaotic function to generate a random number sequence;
[0008] Generate a key stream according to the generated random number sequence and the large prime number parameter;
[0009] The one-time pad data transmission is performed according to the key stream.
[0010] Preferably, determining a chaotic function according to the chaotic parameter, and using the chaotic function to generate a random number sequence comprises:
[0011] Determining a one-dimensional chaotic function according to the one-dimensional branch parameters in the chaotic parameters, and determining a reduced-dimensional hyperchaotic function according to the hyperchaotic parameters in the chaotic parameters;
[0012] Using the symmetric key as the initial value of the one-dimensional chaos, iterating the one-dimensional chaotic function for a preset number of times to determine an output sequence;
[0013] The initial value of the hyperchaos is determined according to the output sequence, and the determined initial value is input into the dimension reduction hyperchaos function to generate the random number sequence.
[0014] As a preferred solution, the symmetric key generation process includes:
[0015] True random numbers generated by SRAM PUF in a trusted execution environment;
[0016] The symmetric key is generated according to the true random number.
[0017] As a preferred solution, determining the initial value of hyperchaos according to the output sequence includes:
[0018] The initial value of the hyperchaos is selected from the output sequence in a reverse order.
[0019] As a preferred solution, performing one-time one-key data transmission according to the key stream includes:
[0020] storing the keystream in a trusted execution environment;
[0021] When the data to be encrypted is sensitive data, encrypting the data to be encrypted using the key stream in the trusted execution environment;
[0022] When the data to be encrypted is not sensitive data, the key stream is taken out from the trusted execution environment, and the key stream is used to encrypt the data to be encrypted in a conventional environment.
[0023] As a preferred solution, the hyperchaotic parameter determination process specifically includes:
[0024] Selecting and presetting preliminary values of two-dimensional parameters of two two-dimensional hyperchaotic functions;
[0025] Determine the dimension reduction parameter of the dimension reduction hyperchaotic function according to the distribution diagrams of the two two-dimensional hyperchaotic functions, and obtain the dimension reduction hyperchaotic function;
[0026] Identifying the distribution graph of the dimension-reduced hyperchaotic function according to a pre-trained artificial intelligence model;
[0027] When the recognition result is an invalid graph, the two-dimensional branch parameters in the two-dimensional parameters are adjusted within a preset range, the dimension reduction hyperchaotic function is re-determined, and the distribution graph of the re-determined dimension reduction hyperchaotic function is recognized;
[0028] When the recognition result is a valid graph, the latest two-dimensional parameters are used as the hyperchaotic parameters.
[0029] Furthermore, the dimension reduction parameter of the dimension reduction hyperchaotic function is determined according to the distribution diagrams of the two two-dimensional hyperchaotic functions, and the dimension reduction hyperchaotic function is obtained, including:
[0030] Determine the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of two two-dimensional hyperchaotic functions;
[0031] Constructing the functional relationship between the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the dimensionality reduction hyperchaotic function and the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of two two-dimensional hyperchaotic functions, and the dimensionality reduction parameters;
[0032] The functional relationship is solved according to the boundary constraints of the dimension reduction hyperchaotic function, the dimension reduction parameters are determined, and the dimension reduction hyperchaotic function is determined according to the dimension reduction parameters.
[0033] Further, determining the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of the two two-dimensional hyperchaotic functions includes:
[0034] For different two-dimensional hyperchaotic functions, the minimum number of minimum value distribution points and the maximum number of maximum value distribution points in the distribution diagram of the two-dimensional hyperchaotic function are counted respectively;
[0035] Determine the distribution of relatively concentrated areas and relatively discrete areas according to the size relationship between the maximum number and the minimum number;
[0036] A demarcation value that meets the preset demarcation condition is searched between the maximum value and the minimum value as the demarcation point between the relative clustering area and the relative discrete area, and the upper and lower boundaries of the relative clustering area and the upper and lower boundaries of the relative discrete area are determined.
[0037] Further, searching for a demarcation value that meets a preset demarcation condition between the maximum value and the minimum value includes:
[0038] When the maximum number is less than the minimum number, the minimum value is increased by a preset first step length, the current judgment value is updated, the current judgment number of the current judgment value is counted, and it is determined whether the current judgment number is greater than the minimum number;
[0039] If so, taking the current judgment quantity as the previous judgment quantity, increasing the current judgment value by the first step length, updating the current judgment value, re-counting the current judgment quantity, and determining whether the current judgment quantity is greater than the previous judgment quantity;
[0040] If not, calculate the ratio of the difference between the previous judgment quantity and the current judgment quantity to the cutoff value of the previous judgment quantity;
[0041] When the demarcation ratio is not greater than a preset first threshold, the current judgment quantity is used as the previous judgment quantity, the current judgment value is increased by the step length, the current judgment value is updated, the current judgment quantity is recounted, and the demarcation ratio is recalculated;
[0042] When the demarcation ratio is greater than the first threshold, the current judgment value is used as the demarcation value.
[0043] As a preferred solution, searching for a demarcation value that meets a preset demarcation condition between the maximum value and the minimum value includes:
[0044] When the maximum number is greater than the minimum number, reducing the maximum value by a preset second step length, updating the current judgment value, counting the current judgment number of the current judgment value, and determining whether the current judgment number is greater than the maximum number;
[0045] If so, taking the current judgment number as the previous judgment number, reducing the current judgment value by the first step length, updating the current judgment value, re-counting the current judgment number, and determining whether the current judgment number is greater than the previous judgment number;
[0046] If not, calculate the ratio of the difference between the previous judgment quantity and the current judgment quantity to the cutoff value of the previous judgment quantity;
[0047] When the demarcation ratio is not greater than a preset second threshold, the current judgment quantity is used as the previous judgment quantity, the current judgment value is reduced by the step length, the current judgment value is updated, the current judgment quantity is recounted, and the demarcation ratio is recalculated;
[0048] When the demarcation ratio is greater than the second threshold, the current judgment value is used as the demarcation value.
[0049] The embodiment of the present invention further provides a hyperchaotic key one-time pad transmission device, the device comprising:
[0050] A symmetric module, used for decrypting the obtained chaotic parameters and large prime number parameters using the generated symmetric key;
[0051] A chaos module, used for determining a chaos function according to the chaos parameters, and generating a random number sequence using the chaos function;
[0052] A key generation module, used to generate a key stream according to the generated random number sequence and the large prime number parameter;
[0053] The transmission module is used to perform one-time one-key data transmission according to the key stream.
[0054] Preferably, the chaos module is specifically used for:
[0055] Determining a one-dimensional chaotic function according to the one-dimensional branch parameters in the chaotic parameters, and determining a reduced-dimensional hyperchaotic function according to the hyperchaotic parameters in the chaotic parameters;
[0056] Using the symmetric key as the initial value of the one-dimensional chaos, iterating the one-dimensional chaotic function for a preset number of times to determine an output sequence;
[0057] The initial value of the hyperchaos is determined according to the output sequence, and the determined initial value is input into the dimension reduction hyperchaos function to generate the random number sequence.
[0058] Preferably, the process of generating the symmetric key by the symmetric module includes:
[0059] True random numbers generated by SRAM PUF in a trusted execution environment;
[0060] The symmetric key is generated according to the true random number.
[0061] Preferably, the chaos module is specifically used for:
[0062] The initial value of the hyperchaos is selected from the output sequence in a reverse order.
[0063] Preferably, the transmission module is specifically used for:
[0064] storing the keystream in a trusted execution environment;
[0065] When the data to be encrypted is sensitive data, encrypting the data to be encrypted using the key stream in the trusted execution environment;
[0066] When the data to be encrypted is not sensitive data, the key stream is taken out from the trusted execution environment, and the key stream is used to encrypt the data to be encrypted in a conventional environment.
[0067] Preferably, the hyperchaotic parameter determination process specifically includes:
[0068] Selecting and presetting preliminary values of two-dimensional parameters of two two-dimensional hyperchaotic functions;
[0069] Determine the dimension reduction parameter of the dimension reduction hyperchaotic function according to the distribution diagrams of the two two-dimensional hyperchaotic functions, and obtain the dimension reduction hyperchaotic function;
[0070] Identifying the distribution graph of the dimension-reduced hyperchaotic function according to a pre-trained artificial intelligence model;
[0071] When the recognition result is an invalid graph, the two-dimensional branch parameters in the two-dimensional parameters are adjusted within a preset range, the dimension reduction hyperchaotic function is re-determined, and the distribution graph of the re-determined dimension reduction hyperchaotic function is recognized;
[0072] When the recognition result is a valid graph, the latest two-dimensional parameters are used as the hyperchaotic parameters.
[0073] Furthermore, the dimension reduction parameter of the dimension reduction hyperchaotic function is determined according to the distribution diagrams of the two two-dimensional hyperchaotic functions, and the dimension reduction hyperchaotic function is obtained, including:
[0074] Determine the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of two two-dimensional hyperchaotic functions;
[0075] Constructing the functional relationship between the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the dimensionality reduction hyperchaotic function and the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of two two-dimensional hyperchaotic functions, and the dimensionality reduction parameters;
[0076] The functional relationship is solved according to the boundary constraints of the dimension reduction hyperchaotic function, the dimension reduction parameters are determined, and the dimension reduction hyperchaotic function is determined according to the dimension reduction parameters.
[0077] Furthermore, the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of the two two-dimensional hyperchaotic functions are determined, including
[0078] For different two-dimensional hyperchaotic functions, the minimum number of minimum value distribution points and the maximum number of maximum value distribution points in the distribution diagram of the two-dimensional hyperchaotic function are counted respectively;
[0079] Determine the distribution of relatively concentrated areas and relatively discrete areas according to the size relationship between the maximum number and the minimum number;
[0080] A demarcation value that meets the preset demarcation condition is searched between the maximum value and the minimum value as the demarcation point between the relative clustering area and the relative discrete area, and the upper and lower boundaries of the relative clustering area and the upper and lower boundaries of the relative discrete area are determined.
[0081] Further, searching for a demarcation value that meets a preset demarcation condition between the maximum value and the minimum value includes:
[0082] When the maximum number is less than the minimum number, the minimum value is increased by a preset first step length, the current judgment value is updated, the current judgment number of the current judgment value is counted, and it is determined whether the current judgment number is greater than the minimum number;
[0083] If so, taking the current judgment quantity as the previous judgment quantity, increasing the current judgment value by the first step length, updating the current judgment value, re-counting the current judgment quantity, and determining whether the current judgment quantity is greater than the previous judgment quantity;
[0084] If not, calculate the ratio of the difference between the previous judgment quantity and the current judgment quantity to the cutoff value of the previous judgment quantity;
[0085] When the demarcation ratio is not greater than a preset first threshold, the current judgment quantity is used as the previous judgment quantity, the current judgment value is increased by the step length, the current judgment value is updated, the current judgment quantity is recounted, and the demarcation ratio is recalculated;
[0086] When the demarcation ratio is greater than the first threshold, the current judgment value is used as the demarcation value.
[0087] As a preferred solution, searching for a demarcation value that meets a preset demarcation condition between the maximum value and the minimum value includes:
[0088] When the maximum number is greater than the minimum number, reducing the maximum value by a preset second step length, updating the current judgment value, counting the current judgment number of the current judgment value, and determining whether the current judgment number is greater than the maximum number;
[0089] If so, taking the current judgment number as the previous judgment number, reducing the current judgment value by the first step length, updating the current judgment value, re-counting the current judgment number, and determining whether the current judgment number is greater than the previous judgment number;
[0090] If not, calculate the ratio of the difference between the previous judgment quantity and the current judgment quantity to the cutoff value of the previous judgment quantity;
[0091] When the demarcation ratio is not greater than a preset second threshold, the current judgment quantity is used as the previous judgment quantity, the current judgment value is reduced by the step length, the current judgment value is updated, the current judgment quantity is recounted, and the demarcation ratio is recalculated;
[0092] When the demarcation ratio is greater than the second threshold, the current judgment value is used as the demarcation value.
[0093] An embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements a hyper-chaotic key one-time one-pad transmission method as described in any of the above embodiments.
[0094] An embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a hyper-chaotic key one-time pad transmission method as described in any of the above embodiments.
[0095] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the method described in any of the above embodiments when executed by a processor.
[0096] Compared with the prior art, the present invention provides a hyperchaotic key one-time secret transmission method, device, equipment, medium and product, which obtains chaotic parameters and large prime number parameters by decrypting with a generated symmetric key; determines a chaotic function according to the chaotic parameters, and uses the chaotic function to generate a random number sequence; generates a key stream according to the generated random number sequence and the large prime number parameters; and performs one-time secret data transmission according to the key stream. The present application scheme is based on the preliminary encryption of symmetric keys, and combines chaos theory to generate a one-time secret key stream at both ends, and uses the generated key stream to perform one-time secret data transmission. While ensuring that the encrypted data can be decrypted, the third party cannot obtain the plaintext information, which can avoid the security risks caused by key stream sharing and improve the security performance of key transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] Figure 1 It is a flow chart of a hyperchaotic key one-time-one-pad transmission method provided by an embodiment of the present invention;
[0098] Figure 2 is a bifurcation diagram corresponding to the branch parameters provided in an embodiment of the present invention;
[0099] Figure 3 is a schematic diagram of the structure of a transmission system provided by an embodiment of the present invention;
[0100] Figure 4 It is a schematic diagram of the data encryption and decryption transmission process provided by an embodiment of the present invention;
[0101] Figure 5 It is a schematic diagram of the flow of a data packet encryption process provided by an embodiment of the present invention;
[0102] Figure 6 is the two-dimensional hyperchaotic function X provided by the embodiment of the present invention n Distribution map of
[0103] Figure 7 is the two-dimensional hyperchaotic function Y provided by the embodiment of the present invention n Distribution map of
[0104] Figure 8 is a schematic diagram of the structure of an artificial intelligence model provided by an embodiment of the present invention;
[0105] Fig. 9 is a distribution diagram of a dimensionality reduction hyperchaotic function provided by an embodiment of the present invention;
[0106] Fig.10It is a distribution diagram of a one-dimensional logistic function when u=3.9 and the initial value is 0.4 provided by an embodiment of the present invention;
[0107] Fig.11 It is a structural schematic diagram of a hyperchaotic key one-time pad transmission device provided by an embodiment of the present invention;
[0108] Fig.12 It is a structural diagram of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0109] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0110] It can be understood that the various embodiments described below can be combined or combined in a logical manner, and the embodiments of the present invention will not describe various combinations one by one.
[0111] In data transmission, the content needs to be covered with information to prevent it from being obtained by a third party. Secure data transmission based on a key system is now a common way to handle data transmission security. The plain text to be transmitted is encrypted with a key, and the encrypted ciphertext cannot be obtained without the decryption key of the other party. According to the generation and use of keys, they are divided into symmetric keys and asymmetric keys. Symmetric keys use the same key for encryption and decryption, while asymmetric keys generate a pair of keys when they are generated, called public keys and private keys, respectively. The public key is used for encryption and the private key is used for decryption.
[0112] The currently more commonly used data transmission confidentiality scheme is to use an asymmetric key mechanism to secretly share the generated symmetric key, and always use this symmetric key during data transmission. This is different from a one-time pad, which is a key that is updated once every time a data packet is transmitted during data transmission. Therefore, there are still security risks in always using the same key for data transmission.
[0113] In order to ensure the security of data transmission, a new key will be used to encrypt and decrypt data each time the two communicating parties transmit data.
[0114] The existing one-time pad transmission scheme generates a symmetric key stream by generating true random numbers for each data encryption and decryption transmission. However, this method requires the symmetric key to be shared between the sender and the receiver. This direct sharing of the symmetric key stream poses security risks.
[0115] In view of the above technical problems, this application provides a hyperchaotic key one-time one-pad transmission method, see Figure 1 , is a flow chart of a method for transmitting a hyperchaotic key once and for all provided in an embodiment of the present invention, the method comprising the following steps:
[0116] Step S1, using the generated symmetric key to decrypt the obtained chaotic parameters and large prime number parameters;
[0117] Step S2, determining a chaotic function according to the chaotic parameters, and using the chaotic function to generate a random number sequence;
[0118] Step S3, generating a key stream according to the generated random number sequence and the large prime number parameter;
[0119] Step S4, performing one-time one-key data transmission according to the key stream.
[0120] When this embodiment is implemented specifically, this case is applied to the communication end during specific execution. During specific communication, it first determines the chaotic parameters and large prime number parameters by generating a symmetric key.
[0121] The symmetric key keyg is generated according to the generation principle of the symmetric key. The symmetric key keyg is mainly used to protect the data transmission security problem when the communicating parties shake hands for the first time, that is, the chaotic parameters and large prime parameters obtained by the communicating parties during the handshake are encrypted with a symmetric key, so the symmetric key is needed to decrypt the obtained chaotic parameters and large prime parameters to obtain the chaotic parameters and large prime parameters.
[0122] Large prime number parameters are used to generate key streams. According to the mathematical principle of discrete logarithms, in the case of a large prime number, the following process is difficult to crack. The two ends of the data transmission are called Client1 and Client2.
[0123] First, large prime numbers p and G are shared between Client1 and Client2 without encryption and can be made public in plain text.
[0124] Client1 generates a random number a and calculates A=G a (mod p), share A with Client 2 and send it in plain text.
[0125] Client2 generates a random number b and calculates B=G b (mod p), share B with Client 1 and send it in plain text.
[0126] For the key K on Client1 a =B a (mod p)=(G b (mod p))a (mod p)=(G ba (mod p))(mod p).
[0127] For the key K on Client2 b =A b (mod p)=(G a (mod p)) b (mod p)=(G ab (mod p))(mod p).
[0128] Therefore, when both ends share the random number, the key K generated by both ends a =K b .
[0129] In the above process, mathematical principles ensure that the symmetric key is invisible, and at the same time, key sharing is achieved at both ends of the data transmission. However, in the whole process, both parties need to share parameters many times, which will affect the efficiency requirements of data transmission. Under the requirement of non-one-time pad, this method is undoubtedly preferred, but in the case of one-time pad, this method is not applicable, but it provides a relatively high security for the start of the whole task.
[0130] The existing symmetric key generation mechanism often fails to meet the one-time pad requirement when a large number of symmetric keys are generated. It can be seen from the symmetric key generation mechanism that according to the existing system, when generating symmetric keys, it is necessary to continuously interact with large prime numbers G and P and related intermediate processes, which will waste a lot of transmission resources. If an asymmetric key transmission method is adopted, the asymmetric key needs to be transmitted before each data packet is transmitted, which is obviously unreasonable. In the mode of generating key streams, the same key is often used for repeated salting iterations. Although the number of salts ensures the security of the key, it will consume a lot of storage resources as a huge number of keys are generated.
[0131] In this case, based on the initial encryption based on symmetric keys, chaos theory is combined to generate a one-time key stream at both ends. The number of random numbers generated by the chaos function is controllable and fast, so there is no need to iterate the key with salt, and the length of the key is also controllable, which will save storage space. While ensuring one-time encryption at both ends of the communication, there is no need for the two ends to exchange symmetric keys in real time, ensuring communication efficiency and security.
[0132] Most classical dynamic equations are established based on linear equations. One characteristic of linear equations is countable additivity, that is, there is a strong pattern in the changes of adjacent numbers, and the causal relationship between the variables and the dependent variable of the entire equation can often be obtained through linear equations. The dynamic equations established based on non-linear equations have strong discreteness and are particularly sensitive to initial values. In 1963, Lorenz discovered chaotic motion on a strange attractor when studying the atmospheric convection model, which means that the solutions of the atmospheric convection equation will be attracted to a relatively strange area. In this area, the distribution of the solutions of the equation is completely random according to different initial values and has no possibility of prediction. After a sufficient number of iterations, the positions of the solutions of the equation are completely randomly distributed within a specific area.
[0133] Chaotic functions have various forms. The system dimension is divided by the number of independent variables, and the one-dimensional logistic function and two-dimensional hyperchaotic function are used for illustration.
[0134] The form of the one-dimensional logistic function is: x n+1 = x n u(1 - x n ), where 0 ≤ u ≤ 4 and 0 < x n ≤ 1.
[0135] u is used as a bifurcation parameter, and the bifurcation of the result distribution controlled by it is shown in Figure 2 , which is the bifurcation diagram corresponding to the bifurcation parameter provided by the embodiments of the present invention. Among them, the abscissa is the bifurcation parameter u, and the ordinate is X n .
[0136] When 3.5699456 < u ≤ 4, it enters the chaotic state. When the u value is the same, different initial values are iterated multiple times.
[0137] It can be seen from the solution distribution diagram that when the equation enters the chaotic state, as the number of iterations increases, the positions of the solutions of the equation become more and more random. After iteration, the positions of the solutions of the initial values that are very close to each other become more and more divergent, and it completely does not have the property of countable additivity of linear equations.
[0138] It can be seen that chaotic parameters such as the initial value and bifurcation parameter of the chaotic function have a great influence on the solutions of the chaotic function. Without knowing the initial value and bifurcation parameter, for other parameter chaotic functions, due to their randomness, the solutions of the chaotic function cannot be determined.
[0139] Therefore, in this case, after obtaining the chaotic parameters, the chaotic function can be correspondingly determined, and a random sequence can be generated based on the chaotic function. Since the chaotic parameters are obtained through symmetric key interaction, the chaotic functions obtained by both communication parties are the same.
[0140] A key stream is generated according to the generated random number sequence and the large prime number parameter, and the random number sequence that can be generated based on the same initial value is also the same as the key stream.
[0141] The generated key stream is then used to transmit secret data once, ensuring that the encrypted data can be decrypted while preventing a third party from obtaining the plaintext information, thus solving the problem of the sender's data being both decryptable and undecryptable.
[0142] In another embodiment provided by the present invention, the chaotic function used in this case includes a one-dimensional chaotic function and a hyperchaotic parameter, and the process of determining the chaotic function to generate a random number sequence in step S2 specifically includes:
[0143] Determining a one-dimensional chaotic function according to the one-dimensional branch parameters in the chaotic parameters, and determining a reduced-dimensional hyperchaotic function according to the hyperchaotic parameters in the chaotic parameters;
[0144] The one-dimensional chaotic function is in the form of: n+1 =x n u(1-x n ), where 0≤u≤4, 0 <x n ≤1.
[0145] The one-dimensional chaotic function can be uniquely determined according to the one-dimensional branch parameter u in the chaotic parameters.
[0146] For hyperchaotic functions, whether an equation has chaotic properties can be identified by the Lyapunov index. The number of Lyapunov exponents of an equation is the same as the dimension of the equation, that is, one-dimensional has one Lyapunov index, and two-dimensional has two Lyapunov indexes. When the number of Lyapunov index data is greater than or equal to 2 and all Lyapunov indexes are greater than zero, it is called hyperchaos.
[0147] The two-dimensional hyperchaotic function can be expressed as follows: n+1 =f1(x n ,y n ), y n+1 =f2(x n ,y n ).
[0148] Among them, f1(x n ,y n )=a1+a2x n +a3x n 2 +a4y n +a5y n 2 +a6x n y n .
[0149] f2(x n ,y n )=b1+b2x n +b3x n 2 +b4y n +b5y n 2 +b6x n y n .
[0150] a1...a6, b1...b6 are the parameters to be found.
[0151] Since the mixed terms and quadratic terms of the equation will affect the calculation speed, the above equation can be simplified while retaining the hyperchaotic characteristics of the equation as follows: f1(x n ,y n )=a4y n +a5yn2、f2(x n ,y n )=b2x n +b4y n .
[0152] Two-dimensional data still needs to be reduced in dimension in the process of generating random numbers. To ensure the distribution of data after dimension reduction, the following formula can be used for dimension reduction. Assume that the hyperchaotic function of the data after dimension reduction is Fn, then:
[0153] F n =m1X n +m2Y n +m3.
[0154] According to the hyperchaotic parameters m1, m2 and m3 in the chaotic parameters, a dimension-reduced hyperchaotic function can be determined.
[0155] The generated symmetric key is used as the initial value of the one-dimensional chaotic function, and it is iterated for more than 20 times. The number of iterations is determined according to the actual number of tasks. According to the principle of the above chaotic function, when the iteration exceeds 4 or 5 times, the results will be differentiated. In order to ensure the randomness of the results, the number of iterations of the one-dimensional chaotic function and hyperchaos is set to a minimum of 20 times. Suppose the output sequence of the one-dimensional chaotic function is [o1, o2, ..., o n ].
[0156] When the two parties are communicating, n one-dimensional chaotic sequences are generated according to the number of tasks n to be sent, and the initial value of the hyperchaos is determined.
[0157] The hyperchaotic function generates n+1 random number sequences [t1, t2, ..., t n+1 ], according to K a =K b=G1 ti mod p, i = 1, ..., n + 1, generates the key stream key1, key2, ..., key n+1 .
[0158] The u value of the one-dimensional chaotic sequence is shared in advance through the symmetric key keyg. Since the chaotic parameters of both A and B are the same, the sequence generated by the same initial value is also the same, so the key stream of both A and B is also the same.
[0159] It should be noted that the chaotic parameters proposed in this embodiment use a random number generation method combining a one-dimensional chaotic function and a hyperchaotic function. In other embodiments, a method of generating random numbers by determining a chaotic function based on chaotic parameters may be used, for example, a one-dimensional chaotic function or a hyperchaotic function may be used alone.
[0160] In the existing random data generation method based on chaotic function, the generated key is still the original mechanism key generation method, and the generated random number is just a cheap replacement for the original random number, and the result distribution performance of the one-dimensional chaotic function is still relatively poor compared to the two-dimensional hyperchaotic distribution result. The parameter update of the existing chaotic function is still relatively traditional, relying on manual or random number selection within a certain range. The result is that when unsupervised parameter update is required, whether the distribution characteristics of the updated results are more in line with the requirements is unknown. Therefore, this case uses a one-dimensional chaotic function and a hyperchaotic function, and uses a one-dimensional logical chaotic function + a two-dimensional hyperchaotic function mechanism to generate random numbers. Therefore, a one-dimensional logical chaotic function + a two-dimensional hyperchaotic function will be used in the one-time one-key process to generate random numbers, and a symmetric key stream will be formed unilaterally to solve the duality problem of data transmission and improve the efficiency of key generation.
[0161] In another embodiment provided by the present invention, see Figure 3 , is a schematic diagram of the structure of the transmission system provided in an embodiment of the present invention.
[0162] The solution provided in this application is a one-time one-pad transmission method of a hyperchaotic key based on a trusted execution environment for one-time one-pad data transmission.
[0163] The trusted execution environment has a high degree of hardware dependence, thus ensuring a high level of security protection. In a server or other terminal device, a separate operating environment based on memory and CPU is opened up to protect the applications and data required for operation and storage. The trusted execution environment ensures the security of the operating environment by establishing a root of trust in the hardware device. The root of trust is directly related to the unique physical characteristics of the device, thereby improving the security of the trusted execution environment.
[0164] In key generation, random numbers determine the security of the key, and a good random number has higher security characteristics. The reason why random numbers are used to generate keys is that the unpredictable characteristics of random numbers are utilized. According to statistical characteristics, the ideal random number distribution is relatively uniform, and the specific value of the random number cannot be calculated using statistical methods. The noise and voltage instantaneous value change characteristics in real life all have such characteristics. People call random numbers generated by physical means such as noise and voltage instantaneous value changes true random numbers, and random numbers generated by mathematical principles and computer principles pseudo-random numbers, including linear congruential method, multiple recursive method, Fibonacci method, shift register method, inverse congruential method, etc. Since true random numbers are generated based on actual physical characteristics, the generation efficiency of true random numbers is low, but the quality is high. Pseudo-random numbers are generated based on mathematical algorithms and computer principles, with high generation efficiency but low quality. In the true random number generation scheme, the method of generating random numbers based on the physical characteristics of the hardware itself can be called PUF method. The full name of PUF is Physically Unclonable Function, which is physically unclonable function. The function in PUF does not refer to the concept of mathematical function. It refers to the unique physical characteristics of an object that cannot be cloned. Currently, there are two types of random numbers based on PUF: SRAM PUF and FLASH PUF.
[0165] In the trusted execution environment of the server, the symmetric key generated by the random number generated by the PUF is used as the initial value of the one-dimensional chaotic function.
[0166] Since the security of true random numbers is very high and they are placed in a trusted execution environment and cannot be directly accessed from outside, the security of the generated symmetric keys is also high and they will not leave the trusted execution environment. The data series generated by using the symmetric key as the initial value of the one-dimensional chaotic equation will also be difficult to crack. From the perspective of the outside world, the values of these data series are random. These random values are used as the initial values of the hyperchaotic function to further ensure the randomness of the initial values.
[0167] SRAM PUF is used to generate true random numbers, and the symmetric key keyg is generated according to the principle of symmetric key generation. The symmetric key keyg is mainly used to protect the data transmission security of the first handshake between the two communicating parties. After the symmetric key is generated, the symmetric key is used to share the parameters related to the hyperchaotic and one-dimensional chaotic functions and the new large prime number G1 used to generate the key stream between the two communicating parties. All parameter encryption and decryption protection operations are performed in the trusted execution environment of both parties to ensure the security of the parameters.
[0168] In another embodiment provided by the present invention, when determining the initial value of the dimension reduction hyperchaotic function, the method of taking values in reverse order is adopted to select the initial value of the hyperchaotic function from the output sequence.
[0169] That is, when the two parties formally communicate data for the first time, the last one-dimensional chaotic sequence is selected as the initial value of hyperchaos.
[0170] In another embodiment provided by the present invention, when a key stream is used for one-time data transmission, since the present case is executed in a trusted execution environment, the trusted execution environment needs to be considered when using the key, see Figure 4 , is a schematic diagram of the data encryption and decryption transmission process provided by an embodiment of the present invention.
[0171] When the communicating parties A and B perform one-time secret transmission, after obtaining the key stream, the key stream is stored in the trusted execution environment TEE.
[0172] When the encrypted data is sensitive data, the data encryption and decryption are performed in a trusted execution environment, the key stream is used to encrypt the data to be encrypted in the trusted execution environment, and the data is transmitted through a data network after encryption.
[0173] When the data is non-sensitive regular data, encryption and decryption operations can be performed in a regular environment. The key stream needs to be taken out from the trusted execution environment, and the key stream is used to encrypt the data to be encrypted in the regular environment.
[0174] The encryption and decryption algorithms can be processed according to the existing encryption and decryption algorithms, see Figure 5 , is a flow chart of a data packet encryption process provided by an embodiment of the present invention.
[0175] The key stream is stored in the order of labels. After the encryption is completed, the encrypted transmission data packet is attached with a label plaintext to identify the number of data packets sent, corresponding to the corresponding key stream. At the same time, a flag bit is added to the plaintext of the data packet to be encrypted to indicate whether the chaotic parameters need to be changed. When this bit is 1, it means that the chaotic parameters will be changed, and the chaotic parameters to be changed and the initial value of the one-dimensional chaos are attached. When it is 0, it means that the chaotic function data will not be updated. When the other party receives and decrypts the data and finds that the chaotic parameters need to be updated, the chaotic parameters can be updated and the key can be updated again.
[0176] In another embodiment provided by the present invention, when determining the hyperchaotic parameters, the following steps are specifically performed:
[0177] The two-dimensional hyperchaotic function can be expressed as follows: n+1 =f1(x n ,y n ),y n+1 =f2(x n ,y n ).
[0178] Among them, f1(xn ,y n )=a1+a2x n +a3x n 2 +a4y n +a5y n 2 +a6x n y n .
[0179] f2(x n ,y n )=b1+b2x n +b3x n 2 +b4y n +b5y n 2 +b6x n y n .
[0180] Since the mixed terms and quadratic terms of the equation will affect the calculation speed, the above equation can be simplified while retaining the hyperchaotic characteristics of the equation, as follows:
[0181] f1(x n ,y n )=a4y n +a5y n 2 ;
[0182] f2(x n ,y n )=b2x n +b4y n ;
[0183] By selecting the initial values of the two-dimensional parameters of the two-dimensional hyperchaotic functions, a4=1.55, a5=-1.3, b2=-1.1, b4=0.1, the two Lyapunov exponents of the equation are 0.238 and 0.166 respectively. All Lyapunov exponents are greater than zero, indicating that the system has chaotic characteristics. Taking a4 as a variable, it can be seen from the bifurcation diagram that when 1.55≤a4<=1.6, the equation enters a chaotic state. Therefore, when generating random numbers, the equation parameters can be updated by adjusting the value of a4, thereby improving the security characteristics of the random number generation equation.
[0184] From the principle of chaotic function, we know that when the value of a4 is changed, the distribution of the entire chaotic result will also change. By changing a4 and then changing the distribution properties of the entire hyperchaotic function, the safety level can be improved.
[0185] Let the state quantity X n and Y nThe generated iterative sequences are [X1, X2,..., X n , [Y1, Y2,..., Y n , see Figure 6 , which is the distribution diagram of the two-dimensional hyperchaotic function X n provided by the embodiment of the present invention. See Figure 7 , which is the distribution diagram of the two-dimensional hyperchaotic function Y n provided by the embodiment of the present invention.
[0186] Through the above process, the distributions of X n and Y n can be obtained. Then, according to the dimensionality reduction formula described in the chaotic function part, the dimensionality-reduced distribution F n can be obtained.
[0187] Regarding whether the generated F n meets the distribution requirements, an artificial intelligence model is used to identify the distribution diagram of F n . After the identification passes, the update of the hyperfunction parameters can be completed. The artificial intelligence model is trained using the Alexnet architecture.
[0188] When training the artificial intelligence model, the dataset regards the valid diagrams and invalid diagrams of the F n distribution and the one-dimensional chaotic distribution as invalid diagrams as materials. In the range of 1.55 ≤ a4 ≤ 1.6, multiple distribution diagrams of F n are generated. The valid diagrams are labeled as 01, and the invalid diagrams are labeled as 00. In the one-dimensional chaotic function 3.5699456 < u ≤ 4, distribution diagrams are generated under different initial values and labeled as 00. The artificial intelligence model is trained to obtain the ability to distinguish whether the F n distribution is valid.
[0189] After obtaining the distribution characteristics of the dimensionality-reduced hyperchaotic function F n , the trained artificial intelligence model is used to identify whether the distribution characteristics of F n meet the requirements of the random number distribution. If it is satisfied, the relevant parameters of the existing settings are retained. If not, the program adjusts the two-dimensional branch parameters in the two-dimensional parameters, that is, adjusts a4 for fine-tuning until the distribution of F n meets the requirements. When the recognition result is a valid diagram, the latest two-dimensional parameters are used as the hyperchaotic parameters, and the parameters are fixed and sent into the trusted execution environment.
[0190] In the trusted execution environment, the hyperchaotic function and the dimensionality reduction equation are generated through the obtained determined hyperchaotic parameters, and these are shared with both communication parties using the symmetric key key through the parameters.
[0191] It should be noted that see Figure 8, is a schematic diagram of the structure of the artificial intelligence model provided by an embodiment of the present invention. The entire model has 8 layers of convolutional neural network, the first 5 layers are convolutional layers, and the last three layers are fully connected layers.
[0192] The original distribution image is processed into a 227*227 image, and after random processing it becomes 224*224.
[0193] The convolution input of the convolution layer C1 is 227*227*3, the convolution kernel size is 11*11*3, the number is 96, the edge is not expanded, that is, padding=0, stride=4, and the FeatureMap size is 55*55*96. The activation function is Relu; the pooling kernel size of the pooling layer is 3*3, the edge is not expanded, that is, padding=0, stride=2, and the output of FeatureMap C1 is 27*27*96.
[0194] The convolution input of the convolution layer C2 is 27*27*96, the convolution kernel size is 5*5*96, the number is 256, the padding of the expanded edge is 2, the stride is 1, and the FeatureMap size is 27*27*256; the activation function is Relu; the pooling kernel size of the pooling layer is 3*3, the edge is not expanded, that is, padding=0, the stride is 2, and the output of FeatureMap, that is, C2, is 13*13*256;
[0195] The convolution input of convolution layer C3 is 13*13*256, the convolution kernel size is 3*3*256, the number is 384, the padding edge is 1, the stride is 1, the FeatureMap size is 13*13*384; the activation function is Relu; there is no pooling layer, that is, the output of C3 is 13*13*384;
[0196] The convolution input of convolution layer C4 is 13*13*384, the convolution kernel size is 3*3*384, the number is 384, the expansion edge is padding=1, the step length is stride=1, the FeatureMap size is 13*13*384; the activation function is Relu; there is no pooling layer, that is, the output of C4 is 13*13*384;
[0197] The convolution input of the convolution layer C5 is 13*13*384, the convolution kernel size is 3*3*384, the number is 256, the padding of the expanded edge is 1, the stride is 1, and the FeatureMap size is 13*13*256; the activation function is Relu; the pooling kernel size of the pooling layer is 3X3, the edge is not expanded, that is, padding=0, the stride is 2, and the output of FeatureMap, that is, C1, is 6*6*256;
[0198] The fully connected layer FC1 is implemented by convolution, with an input of 6*6*256, a convolution kernel size of 6*6*256, a number of 4096, no edge expansion padding = 0, stride = 1, and a FeatureMap size of 1*1*4096; the activation function is Relu; some neural nodes are removed in the dropout process to prevent overfitting, and the output of FC1 is 1*1*4096;
[0199] The fully connected layer FC2 is implemented by convolution, with an input of 1*1*4096; the activation function is Relu; some neural nodes are removed in the dropout process to prevent overfitting, and the output of FC2 is 1*1*4096;
[0200] The fully connected layer FC3 is implemented by convolution, with an input of 1*1*4096; the activation function is softmax, the softmax is 2, and the output of FC3 is 1*1*2.
[0201] It should be noted that the specific structure of the above-mentioned artificial intelligence model is only used as a preferred implementation method and does not constitute a specific limitation on the artificial intelligence model of this scheme. In other embodiments adopted in this case, other models may also be used for distribution map recognition.
[0202] Symmetric keys are directly calculated and generated based on the chaos principle, which effectively saves the time of key generation and can effectively increase the number of keys generated. The key calculation is performed in a trusted execution environment, which has the advantages of higher security and higher key generation efficiency.
[0203] The artificial intelligence model is used to automatically process parameter updates, but the frequency of updates is still manually controlled. This automated parameter processing process is mainly to improve the security of the model. When security is guaranteed, parameter updates can be omitted and parameters can be kept stable. When the two parties in communication just start communicating, equation parameters can also be specified while ensuring security and function performance. According to the principles of chaos theory, even if the equation parameters are public, the security of the entire system is still guaranteed as long as the initial value selection is safe. However, in order to improve the security performance of the entire system, the ability to update parameters based on the artificial intelligence model is added. However, the entire update process requires a certain amount of consumption. The update of this process is an operation process outside the communication task and does not affect real-time communication.
[0204] The AI model is used to update the parameters of the chaotic function, which improves the automatic processing capability and makes the equation parameters more unpredictable. The unsupervised equation parameter update capability is improved. The key generation process is simplified and the operation is performed in a trusted execution environment, which increases the security and generation efficiency of the key. The entire solution can effectively improve the performance of the one-time pad.
[0205] In another embodiment provided by the present invention, the dimension-reduced hyperchaotic function F n =m1X n +m2Y n +m3.
[0206] According to the hyperchaotic parameters m1, m2 and m3 in the chaotic parameters, a dimension-reduced hyperchaotic function can be determined.
[0207] In order to solve m1, m2 and m3, we need to change X n and Y n The distribution diagram of the two two-dimensional hyperchaotic functions is divided into a relative aggregation area and a relative discrete area, and the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagram of the two two-dimensional hyperchaotic functions are determined.
[0208] Given a numerical range for the corresponding region, assuming that the first two-dimensional hyperchaotic function X n The upper and lower boundaries of the relative aggregation area are X 12 and X 11 The upper and lower boundaries of the discrete region are X 22 and X 21 , the second two-dimensional hyperchaotic function Y n The upper and lower boundaries of the relative aggregation area are Y 12 and Y 11 , the upper and lower boundaries of the relative discrete area are Y 22 and Y 21 .
[0209] The transformed dimensionality-reduced hyperchaotic function F nThe upper and lower boundaries of the relative aggregation area are F 12 and F 11 The upper and lower boundaries of the relative discrete region are F 22 and F 21 .
[0210] Build F 12 、F 11 、F 22 and F 21 Same as X 22 , X 21 , X 12 , X 11 , Y 22 , Y 21 , Y 12 and Y 11 The functional relationship between them is:
[0211] F 21 =X 21 *m1+Y 21 *m2+m3;
[0212] F 22 =X 22 *m1+Y 22 *m2+m3;
[0213] F 11 =X 11 *m1+Y 11 *m2+m3;
[0214] The boundary of Fn is constrained, and the dimension-reduced hyperchaotic function is mirror-symmetric with respect to the boundary of the discrete region, so: 22 =-F 21 , the lower boundary of the relative clustering area is not less than the upper boundary of the relative discrete area, that is, F 11 ≥F 22 .
[0215] After analysis, only X 11 ≤X 22 , Y 11 ≤Y 22 If
[0216] When X 11 =X 22 And Y 11 =Y 22 When , there is no constraint on m1 and m2;
[0217] When Y 11 ≠Y 22 When m2<((X 11 -X 22 )*m1 / (Y 22 -Y11 ));
[0218] When Y 11 =Y 22 And X 11 ! =X 22 , m1<0.
[0219] From the above constraint relationship, it can be seen that m1 and m2 have opposite positive and negative properties. When taking values, since the obtained data distribution may not meet the diffusion requirements, the value can be fine-tuned around 1 in consideration of computing performance. After the one-dimensional generated sequence is obtained, the data is normalized and restricted to the interval [0,1].
[0220] Take X 11 =-0.1,X 12 =0.5, Y 11 =-0.5, Y 12 =0.2,X 21 =-1.2, X 22 =-0.1, Y 21 =0.2, Y 22 =1.5, m1=1, m2=-1, m3=1.5 is calculated. After normalization, we have F n =(X n -Y n +1.5) / 2.5.
[0221] See also Fig. 9 , is a distribution diagram of the dimension reduction hyperchaotic function provided by an embodiment of the present invention, see Fig.10 , is a distribution diagram of a one-dimensional logistic function when u=3.9 and the initial value is 0.4 provided by an embodiment of the present invention.
[0222] By comparing the distribution diagrams, it can be seen that the randomness of the distribution of the reduced-dimensional hyperchaotic function is significantly better than that of the one-dimensional logistic function.
[0223] The dimension reduction parameters are determined by solving, and the dimension reduction hyperchaotic function is determined according to the dimension reduction parameters. The randomness of the dimension reduction hyperchaotic function is higher than that of the one-dimensional chaotic function, and the random numbers generated thereby are more secure.
[0224] In another embodiment provided by the present invention, when determining the upper and lower boundaries of the relative concentrated area and the upper and lower boundaries of the relative discrete area, reference is made to X n and Y n The horizontal axis is the number of iterations, and the vertical axis is the distribution value. In order to divide the clustered area and the discrete area, the number of data points in each row is selected as the density index for data statistics. When the number of points in each row exceeds a certain threshold, it is used as the dividing boundary. Specifically, X nThe distribution of is used as an example to illustrate the boundary determination method. The process is as follows:
[0225] The maximum value X of the statistical data distribution max and minimum value X min .
[0226] Calculate the maximum value X max and minimum value X min The number of data points at is the maximum number numberX max and the minimum number numberX min .
[0227] According to the maximum number numberX max and the minimum number numberX min The size relationship between the two can be used to determine the distribution of relatively concentrated areas and relatively discrete areas;
[0228] If the maximum number numberX max Less than the minimum number numberX min , then the relative clustering area is below the relative discrete area, so let X 12 =X max , X 21 =X min , the minimum value of the distribution graph is taken as the lower boundary of the relative clustering area, and the maximum value of the distribution graph is taken as the upper boundary of the relative discrete area.
[0229] If the maximum number numberX max Equal to the minimum number numberX min When the minimum value is increased and the maximum value is decreased by the preset step size, the maximum value and the minimum value are updated, and the maximum and minimum quantities are re-determined for judgment.
[0230] If the maximum number numberX max Greater than the minimum number numberX min , then the relative clustering area is located above the relative discrete area, so let X 11 =X min , X 22 =X max , the minimum value of the distribution graph is taken as the lower boundary of the relative discrete area, and the maximum value of the distribution graph is taken as the upper boundary of the relative clustered area.
[0231] Then, according to the preset boundary conditions, the boundary value between the relatively discrete area and the relatively concentrated area is searched between the maximum value and the minimum value. The boundary conditions specifically limit the statistical number of distribution points up to the boundary value.
[0232] According to the distribution of the relatively concentrated area and the relatively discrete area, and the location of the dividing point, the upper and lower boundaries of the relatively concentrated area and the upper and lower boundaries of the relatively discrete area are determined.
[0233] When it is necessary to explain, this embodiment uses X n The distribution diagram is used as an example to illustrate the specific method of determining the upper and lower boundaries of the relative clustering area and the upper and lower boundaries of the relative discrete area. n The distribution diagram can also be solved using the same solution.
[0234] In another embodiment provided by the present invention, when searching for the boundary value between the relative discrete area and the relative concentrated area, when the relative concentrated area is located below the relative discrete area, the following steps are specifically performed:
[0235] That is, the maximum number numberX max Less than the minimum number numberX min When the relative clustering area is below the relative discrete area, the preset first step length d is selected and the current judgment value X new =X min +d, count the current judgment value X new The number of data points in the row, that is, the current judgment quantity numberX new , determine the current determination number numberX new Is it greater than the minimum number numberX? min ;
[0236] If the current judgment quantity numberX new ≤ minimum number numberX min , then calculate the demarcation ratio T = (numberX min -numberX new ) / numberX min , when T≤50%, the current judgment quantity numberX new As the previous judgment quantity numberX new1 , continue to increase X new The value of X new =X new + d, recalculate the demarcation ratio T = (numberX new1 -numberX new ) / numberX new1 When T>50%, it is considered that X new It is the dividing point between relatively concentrated areas and relatively discrete areas.
[0237] If the current judgment quantity numberX new >Minimum number numberX min, then the current judgment quantity numberX new As the previous judgment quantity numberX new1 , continue to increase X new The value of X new =X new +d; Statistics of current judgment value X new The number of data points in the row, that is, the current judgment quantity numberX new , determine the current determination number numberX new Is it greater than the previous judgment quantity numberX new1 .
[0238] If the current judgment quantity numberX new Greater than the previous judgment quantity numberX new1 , then calculate the demarcation ratio T = (numberX new1 -numberX new ) / numberX new1 , when T≤50%, the current judgment quantity numberX new As the previous judgment quantity numberX new1 , continue to increase X new The value of X new =X new + d, recalculate the demarcation ratio T = (numberX new1 -numberX new ) / numberX new1 When T>50%, it is considered that X new It is the dividing point between relatively concentrated areas and relatively discrete areas.
[0239] When X new When numberX is the demarcation point, max <numberX min In this case, let X 22 =X 11 =X new , then the upper and lower boundaries of the relative clustering area and the upper and lower boundaries of the relative discrete area are determined accordingly.
[0240] In another embodiment provided by the present invention, when searching for the boundary value between the relative discrete area and the relative concentrated area, when the relative concentrated area is located above the relative discrete area, the following steps are specifically performed:
[0241] That is, the maximum number numberX max Greater than the minimum number numberX min When the relative clustering area is located above the relative discrete area, the preset second step length k is selected, and the current judgment value X new=X ma -k, count the current judgment value X new The number of data points in the row, that is, the current judgment quantity numberX new , determine the current determination number numberX new Is it greater than the maximum number numberX? max ;
[0242] If the current judgment quantity numberX new ≤ maximum number numberX max , then calculate the demarcation ratio T = (numberX max -numberX new ) / numberX max , when T≤50%, the current judgment quantity numberX new As the previous judgment quantity numberX new1 , continue to reduce X new The value of X new =X new -k, recalculate the demarcation ratio T = (numberX new1 -numberX new ) / numberX new1 When T>50%, it is considered that X new It is the dividing point between relatively concentrated areas and relatively discrete areas.
[0243] If the current judgment quantity numberX new > Maximum number numberX max , then the current judgment quantity numberX new As the previous judgment quantity numberX new1 , continue to reduce X new The value of X new =X new -k; count the current judgment value X new The number of data points in the row, that is, the current judgment quantity numberX new , determine the current determination number numberX new Is it greater than the previous judgment quantity numberX new1 .
[0244] If the current judgment quantity numberX new Greater than the previous judgment quantity numberX new1 , then calculate the demarcation ratio T = (numberX new1 -numberX new ) / numberX new1, when T≤50%, the current judgment quantity numberX new As the previous judgment quantity numberX new1 , continue to reduce X new The value of X new =X new -k, recalculate the demarcation ratio T = (numberX new1 -numberX new ) / numberX new1 When T>50%, it is considered that X new It is the dividing point between relatively concentrated areas and relatively discrete areas.
[0245] When X new When numberX is the demarcation point, max >numberX min In this case, let X 21 =X 12 =X new , then the upper and lower boundaries of the relative clustering area and the upper and lower boundaries of the relative discrete area are determined accordingly.
[0246] See also Fig.11 , is a schematic diagram of the structure of a hyperchaotic key one-time pad transmission device provided by an embodiment of the present invention, the device comprising:
[0247] A symmetric module, used for decrypting the obtained chaotic parameters and large prime number parameters using the generated symmetric key;
[0248] A chaos module, used for determining a chaos function according to the chaos parameters, and generating a random number sequence using the chaos function;
[0249] A key generation module, used to generate a key stream according to the generated random number sequence and the large prime number parameter;
[0250] The transmission module is used to perform one-time one-key data transmission according to the key stream.
[0251] The hyperchaotic key one-time pad transmission device provided in this embodiment can execute all the steps and functions of the hyperchaotic key one-time pad transmission method provided in any of the above embodiments, and the specific functions of the device will not be described in detail here.
[0252] See also Fig.12 , is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention. The terminal device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a hyperchaotic key one-time pad transmission program. When the processor executes the computer program, the steps in each of the above-mentioned embodiments of the hyperchaotic key one-time pad transmission method are implemented, such as Figure 1Alternatively, the processor implements the functions of each module in the above-mentioned device embodiments when executing the computer program.
[0253] Exemplarily, the computer program may be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device. For example, the computer program may be divided into several modules, and the specific functions of each module have been described in detail in a hyperchaotic key one-time pad transmission method provided in any of the above embodiments, and the specific functions of the device will not be repeated here.
[0254] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on a terminal device. The terminal device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the terminal device may also include an input / output device, a network access device, a bus, etc.
[0255] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0256] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the one-time one-pad transmission device of the hyper-chaotic key by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0257] Wherein, if the module integrated in the one-time transmission device of a hyper-chaotic key is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0258] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of any method described in the above embodiments when executed by a processor.
[0259] It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A one-time transmission method of a hyperchaotic key, characterized in that: The method comprises: Use the generated symmetric key to decrypt the obtained chaotic parameters and large prime number parameters; Determine a chaotic function according to the chaotic parameters, and use the chaotic function to generate a random number sequence; Generate a key stream according to the generated random number sequence and the large prime number parameter; The one-time pad data transmission is performed according to the key stream.
2. The hyperchaotic key one-time pad transmission method according to claim 1, characterized in that: Determining a chaotic function according to the chaotic parameter, and using the chaotic function to generate a random number sequence, comprising: Determining a one-dimensional chaotic function according to the one-dimensional branch parameters in the chaotic parameters, and determining a reduced-dimensional hyperchaotic function according to the hyperchaotic parameters in the chaotic parameters; Using the symmetric key as the initial value of the one-dimensional chaos, iterating the one-dimensional chaotic function for a preset number of times to determine an output sequence; The initial value of the hyperchaos is determined according to the output sequence, and the determined initial value is input into the dimension reduction hyperchaos function to generate the random number sequence.
3. The hyperchaotic key one-time pad transmission method according to claim 1, characterized in that: The symmetric key generation process includes: True random numbers generated by SRAM PUF in a trusted execution environment; The symmetric key is generated according to the true random number.
4. The hyperchaotic key one-time pad transmission method according to claim 2, characterized in that: Determining the initial value of hyperchaos according to the output sequence includes: The initial value of the hyperchaos is selected from the output sequence in a reverse order.
5. The hyperchaotic key one-time pad transmission method according to claim 1, characterized in that: Performing one-time pad data transmission according to the key stream includes: storing the keystream in a trusted execution environment; When the data to be encrypted is sensitive data, encrypting the data to be encrypted using the key stream in the trusted execution environment; When the data to be encrypted is not sensitive data, the key stream is taken out from the trusted execution environment, and the key stream is used to encrypt the data to be encrypted in a conventional environment.
6. The hyperchaotic key one-time pad transmission method according to claim 1, characterized in that: The hyperchaotic parameter determination process specifically includes: Selecting and presetting preliminary values of two-dimensional parameters of two two-dimensional hyperchaotic functions; Determine the dimension reduction parameter of the dimension reduction hyperchaotic function according to the distribution diagrams of the two two-dimensional hyperchaotic functions, and obtain the dimension reduction hyperchaotic function; Identifying the distribution graph of the dimension-reduced hyperchaotic function according to a pre-trained artificial intelligence model; When the recognition result is an invalid graph, the two-dimensional branch parameters in the two-dimensional parameters are adjusted within a preset range, the dimension reduction hyperchaotic function is re-determined, and the distribution graph of the re-determined dimension reduction hyperchaotic function is recognized; When the recognition result is a valid graph, the latest two-dimensional parameters are used as the hyperchaotic parameters.
7. The hyperchaotic key one-time pad transmission method according to claim 6, characterized in that: According to the distribution diagrams of the two two-dimensional hyperchaotic functions, the dimension reduction parameters of the dimension reduction hyperchaotic function are determined, and the dimension reduction hyperchaotic function is obtained, including: Determine the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of two two-dimensional hyperchaotic functions; Constructing the functional relationship between the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the dimensionality reduction hyperchaotic function and the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of two two-dimensional hyperchaotic functions, and the dimensionality reduction parameters; The functional relationship is solved according to the boundary constraints of the dimension reduction hyperchaotic function, the dimension reduction parameters are determined, and the dimension reduction hyperchaotic function is determined according to the dimension reduction parameters.
8. The hyperchaotic key one-time pad transmission method according to claim 7, characterized in that: Determine the upper and lower boundaries of the relative aggregation area and the upper and lower boundaries of the relative discrete area of the distribution diagrams of two two-dimensional hyperchaotic functions, including: For different two-dimensional hyperchaotic functions, the minimum number of minimum value distribution points and the maximum number of maximum value distribution points in the distribution diagram of the two-dimensional hyperchaotic function are counted respectively; Determine the distribution of relatively concentrated areas and relatively discrete areas according to the size relationship between the maximum number and the minimum number; A demarcation value that meets the preset demarcation condition is searched between the maximum value and the minimum value as the demarcation point between the relative clustering area and the relative discrete area, and the upper and lower boundaries of the relative clustering area and the upper and lower boundaries of the relative discrete area are determined.
9. The hyperchaotic key one-time pad transmission method according to claim 8, characterized in that: Searching for a demarcation value that meets a preset demarcation condition between the maximum value and the minimum value includes: When the maximum number is less than the minimum number, the minimum value is increased by a preset first step length, the current judgment value is updated, the current judgment number of the current judgment value is counted, and it is determined whether the current judgment number is greater than the minimum number; If so, taking the current judgment quantity as the previous judgment quantity, increasing the current judgment value by the first step length, updating the current judgment value, re-counting the current judgment quantity, and determining whether the current judgment quantity is greater than the previous judgment quantity; If not, calculate the ratio of the difference between the previous judgment quantity and the current judgment quantity to the cutoff value of the previous judgment quantity; When the demarcation ratio is not greater than a preset first threshold, the current judgment quantity is used as the previous judgment quantity, the current judgment value is increased by the step length, the current judgment value is updated, the current judgment quantity is recounted, and the demarcation ratio is recalculated; When the demarcation ratio is greater than the first threshold, the current judgment value is used as the demarcation value.
10. The hyperchaotic key one-time pad transmission method according to claim 8, characterized in that: Searching for a demarcation value that meets a preset demarcation condition between the maximum value and the minimum value includes: When the maximum number is greater than the minimum number, reducing the maximum value by a preset second step length, updating the current judgment value, counting the current judgment number of the current judgment value, and determining whether the current judgment number is greater than the maximum number; If so, taking the current judgment number as the previous judgment number, reducing the current judgment value by the first step length, updating the current judgment value, re-counting the current judgment number, and determining whether the current judgment number is greater than the previous judgment number; If not, calculate the ratio of the difference between the previous judgment quantity and the current judgment quantity to the cutoff value of the previous judgment quantity; When the demarcation ratio is not greater than a preset second threshold, the current judgment quantity is used as the previous judgment quantity, the current judgment value is reduced by the step length, the current judgment value is updated, the current judgment quantity is recounted, and the demarcation ratio is recalculated; When the demarcation ratio is greater than the second threshold, the current judgment value is used as the demarcation value.
11. A hyperchaotic key one-time pad transmission device, characterized in that: The device comprises: A symmetric module, used for decrypting the obtained chaotic parameters and large prime number parameters using the generated symmetric key; A chaos module, used for determining a chaos function according to the chaos parameters, and generating a random number sequence using the chaos function; A key generation module, used to generate a key stream according to the generated random number sequence and the large prime number parameter; The transmission module is used to perform one-time one-key data transmission according to the key stream.
12. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for transmitting a hyper-chaotic key one time and one pad as described in any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the hyper-chaotic key one-time pad transmission method as described in any one of claims 1 to 10.
14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of any method described in claims 1 to 10 are implemented.
Citation Information
Patent Citations
Digital rights management method based on N RSA (Rivest Shamir Adleman) encryption algorithms based on chaotic algorithm
CN102437912A
Dynamic password remote control lock based on chaos technology
CN102644419A
Dual-chaotic system dynamic key and RSA jointed streaming media secret communication method
CN104618091A
Equivocation augmentation
CN110313146A
DNA one-time pad image encryption method based on multiple keys
CN111988144A
Cited By
Signal encryption processing method, signal decryption processing method and signal processing system
CN119945660A
Signal encryption processing method, signal decryption processing method and signal processing system
CN119945660B
Data transmission method and related equipment
CN119995832A
