A forward-secure ciphertext data retrieval method based on lattice

Through the lattice-based forward security method, combined with the lattice trapdoor generation and the lattice base expansion algorithm, quantum computing-resistant ciphertext data retrieval and forward security are achieved, solving the vulnerable quantum computing attacks and private keys in the existing technology. Leakage issues, enhanced system security and key update security.

CN114844634BActive Publication Date: 2024-09-03TAIYUAN UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210473281.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-09-03
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In the existing technology, searchable encryption schemes based on classical number theory problems are fragile in the face of quantum computing attacks, and the problem of data privacy leakage caused by private key leakage has not been effectively solved, and forward security and key update oracle query Security needs to be improved.

Method used

The lattice-based forward secure ciphertext data retrieval method is adopted, the system initialization and key update are realized through the lattice trapdoor generation algorithm and the lattice base expansion algorithm, the private key is updated based on the binary tree structure and the minimum coverage set, and the lattice LWE is used Keyword encryption and token generation are performed based on identity encryption ideas to ensure resistance to quantum computing attacks and forward security.

Benefits of technology

It realizes ciphertext data retrieval that resists quantum computing attacks, reduces privacy protection risks caused by private key leaks, reduces the storage overhead of public key updates, and enhances the security of key updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114844634B
    Figure CN114844634B
Patent Text Reader

Abstract

The present invention provides a lattice-based forward-secure ciphertext data retrieval method, belonging to the field of information security technology; the technical problem to be solved is: to provide an improvement on the lattice-based forward-secure ciphertext data retrieval method; the technical solution adopted to solve the above technical problem is: mainly composed of five steps: system initialization, key update algorithm, keyword encryption algorithm, token generation algorithm, and test algorithm; a lattice structure is used to construct a ciphertext data retrieval scheme, which can achieve resistance to quantum computing attacks; at the same time, forward security can be achieved, and the privacy protection problem caused by user key leakage is reduced, making the system safer; the scheme combines a binary tree structure with a minimum covering set to achieve the update of the private key of the data receiver, without the need for a public key to be updated, thereby reducing storage overhead, and can achieve security under the query of key update, making up for the defects of similar schemes; the present invention is applied to ciphertext data retrieval.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention provides a lattice-based forward-secure ciphertext data retrieval method, which belongs to the field of information security technology, and specifically relates to ciphertext data retrieval, anti-quantum cryptography, and is suitable for data privacy protection scenarios in cloud storage environments. Background Art

[0002] The rapid growth of data in the era of big data has brought huge storage pressure to users' local storage devices, attracting users to upload data to the cloud for storage, which has promoted the continuous development of cloud storage technology. However, while users enjoy the convenience brought by cloud storage technology, this storage method that is not physically controlled also causes users to worry about data privacy protection. Encrypting data and uploading it to the server can effectively protect data privacy, but this ciphertext storage method brings troubles to data search and use. Searchable encryption can effectively solve the retrieval of ciphertext data.

[0003] In 2004, Boneh et al. first proposed a public key searchable encryption scheme with keywords. After that, scholars proposed to study searchable encryption schemes based on bilinear mapping, quadratic residues, etc. With the continuous advancement of quantum computer research, constructing a searchable encryption scheme with anti-quantum computing attack characteristics has become an urgent problem to be solved, and the above-mentioned scheme based on the difficulty of classical number theory problems is vulnerable to quantum computing attacks. Research shows that lattice cryptography with anti-quantum computing attack characteristics undoubtedly provides an important solution for this.

[0004] In addition, in searchable encryption systems, in order to perform the retrieval of encrypted data, the data receiver uses its own private key to calculate a search token. However, the receiver's private key is often leaked due to improper storage or network attacks. When the adversary obtains the leaked private key, he can calculate the search token of any keyword and add the ciphertext data, which will lead to the leakage of data privacy when performing the retrieval operation on the ciphertext database. How to minimize the harm caused by the leakage of private keys is an urgent problem to be solved. To this end, Zhang et al. proposed a lattice searchable encryption scheme with forward security. The scheme uses lattice authorization technology to update the private key over time. For this reason, the public key in the scheme also needs to be continuously updated to match the change of the private key, which brings considerable pressure to storage. In addition, the scheme lacks the query of the key update oracle, and the security of the scheme needs to be further improved. Therefore, combined with lattice cryptography, designing an efficient and secure searchable encryption scheme that can resist quantum computing attacks is of great significance for cloud storage and ciphertext data retrieval. Summary of the invention

