Data encryption storage method, encryption search method and encryption storage system

By using the puncture pseudo-random function in DSSE to mark entries to be deleted and generate revocable keys, the problem of associated information leakage when adding and deleting data is solved, forward and backward privacy protection of data is achieved, and data leakage is avoided. and multiple interaction issues.

CN118627093APending Publication Date: 2024-09-10SVOLT ENERGY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410762932.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In Dynamic Symmetric Searchable Encryption (DSSE), adding and deleting data will reveal the associated information between data, leading to data privacy leakage.

Method used

In the data encryption storage method, the puncture pseudo-random function is used to mark the keyword index pairs of the items to be deleted, generate a revocable key, and compress the ciphertext of the deleted items into the deletion list to avoid the encryption of the deleted items. The document is uploaded to the cloud server so that the cloud server cannot decrypt the deleted document. At the same time, the target key of the keyword to be searched is updated in each search operation.

Benefits of technology

It achieves the protection of backward privacy, avoids data leakage problems caused by multiple interactions with the cloud server during the search process, reduces the communication overhead during the storage process, and ensures the protection of forward privacy and backward privacy of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627093A
    Figure CN118627093A
Patent Text Reader

Abstract

The invention discloses an encrypted storage method, an encrypted search method and an encrypted storage system of data, and belongs to the technical field of data encryption, and the encrypted storage method comprises the following steps: obtaining a target entry which comprises a target document identifier and a target keyword; obtaining a target key, a target label and a first forward index set corresponding to the target keyword; in response to the fact that a preset first judgment condition is true and the target entry is the to-be-added entry, updating the first forward index set to generate a second forward index set, generating a target ciphertext, and uploading the target label, the target ciphertext and the second forward index set to a cloud server; and in response to the fact that a preset second judgment condition is true and the target entry is the to-be-deleted entry, updating the first forward index set to generate a third forward index set, compressing the target label to a preset deletion list, and uploading the third forward index set and the deletion list to a cloud server for storage. In this way, only the third forward index set of the to-be-deleted entry and the deletion list are uploaded to the cloud server for storage, and backward privacy is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of data encryption technology, and in particular, to a data encryption storage method, a search method, and a storage system. Background Art

[0002] With the rapid development of cloud computing and cloud storage, more and more users choose to outsource their private data files to the cloud in order to save the maintenance costs of software and hardware. In order to protect data privacy, data needs to be outsourced in an encrypted form. When the data needs to be queried, only the corresponding ciphertext data needs to be retrieved.

[0003] Since the same user may add, query or delete data multiple times, in order to avoid the need to re-initialize the encryption protocol for each data operation, the Dynamic Symmetric Searchable Encryption (DSSE) method is currently used to outsource data encryption. However, in DSSE, adding and deleting data will leak the association information between data. Summary of the invention

[0004] An embodiment of the present application provides a method for encrypting and storing data to solve the technical problem in the prior art that adding and deleting data will leak the associated information between the data; an embodiment of the present application also provides a method for encrypting and searching data; an embodiment of the present application also provides a system for encrypting and storing data.

[0005] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:

[0006] In a first aspect, a method for encrypting and storing data is provided, which is used for a client of a data owner, and the method for encrypting and storing data includes:

[0007] Acquire a target entry, wherein the target entry includes a target document identifier and a target keyword;

[0008] Obtaining a target key, a target tag, and a first forward index set corresponding to the target keyword;

[0009] In response to a preset first judgment condition being true, the target entry is an entry to be added, updating the first forward index set to generate a second forward index set, generating a target ciphertext based on the target key, the target document identifier and the target tag, and uploading the target tag, the target ciphertext and the second forward index set to a cloud server for storage; or,

[0010] In response to the preset second judgment condition being true, the target entry is an entry to be deleted, the first forward index set is updated to generate a third forward index set, the target tag is compressed into a preset deletion list, and the third forward index set and the deletion list are uploaded to the cloud server for storage.

[0011] In combination with the first aspect, before obtaining the target entry, the method further includes:

[0012] Randomly select initialization parameters, and initialize the key list, search count list, deletion list, forward index list and result list, and generate revocation variables, storage list and search result list.

[0013] In combination with the first aspect, the key list is configured to store the target key corresponding to each target keyword;

