Non-interactive public verifiable symmetric searchable encryption method with forward and backward security
By introducing compressed symmetric revocable encryption and three-stage verification into the ciphertext database, the problems of high interaction and low security in the update and retrieval process of the ciphertext database in the existing technology are solved, and forward-backward secure non-interactive public retrieval is achieved. Verified symmetric searchable encryption significantly improves performance and security.
Patent Information
- Application Number
- CN202410858553.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-11
AI Technical Summary
Existing verifiable symmetric searchable encryption technology does not support secure updates of ciphertext databases. The retrieval process requires many interactive rounds and is less secure, and does not support public verification of the integrity of query results.
Adopting a forward-backward secure non-interactive public verifiable symmetric searchable encryption method, through the multi-stage process of initializing, updating the ciphertext database and retrieving the ciphertext database, using a compressed symmetric revocable encryption algorithm and a set hash function to implement the ciphertext database Three-stage public verification of update and retrieval results, reducing interaction rounds and ensuring security.
Without increasing the number of interaction rounds, it supports the update of the ciphertext database and the integrity verification of query results, reducing the risk of information leakage and significantly improving performance, especially on large-scale data sets, which is 5 to 5 times faster than existing solutions. 7 times, and the communication volume is reduced by 8 to 9 times.
Smart Images