[0005] In order to overcome the deficiencies in the prior art, the present invention aims to solve the technical problem of providing an improved lattice-based forward-secure ciphertext data retrieval method.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a lattice-based forward-secure ciphertext data retrieval method, comprising the following steps:

[0007] S1: System initialization phase: Set security parameters, the number of layers of the binary tree structure, predefine the keyword domain, run the lattice trapdoor generation algorithm, output the system public parameters, the public key and private key of the data receiver, and send the above public key and private key to the receiver, set the hash function and randomly uniformly select the matrix;

[0008] S2: Key update phase: input system public parameters, based on the receiver's public key and the private key related to the current time period, combine the binary tree structure with the minimum covering set, and use the lattice expansion algorithm to update the time period and calculate the receiver's private key for the next time period to achieve key update. The generated private key is kept secret by the receiver, and the private key of the current time period is deleted;

[0009] S3: Keyword encryption stage: The data sender inputs the keyword to be encrypted, and uses the public key and time period of the receiver to calculate the first component of the ciphertext associated with the keyword according to the identity-based encryption idea of ​​lattice LWE;

[0010] According to the time period, a corresponding random matrix is ​​selected to form a matrix associated with the current time period, and then the second component of the ciphertext associated with the keyword is calculated based on the identity-based encryption idea on LWE;

[0011] Send the keyword ciphertext composed of the two ciphertext components to the cloud server;

[0012] S4: Token generation phase: The receiver inputs the keyword to be searched and the receiver's private key for the current time period, uses the lattice preimage sampling algorithm to extract a vector as the search token for this time period, and sends the above token as the receiver's search request to the server;

[0013] S5: Testing phase: The server splits the received keyword ciphertext into the first ciphertext component and the second ciphertext component, combines the two components with the search token to calculate a noise term, and compares the value of the noise term with If the noise is less than Output 1, return the search result to the data recipient, indicating that the keywords contained in the server test search token are consistent with the ciphertext, and the search token is generated in the time period after the keyword is encrypted; otherwise, output 0, the search fails; where q is the system parameter.

[0014] The specific steps of the system initialization phase in step S1 are as follows:

[0015] S1.1: Set parameters: Set the system security parameter to n, the number of layers of the binary tree structure used to be l, set the system parameter q = ploy(n) to be a prime number, m = O(nlogq), set ψ α is a discrete Gaussian noise distribution, where α is a Gaussian distribution parameter; to ensure the normal operation of the original image sampling algorithm, the safety parameter of the original image sampling algorithm is set to σ;

[0016] S1.2: Setting function: hash function:

[0017] S1.3: Uniformly randomly select 2l n×m matrices:

[0018] S1.4: Run the lattice trap generation algorithm to calculate the public key and private key of the data receiver: Run the lattice trap generation algorithm TrapGen(n, m, q) to generate a uniform random matrix Harmony ⊥ The basis of (A0)

[0019] S1.5: The common parameters of the construction system are The data receiver's public key pk = A0, the receiver's private key

[0020] The specific steps of the key update phase in step S2 are as follows:

[0021] Input public parameters pp, public key pk and private key sk for time period t t :

[0022] S2.1: Define the minimum cover set of leaf nodes: For any leaf node t in a binary tree, a minimum cover Node(t) represents the minimum set of ancestor nodes that contains all leaf nodes after time t, that is, {t, t+1, ..., T-1}, where T is the number of time periods;

[0023] S2.2: Private key sk for time period t t Composition: According to the lattice trap generation method of each node of the binary tree, each node of the binary tree has its own corresponding matrix and its lattice trap, and the private key sk of time period t t It is a trapdoor set consisting of the lattice trapdoors of all element nodes of the set Node(t);

[0024] S2.3: From sk t To sk t+1Key update: The receiver first determines the minimum cover Node(t+1), then calculates the lattice trapdoors of all nodes in the set Node(t+1)\Node(t), and deletes the lattice trapdoors of all nodes in the set Node(t)\Node(t+1). Finally, the receiver determines the updated private key.

[0025] S2.4: Return the updated private key sk t+1 .

[0026] The specific steps of generating the grid trap gates of each node of the binary tree in step S2.2 are as follows:

[0027] S2.2.1: Set up a binary tree: Set up a binary tree structure with l layers, whose leaf nodes from left to right represent time periods t∈{0,1,...,2 l -1};