[0014] The search times list is configured to store the search times of each target keyword;

[0015] The deletion summary table is configured to store the deletion list;

[0016] The forward index list is configured to store the first forward index set, the second forward index set and / or the third forward index set;

[0017] The result list is configured to store search results of historical queries.

[0018] In combination with the first aspect, the initialization parameters are configured to include a first forward key, a second forward key, and a security parameter;

[0019] The revocation variable is configured to include an adding algorithm of the revocation variable, the first forward key, and the second forward key;

[0020] The storage master table is configured to include an addition algorithm of the master table, the key list, the search times list and the deletion list;

[0021] The search result summary table is configured to include a search result adding algorithm and the result list.

[0022] In combination with the first aspect, the target key is obtained from the key list, the search count list and the deletion list based on the target keyword.

[0023] In combination with the first aspect, when the target keyword is a new keyword, the target key is generated based on a revocation key and a data structure of the target keyword.

[0024] In a second aspect, a data encryption search method is provided, which is used in a cloud server, and the encryption search method includes:

[0025] In response to the search instruction, receiving a revocation key and a trapdoor corresponding to the keyword to be searched;

[0026] Based on the keyword to be searched, obtaining a plurality of ciphertext label pairs corresponding to the keyword to be searched;

[0027] Unlock the ciphertext label pair based on the revocation key to obtain a decrypted identifier of the document to be searched;

[0028] Based on the ciphertext label pair and the document identifier to be searched, the target label, target ciphertext and second forward index set corresponding to the keyword to be searched are obtained from the cloud server; wherein the target label, the target ciphertext and the second forward index set are stored in the cloud server by the data encryption storage method as described in any one of the first aspects.

[0029] In conjunction with the second aspect, the revocation key and the trapdoor are generated based on the following steps:

[0030] Converting the first set of keywords to be searched into a second set in binary form;

[0031] updating the search count, target key and deletion list of the keyword to be searched in the second set;

[0032] Get the target keyword to be searched with the least number of searches in the search frequency list;

[0033] Based on the key list and the deletion list, obtaining the intermediate key corresponding to the target keyword to be searched;

[0034] The revocation key and the trapdoor are generated based on the intermediate key.

[0035] In combination with the second aspect, after generating the revocation key and the trapdoor, the method further includes:

[0036] Updating the target key of the keyword to be searched, and increasing the number of searches of the keyword to be searched in the second set by one;

[0037] Run a preset search algorithm to obtain a plurality of ciphertext label pairs.

[0038] In a third aspect, a data encryption storage system is provided, comprising:

[0039] A client of a data owner, wherein the client of the data owner is configured to execute the encryption storage method for data as described in any one of the first aspects;

[0040] A cloud server, the cloud server is communicatively connected to the client of the data owner, and the cloud server is configured to execute the encrypted search method for data as described in any one of the second aspects.

[0041] One of the above technical solutions has the following advantages or beneficial effects:

[0042] Compared with the prior art, the encryption storage method of data provided by the present application is used for the client of the data owner, and the encryption storage method includes: obtaining a target entry, the target entry includes a target document identifier and a target keyword; obtaining a target key, a target tag and a first forward index set corresponding to the target keyword; in response to the preset first judgment condition being true, the target entry is an entry to be added, updating the first forward index set to generate a second forward index set, generating a target ciphertext based on the target key, the target document identifier and the target tag, and uploading the target tag, the target ciphertext and the second forward index set to the cloud server for storage; or, in response to the preset second judgment condition being true, the target entry is an entry to be deleted, updating the first forward index set to generate a third forward index set, compressing the target tag to a preset deletion list, and uploading the third forward index set and the deletion list to the cloud server for storage. In this way, by encrypting the entry to be added and storing it in the cloud server in the form of the target ciphertext and the second forward index set, and at the same time, only uploading the third forward index set and the deletion list of the entry to be deleted to the cloud server for storage, multiple deletion operations are compressed into one list for encryption, and backward privacy is achieved.

