Dynamic symmetric searchable encryption method and system for hiding addition and deletion associations
Through a dynamic symmetric searchable encryption method that hides additions and deletions, combined with pseudo-random replacement and symmetric puncture encryption, the problem of storage redundancy and computing overhead in cloud storage is solved, and safe and efficient file additions, deletions, and searches are achieved.
Patent Information
- Application Number
- CN202111268499.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-10-29
AI Technical Summary
Existing second-category backward security solutions have the problem of being unable to balance storage redundancy and computing overhead in cloud storage. Especially when deletion operations are frequent, server-side storage redundancy increases and re-encryption computing overhead is high.
It adopts a dynamic symmetric searchable encryption method that hides additions and deletions, generates additions and deletions tags, puncture keys and deletion tags through pseudo-random replacement, and combines it with the symmetric puncture encryption algorithm to achieve a combination of logical deletion and physical deletion, reduce information leakage, and on the server side Cache search results to avoid re-encryption.
It is possible to reduce server storage redundancy and computing overhead without leaking the association of add and delete operations, improve security, avoid information leakage, and improve search efficiency and security.
Smart Images

Figure CN114021163B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of cloud storage security, and more specifically, relates to a dynamic symmetric searchable encryption method and system for hiding addition and deletion associations. Background Art
[0002] In the era of big data, the amount of data is expanding, and local computing and storage resources can no longer meet people's needs. More and more companies and users choose cloud storage as a solution. In cloud storage application scenarios, if data is directly stored in plain text, user privacy will be leaked, but data encryption will limit applications such as keyword search. Dynamic symmetric searchable encryption technology is designed to solve the problem of retrieval on ciphertext, while supporting file addition and deletion operations. However, data updates often leak privacy information. At present, forward and backward security is mainly used to measure the security of dynamic symmetric searchable encryption schemes. Among them, the second type of backward security refers to not leaking the association of addition and deletion operations on the same keyword-file identifier pair. In particular, the second type of backward security proposed at the beginning also needs to meet the requirement of not leaking the operation type, but in existing solutions, the operation type can be determined.
[0003] The second type of existing backward security solutions usually adopt the form of logical deletion, and the client actually completes the removal of deleted files. If the server does not perform physical deletion, for deletion-intensive operations, the server-side storage will become very redundant and the communication overhead will increase. If the server performs physical deletion, in order to meet forward security, all search results need to be re-encrypted after each search. For search-intensive operations, re-encryption will bring huge computational overhead. Summary of the invention
[0004] In view of the defects and improvement needs of the prior art, the present invention provides a dynamic symmetric searchable encryption method and system for hiding the addition and deletion associations, which aims to solve the problem of the imbalance between storage redundancy and computational overhead in the second-category backward security scheme. It satisfies weak second-category backward security and does not disclose the addition and deletion operation associations of the same keyword-file identifier pair when only the addition and deletion operations are performed on the same keyword-file identifier pair between two searches.
[0005] To achieve the above-mentioned purpose, according to one aspect of the present invention, a dynamic symmetric searchable encryption method for hiding addition and deletion associations is provided, including a ciphertext deletion step, the ciphertext deletion step including: S1, using pseudo-random permutation, generating an addition tag including a keyword, a file identifier and an addition operation, and generating a deletion tag including the keyword, the file identifier and the deletion operation; S2, puncturing the SPE master key currently used for puncturing under the addition tag and the deletion tag to obtain a puncture key and a new master key, and updating the SPE master key currently used for puncturing to the new master key; S3, sending the puncture key and the deletion tag to a server, so that the server adds the puncture key and the deletion tag to a deletion instance to perform a ciphertext deletion operation.
[0006] Furthermore, when the keyword is updated for the first time after the last search for the keyword and the update is a ciphertext deletion, the S1 also includes: randomly selecting multiple obfuscated keywords; the ciphertext deletion step also includes: performing addition tag generation, deletion tag generation, puncture and sending operations on each of the obfuscated keywords, so that the server adds the obfuscated puncture key and the obfuscated deletion tag to the deletion instance.
[0007] Furthermore, the puncture key obtained in S2 is:
[0008] (sk',psk)←SPE.IncPun(sk',tag,tag')
[0009] Wherein, psk is the puncture key, sk' is the SPE master key used for puncture, tag is the increment tag, tag' is the deletion tag, and SPE.IncPun() is the incremental operation of symmetric puncture encryption;
[0010] The adding operation in S3 is:
[0011] ∑ del .Update(K del ,add,w||s w ,(tag',psk),u del ; EDB del )
[0012] Among them, K del The key required to calculate the puncture key and the deletion tag to add to the logical position in the deletion instance, add is the increase operation, w is the keyword, s w is the number of searches on keyword w, u del To delete the number of updates of keyword w in the instance, EDB del is the data dictionary structure, Update() is the dynamic symmetric searchable encryption update protocol, ∑ delTo delete an instance.
[0013] Furthermore, it includes a ciphertext adding step, which includes: S1′, using pseudo-random permutation to generate an addition tag including a keyword, a file identifier and an addition operation; S2′, using a symmetric puncture encryption algorithm under the current master key and the addition tag to encrypt the file identifier to obtain a ciphertext; S3′, sending the ciphertext and the addition tag to a server, so that the server adds the ciphertext and the addition tag to the addition instance to perform a ciphertext adding operation.
[0014] Furthermore, when the current master key is empty, before S2′, the process further includes: randomly setting a maximum number of puncture times d, and initializing a symmetric puncture encryption algorithm according to a security parameter λ and the maximum number of puncture times d, to obtain the current master key:
[0015] msk=SPE.KeyGen(1 λ ,d)
[0016] Among them, msk is the current master key, and SPE.KeyGen() is the master key generation sub-algorithm of symmetric puncture encryption.
[0017] Furthermore, when the keyword is updated for the first time after the last search for the keyword and the update is a ciphertext addition, the S1′ also includes: randomly selecting multiple obfuscated keywords; the ciphertext adding step also includes: performing an increase tag generation, encryption using a symmetric puncture encryption algorithm, and sending operations on each of the obfuscated keywords, so that the server adds the obfuscated ciphertext and the obfuscated increase tag to the increase instance.
[0018] Furthermore, it also includes a ciphertext search step, which includes: S1″, the client calculates the search trap for the keyword to be searched, and sends the search trap and the SPE master key currently used for puncture to the server; S2″, the server decrypts the searchable ciphertext updated after the last search for the keyword to be searched according to the puncture key and ciphertext-label set stored therein, and sends the deletion label set and the result set that failed to be decrypted to the client, and the result set includes the file identifier-label pair obtained by successful decryption and the file identifier-label pair searched when the keyword to be searched was searched last time; S3″, the client performs an inverse operation of pseudo-random permutation on the deletion label set that failed to be decrypted to obtain the deleted keyword-file identifier pair, and removes the file identifier-label corresponding to the deleted keyword-file identifier pair in the result set to obtain the final result set and send it to the server; S4″, the server updates the file identifier-label pair searched when the keyword to be searched was searched last time in its cache to the final result set, and returns the ciphertext matching the file identifier in the final result set to the client.
[0019] Furthermore, the inverse operation of the pseudo-random permutation in S3″ is:
[0020]
[0021] in, is the inverse operation of pseudo-random permutation, tag is the label, w_, ind and op are the keyword, file identifier and operation type obtained by the inverse operation of pseudo-random permutation respectively.
[0022] Furthermore, in S2″, when the set of deleted tags that failed to be decrypted is empty, the server directly returns the ciphertext that matches the file identifier in the result set to the client, and updates the cached file identifier-tag pair that was searched the last time the keyword to be searched was searched to the result set.
[0023] According to another aspect of the present invention, there is provided a dynamic symmetric searchable encryption system for hiding addition and deletion associations, comprising a processor and a memory, wherein the memory stores a computer executable program, and when the program is executed by the processor, the processor executes the dynamic symmetric searchable encryption method for hiding addition and deletion associations as described above.
[0024] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0025] (1) Generate corresponding tags based on keywords, file identifiers, and operation types. Implicitly include the operation type in the tag. Different tags are assigned to add and delete operations, respectively, to achieve the unlinkability of add and delete operations, reduce information leakage in search operations, and thus improve security. Combined with the symmetric puncture encryption algorithm, the decryption function of deleted files can be revoked, further improving security.
[0026] (2) A combination of logical deletion and physical deletion is used. Logical deletion is used to insert and delete entries in the index. During search, the server performs physical deletion and stores each search result in a cache database instance on the server side. This avoids storage redundancy on the server side, and the last search result cannot be associated with subsequent update entries. This also avoids the computational overhead caused by re-encryption.
[0027] (3) In the first update operation after the last search, multiple fake update entries are constructed to confuse the actual update entries, thereby preventing the server from comparing the two search results to infer the association between the add and delete operations when there are only two add and delete operations corresponding to the same keyword-file identifier pair after the last search, thereby avoiding information leakage in special circumstances. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic diagram of an application scenario of a dynamic symmetric searchable encryption method for hiding addition and deletion associations provided by an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of the operation of the initialization phase in the dynamic symmetric searchable encryption method for hiding addition and deletion associations provided by an embodiment of the present invention;
[0030] Figure 3 A flowchart of the ciphertext deletion phase in the dynamic symmetric searchable encryption method for hiding addition and deletion associations provided in an embodiment of the present invention;
[0031] Figure 4 A schematic diagram of the operation of the ciphertext deletion phase in the dynamic symmetric searchable encryption method for hiding addition and deletion associations provided by an embodiment of the present invention;
[0032] Figure 5 A flowchart of the ciphertext adding phase in the dynamic symmetric searchable encryption method for hiding addition and deletion associations provided by an embodiment of the present invention;
[0033] Figure 6 A schematic diagram of the operation of the ciphertext adding stage in the dynamic symmetric searchable encryption method for hiding the addition and deletion association provided by an embodiment of the present invention;
[0034] Figure 7 A flowchart of the ciphertext search phase in the dynamic symmetric searchable encryption method for hiding addition and deletion associations provided in an embodiment of the present invention;
[0035] Figure 8 A schematic diagram of the operation of the ciphertext search phase in the dynamic symmetric searchable encryption method for hiding addition and deletion associations provided by an embodiment of the present invention;
[0036] Fig. 9 A schematic diagram of pseudo-random function construction of a multi-label puncture algorithm provided in an embodiment of the present invention;
[0037] Fig.10 A block diagram of a dynamic symmetric searchable encryption system for hiding addition and deletion associations provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0039] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.
[0040] Figure 1 A schematic diagram of an application scenario of a dynamic symmetric searchable encryption method for hiding addition and deletion associations provided by an embodiment of the present invention. Figure 1 In this embodiment, the dynamic symmetric searchable encryption method for hiding addition and deletion associations includes three stages: an initialization stage, an update stage, and a search stage.
[0041] Initialization phase: The client generates key and other state information based on security parameters, and initializes the encrypted database instance for the server. The private state is stored on the client, and the searchable encrypted index structure is sent to the server.
[0042] Update phase: Using keyword-file identifier pairs as the basic unit for addition or deletion, the client generates searchable ciphertext, builds a searchable ciphertext index structure and uploads it to the server, which updates the existing index structure. It should be noted that if the entire file needs to be added or deleted, multiple executions of the update protocol can achieve the same effect, and fine-grained dynamic updates can be achieved.
[0043] Search phase: First, the client generates a search trap based on the keyword to be searched, sends it to the server, and the server performs ciphertext retrieval, returns a ciphertext set containing the keyword, and the client decrypts it to obtain a file set that matches the keyword. Since the server can only decrypt and obtain the identifiers of files that have not been deleted since the last search, the client removes the deleted files from the file set, so the search protocol needs to be completed by two rounds of interaction between the client and the server.
[0044] Combine the following Figure 2-Figure 9 , the dynamic symmetric searchable encryption method for hiding the addition and deletion association in this embodiment is described in detail. In this embodiment, two forward-secure symmetric searchable encryption schemes ∑ op = (Setup, Search, Update) to achieve backward security. The cryptographic tools used in the construction process are: pseudo-random function F: {0, 1} l ×{0,1} * →{0,1} λ ; Pseudo-random permutation G:{0,1} l ×{0,1} * →{0,1} * ; Symmetric puncture encryption scheme SPE = (KeyGen, Enc, Pun, Dec).
[0045] The pseudo-random function construction of the multi-label puncture algorithm used in this embodiment is as follows: Fig. 9 As shown, this embodiment improves the puncture encryption to support multiple punctures on the same pseudo-random tree. The puncture key psk obtained by puncturing two leaf nodes x and y x,y for:
[0046]
[0047] Among them, F k (t) represents a pseudo-random function, N x Indicates P x The sibling nodes of the middle node, N y Indicates P y The sibling nodes of the middle node, the path consisting of x' and y' are both 0 or 1, P x , P y Respectively represent the path nodes from the root node to the leaf nodes x and y. Fig. 9 , pierce tags 000 and 100, and the shadow node is the piercing key.
[0048] See also Figure 2 , showing the specific operations of the initialization phase of the dynamic symmetric searchable encryption method for hiding addition and deletion associations, the initialization phase includes the following operations:
[0049] Initialize the security parameter λ, and initialize the forward-secure encrypted database instances according to the security parameter λ: increase the instance ∑ add and delete instance∑ del , increase the instance add Used to store added entries encrypted by symmetric puncture encryption (SPE), and delete instances∑ add Used to store the puncture key corresponding to the deleted entry. For addition and deletion examples, refer to the existing forward security solution:
[0050] (EDB add ,K add ,UC add )←∑ add .Setup(1 λ )
[0051] (EDB del ,K del ,UC del )←∑ del .Setup(1 λ )
[0052] Randomly select two keys K of length λ bits g and K d , corresponding to the master key of pseudo-random function F and pseudo-random permutation G respectively. Use empty sets to initialize dictionary structures MSK, PSK, SC, DEL, EDB cache Among them, MSK stores the encryption keys of all keywords, PSK stores the SPE master key used for subsequent puncture, SC stores the number of search operations performed on the keyword, DEL stores the maximum number of deletions of the keyword, and EDB cache The result set obtained from the last search for the keyword is retained.
[0053] The key (K add , K del , K g , K d ) and private status (UC add ,UC del , MSK, PSK, SC, DEL) are stored on the client side, and the ciphertext index structure (EDB) can be searched add 、EDB del 、EDB cache ) is uploaded to the cloud server.
[0054] The update phase includes ciphertext deletion and ciphertext addition operations. Figure 3 and Figure 4, showing the specific operations of the ciphertext deletion step of the dynamic symmetric searchable encryption method with hidden addition and deletion associations, the ciphertext deletion step includes operations S1-S3.
[0055] Operation S1, using pseudo-random permutation, generates an add tag including a keyword, a file identifier and an add operation, and generates a delete tag including a keyword, a file identifier and a delete operation.
[0056] Specifically, obtain the SPE master key msk←MSK[w] of keyword w; the SPE master key sk'←PSK[w] used for puncturing keyword w; the number of searches on keyword w s w ←SC[w]; delete the update count u of keyword w in the instance del ←UC del [w].
[0057] Using pseudo-random permutation, the keyword w, file identifier ind and operation type op are used to generate the tag tag corresponding to the add operation and the tag tag' corresponding to the delete operation. When op is 0, it indicates an add operation, and when op is 1, it indicates a delete operation:
[0058]
[0059]
[0060] According to an embodiment of the present invention, if the keyword is updated for the first time after the last keyword search and the update is a ciphertext deletion, a plurality of obfuscated keywords are randomly selected before operation S1 is performed. The ciphertext deletion step also includes: performing the operations of generating an add tag, generating a delete tag, puncturing, and sending for each obfuscated keyword, so that the server adds the obfuscated puncture key and the obfuscated delete tag to the deletion instance.
[0061] Specifically, according to UC del [w] Determine whether this update is the first deletion update after the last search for the keyword. If so, perform corresponding obfuscation on the keyword-file identifier pair (w, ind) to be updated. Randomly select t-1 keywords from the keyword space and construct a keyword-file identifier pair list of length t, where ind is the file identifier to be added, w k =w is the actual keyword to be added, and the corresponding operations in operation S1-operation S3 are performed on these t records respectively, and finally t-1 obfuscated puncture keys-deletion tags are added to the deletion instance.
[0062] Operation S2, puncture the SPE master key currently used for puncturing under the add tag and the delete tag, obtain the puncture key and the new master key, and update the SPE master key currently used for puncturing to the new master key.
[0063] Puncture the SPE master key sk' currently used for puncture under the tag addition and tag deletion to obtain the puncture key psk and the new master key sk':
[0064] (sk',psk)←SPE.IncPun(sk',tag,tag')
[0065] Among them, SPE.IncPun() is the incremental operation of symmetric puncture encryption. Use sk' to update PSK[w], and sk' is used for the next puncture:
[0066] PSK[w]←sk'
[0067] Update the number of times the keyword w is updated in the deletion instance:
[0068] u del =u del +1
[0069] UC del [w]←u del
[0070] Operation S3: sending the puncture key and the deletion tag to the server, so that the server adds the puncture key and the deletion tag to the deletion instance to perform a ciphertext deletion operation.
[0071] The client and server jointly execute the update protocol for deleting the instance, inserting the obtained puncture key psk and deletion tag tag' into the data dictionary structure EDB del The corresponding keywords (w||s w )’s location:
[0072] ∑ del .Update(K del ,add,w||s w ,(tag',psk),u del ; EDB del )
[0073] Among them, K del To calculate the puncture key and delete the label to add the key required when deleting the logical position in the instance, add is the increase operation, w is the keyword, s w is the number of searches on keyword w, u del To delete the number of updates of keyword w in the instance, EDB del is the data dictionary structure, Update() is the dynamic symmetric searchable encryption update protocol, ∑ del To delete an instance.
[0074] See also Figure 5 and Figure 6, showing the specific operation of the ciphertext adding step of the dynamic symmetric searchable encryption method with hidden addition and deletion associations, the ciphertext adding step includes operation S1′-operation S3′.
[0075] Operation S1′ generates an increment tag including a keyword, a file identifier and an increment operation by using pseudo-random permutation.
[0076] Specifically, obtain the SPE master key msk←MSK[w] of keyword w; the number of searches on keyword w is s w ←SC[w]; increase the update count u of keyword w in the instance add ←UC add [w], if u add =⊥, initialize it add =-1, ⊥ means empty.
[0077] Using pseudo-random permutation, the keyword w, file identifier ind and operation type op are used to generate the corresponding increase tag tag of the increase operation:
[0078]
[0079] According to an embodiment of the present invention, if it is the first time to update the keyword after the last search keyword and the update is a ciphertext addition, a plurality of obfuscated keywords are randomly selected before the operation S1′ is performed. The ciphertext addition step also includes: performing an increase tag generation, an encryption using a symmetric puncture encryption algorithm, and a sending operation on each obfuscated keyword, so that the server adds the obfuscated ciphertext and the obfuscated increase tag to the increase instance.
[0080] Specifically, according to UC add [w] Determine whether this update is the first update added after the last search for the keyword. If so, perform corresponding obfuscation on the keyword-file identifier pair (w, ind) to be updated. Randomly select t-1 keywords from the keyword space and construct a keyword-file identifier pair list of length t, where ind is the file identifier to be added, w k =w is the actual keyword to be added, and the corresponding operations in operation S1′-operation S3′ are performed on these t records respectively, and finally t-1 obfuscated ciphertext-label pairs are added to the added instance.
[0081] Operation S2′, under the current master key and the added tag, the file identifier is encrypted using a symmetric puncture encryption algorithm to obtain a ciphertext.
[0082] According to an embodiment of the present invention, when the current master key msk is empty, the operation S2′ also includes: initializing the state information of the keyword. Specifically, the maximum puncture number d is randomly set, the maximum puncture number DEL[w]←d is initialized, and the symmetric puncture encryption algorithm is initialized according to the security parameter λ and the maximum puncture number d to obtain the current master key:
[0083] msk=SPE.KeyGen(1 λ ,d)
[0084] Among them, msk is the current master key, and SPE.KeyGen() is the master key generation sub-algorithm of symmetric puncture encryption.
[0085] Furthermore, SPE is used to calculate the ciphertext ct of the file identifier under tag:
[0086] ct = SPE.Enc(msk,ind,tag)
[0087] Update the number of times the keyword w is updated in the increment instance:
[0088] u add =u add +1
[0089] UC add [w]←u add
[0090] Operation S3′, sending the ciphertext and the augmentation tag to the server, so that the server adds the ciphertext and the augmentation tag to the augmentation instance to perform a ciphertext adding operation.
[0091] The client and server jointly execute the update protocol of the added instance, inserting the obtained ciphertext ct and the added tag tag into the data dictionary structure EDB add The corresponding keywords (w||s w )’s location:
[0092] ∑ add .Update(K add ,add,w||s w ,(ct,tag),u add ; EDB add )
[0093] Among them, K add The key required to calculate the ciphertext and add the incremental tag to the logical position in the incremental instance, ∑ add To increase the example.
[0094] See also Figure 7 and Figure 8, showing the specific operations of the ciphertext search step of the dynamic symmetric searchable encryption method with hidden addition and deletion associations, the ciphertext search step includes operations S1″-S4″.
[0095] Operation S1″: the client calculates the search trap for the keyword to be searched, and sends the search trap and the SPE master key currently used for puncturing to the server.
[0096] Specifically, the following parameters are obtained: the number of searches s on the keyword w w ←SC[w]; keyword w is used to puncture the SPE master key sk'←PSK[w]; the number of updates u of keyword w in the addition and deletion instances respectively add ←UC add [w]、u del ←UC del [w].
[0097] If w =⊥, indicating that the keyword w has not been initialized, that is, there has been no addition or deletion operation on the keyword w, so there is no file matching the keyword w, an empty set is returned and the search protocol ends, otherwise the following operations are performed:
[0098] Compute the search token tkn used to retrieve the last search result:
[0099]
[0100] After each search, the maximum number of deletions of keyword w can be reselected as needed. In this embodiment, the same d is used for initialization for simplicity:
[0101] d←d max
[0102] DEL[w]←d
[0103] Update the SPE master key for the next updated encryption and puncture operation:
[0104] msk←SPE.KeyGen(1 λ ,d)
[0105] Update the MSK and PSK dictionaries with the new SPE master key:
[0106] MSK[w]←msk
[0107] PSK[w]←msk
[0108] Update the search count of keyword w, set the update count of keyword w corresponding to adding and deleting instances to -1, and send the search trap (tkn, sk') to the server:
[0109] SC[w]←s w +1
[0110] UC add [w]←-1
[0111] UC del [w]←-1
[0112] Operation S2″, the server decrypts the searchable ciphertext updated after the last search for the keyword to be searched according to the puncture key and ciphertext-label set stored therein, and sends the deleted label set and the result set for which the decryption failed to be performed to the client, wherein the result set includes the file identifier-label pair obtained by the successful decryption and the file identifier-label pair searched when the keyword to be searched was searched last time.
[0113] See also Figure 8 The server stores the puncture key set (psk1, psk2, ..., psk m ) and the ciphertext-tag set ((ct1,tag1),(ct2,tag2),…,(ct n ,tag n ))Decrypt the newly updated searchable ciphertext after the last search, obtain the undeleted file identifier, and record the label corresponding to the ciphertext that failed to decrypt.
[0114] The specific implementation process is as follows:
[0115] 1) From EDB cache Get the last search result set RS w :
[0116] RS w ←EDB cache [tkn]
[0117] 2) According to the SPE key sk' and the puncture key set (psk1, psk2, ..., psk m )Construct the decryption key SK:
[0118] SK=(sk',psk1,…,psk m )
[0119] 3) Initialize an empty tag set Used to record the labels corresponding to the ciphertexts that failed to be decrypted.
[0120] 4) Initialize i←1, when i≤n, (ct i ,tag i ) performs the decryption operation to obtain the file identifier ind, otherwise jumps to step 7):
[0121] ind=SPE.Dec(SK,ct i ,tag i )
[0122] 5) If the decryption is successful, add ind and tag tag to the result set RS w Otherwise, add the tag tag to TSet:
[0123] RS w ←RS w ∪{(ind,tag)}
[0124] TSet←{tag}
[0125] 6) Increment i and repeat steps 4) to 5) above.
[0126] 7) If the decryption failed deletion tag set TSet is empty, the server directly returns the ciphertext matching the file identifier in the result set to the client, and updates the cached file identifier-tag pair found in the last search for the search keyword to the result set. There is no need for a second round of interaction, the search protocol ends and returns; otherwise, the server will (RS w , TSet) is sent to the client, and the client executes operation S3″ to perform secondary screening locally.
[0127] Operation S3″, the client performs the inverse operation of pseudo-random permutation on the deleted tag set that failed to be decrypted, obtains the deleted keyword-file identifier pairs, and removes the file identifier-tag corresponding to the deleted keyword-file identifier pairs in the result set, obtains the final result set and sends it to the server.
[0128] According to an embodiment of the present invention, the inverse operation of the pseudo-random permutation in operation S3″ is:
[0129]
[0130] in, is the inverse operation of pseudo-random permutation, tag is the label, w_, ind and op are the keyword, file identifier and operation type obtained by the inverse operation of pseudo-random permutation respectively.
[0131] If w_ is equal to the search keyword w and op = 1 (i.e. the operation type is delete), then select the result set RS w Remove the added labels corresponding to the same (w, ind) The file identifiers and tags are returned to the server:
[0132]
[0133] In operation S4″, the server updates the cached file identifier-tag pairs found in the last search for the keyword to be searched as a final result set, and returns the ciphertext matching the file identifier in the final result set to the client.
[0134] The server updates the EDB based on the final result set cache , EDB cache [tkn]←RS w , and returns the corresponding ciphertext to the client according to the file identifier.
[0135] Fig.10 A block diagram of a dynamic symmetric searchable encryption system with hidden addition and deletion associations provided by an embodiment of the present invention. Fig.10 The dynamic symmetric searchable encryption system 100 for hiding addition and deletion associations includes a processor 101 and a readable storage medium 102. The dynamic symmetric searchable encryption system 100 for hiding addition and deletion associations can execute the above Figure 1-Figure 9 A dynamic symmetric searchable encryption method for hiding addition and deletion associations described in.
[0136] Specifically, the processor 101 may include, for example, a general-purpose microprocessor, an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 101 may also include an onboard memory for cache purposes. The processor 101 may be a processor for executing reference Figure 1-Figure 9 The described method flow according to the embodiment of the present disclosure may be a single processing unit or multiple processing units for different actions.
[0137] The readable storage medium 102, for example, can be any medium capable of containing, storing, conveying, propagating or transmitting instructions. For example, the readable storage medium can include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device, component or propagation medium. Specific examples of readable storage media include: a magnetic storage device, such as a magnetic tape or a hard disk (HDD); an optical storage device, such as a compact disk (CD-ROM); a memory, such as a random access memory (RAM) or flash memory; and / or a wired / wireless communication link.
[0138] The readable storage medium 102 may include a computer program 103, which may include code / computer executable instructions, which when executed by the processor 101 causes the processor 101 to perform, for example, the above-mentioned combination Figure 1-Figure 9 The described method sequences and any variations thereof.
[0139] The computer program 103 may be configured to have, for example, computer program codes including computer program modules. For example, in an exemplary embodiment, the codes in the computer program 103 may include one or more program modules, for example, including 103A, module 103B, ... It should be noted that the division method and number of modules are not fixed, and those skilled in the art may use appropriate program modules or program module combinations according to actual conditions. When these program module combinations are executed by the processor 101, the processor 101 may execute, for example, the above combination of Figure 1-Figure 9 The described method sequences and any variations thereof.
[0140] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A dynamic symmetric searchable encryption method for hiding addition and deletion associations, characterized in that: The method comprises a ciphertext deletion step, wherein the ciphertext deletion step comprises: S1, using pseudo-random permutation, generating an add tag including a keyword, a file identifier and an add operation, and generating a delete tag including the keyword, the file identifier and a delete operation; S2, puncture the SPE master key currently used for puncture under the add tag and delete tag to obtain a puncture key and a new master key, and update the SPE master key currently used for puncture to the new master key; S3, sending the puncture key and the deletion tag to the server, so that the server adds the puncture key and the deletion tag to the deletion instance to perform a ciphertext deletion operation.
2. The dynamic symmetric searchable encryption method for hiding addition and deletion associations as claimed in claim 1, characterized in that: When the keyword is updated for the first time after the keyword was last searched and the update is a ciphertext deletion, before S1, the step further includes: randomly selecting a plurality of obfuscated keywords; The ciphertext deletion step also includes: performing operations of generating an add tag, generating a delete tag, puncturing, and sending on each of the obfuscated keywords, so that the server adds the obfuscated puncture key and the obfuscated delete tag to the deletion instance.
3. The dynamic symmetric searchable encryption method for hiding addition and deletion associations as claimed in claim 1 or 2, characterized in that: The puncture key obtained in S2 is: (sk',psk)←SPE.IncPun(sk',tag,tag') Wherein, psk is the puncture key, sk' is the SPE master key used for puncture, tag is the increment tag, tag' is the deletion tag, and SPE.IncPun() is the incremental operation of symmetric puncture encryption; The adding operation in S3 is: ∑ del .Update(K del ,add,w||s w ,(tag',psk),u del ;EDB del ) Among them, K del The key required to calculate the puncture key and the deletion tag to add to the logical position in the deletion instance, add is the increase operation, w is the keyword, s w is the number of searches on keyword w, u del To delete the number of updates of keyword w in the instance, EDB del is the data dictionary structure, Update() is the dynamic symmetric searchable encryption update protocol, ∑ del To delete an instance.
4. The dynamic symmetric searchable encryption method for hiding addition and deletion associations as claimed in claim 1, characterized in that: The ciphertext adding step is also included, and the ciphertext adding step includes: S1′, using pseudo-random permutation, generates an incremental tag containing keywords, file identifiers, and incremental operations; S2′, encrypting the file identifier using a symmetric puncture encryption algorithm under the current master key and the added tag to obtain a ciphertext; S3′, sending the ciphertext and the augmentation tag to the server, so that the server adds the ciphertext and the augmentation tag to the augmentation instance to perform a ciphertext adding operation.
5. The dynamic symmetric searchable encryption method for hiding addition and deletion associations as claimed in claim 4, characterized in that: When the current master key is empty, the step before S2′ further includes: randomly setting a maximum puncture number d, and initializing a symmetric puncture encryption algorithm according to a security parameter λ and the maximum puncture number d, to obtain the current master key: msk=SPE.KeyGen(1 λ ,d) Among them, msk is the current master key, and SPE.KeyGen() is the master key generation sub-algorithm of symmetric puncture encryption.
6. The dynamic symmetric searchable encryption method for hiding addition and deletion associations as claimed in claim 4 or 5, characterized in that: When the keyword is updated for the first time after the keyword was last searched and the update is a ciphertext addition, before S1′, the step further includes: randomly selecting a plurality of obfuscated keywords; The ciphertext adding step also includes: performing generation of an increase tag, encryption using a symmetric puncture encryption algorithm, and sending operations on each of the obfuscated keywords, so that the server adds the obfuscated ciphertext and the obfuscated increase tag to the increase instance.
7. The dynamic symmetric searchable encryption method for hiding addition and deletion associations as claimed in claim 1, characterized in that: The method further includes a ciphertext search step, wherein the ciphertext search step includes: S1″, the client calculates the search trap for the keyword to be searched, and sends the search trap and the SPE master key currently used for puncture to the server; S2″, the server decrypts the searchable ciphertext updated after the last search for the keyword to be searched according to the stored puncture key and ciphertext-label set, and sends the deleted label set and the result set for which the decryption failed to be performed to the client, wherein the result set includes the file identifier-label pair obtained by the successful decryption and the file identifier-label pair searched when the keyword to be searched was searched last time; S3″, the client performs an inverse operation of pseudo-random permutation on the deleted tag set that failed to be decrypted, obtains the deleted keyword-file identifier pairs, and removes the file identifier-tag corresponding to the deleted keyword-file identifier pairs in the result set, obtains a final result set and sends it to the server; S4″, the server updates the cached file identifier-tag pairs found in the last search for the keyword to be searched as the final result set, and returns the ciphertext matching the file identifier in the final result set to the client.
8. The dynamic symmetric searchable encryption method for hiding addition and deletion associations as claimed in claim 7, characterized in that: The inverse operation of the pseudo-random permutation in S3″ is: in, is the inverse operation of pseudo-random permutation, tag is the label, w_, ind and op are the keyword, file identifier and operation type obtained by the inverse operation of pseudo-random permutation respectively.
9. The dynamic symmetric searchable encryption method for hiding addition and deletion associations as claimed in claim 7 or 8, characterized in that: In S2″, when the set of deleted tags that failed to be decrypted is empty, the server directly returns the ciphertext that matches the file identifier in the result set to the client, and updates the cached file identifier-tag pair that was searched the last time the keyword to be searched was searched to the result set.
10. A dynamic symmetric searchable encryption system that hides addition and deletion associations, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer executable program, and when the program is executed by the processor, the processor executes a dynamic symmetric searchable encryption method for hiding addition and deletion associations as described in any one of claims 1 to 9.