[0028] S2.2.2: Set a mark for each node of the binary tree: For each time period t, t is a leaf node, and the mark is its unique path from the root node to the leaf node t = (t1, ..., t l ), where for the i-th layer, if the node is a left node, then t i =0; if the node is a right node, then t i =1;

[0029] Similarly, for the i-th layer node Θ (i) , Θ (i) is a non-leaf node, i≠l, and the unique path from the root node to the node is denoted as Θ (i) =(θ1,...,θ i ), where θ i ∈{0,1} and the definition of t i Consistency;

[0030] S2.2.3: Set the corresponding matrix of the root node and its trapdoor: Run the TrapGen(n,m,q) algorithm to obtain the corresponding matrix of the root node as a random matrix Harmony ⊥ Trapdoor of (A0)

[0031] Step 2.2.4: Set the corresponding matrix for each node: Define Θ (i) The corresponding matrix is The corresponding matrix for time period t is For i∈{1,2,...,l} and b∈{0,1}, is a uniformly randomly selected matrix;

[0032] S2.2.5: Calculate the trapdoor corresponding to each node matrix: For any node Θ on the binary tree(i) , the corresponding trapdoor is denoted as Use the lattice-based extended ExtBasis algorithm and choose one of the following two methods to achieve the calculation;

[0033] Given a root node trapdoor The trapdoor is calculated as follows

[0034]

[0035] in

[0036] or It can also be calculated through the trapdoor of any of its ancestors as follows:

[0037] Assume that given

[0038]

[0039] in Θ (i) =(θ1,...,θ k ,θ k+1 ,...,θ i ).

[0040] Similarly, the grid trapdoor corresponding to the leaf node is calculated through the grid trapdoor of the leaf node's ancestor.

[0041] The specific steps of the keyword encryption phase in step S3 are as follows:

[0042] Input the keyword to be encrypted w∈{0,1} * , the receiver's public key pk, time period t:

[0043] S3.1: From A vector s is randomly selected from the uniform distribution;

[0044] Step 3.2: According to A noise vector is randomly selected from a Gaussian noise distribution on and the noise term x←ψ α ;

[0045] Step 3.3: Calculate the first component of the ciphertext of the keyword using the hash function H:

[0046] Step 3.4: Utilize the matrix associated with the time period Calculate the second component of the ciphertext of the keyword:

[0047] Step 3.5: The data sender sends the keyword ciphertext Cw =(c1,c2) ​​to the cloud server.

[0048] The specific steps of the token generation phase in step S4 are as follows:

[0049] Enter the keyword to be searched w∈{0,1} * , time period t and the recipient’s private key sk t :

[0050] S4.1: The data receiver first checks if sk t No Geki included Run the basis expansion algorithm Output in is in the private key sk t superior ancestors;

[0051] S4.2: The data receiver calculates the hash function value H(w) of the keyword;

[0052] S4.3: Run the lattice preimage sampling algorithm Output original image Satisfy F t e = H(w);

[0053] S4.4: The data receiver sends a search token T w =e to the cloud server.

[0054] The specific steps of the step S5 test phase are as follows:

[0055] Enter keyword ciphertext C w , keyword search token T w , the system's public parameters pp:

[0056] S5.1: The server sends the ciphertext C w Split into c1, c2;

[0057] S5.2: Calculate the noise term r = c1-e T c2;

[0058] S5.3: Compare r with like Output is 1, the server returns the search result to the data recipient; otherwise the output is 0, and the search fails.

[0059] The beneficial effects of the present invention compared to the prior art are as follows: the lattice-based forward-secure ciphertext data retrieval method provided by the present invention adopts a lattice structure to construct a ciphertext data retrieval scheme, which can achieve resistance to quantum computing attacks. At the same time, the present invention can achieve forward security, reduce the privacy protection problem caused by the leakage of user keys, and make the system more secure. In addition, the present invention combines the binary tree structure with the minimum covering set to realize the update of the private key of the data receiver, without the need for the public key to be updated, reducing the storage overhead, and the present invention can achieve security under the query of key update, making up for the defects of similar schemes. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The present invention will be further described below in conjunction with the accompanying drawings:

[0061] Figure 1 is a flow chart of the retrieval method of the present invention;

[0062] Figure 2 Schematic diagram of key update of the binary tree structure of the present invention (taking l=3 as an example). DETAILED DESCRIPTION