[0043] The encrypted search method for data provided in the present application is used in a cloud server, and the encrypted search method includes: receiving a revocation key and a trapdoor corresponding to a keyword to be searched in response to a search instruction; obtaining multiple ciphertext label pairs corresponding to the keyword to be searched based on the keyword to be searched; unlocking the ciphertext label pair based on the revocation key to obtain a decrypted document identifier to be searched; obtaining a target label, a target ciphertext, and a second forward index set corresponding to the keyword to be searched from the cloud server based on the ciphertext label pair and the document identifier to be searched; wherein the target label, the target ciphertext, and the second forward index set are stored in the cloud server by an encrypted storage method for data such as any one of the items in the first aspect. In this way, the present application does not need to decrypt deleted documents, avoids data leakage caused by multiple interactions with the cloud server during the search process, and realizes the protection of backward privacy. At the same time, the target key of the keyword to be searched is updated in each search operation, realizing the protection of forward privacy.

[0044] The data encryption storage system provided in the present application has all the technical features and beneficial effects of the above-mentioned data encryption storage method and data encryption search method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0046] Figure 1 A schematic diagram of the structure of a data encryption storage system provided in an embodiment of the present application;

[0047] Figure 2 This is a schematic diagram of the data structure of keywords in the embodiments of the present application;

[0048] Figure 3 This is a schematic diagram of the execution logic of the data encryption storage system in the embodiment of the present application;

[0049] Figure 4 A schematic diagram of a flow chart of a method for encrypting and storing data provided in an embodiment of the present application;

[0050] Figure 5 A flowchart of an encrypted data search method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. In the description of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0052] The applicant discovered that in Dynamic Symmetric Searchable Encryption (DSSE), newly added data will reveal its connection with previously searched keywords. After the data is deleted, the cloud server can still match the deleted data, thereby leaking the connection between the deleted data and the keywords subsequently queried.

[0053] To this end, this application marks the keyword index pairs in the entries to be deleted based on the puncturing pseudo-random function, generates a revocable key, and does not upload the ciphertext of the deleted entries to the cloud server, so that the cloud server cannot decrypt the marked keywords, which is equivalent to encrypting in a way that the deleted documents cannot be decrypted, achieving backward privacy. In this way, the search results returned by the cloud server do not include the deleted documents, avoiding data leakage caused by multiple interactions with the cloud server during the search process.

[0054] The specific implementation methods of the present application are described below by way of examples:

[0055] See also Figure 1 and Figure 3 , Figure 1 A schematic diagram of the structure of the data encryption storage system provided in the embodiment of the present application is shown. Figure 3 The execution logic diagram of the data encryption storage system in the embodiment of the present application is illustrated. The data encryption storage method and data encryption search method provided in the embodiment of the present application can be applied to Figure 1 In the encrypted storage system of data shown in FIG. The data owner's client 100 encrypts the document data to form a security index and a ciphertext document, and uploads the security index and the ciphertext document to the cloud server 200 for storage; the cloud server 200 is configured to respond to the search instruction sent by the data user's client 300, search for the corresponding search results from the security index and the ciphertext document, and return them to the data user's client 300. Figure 1 In the encrypted storage system of data shown, the client 100 of the data owner and the client 300 of the data user can be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc., and the portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.

[0056] Please refer again Figure 1 and Figure 3 , see also Figure 4 , Figure 4 The present application provides a data encryption storage method for a client of a data owner, and the encryption storage method includes:

[0057] Step 102, obtaining a target entry. In the present application, the target entry is in the form of (ind, w), wherein the target entry includes a target document identifier ind and a target keyword w.

[0058] Step 103, obtaining a target key, a target tag and a first forward index set corresponding to the target keyword; wherein the target tag is t, and the target tag is obtained by performing a pseudo-random function on the target keyword and the target document identifier, specifically: Among them, K t is the second forward key obtained in advance, and F is a pseudo-random function. The first forward index set is Tmp, specifically Wherein, I is a list storing all forward indexes, including but not limited to the first forward index set, the second forward index set and / or the third forward index set, W T is the set of keywords stored in List I.

[0059] In one embodiment, the target key msk is obtained from the pre-acquired key list MSK, the search count list C and the deletion list D, specifically: msk=(msk, D, i): msk←MSK[w], D←D[w], i←C[w].