Figure CN118761085A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a technology in the field of information security, in particular to a forward and backward secure non-interactive publicly verifiable symmetric searchable encryption method. Background Art
[0002] Verifiable symmetric searchable encryption technology allows resource-constrained clients to encrypt private data and outsource it to a third-party server, perform data retrieval on the secret data, and verify the integrity of the retrieval results. However, the shortcomings of existing solutions are: 1) The verification process overhead is borne by the client 2) It is only designed for static database scenarios and does not support updating secret data. 3) During the retrieval process, the server needs to interact with the client for multiple rounds, which has high communication and computing overhead. Summary of the invention
[0003] In view of the defects of existing verifiable symmetric searchable encryption technology, such as not supporting secure update of ciphertext database, requiring many interactive rounds and low security in keyword retrieval process, and not supporting public verification of query result integrity, the present invention proposes a forward-backward secure non-interactive publicly verifiable symmetric searchable encryption method, which can realize public verification of retrieval results and addition or deletion of ciphertext database data among three parties involving an honest client (user of outsourced data), a malicious server (providing ciphertext storage and retrieval services) and a semi-honest verification terminal (verifying the integrity of the server's retrieval results). In addition, the data retrieval process does not require any additional interactive rounds and can ensure less information leakage when the ciphertext database is updated, that is, forward-backward security.
[0004] The present invention is achieved through the following technical solutions:
[0005] The present invention relates to a forward and backward secure non-interactive publicly verifiable symmetric searchable encryption method, comprising: initialization, updating a ciphertext database, searching the ciphertext database and a three-stage publicly verifying the search result stage, wherein:
[0006] During the initialization phase, all parties generate keys and initialize data storage structures.
[0007] During the ciphertext database update phase, when adding documents to the ciphertext database, the client randomly generates an update status each time, uses a compressed symmetric revocable encryption algorithm and a common encryption algorithm to hybrid encrypt the plaintext document, and sends the ciphertext to the server; when deleting a document from the ciphertext database, the client locally caches the label corresponding to the document to be deleted in the compressed deletion list in the compressed symmetric revocable encryption algorithm.
[0008] In the retrieval phase of the ciphertext database, the client invokes the compressed symmetric revocable encryption algorithm to generate a revocation key, and sends it to the server together with the latest update status, and at the same time sends the verification key to the verification end; the server uses the obtained information to retrieve the query results matching the keywords in the ciphertext database, and sends the original query results to the verification end;
[0009] In the three-stage public verification retrieval result stage, the verification end uses the verification key to perform a three-stage verification on the original query result. If the verification passes, the query result is sent to the client, otherwise it reports the server as dishonest.
[0010] The compressed symmetric revocable encryption algorithm includes the following polynomial time algorithm, which adopts but is not limited to the technical implementation recorded by SunS F, Steinfeld R, Lai S, et al. in "Practical non-interactive searchable encryption with forward and backward privacy" ([C] / / Usenix Network and Distributed System Security Symposium 2021. The Internet Society, 2021.). Technical Effects
[0011] The present invention adopts a three-stage query result verification method to ensure that no additional interaction rounds are required during the keyword query process and the ciphertext database update overhead is low. At the same time, it supports a semi-honest verification end that may collude with the server end to verify the integrity of the client query result, and the verification process will not leak additional privacy information. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a flow chart of the initialization phase of the present invention;
[0013] Figure 2 This is a flow chart of the ciphertext database updating phase of the present invention;
[0014] Figure 3 A flow chart of the stages of searching a ciphertext database and publicly verifying the search results of the present invention;
[0015] Figure 4 It is a schematic diagram of an embodiment scenario;
[0016] Figure 5 It is a schematic diagram of the effect of the embodiment. DETAILED DESCRIPTION
[0017] like Figure 1-Figure 3As shown, this embodiment relates to a forward-backward secure non-interactive publicly verifiable symmetric searchable encryption method, including:
[0018] Step 1, initialization phase: The client randomly selects the secret key K according to the security parameter λ and initializes its state σ. The server outputs the initialized ciphertext database EDB, and the verifier outputs the initialized proof table PF for storing each database update and the auxiliary information table AUX for subsequent verification.
[0019] The ciphertext database includes: an encrypted document set and a ciphertext inverted index, wherein: the encrypted document set is an encrypted document encrypted and uploaded by the client using a conventional encryption algorithm (such as AES), and the ciphertext inverted index is used to store each keyword w and the encrypted document label containing this keyword, for example w: ind1, ind2, ind3 means that the encrypted documents labeled ind1, ind2, ind3 contain the keyword w.
[0020] Step 2: Update the ciphertext database: Add or delete documents based on client requests.
[0021] The additional documents specifically include:
[0022] a) Update the dense inverted index on the server: When the client adds a new document label in = {ind1, ..., ind2, ..., ind3, ..., ind4, ..., ind5, ..., ind6, ..., ind7, ..., ind8, ..., ind9, ..., ind10, ..., ind11, ..., ind12, ..., ind13, ..., ind14, ..., ind15, ..., ind16, ..., |in|}, the client updates the local counter C and randomly generates a new update state st c , and randomly select the verification key K w After that, the client generates the primary ciphertext and the secondary ciphertext, and updates the status st c Generate primary ciphertext index values and auxiliary ciphertext index values for the two ciphertexts; then generate two types of key-value pair sets with the index values as keys and the corresponding ciphertexts as values, and send the two types of key-value pair sets to the server, which inserts all received key-value pairs into the encrypted inverted index.
[0023] The key-value pair set consisting of the master ciphertext index value and the master ciphertext refers to Where: Primary ciphertext index value Generated by the latest update status together with the ciphertext order, the corresponding master ciphertext ct j ||t j In, ct j Refers to the document number ciphertext encrypted using a compressed symmetric revocable encryption algorithm, t j is ind j Together with the verification key generated tag, where: h0 is the hash function.
[0024] The encryption means: taking a message m with a label t as input, and outputting the ciphertext of the message m under the label t according to the system key sk and the revocation list D.
[0025] The key-value pair set consisting of the auxiliary ciphertext index value and the auxiliary ciphertext, i.e., the key-value pair Middle: Auxiliary ciphertext index value Auxiliary ciphertext That is, the number of documents updated this time, which is covered by the hash value, together with the update status of the last update, c-1 , used to assist the server in executing query tasks, where: h3 is a hash function.
[0026] b) The client uses any IND-CPA encryption algorithm (such as AES) to encrypt the newly added document and sends it to the server. The server stores the received document ciphertext in the encrypted document collection in the ciphertext database.
[0027] c) The client uses a set hash function to label the updated document set in = {ind1, ..., ind |in|} After generating a proof, it is sent to the verification end, which stores the proof in the proof data table PF, specifically: Where: t1, t2, .., t |in| are the labels corresponding to the newly added documents in step a), where: It is a set hash function, which maps a finite set of strings to hash values.
[0028] The document deletion specifically includes: when the client deletes the document label in={ind1, ..., ind |in|}, the client calculates the labels t1, t2, ..., t corresponding to the labels to be deleted. |in| , use the compression algorithm to compress the obtained tags into the compressed deletion list D of keyword w to delete the documents corresponding to the labels.
[0029] The compression algorithm is: to compress the deletion list D and the tag list to be revoked R = {t1, ..., t τ} is input, compresses each label in R into the compressed deletion list D, and outputs the updated compressed deletion list.
[0030] Step 3: Retrieve the ciphertext database: When the client initiates a query for keyword w, the server executes the query task to obtain the document label set containing keyword w, that is, the original query result, and sends it to the verification end, which includes:
[0031] a) The client generates a revocation key sk based on the compressed deletion list D through the revocation algorithm R , along with the most recent status update c Send to the server.
[0032] The revocation algorithm is: based on the system key sk and the compressed deletion list D, the revocation key sk is calculated. R .
[0033] b) The client generates a verification key K w It is sent together with the compression deletion list D to the verification end, and the verification end saves the received information in the verification auxiliary information table AUX.
[0034] c) The server uses the latest update status st c Generate an auxiliary ciphertext index value and retrieve the corresponding auxiliary ciphertext S in the ciphertext database c ,calculate get|in| and st c-1 After that, traverse j∈[1,|in|] to generate the main ciphertext index value and retrieve the main ciphertext in the ciphertext database Then call the compressed symmetric revocable encryption decryption algorithm for each ct j Then the server uses the previous update state st c-1 Continue to decrypt its corresponding master ciphertext and obtain the earlier updated state st c-2 , so that the previous update state is continuously obtained and the corresponding ciphertext is decrypted. Finally, all the decrypted results constitute the original query result R raw .
[0035] The decryption algorithm is: according to the revocation key sk R The ciphertext ct under the label t is taken as input, and the decrypted message m is output or the decryption failure is reported.
[0036] The decryption mentioned above means that when any document ind j If it has been deleted, decryption will not be possible, otherwise a valid remaining document label ind will be obtained. j When ct j If the decryption fails, the server will j Add to collection DelTag c When the decryption is successful, the server will j Add to collectionAddTag c , and label the decrypted document ind j AddInd c .
[0037] The original query result R rawIncludes: the updated state st of the kth update k , the remaining documents in the ciphertext database, i.e. the set of tags corresponding to the documents that have not been deleted, AddTag k , the remaining set of document labels in the ciphertext database, i.e., the set of document labels that have not been deleted, AddInd k The set of tags corresponding to the deleted documents in the ciphertext database DelTag k , where: k∈[1,c].
[0038] Step 4: Three-stage verification of the original query result: The verifier uses the received verification key D and the compressed deletion list D as well as the proof of each update stored by itself. k , verify the original query result R sent by the server raw The integrity of the verification end for each updated state st k Perform three-stage verification. When all three stages of verification are passed, the verification end will add the set of labels corresponding to the documents remaining in the ciphertext database in the original query result, that is, the documents that have not been deleted. k It is sent to the client, and the client interacts with the server for a round to obtain the corresponding encrypted document content, and then decrypts it locally to obtain the final query result matching the query keyword w.
[0039] The three-stage verification specifically includes:
[0040] Phase 1: Verify AddTag in the original query results k ∪DelTag k The integrity of the set, that is, comparing the update proof π uploaded by the client in the updated ciphertext database k Is it equal to H(AddTag k ∪DelTag k ), when the server returns the correct tag set, the two are equal, where: It is a set hash function, which maps a finite set of strings to hash values.
[0041] Phase 2: Verify the DelTag in the original query results k The integrity of the DelTag k Whether each tag in is in the compressed deletion list D, when the server returns the correct set of deleted document tags, DelTag k Each tag in D must be added to D by the client when the corresponding document is deleted. From the first and second stages, we can determine AddTag k Correctness of the collection.
[0042] Phase 3: Verify AddTag in the original query results k With AddIndk Whether they are consistent, that is, check AddTag k Each label t in j Is it equal to AddTag k The tag in the verification key K w The calculation result, that is, whether it is equal to h1(K w ||ind j ), when the verification is passed, it means AddInd k is the correct set of remaining document labels.
[0043] After specific practical experiments, RocksDB is used as the underlying database of the ciphertext database, and the Thrift framework is used for network communication between the client, server, and audit unit. WireShark is used to measure the communication volume and latency. The above protocol is run in a wide area network with a latency of 201ms. The client local storage overhead, document deletion communication overhead and latency, document addition communication overhead and latency, data query communication overhead and latency, and query result verification latency are measured respectively. The following results are obtained:
[0044] 1) Client local storage overhead. The client local storage overhead is mainly caused by the cached compressed deletion list D. This embodiment uses a Bloom filter to implement D. As shown in Table 1, the corresponding client storage overhead when the number of deleted keyword-document label logarithms is 10, 100, 1000, 10000, and 100000. It can be found that when deleting 100,000 documents, the storage overhead of D is less than 3MB, which shows that the client storage overhead in this embodiment is acceptable in actual scenarios.
[0045] Table 1 d 10 100 1000 10000 100000 Storage overhead (KB) 0.293 3.01 29.75 295.32 3054.79
[0046] 2) Communication overhead and delay of deleting documents. As shown in Table 2, when the number of keyword-document number pairs to be deleted is 10, 100, 1000, and 10000, the communication volume and delay of the deletion operation are 201ms. Since the deletion operation in this embodiment can be completed locally by the client, compared with the best existing solution BPVSE, the deletion operation in this embodiment is 3 to 5 orders of magnitude faster and does not incur communication costs.
[0047] Table 2
[0048] 3) Increase document communication overhead and latency. Figure 5As shown in the figure, the communication volume and delay caused by the operation are increased under the condition that the number of keyword-document number pairs to be deleted is 20000, 40000, 60000, 80000, 100000 and the network delay is 201ms. Experiments show that the increased delay and communication overhead of this embodiment are 3 to 4 times lower than the best existing solution BPVSE. This is due to the defect of compressed symmetric revocable encryption in ciphertext length compared with existing encryption schemes. However, the above defects can be eliminated through multi-threaded acceleration.
[0049] 4) Data query communication overhead and delay. Figure 5 As shown in the figure, the communication volume and delay of the query operation under the condition of 201ms network delay when 20000, 40000, 60000, 80000, and 100000 keyword-document label pairs are first added to the ciphertext database, and then 1000 keyword-document label pairs are deleted. The experimental results show that the query speed of this embodiment is 5 to 7 times faster than the best existing solution BPVSE, and the communication overhead is 8 to 9 times lower than BPVSE. The reason is that in BPVSE, the server needs to interact with the client for an extra round to obtain search results, and the expensive decryption calculation is performed locally by the client, resulting in large delays and communication costs. For example, under the setting of 100,000 additions and 1000 deletions, the client in BPVSE receives an additional 101,000 items of data from the server, decrypts and sends the results. However, this embodiment implements non-interactive query, and the decryption calculation is performed by the server, so it has better performance.
[0050] 5) Query result verification delay. As shown in Table 3, the communication volume and delay caused by the verification end verifying the query result under the condition of a network delay of 201ms when 20,000, 40,000, 60,000, 80,000, and 100,000 keyword-document number pairs are first added to the ciphertext database, and then 1,000 keyword-document number pairs are deleted. The experiment shows that in the case of 100,000 additions and 1,000 deletions, the verification process only takes about 50ms, indicating that this embodiment has excellent efficiency in large-scale data scenarios.
[0051] Table 3 (unit: ms) stage n=20000 n=40000 n=60000 n=80000 n=100000 Phase 1 6.458 12.124 16.910 21.636 25.028 Phase II 4.225 5.004 4.897 5.136 4.768 Phase 3 6.073 10.272 13.467 16.281 18.293 total 16.456 27.400 36.460 44.619 50.475
[0052] In summary, the present invention implements a publicly verifiable symmetric searchable encryption method that supports forward and backward security, does not require additional interaction rounds, and supports ciphertext database updates based on compressed symmetric revocable encryption, set hash functions, and a three-stage verification method. Compared with the prior art, the present invention has huge performance advantages in ciphertext database updates, retrieval, and result verification. Experimental evaluation was conducted on a data set with more than 100,000 records, and the results showed that the present invention is 5 to 7 times faster than the best existing similar solutions in terms of data retrieval, and the communication volume is reduced by 8 to 9 times; in terms of data update, the present invention is 3 to 5 orders of magnitude faster than the best existing solution, and reduces all communication costs.
[0053] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.
Claims
1. A forward-and-forward secure non-interactive publicly verifiable symmetric searchable encryption method, characterized in that: include: Initialization, updating of ciphertext database, retrieval of ciphertext database and public verification of retrieval results phase, where: In the initialization phase, each party generates keys and initializes the data storage structure; In the ciphertext database update phase, when adding documents to the ciphertext database, the client randomly generates an update status each time, uses a compressed symmetric revocable encryption algorithm and a common encryption algorithm to hybrid encrypt the plaintext document, and sends the ciphertext to the server; when deleting a document from the ciphertext database, the client locally caches the label corresponding to the document to be deleted in the compressed deletion list in the compressed symmetric revocable encryption algorithm; In the ciphertext database retrieval phase, the client invokes a compressed symmetric revocable encryption algorithm to generate a revocation key, and sends it to the server together with the update status, and at the same time sends the verification key to the verification end; the server uses the obtained information to retrieve the query results matching the keywords in the ciphertext database, and sends the original query results to the verification end; During the public verification of retrieval results, the verification end uses the verification key to perform a three-stage verification on the original query results. If the verification passes, the query results are sent to the client, otherwise the server is reported to be dishonest.
2. The forward-backward secure non-interactive publicly verifiable symmetric searchable encryption method according to claim 1, characterized in that: The initialization phase is specifically as follows: the client randomly selects a secret key K according to the security parameter λ and initializes its state σ; the server outputs the initialized ciphertext database EDB; the verifier outputs the initialized proof table PF for storing each database update and the auxiliary information table AUX for subsequent verification; The ciphertext database includes: an encrypted document set and a ciphertext inverted index, wherein: the encrypted document set is an encrypted document encrypted and uploaded by the client using a conventional encryption algorithm, and the ciphertext inverted index is used to store each keyword w and the encrypted document label containing this keyword, for example w:ind1,ind2,ind3 means that the encrypted documents labeled ind1,ind2,ind3 contain the keyword w.
3. The forward-backward secure non-interactive publicly verifiable symmetric searchable encryption method according to claim 1, characterized in that: The additional documents specifically include: a) Update the dense inverted index on the server: When the client adds a new document label in = {ind1, ..., ind2, ..., ind3, ..., ind4, ..., ind5, ..., ind6, ..., ind7, ..., ind8, ..., ind9, ..., ind10, ..., ind11, ..., ind12, ..., ind13, ..., ind14, ..., ind15, ..., ind16, ..., |in| }, the client updates the local counter C and randomly generates a new update state st c , and randomly select the verification key K w After that, the client generates the primary ciphertext and the secondary ciphertext, and updates the status st c Generate primary ciphertext index values and auxiliary ciphertext index values for the two ciphertexts; then generate two sets of key-value pairs using the index values as keys and the corresponding ciphertexts as values, and send the two sets of key-value pairs to the server, which inserts the received key-value pairs into the encrypted inverted index; b) The client encrypts the newly added document using any IND-CPA encryption algorithm and sends it to the server. The server stores the received document ciphertext in the encrypted document collection in the ciphertext database; c) The client uses the set hash function to label the updated document set in = {ind1, ..., ind |in| } After generating a proof, it is sent to the verification end, which stores the proof in the proof data table PF, specifically: Where: t1, t2, ..., t |in| They are the labels corresponding to the newly added documents in step a).
4. The forward-backward secure non-interactive publicly verifiable symmetric searchable encryption method according to claim 3, characterized in that: The key-value pair set consisting of the master ciphertext index value and the master ciphertext refers to Where: Primary ciphertext index value The hash function generates h0(j,st c ), the corresponding master ciphertext ct j ||t j In, ct j Refers to the document number ciphertext encrypted using a compressed symmetric revocable encryption algorithm, t j is ind j A tag is generated along with the verification key.
5. The forward-backward secure non-interactive publicly verifiable symmetric searchable encryption method according to claim 1, characterized in that: The document deletion specifically includes: when the client deletes the document label in={ind1,...,ind |in| }, the client calculates the labels t1, t2, ..., t corresponding to the labels to be deleted. |in| , use the compression algorithm to compress the obtained tags into the compressed deletion list D of keyword w to delete the documents corresponding to the labels.
6. The forward-backward secure non-interactive publicly verifiable symmetric searchable encryption method according to claim 1, characterized in that: The retrieval ciphertext database specifically includes: a) The client generates a revocation key sk based on the compressed deletion list D through the revocation algorithm R , along with the most recent status update c Send to the server; b) The client generates a verification key K w The information is sent to the verification end together with the compression deletion list D. The verification end saves the received information in the verification auxiliary information table AUX; c) The server traverses each recently updated state st1,...,st c Generate an auxiliary ciphertext index value and retrieve the corresponding auxiliary ciphertext S in the ciphertext database c ,calculate get|in| and st c-1 After that, traverse j∈[1,|in|] to generate the main ciphertext index value and retrieve the main ciphertext in the ciphertext database Then call the compressed symmetric revocable encryption decryption algorithm for each ct j Decrypt and get the original query result R raw ; The original query result R raw Includes: the updated state st of the kth update k , the remaining documents in the ciphertext database, i.e. the set of tags corresponding to the documents that have not been deleted, AddTag k , the set of document labels remaining in the ciphertext database, i.e., not deleted, AddInd k The set of tags corresponding to the deleted documents in the ciphertext database DelTag k , where: k∈[1,c].
7. The forward-backward secure non-interactive publicly verifiable symmetric searchable encryption method according to claim 6, characterized in that: The decryption mentioned above means that when any document ind j If it has been deleted, decryption will not be possible, otherwise a valid remaining document label ind will be obtained. j , when ct j If the decryption fails, the server will j Add to collection DelTag c middle; When the decryption is successful, the server will j Add to collectionAddTag c , and label the decrypted document ind j AddInd c .
8. The forward-and-backward secure non-interactive publicly verifiable symmetric searchable encryption method according to claim 1, characterized in that: The verification of the original query result specifically includes: the verification end uses the received verification key D and the compressed deletion list D as well as the proof π of each update stored by itself k , verify the original query result R sent by the server raw The integrity of the verification end for each updated state st k Perform three-stage verification. When all three stages of verification are passed, the verification end will add the set of labels corresponding to the documents remaining in the ciphertext database in the original query result, that is, the documents that have not been deleted. k It is sent to the client, and the client interacts with the server to obtain the corresponding encrypted document content, and then decrypts it locally to obtain the final query result that matches the query keyword.
9. The forward-and-backward secure non-interactive publicly verifiable symmetric searchable encryption method according to claim 1 or 8, characterized in that: The three-stage verification specifically includes: Phase 1: Verify AddTag in the original query results k ∪DelTag k The integrity of the set, that is, comparing the update proof π uploaded by the client in the updated ciphertext database k Is it equal to When the server returns the correct tag set, the two are equal, where: H() is a set hash function, which maps a finite set of strings to a hash value; Phase 2: Verify the DelTag in the original query results k The integrity of the DelTag k Whether each tag in is in the compressed deletion list D, when the server returns the correct set of deleted document tags, DelTag k Each tag in D must be added to D by the client when the corresponding document is deleted. The AddTag is determined by the first and second stages. k Correctness of the collection; Phase 3: Verify AddTag in the original query results k With AddInd k Whether they are consistent, that is, check AddTag k Each label t in j Is it equal to AddTag k The tag in the verification key K w The calculation result, that is, whether it is equal to h1(K w ||ind j ), when the verification passes, it means AddInd k is the correct set of remaining document labels.
Citation Information
Cited By
Database management system and method based on trusted execution environment and authentication encryption
CN121030751A
Database management system and method based on trusted execution environment and authenticated encryption
CN121030751B