[0063] like Figure 1 and Figure 2 As shown, the specific steps of the lattice-based forward-secure ciphertext data retrieval method provided by the present invention are as follows:

[0064] Step 1, system initialization phase: first set the security parameters required by the lattice-related algorithm, the number of layers of the binary tree structure used, predefine the keyword domain, set the hash function and randomly select some matrices, generate the public key and private key of the data receiver by running the lattice trapdoor generation algorithm, and send the public and private keys to the receiver, and output the above-mentioned parameters, functions, matrices, etc. as system public parameters;

[0065] Step 2, key update phase: input system public parameters, based on the receiver's public key and the private key related to the time period, combine the binary tree structure with the minimum covering set, use the lattice expansion algorithm to update the time period and calculate the receiver's private key for the next time period to achieve key update. The generated private key is kept secret by the receiver, and the private key of the current time period is deleted;

[0066] Step 3, keyword encryption stage: the data sender inputs the keyword to be encrypted, uses the public key and time period of the receiver, and calculates the first ciphertext component associated with the keyword according to the identity-based encryption idea of ​​lattice LWE; selects the corresponding random matrix according to the time period to form a matrix associated with the time period, and then calculates the second component of the ciphertext according to the identity-based encryption idea on LWE; sends the keyword ciphertext composed of the two ciphertext components to the cloud server;

[0067] Step 4, token generation phase: The receiver inputs the keyword to be searched and the receiver's private key for the time period, uses the lattice original image sampling algorithm to extract a vector as the search token for this time period, and sends the token as the receiver's search request to the server;

[0068] Step 5, test phase: The server now splits the received keyword ciphertext into the first and second ciphertext components, combines the two components with the search token to calculate a noise term, and compares the value with If the noise is less than The algorithm outputs 1 and returns the search result to the data recipient, indicating that the keywords contained in the server test search token are consistent with the ciphertext, and the search token is generated in the time period after the keyword is encrypted; otherwise, the algorithm outputs 0 and the search fails.

[0069] A specific example is given below. The symbols used in the implementation are shown in the following table:

[0070] symbol illustrate ploy(n) represents a polynomial about n O(n) Indicates a constant multiple of n [A||B] The matrix after the natural connection of matrix A and matrix B <![CDATA[{0,1} * ]]> Represents a string of 0s and 1s of any length <![CDATA[S1\S2]]> <![CDATA[The set consisting of the remaining elements after removing the same elements in set S2 from set S1]]> <![CDATA[A T ]]> Represents the transpose of matrix A .

[0071] The lattice-based forward-secure ciphertext data retrieval method of the present invention comprises five basic steps: system initialization, key update, keyword encryption, token generation, and testing.

[0072] System initialization includes the following 5 steps:

[0073] Step 1.1: Set parameters: Set the system security parameter to n, the number of layers of the binary tree structure used to be l, set the system parameter q = ploy(n) to be a prime number, m = O(nlogq), set ψ α is a Gaussian noise distribution, where α is a Gaussian distribution parameter; to ensure the normal operation of the original image sampling algorithm, the safety parameter of the original image sampling algorithm is set to σ;

[0074] Step 1.2: Set up the function: hash function:

[0075] Step 1.3: Uniformly randomly select 2l n×m matrices:

[0076] Step 1.4: Run the lattice trap generation algorithm to calculate the public and private keys of the data receiver: Run the lattice trap generation algorithm TrapGen(n,m,q) to generate a uniform random matrix Harmony ⊥ Trapdoor of (A0)

[0077] Step 1.5: Build system common parameters are The data receiver's public key pk = A0, the receiver's private key

[0078] Key update includes the following 4 steps:

[0079] Input public parameters pp, public key pk and private key sk for time period t t : The private key update mechanism implements the update of the private key according to the following steps:

[0080] Step 2.1: Define the minimum cover set of leaf nodes: For any leaf node t on the binary tree, a minimum cover Node(t) represents the minimum set of ancestor nodes that contains all leaf nodes after time t, that is, {t, t+1, ..., T-1}, where T is the number of time periods.

[0081] like Figure 1 For example, Node(0)={root}, Node(1)={001,01,1}, Node(2)={01,1}, Node(3)={011,1}, Node(4)={1}, Node(5)={101,11}, Node(6)={11}, Node(7)={111}.