[0060] In one embodiment, when the target keyword w is a new keyword, that is, msk=⊥, a target key msk is generated based on the revocation key sk of the target keyword w and the data structure D, that is, a key msk←SRE.KGen(1 λ ), msk=(sk,D), where sk is the revocation key and D is the data structure. At the same time, the value of C[w] is assigned to 0, that is: i←0, C[w]←i.

[0061] It can be understood that the operation on the target entry (ind, w) can be either addition or deletion. To this end, the inventive concept of the present application is as follows:

[0062] Step 104, in response to the preset first judgment condition being true, the target entry is the entry to be added, the first forward index set is updated to generate a second forward index set, a target ciphertext is generated based on the target key, the target document identifier and the target tag, and the target tag, the target ciphertext and the second forward index set are uploaded to the cloud server 200 for storage. The preset first judgment condition is Among them, W T is a set of keywords stored in list I, and Tmp is the first forward index set. If the preset first judgment condition is true, the operation on the target entry is a reasonable addition operation, and the target entry is an entry to be added. At this time, the first forward index set needs to be updated to generate a second forward index set, specifically: I[ind]=Tmp, Tmp=NULL, where NULL is a null value during update. At the same time, the target ciphertext is generated based on the target key, target document identifier and target label, specifically ct←SRE.Enc(msk,ind,t), where ct is the target ciphertext, msk is the target key, ind is the target document identifier, and t is the target label. Then, run the addition algorithm to upload the target label, target ciphertext and the second forward index set to the cloud server 200 for storage. In the present application, the addition algorithm can be Σ add. Update(K add ,add,w||i,σ add ; EDB add ), where K add is the algorithm for adding undo variables, σ add Add algorithm to store total table, EDB addIt is an algorithm for adding search results. It can be understood that if the preset first judgment condition is false, the operation on the target item is an illegal operation and the related operation is not performed.

[0063] Step 105: In response to the preset second judgment condition being true and the target entry being an entry to be deleted, the first forward index set is updated to generate a third forward index set, the target tag is compressed into a preset deletion list, and the third forward index set and the deletion list are uploaded to the cloud server 200 for storage. If the preset second judgment condition is true, W T is a set of keywords stored in list I, and Tmp is the first forward index set. The operation on the target entry is a reasonable deletion operation, and the target entry is the entry to be deleted. At this time, the first forward index set needs to be updated to obtain the third forward index set, specifically: I[ind]=Tmp, Tmp=NULL, where NULL is the intermediate null value during the update. It should be noted that at this time, there is no need to generate the target ciphertext again, but the entry to be deleted is compressed into the deletion list, specifically: D←SRE.Comp(D,t), D[w]←D, where D represents the data structure for storing the target keyword w for deletion, D[w] represents the deletion list, and t is the target label. In this way, each time the deletion operation is performed on the target entry, the label will be compressed into the deletion list, and then the third forward index set and the deletion list will be uploaded to the cloud server 200 for storage, avoiding the deleted target entry from being returned as a search result, and avoiding data leakage caused by multiple interactions with the cloud server 200 during the search process. It can be understood that if the preset second judgment condition is false, the operation on the target entry is an illegal operation and the related operation is not performed.

[0064] In one embodiment, before obtaining the target entry, the method further includes:

[0065] Step 101, randomly select initialization parameters and initialize the key list MSK, search count list C, deletion total list D, forward index list I and result list EDB cache , generate the revocation variable K = (K add ,K s ,K t ), storage total table σ = (σ add ,MSK,C,D) and search result table EDB=(EDB add ,EDB cache ).

[0066] Specifically, the key list is configured to store the target key corresponding to each target keyword; the search count list is configured to store the search count of each target keyword; the deletion summary table is configured to store the deletion list; the forward index list is configured to store the first forward index set, the second forward index set and / or the third forward index set; and the result list is configured to store the search results of historical queries.

[0067] In one embodiment, the initialization parameters are selected as follows: The initialization parameters are configured to include the first forward key K s , the second forward key K t and security parameter λ. In the present application, the security parameter value is preferably λ=4096; the revocation variable is configured to include the revocation variable adding algorithm K add , the first forward key K s and the second forward key K t ; The storage summary table is configured to include the addition algorithm σ of the summary table add , key list MSK, search count list C and deletion list D; search result list is configured and result list EDB cache .

[0068] In some embodiments, the steps of the data encryption storage method of the present application can be described by the following code:

[0069]

[0070] Among them, Setup(1 λ ) is the initialization step, EDB add Adding algorithms for search results, K add is the algorithm for adding undo variables, σ add Adding algorithm for storing total table, Σ add. Setup(1 λ ) is the initialization function, K s is the first forward key, K t is the second forward key, λ is the security parameter, EDB cache is the result list, MSK is the key list, C is the search count list, D is the deletion list, I is the forward index list, EDB add is the algorithm for adding search results, Update(K,op,(w,ind),σ;EDB) is the target entry update step, op is the add or delete operation, K is the revocation variable, (ind,w) is the target entry, ind is the target document identifier, w is the target keyword, SRE.KGen(1 λ ) is the key generation function, F is a pseudo-random function, I is a list storing all forward indices, W Tis the set of keywords stored in list I, msk is the target key, D is the data structure storing the target keyword w for deletion, i is the number of searches for the target keyword, Tmp is the first forward index set, sk is the revocation key, NULL is the null value in the update, ct is the target ciphertext, t is the target label, Σ add. Update(K add ,add,w||i,(ct,t),σ add ; EDB add ) is the adding algorithm, and D←SRE.Comp(D,t) is the compression function of the entry to be deleted.

[0071] In summary, the encryption storage method of data provided by the present application is based on the puncture pseudo-random function to mark the keyword index pairs in the entry to be deleted, generate a revocable key, and do not upload the ciphertext of the deleted entry to the cloud server 200, so that the cloud server 200 cannot decrypt the marked keywords, which is equivalent to encrypting in a way that the deleted document cannot be decrypted, thereby achieving backward privacy. In this way, the search results returned by the cloud server 200 do not include the deleted documents, avoiding the problem of data leakage caused by multiple interactions with the cloud server 200 during the search process. At the same time, the present application compresses multiple deletion operations into a deletion list, and then marks a deletion list, and only generates one revocable key accordingly, avoiding the need to mark the target entry for deletion for each deletion operation, and reducing the communication overhead in the storage process. In addition, the present application uses a bitmap index, and each time the target entry is operated, the operator operation between the indexes is used to determine whether the current operation is a reasonable operation, thereby ensuring the security of the target entry storage.

[0072] Accordingly, the present application embodiment provides a data encryption search method for a cloud server, please refer to Figure 3 , see also Figure 5 , Figure 5 The flowchart of the encrypted search method for data provided in the embodiment of the present application is illustrated. The encrypted search method includes:

[0073] Step 201, in response to a search instruction, receiving a revocation key and a trapdoor corresponding to a keyword to be searched; specifically, the search instruction of the present application may be issued by a data user's client 300. It is understandable that the keyword to be searched usually exists in the form of a first set.

[0074] In some embodiments, the revocation key and trapdoor are generated based on the following steps:

[0075] Step 301: convert a first set of keywords to be searched into a second set in binary form.

[0076] The second set is specifically expressed as q=(w1,...,w n )→(i=1,..,n), where (w1,...,w n ) are multiple keywords to be searched, and (i=1,..,n) is the number of searches for each keyword. After conversion to binary, the data structure D can be found in Figure 2 , Figure 2 The data structure diagram of the keywords in the embodiment of the present application is shown, where t i is a keyword, R is a real number, and in the present application, after the first set of keywords to be searched is converted into binary, the search speed can be improved.

[0077] Step 302, update the search count, target key, and deletion list of the keyword to be searched in the second set. Specifically, the search count, target key, and deletion list of the keyword to be searched in the second set are updated to ensure the accuracy of the search results. Specifically, the present application achieves forward privacy protection by updating the target key of the keyword to be searched in each search operation.

[0078] Step 303, obtaining the target keyword to be searched with the least number of searches in the search number list. The search number list of the target keyword to be searched is C[w1]. Assuming that the target keyword to be searched is w1, the specific search process is: i←C[w1].

[0079] Step 304, based on the key list and the deletion list, obtain the intermediate key corresponding to the target keyword to be searched; specifically: (sk, D)←MSK[w1], D←D[w1], where MSK[w1] is the key list of the target keyword to be searched, D[w1] is the deletion list of the target keyword to be searched, and (sk, D) is the intermediate key.