[0082] Step 2.2: Private key sk for time period t t Composition: According to the lattice trap generation method of each node of the binary tree, each node of the binary tree has its own corresponding matrix and its lattice trap. For example, the node "01" on the first layer has the corresponding matrix: The trapdoor is the grid Λ ⊥ (F 01 ) 01 , the private key sk for time period t t It is a trapdoor set consisting of the lattice trapdoors of all element nodes of the set Node(t).

[0083] Based on the above private key rules, we have sk1={T 001 ,T 01 ,T1}, where T 001 ,T 01 , T1 are The corresponding trapdoor.

[0084] Step 2.3: From sk t To sk t+1 Key update: The receiver first determines the minimum cover Node(t+1), then calculates the lattice trapdoors of all nodes in the set Node(t+1)\Node(t), and deletes the lattice trapdoors of all nodes in the set Node(t)\Node(t+1). Finally, the receiver determines the updated private key. The following example illustrates that given sk1={T 001,T 01 ,T1}, then sk2={T 01 ,T1}, where Node(2)\Node(1)={01,1}, Node(1)\Node(2)={001}.

[0085] Step 2.4: Return the updated private key sk t+1 .

[0086] The generation of the lattice trapdoors for each node of the binary tree in step 2.2 of the private key update method of the lattice-based forward-secure ciphertext data retrieval scheme includes the following five sub-steps:

[0087] Step 2.2.1: Set up a binary tree: Set up a binary tree structure with l layers, whose leaf nodes from left to right represent time periods t∈{0,1,...,2 l -1}. Figure 1 Take a tree structure with l=3 layers as an example, the generated time intervals are 8;

[0088] Step 2.2.2: Set a mark for each node of the binary tree: For each time period t (i.e., leaf node), mark it as the unique path from the root node to the leaf node t = (t1,...,t l ), where for the i-th layer, if the node is a left node, then t i =0; if the node is a right node, then t i = 1. Similarly, for the i-th layer node Θ (i) (i.e. non-leaf node, i≠l), and the unique path from the root node to the node is denoted as Θ (i) =(θ1,...,θ i ), where θ i ∈{0,1} and t i Consistency;

[0089] Step 2.2.3: Set the corresponding matrix of the root node and its trapdoor: Run the TrapGen(n,m,q) algorithm to obtain the corresponding matrix of the root node as a random matrix Harmony ⊥ Trapdoor of (A0)

[0090] Step 2.2.4: Set the corresponding matrix for each node: Define Θ (i) The corresponding matrix is The corresponding matrix of time period t (i.e. leaf node) is For i∈{1,2,...,l} and b∈{0,1}, is a matrix selected uniformly at random.

[0091] Step 2.2.5: Calculate the lattice trap corresponding to each node matrix: For any node Θ on the binary tree (i) , the corresponding trapdoor is denoted as The lattice-based extended ExtBasis algorithm is used and one of the following two methods is selected to implement the calculation.

[0092] Given a root node trapdoor The trapdoor is calculated as follows in

[0093] It can also be calculated through the trapdoor of any of its ancestors as follows: Assume that in Θ (i) =(θ1,...,θ k ,θ k+1 ,...,θ i ).

[0094] Similarly, the grid trap corresponding to the leaf node (ie, time period) can be calculated through the grid trap of the leaf node's ancestor.

[0095] Keyword encryption includes the following 5 steps:

[0096] Input the keyword to be encrypted w∈{0,1} * , the receiver's public key pk, time period t:

[0097] Step 3.1: From A vector s is randomly selected from the uniform distribution;

[0098] Step 3.2: According to A noise vector is randomly selected from a Gaussian noise distribution on and the noise term x←ψ α ;

[0099] Step 3.3: Calculate the first component of the keyword ciphertext using the hash function H:

[0100] Step 3.4: Utilize the matrix associated with the time period Calculate the second component of the keyword ciphertext:

[0101] Step 3.5: The data sender sends the keyword ciphertext C w =(c1,c2) ​​to the cloud server.

[0102] 5. Token generation consists of the following 4 steps:

[0103] Enter the keyword to be searched w∈{0,1}* , time period t and the recipient’s private key sk t :

[0104] Step 4.1: The data receiver first checks, if sk t No Geki included Run the basis expansion algorithm Output in is in the private key sk t superior ancestors;

[0105] Step 4.2: The data receiver calculates the hash function value H(w) of the keyword;