[0080] Step 305: Generate a revocation key and a trapdoor based on the intermediate key. The specific method of generating the revocation key is: R ←SRE.cKRev(sk,D), where sk R To revoke the key, the specific method of generating the trapdoor is: tkn = F(K s ,w i ), where tkn is a trapdoor, F is a pseudo-random function, and w i is any target keyword to be searched, and the value of i is determined according to the target keyword to be searched obtained in step 303.

[0081] In some embodiments, after generating the revocation key and the trapdoor, the method for encrypting and searching data further includes:

[0082] Step 306, update the target key of the keyword to be searched, and increase the search times of the keyword to be searched in the second set by one; specifically, update the key msk of the target keyword to be searched w1: MSK[w i ]←msk,D[w i ]←D, and then increase the search times of the keyword to be searched in the second collection q by 1. In this way, after each search operation, the present application updates the target key, thereby achieving forward privacy.

[0083] Step 307: Run a preset search algorithm to obtain multiple ciphertext label pairs. In this application, the search algorithm can be Σ add. Search(K add ,w1||i,σ add ; EDB add ), where K add is the algorithm for adding undo variables, σ add Add algorithm to store total table, EDB add Added algorithms for search results.

[0084] Step 202: Based on the keyword to be searched, obtain multiple ciphertext label pairs corresponding to the keyword to be searched; illustratively, the ciphertext label pairs are

[0085] Step 203, unlock the ciphertext label pair based on the revocation key, and obtain the decrypted identifier of the document to be searched; illustratively, using the revocation key (sk R , D) for the undeleted index {(ct i ,t i )} to decrypt, specifically: ind i =SRE.Dec((sk R ,D),ct i ,t i ), where ind i The identifier of the document to be searched.

[0086] Step 204, based on the ciphertext label pair and the document identifier to be searched, obtain the target label, target ciphertext and second forward index set corresponding to the keyword to be searched from the cloud server; wherein the target label, target ciphertext and second forward index set are stored in the cloud server by an encryption storage method of data as in any one of the above embodiments.

[0087] In some embodiments, the steps of the encrypted data search method of the present application can be described by the following code:

[0088]

[0089] Among them, Search(K,q=(w1,...,wn ),σ,EDB) is the search step, q=(w1,...,w n )→(i=1,..,n) is the second set, (w1,...,w n ) are multiple keywords to be searched, (i=1,..,n) is the number of searches for each keyword, EDB add Adding algorithms for search results, K add is the algorithm for adding undo variables, σ add To store the total table addition algorithm, K s is the first forward key, K t is the second forward key, λ is the security parameter, EDB cache is the result list, MSK[w1] is the key list of the target keyword to be searched, D[w1] is the deletion list of the target keyword to be searched, (sk, D) is the intermediate key, C[w1] is the search count list of the target keyword to be searched, EDB add is the algorithm for adding search results, K is the revocation variable, F is the pseudo-random function, I is the list storing all forward indexes, and W T is the set of keywords stored in list I, msk is the target key, D is the data structure storing the target keyword w for deletion, i is the number of searches for the target keyword, Tmp is the first forward index set, sk is the revocation key, ct is the target ciphertext, t is the target label, Σ add. Search(K add ,w1||i,σ add ; EDB add ) is the search algorithm, ((ct1, t1), (ct2, t2), …, (ct l , t l )) is the ciphertext label pair, ind i is the document identifier to be searched, w1 is the target keyword to be searched, and tkn is the trapdoor.

[0090] In summary, in the encrypted data search method provided by this application, there is no need to decrypt deleted documents, avoiding data leakage caused by more than 200 interactions with the cloud server during the search process, and realizing backward privacy protection. At the same time, the target key of the keyword to be searched is updated in each search operation, realizing forward privacy protection.

[0091] Accordingly, an embodiment of the present application provides a data encryption storage system, including:

[0092] The client 100 of the data owner is configured to execute the encryption storage method of data in any one of the aforementioned embodiments;

[0093] The cloud server 200 is communicatively connected with the client 100 of the data owner, and the cloud server 200 is configured to execute an encrypted search method for data as described in any one of the aforementioned embodiments.