[0106] Step 4.3: Run the lattice preimage sampling algorithm Output original image Satisfy F t e = H(w);

[0107] Step 4.4: The data receiver sends the search token T w =e to the cloud server.

[0108] The testing algorithm consists of the following three steps:

[0109] Enter keyword ciphertext C w , keyword search token T w , the system's public parameters pp:

[0110] Step 5.1: The server sends the ciphertext C w Split into c1, c2;

[0111] Step 5.2: Calculate the noise term r = c1-e T c2;

[0112] Step 5.3: Compare r with like Output is 1, the server returns the search result to the data recipient; otherwise the output is 0, and the search fails.

[0113] What needs to be explained about the specific structure of the present invention is that the connection relationship between the various component modules adopted in the present invention is definite and feasible. Except for the special instructions in the embodiments, the specific connection relationship can bring about the corresponding technical effects, and solve the technical problems raised by the present invention without relying on the execution of the corresponding software program. Except for the specific instructions, the models and connection methods of the components, modules and specific components appearing in the present invention belong to the existing technologies such as published patents, published journal articles, or common knowledge that can be obtained by technical personnel in this field before the application date, and there is no need to elaborate, so that the technical solution provided in this case is clear, complete and feasible, and the corresponding physical products can be reproduced or obtained according to the technical means.

[0114] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A lattice-based forward-secure ciphertext data retrieval method, characterized by: The steps include: S1: System initialization phase: Set security parameters, the number of layers of the binary tree structure, predefine the keyword domain, run the lattice trapdoor generation algorithm, output the system public parameters, the public key and private key of the data receiver, and send the above public key and private key to the receiver, set the hash function and randomly uniformly select the matrix; S2: Key update phase: input system public parameters, based on the receiver's public key and the private key related to the current time period, combine the binary tree structure with the minimum covering set, and use the lattice expansion algorithm to update the time period and calculate the receiver's private key for the next time period to achieve key update. The generated private key is kept secret by the receiver, and the private key of the current time period is deleted; The specific steps of the key update phase in step S2 are as follows: Input public parameters pp, public key pk and private key sk for time period t t : S2.1: Define the minimum cover set of leaf nodes: For any leaf node t in a binary tree, a minimum cover Node(t) represents the minimum set of ancestor nodes that contains all leaf nodes after time t, that is, {t, t+1, ..., T-1}, where T is the number of time periods; S2.2: Private key sk for time period t t Composition: According to the lattice trap generation method of each node of the binary tree, each node of the binary tree has its own corresponding matrix and its lattice trap, and the private key sk of time period t t It is a trapdoor set consisting of the lattice trapdoors of all element nodes of the set Node(t); S2.3: From sk t To sk t+1 Key update: The receiver first determines the minimum cover Node(t+1), then calculates the lattice trapdoors of all nodes in the set Node(t+1)\Node(t), and deletes the lattice trapdoors of all nodes in the set Node(t)\Node(t+1). Finally, the receiver determines the updated private key. S2.4: Return the updated private key sk t+1 ; S3: Keyword encryption stage: The data sender inputs the keyword to be encrypted, and uses the public key and time period of the receiver to calculate the first component of the ciphertext associated with the keyword according to the identity-based encryption idea of ​​lattice LWE; According to the time period, a corresponding random matrix is ​​selected to form a matrix associated with the current time period, and then the second component of the ciphertext associated with the keyword is calculated based on the identity-based encryption idea on LWE; Send the keyword ciphertext composed of the two ciphertext components to the cloud server; S4: Token generation phase: The receiver inputs the keyword to be searched and the receiver's private key for the current time period, uses the lattice preimage sampling algorithm to extract a vector as the search token for this time period, and sends the above token as the receiver's search request to the server; S5: Testing phase: The server splits the received keyword ciphertext into the first ciphertext component and the second ciphertext component, combines the two components with the search token to calculate a noise term, and compares the value of the noise term with If the noise is less than Output 1, return the search result to the data recipient, indicating that the keywords contained in the server test search token are consistent with the ciphertext, and the search token is generated in the time period after the keyword is encrypted; otherwise, output 0, the search fails; where q is the system parameter.