[0094] It is understandable that the data encryption storage system may also include a data user's client 300 configured to send a search instruction to the cloud server 200 .

[0095] The data encryption storage system provided in the present application has all the technical features and beneficial effects of the above-mentioned data encryption storage method and data encryption search method, which will not be repeated here.

[0096] The above is a detailed introduction to the data encryption storage method, encryption search method and encryption storage system provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solution and its core idea of ​​the present application. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the present application.

Claims

1. A method for encrypting and storing data, characterized in that: For the client of the data owner, the encryption storage method includes: Acquire a target entry, wherein the target entry includes a target document identifier and a target keyword; Obtaining a target key, a target tag, and a first forward index set corresponding to the target keyword; In response to a preset first judgment condition being true, the target entry is an entry to be added, updating the first forward index set to generate a second forward index set, generating a target ciphertext based on the target key, the target document identifier and the target tag, and uploading the target tag, the target ciphertext and the second forward index set to a cloud server for storage; or, In response to the preset second judgment condition being true, the target entry is an entry to be deleted, the first forward index set is updated to generate a third forward index set, the target tag is compressed into a preset deletion list, and the third forward index set and the deletion list are uploaded to the cloud server for storage.

2. The method for encrypting and storing data according to claim 1, characterized in that: Before obtaining the target entry, the method further includes: Randomly select initialization parameters, and initialize the key list, search count list, deletion list, forward index list and result list, and generate revocation variables, storage list and search result list.

3. The method for encrypting and storing data according to claim 2, characterized in that: The key list is configured to store the target key corresponding to each target keyword; The search times list is configured to store the search times of each target keyword; The deletion summary table is configured to store the deletion list; The forward index list is configured to store the first forward index set, the second forward index set and / or the third forward index set; The result list is configured to store search results of historical queries.

4. The method for encrypting and storing data according to claim 2, wherein: The initialization parameters are configured to include a first forward key, a second forward key, and a security parameter; The revocation variable is configured to include an adding algorithm of the revocation variable, the first forward key, and the second forward key; The storage master table is configured to include an addition algorithm of the master table, the key list, the search times list and the deletion list; The search result summary table is configured to include a search result adding algorithm and the result list.

5. The method for encrypting and storing data according to claim 4, characterized in that: The target key is acquired from the key list, the search count list, and the deletion list based on the target keyword.

6. The method for encrypting and storing data according to claim 5, characterized in that: When the target keyword is a new keyword, the target key is generated based on the revocation key and the data structure of the target keyword.

7. A method for encrypted search of data, characterized in that: For a cloud server, the encrypted search method includes: In response to the search instruction, receiving a revocation key and a trapdoor corresponding to the keyword to be searched; Based on the keyword to be searched, obtaining a plurality of ciphertext label pairs corresponding to the keyword to be searched; Unlock the ciphertext label pair based on the revocation key to obtain a decrypted identifier of the document to be searched; Based on the ciphertext label pair and the document identifier to be searched, a target label, a target ciphertext and a second forward index set corresponding to the keyword to be searched are obtained from the cloud server; wherein the target label, the target ciphertext and the second forward index set are stored in the cloud server by the encryption storage method for data as described in any one of claims 1 to 6.

8. The encrypted data search method according to claim 7, characterized in that: The revocation key and the trapdoor are generated based on the following steps: Converting the first set of keywords to be searched into a second set in binary form; updating the search count, target key and deletion list of the keyword to be searched in the second set; Get the target keyword to be searched with the least number of searches in the search frequency list; Based on the key list and the deletion list, obtaining the intermediate key corresponding to the target keyword to be searched; The revocation key and the trapdoor are generated based on the intermediate key.

9. The encrypted data search method according to claim 8, characterized in that: After generating the revocation key and the trapdoor, the method further includes: Updating the target key of the keyword to be searched, and increasing the number of searches of the keyword to be searched in the second set by one; Run a preset search algorithm to obtain a plurality of ciphertext label pairs.

10. A data encryption storage system, characterized in that: include: A client of a data owner, wherein the client of the data owner is configured to execute the encryption storage method for data according to any one of claims 1 to 6; A cloud server, the cloud server being communicatively connected to a client of the data owner, the cloud server being configured to execute the encrypted search method for data as described in any one of claims 7 to 9.