2. The lattice-based forward-secure ciphertext data retrieval method according to claim 1, characterized in that: The specific steps of the system initialization phase in step S1 are as follows: S1.1: Set parameters: Set the system security parameter to n, the number of layers of the binary tree structure used to be l, set the system parameter q = ploy(n) to be a prime number, m = O(nlogq), set ψ α is a discrete Gaussian noise distribution, where α is a Gaussian distribution parameter; to ensure the normal operation of the original image sampling algorithm, the safety parameter of the original image sampling algorithm is set to σ; S1.2: Setting function: hash function: S1.3: Uniformly randomly select 2l n×m matrices: S1.4: Run the lattice trap generation algorithm to calculate the public key and private key of the data receiver: Run the lattice trap generation algorithm TrapGen(n,m,q) to generate a uniform random matrix Harmony ⊥ The basis of (A0) S1.5: The common parameters of the construction system are The data receiver's public key pk = A0, the receiver's private key 3. The lattice-based forward-secure ciphertext data retrieval method according to claim 2, characterized in that: The specific steps of generating the grid trap gates of each node of the binary tree in step S2.2 are as follows: S2.2.1: Set up a binary tree: Set up a binary tree structure with l layers, whose leaf nodes from left to right represent time periods t∈{0,1,...,2 l -1}; S2.2.2: Set a mark for each node of the binary tree: For each time period t, t is a leaf node, and the mark is its unique path from the root node to the leaf node t = (t1, ..., t l ), where for the i-th layer, if the node is a left node, then t i =0; if the node is a right node, then t i =1; Similarly, for the i-th layer node Θ (i) , Θ (i) is a non-leaf node, i≠l, and the unique path from the root node to the node is denoted as Θ (i) =(θ1,...,θ i ), where θ i ∈{0,1} and t i Consistency; S2.2.3: Set the corresponding matrix of the root node and its trapdoor: Run the TrapGen(n,m,q) algorithm to obtain the corresponding matrix of the root node as a random matrix Harmony ⊥ Trapdoor of (A0) Step 2.2.4: Set the corresponding matrix for each node: Define Θ (i) The corresponding matrix is The corresponding matrix for time period t is For i∈{1,2,...,l} and b∈{0,1}, is a uniformly randomly selected matrix; S2.2.5: Calculate the lattice trap corresponding to each node matrix: For any node Θ on the binary tree (i) , the corresponding trapdoor is denoted as Use the lattice-based extended ExtBasis algorithm and choose one of the following two methods to achieve the calculation; Given a root node trapdoor The trapdoor is calculated as follows in or It can also be calculated through the trapdoor of any of its ancestors as follows: Assume that given among them I (i) =(θ1,...,θ k ,i k+1 ,...,θ i ), Similarly, the grid trapdoor corresponding to the leaf node is calculated through the grid trapdoor of the leaf node's ancestor.

4. The lattice-based forward-secure ciphertext data retrieval method according to claim 3, characterized in that: The specific steps of the keyword encryption phase in step S3 are as follows: Input the keyword to be encrypted w∈{0,1} * , the receiver's public key pk, time period t: S3.1: From A vector s is randomly selected from the uniform distribution; Step 3.2: According to A noise vector is randomly selected from a Gaussian noise distribution on and the noise term x←ψ α ; Step 3.3: Calculate the first component of the ciphertext of the keyword using the hash function H: Step 3.4: Utilize the matrix associated with the time period Calculate the second component of the ciphertext of the keyword: Step 3.5: The data sender sends the keyword ciphertext C w =(c1,c2) ​​to the cloud server.

5. The lattice-based forward-secure ciphertext data retrieval method according to claim 4, characterized in that: The specific steps of the token generation phase in step S4 are as follows: Enter the keyword to be searched w∈{0,1} * , time period t and the recipient’s private key sk t : S4.1: The data receiver first checks if sk t No Geki included Run the basis expansion algorithm Output in is in the private key sk t superior ancestors; S4.2: The data receiver calculates the hash function value H(w) of the keyword; S4.3: Run the lattice preimage sampling algorithm Output original image Satisfy F t e = H(w); S4.4: The data receiver sends a search token T w =e to the cloud server.

6. The lattice-based forward-secure ciphertext data retrieval method according to claim 5, characterized in that: The specific steps of the step S5 test phase are as follows: Enter keyword ciphertext C w , keyword search token T w , the system's public parameters pp: S5.1: The server sends the ciphertext C w Split into c1, c2; S5.2: Calculate the noise term r = c1-e T c2; S5.3: Compare r with like Output is 1, the server returns the search result to the data recipient; otherwise the output is 0, and the search fails.