Keyword searchable delayed encryption method and system

By introducing the searchable public key encryption method of the trapdoor delay function in cloud storage, the delayed encrypted searchable ciphertext and retrieval trapdoor are generated, which solves the problem of keyword guessing attacks without secure channels, reduces the attack cost and simplifies User management is implemented to achieve efficient keyword retrieval.

CN112861153BActive Publication Date: 2024-10-15HUAZHONG UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110186704.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-10
Publication Date
2024-10-15
Estimated Expiration
2041-02-10

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively resist keyword guessing attacks without a secure channel, and existing countermeasures have problems such as high computational overhead, high communication overhead, poor flexibility, and high user management costs.

Method used

The searchable public key encryption method based on the trapdoor delay function is used to generate delayed encrypted searchable ciphertext and retrieval trapdoor at the sending end, and perform retrieval and verification on the cloud server side to increase the difficulty of the attacker's keyword guessing attack. , and there is no need to establish a dedicated secure channel or designate a fully trusted server.

Benefits of technology

It effectively resists keyword guessing attacks, reduces the attacker's attack cost, and does not require complex identity recognition and management. It meets the application requirements of keyword retrieval in the real world and achieves practical-level effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112861153B_ABST
    Figure CN112861153B_ABST
Patent Text Reader

Abstract

The present invention relates to a keyword searchable delayed encryption method and system, the method at least comprising: generating a searchable ciphertext C in a delayed encryption manner for a keyword w of at least one file to be uploaded based on a public key PK w and / or file ciphertext and upload it to the cloud server; at least one retrieval trap door T generated based on the private key SK for the keyword w to be retrieved w Sent to the cloud server, the cloud server retrieves the trap door T w For all searchable ciphertexts C w Search to obtain the corresponding searchable ciphertext C w , based on the retrieved searchable ciphertext C w The corresponding file ciphertext is determined and fed back to the receiving end. The present invention increases the difficulty for attackers to carry out keyword guessing attacks by delaying the generation time of searchable ciphertext, so that searchable public key encryption has the characteristics of resisting keyword guessing attacks in the scenario where there is no secure channel, no designated trusted server, no prior keyword space, and no strict user authentication between the cloud server and the sending end and the receiving end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of encryption and cloud storage, and in particular to a keyword-searchable delayed encryption method and system. Background Art

[0002] With the rapid development of cloud computing technology, cloud service providers have provided users with convenient and reliable storage and computing services to meet the growing demand for data. In order to ensure the confidentiality and availability of data stored in the cloud, searchable encryption technology has emerged. Searchable encryption technology can be divided into two categories: searchable symmetric encryption and searchable public key encryption. Thanks to the characteristics of the public key system, searchable public key encryption is naturally suitable for non-interactive storage and retrieval between senders and receivers. However, searchable public key encryption is inherently vulnerable to keyword guessing attacks. There are two main ways of keyword guessing attacks: (1) After the attacker obtains a trapdoor, since the keyword space is small in actual scenarios, the attacker can traverse the keyword space to generate searchable ciphertexts and test them with the captured retrieval trapdoors to obtain the keywords corresponding to the retrieval trapdoors; (2) The attacker guesses all possible keywords and generates corresponding ciphertexts, which are uploaded to the server. The server is regarded as a test oracle, and the guess is verified by observing whether the return result of the user request contains the previously generated ciphertext.

[0003] In order to defend against keyword guessing attacks, it is necessary to build a secure channel between the server and the receiver to prevent the attacker from obtaining trapdoors or search results. However, establishing a secure channel requires a lot of computational and communication overhead. Therefore, under the premise of no secure channel, many scholars have found some means to deal with keyword guessing attacks. There are mainly four types: (1) specifying trusted servers / server sets, limiting the trapdoor test to be executed only by specific servers or jointly by specific server sets, so that external attackers cannot verify the guessed keywords; (2) fuzzy keyword retrieval, increasing the entropy of the keyword space, so that attackers cannot obtain exact keyword information based on fuzzy trapdoors that are suspected of being exposed; (3) restricting the sender, embedding the sender's private key in the searchable ciphertext so that the ciphertext cannot be forged, and only the searchable ciphertext generated by the sender specified in the trapdoor can perform the trapdoor test; (4) restricting users, adding trusted institutions to strictly restrict user identities, affecting the construction of searchable ciphertext.

[0004] For example, patent document CN108599937B discloses a public key encryption method that supports multi-keyword search, which is used to solve the technical problem of complex ciphertext keyword calculation process in existing multi-keyword searchable public key encryption methods. The implementation steps include: (1) a trusted third party sets public parameters; (2) the data owner sets the keyword field, keyword vector and query format of the storage file; (3) the trusted third party calculates and distributes the keys of the cloud storage server and the data sharer; (4) the data owner encrypts and sends the plaintext keywords in the plaintext keyword vector; (5) the data sharer calculates and sends the trapdoor information of the plaintext keywords in the plaintext keyword vector; (6) the cloud storage server searches for the ciphertext keywords in the ciphertext set, and sends the searched ciphertext keywords to the data sharer.

[0005] However, the above solutions generally have optimistic assumptions, which are often difficult to achieve in actual environments. The method of specifying a trusted server under the condition of no secure channel requires the assumption that the server is secure and trustworthy. However, in practice, it is difficult to find a completely trusted server due to network attacks or profit-driven. Even if it is expanded to specify a set of trusted servers and the trapdoor test process is split, it is difficult to guarantee that there will be no collusion between them. The fuzzy keyword retrieval method requires the entropy of the keyword space to be determined in advance, which results in the loss of some flexibility in the selection of keywords. The method of restricting the sender through the trapdoor by the receiver is also impractical. It is not easy for the receiver to know the trusted sender a priori, and it is necessary to construct a trapdoor for each sender, which greatly increases the communication overhead. In addition, the method of introducing a trusted institution to manage user identity and behavior is also likely to incur additional costs. Therefore, how to simplify the a priori requirements of the specific construction and design and implement a searchable public key encryption scheme suitable for the actual environment has become an urgent problem to be solved.

[0006] The purpose of the present invention is to solve the problems existing in the above-mentioned technical means for dealing with keyword guessing attacks. Combining the trapdoor delay function and searchable public key encryption, the present invention constructs a keyword searchable delayed encryption framework. In this framework, when a user performs a search, he only needs to generate and submit a trapdoor with a delayed verification function to the cloud server, which performs the retrieval, determines whether the ciphertext contains the corresponding keyword, and verifies the sender's delayed workload. Throughout the process, there are no special requirements for the server and keyword space, and no complex identity identification and management are required. By delaying the generation time of the searchable ciphertext, the difficulty for the attacker to carry out a keyword guessing attack is increased, thereby resisting keyword guessing attacks to a certain extent. The present invention meets the application requirements of keyword retrieval in the real world, and its execution effect can reach a practical level.

[0007] In addition, on the one hand, there are differences in understanding among those skilled in the art; on the other hand, the inventor studied a large number of documents and patents when making the present invention, but due to space limitations, not all details and contents are listed in detail. However, this does not mean that the present invention does not have the characteristics of these prior arts. On the contrary, the present invention already has all the characteristics of the prior art, and the applicant reserves the right to add relevant prior art to the background technology. Summary of the invention

[0008] In view of the shortcomings of the prior art, the present invention provides a keyword searchable delayed encryption method, the method at least comprising:

[0009] Generate a searchable ciphertext C in a delayed encryption manner for a keyword w of at least one file to be uploaded based on the public key PK w and / or file ciphertext and upload it to the cloud server; by using the trapdoor delay function to delay encryption at the sending end, it takes a certain amount of time to calculate the trapdoor delay function TDF, so the searchable ciphertext at the sending end is delayed encrypted. w The present invention uses the secret trapdoor π to calculate the corresponding trapdoor delay function TDF in a shorter time, and further generates the retrieval trapdoor T w , so that in the retrieval process, the search trap can be used to check whether the generation of the searchable ciphertext meets the delay requirement, while not affecting the computing efficiency of the receiving end. The sender of the present invention delays encryption, making the attacker's attack cost so high that it exceeds the attack benefit, so that the attacker gives up guessing and attacking the keywords. In addition, the sender of the present invention cannot violate the delay requirement, so that the cloud server can use the search trap to check, thereby ensuring the authenticity of the verification of the sender.

[0010] The cloud server retrieves the trapdoor T based on the w For all the searchable ciphertexts C w Search to obtain the corresponding searchable ciphertext C w , based on the retrieved searchable ciphertext C w The corresponding file ciphertext is determined and fed back to the receiving end. The cloud server of the present invention verifies the match between the searchable ciphertext and the trapdoor, ensuring that the sender obtains the same trapdoor delay function result as the receiver when generating the searchable ciphertext; thereby, the sender needs a predetermined time overhead to generate a legal searchable ciphertext, which greatly increases the time cost of the attacker to implement the keyword guessing attack, and achieves the goal of resisting keyword guessing attacks without the need to establish a special secure channel, without the need to specify the cloud server as fully trustworthy, without the need for prior knowledge of the spatial distribution of keywords, and without the need for strict credibility management of users.

[0011] Preferably, the generating of the searchable ciphertext C w The method of encrypting and / or documenting at least includes:

[0012] Generate a searchable ciphertext C for each keyword w of at least one file to be uploaded in a delayed encryption manner based on the public key PK w , encrypt the file to be uploaded to generate the file ciphertext.

[0013] Preferably, the method generates a searchable ciphertext C for a keyword w of at least one file to be uploaded based on the public key PK. w The method includes at least:

[0014] Pick a random value Let C 0 =g r ;

[0015] Calculate Δ = TDF(H 1 (w), T), let C 1 =H 3 (e(H 2 (Δ) r , h));

[0016] C-based 0 and C 1 Generate searchable ciphertext C w =(C 0 , C 1 );

[0017] Where TDF represents the trapdoor delay function, w represents the keyword of the file to be uploaded, and H 1 represents the first cryptographic hash function, H 2 represents the second cryptographic hash function, H 3 represents the third cryptographic hash function, e represents the bilinear map, h represents the retrieval of the public key, T represents the public trapdoor of the trapdoor delay function, and g represents the elliptic curve group The generator of .

[0018] Preferably, at least one retrieval trap T is generated for the keyword w to be retrieved based on the private key SK. w The method includes at least:

[0019] Calculate Δ = TDF(H 1 (w),π);

[0020] Generate a trapdoor T for keyword w w =H 2 (Δ) s ;

[0021] Where TDF represents the trapdoor delay function, w represents the keyword to be searched, and H1 represents the first cryptographic hash function, H 2 represents the second cryptographic hash function, π represents the secret trapdoor of the trapdoor delay function, and s represents the retrieval private key.

[0022] Preferably, based on the retrieval trap T w For all the searchable ciphertexts C w Methods for conducting searches include:

[0023] Retrieval trap based on reception w Retrieve all searchable ciphertexts;

[0024] In the searchable ciphertext (C 0 , C 1 )Satisfies: H 3 (e(T w , C 0 ))=C 1 In the case of , the ciphertext (C 0 , C 1 ) is a searchable ciphertext containing keyword w.

[0025] Preferably, the method further comprises initializing parameter settings; wherein,

[0026] Based on the preset security parameters and delay time parameters, the corresponding bilinear mapping and trapdoor delay function are constructed, and the public key PK and the private key SK are calculated according to the parameters of the bilinear mapping and the trapdoor delay function.

[0027] Preferably, the method for initializing parameter setting further includes:

[0028] Construct a bilinear map based on the preset security parameter k Among them, the group kind represents the elliptic curve group, the length of the order q of these two elliptic curve groups is equal to the security parameter k;

[0029] Construct a trapdoor delay function based on the preset delay time parameter t And determine the public trapdoor T,

[0030] A secret trapdoor of a trapdoor delay function is calculated based on the public trapdoor T;

[0031] In elliptic curve groups Randomly select a generator g and a random value As the retrieval private key, let the retrieval public key h = g s ;

[0032] Choose three cryptographic hash functions:

[0033]

[0034] The present invention also provides a keyword searchable delayed encryption system, the system at least comprising: a cloud server and a sending end and a receiving end respectively establishing communication with the cloud server,

[0035] The sending end generates a searchable ciphertext C for a keyword w of at least one file to be uploaded in a delayed encryption manner based on the public key PK. w and / or file ciphertext and upload to the cloud server;

[0036] The receiving end generates at least one retrieval trap T for the keyword w to be retrieved based on the private key SK. w Send to cloud server,

[0037] The cloud server retrieves the trapdoor T w For all the searchable ciphertexts C w Search to obtain the corresponding searchable ciphertext C w , based on the retrieved searchable ciphertext C w Determine the corresponding file ciphertext and feed it back to the receiving end.

[0038] Preferably, the sending end generates a searchable ciphertext C for a keyword w of at least one file to be uploaded based on the public key PK. w The method includes at least:

[0039] Pick a random value Let C 0 =g r ;

[0040] Calculate Δ = TDF(H 1 (w), T), let C 1 =H 3 (e(H 2 (Δ) r , h));

[0041] C-based 0 and C 1 Generate searchable ciphertext C w =(C 0 , C 1 );

[0042] Where TDF represents the trapdoor delay function, w represents the keyword of the file to be uploaded, and H 1 represents the first cryptographic hash function, H 2 represents the second cryptographic hash function, H 3 represents the third cryptographic hash function, e represents the bilinear map, h represents the retrieval of the public key, T represents the public trapdoor of the trapdoor delay function, and g represents the elliptic curve group The generator of .

[0043] Preferably, the receiving end generates a retrieval trap T for the keyword w to be retrieved based on the private key SK. w The method includes at least:

[0044] Calculate Δ = TDF(H 1 (w),π);

[0045] Generate a trapdoor T for keyword w w =H 2 (Δ) s ;

[0046] Where TDF represents the trapdoor delay function, w represents the keyword to be searched, and H 1 represents the first cryptographic hash function, H 2 represents the second cryptographic hash function, π represents the secret trapdoor of the trapdoor delay function, and s represents the retrieval private key.

[0047] Compared with the defects of the prior art, the implementation process of the present invention does not require the establishment of a dedicated secure channel, does not require the cloud server to be fully trusted, does not require prior knowledge of the spatial distribution of keywords, and does not require strict credibility management of users. Therefore, the present invention is more in line with the requirements of real-world scenarios. The present invention introduces a delay effect in the process of generating searchable ciphertext, greatly increasing the cost of keyword guessing attacks by attackers, and effectively responding to keyword guessing attacks. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic diagram of an application scenario of the keyword searchable delayed encryption system of the present invention;

[0049] Figure 2 It is a flowchart of the keyword searchable delayed encryption method of the present invention.

[0050] Reference numerals list

[0051] 1: Cloud server; 2: Sending end; 3: Receiving end. DETAILED DESCRIPTION

[0052] The following is a detailed description with reference to the accompanying drawings.

[0053] The present invention provides a keyword searchable delayed encryption method and system, which can also be called a keyword searchable delayed encryption method and device

[0054] The searchable ciphertext in the present invention refers to the ciphertext that can perform a retrieval operation.

[0055] Example 1

[0056] like Figure 1As shown, the keyword searchable delayed encryption system of the present invention at least includes a cloud server 1, a sending end 2 and a receiving end 3. The sending end 2 and the receiving end 3 respectively establish communication connections with the cloud server in a wired or wireless manner.

[0057] The sending end 2 and the receiving end 3 can both be computers, servers, mobile computers, smart phones, tablet computers, wearable devices, and other devices that have communication functions and send information.

[0058] The sending end 2 sends at least one searchable ciphertext and / or file ciphertext A1 to the cloud server 1 .

[0059] The receiving end 3 sends at least one search request A2 containing retrieval trap information to the cloud server 1 .

[0060] The cloud server 1 searches for a second searchable ciphertext that meets the conditions in the stored first searchable ciphertext based on the retrieval trapdoor information, and feeds back the file ciphertext A3 corresponding to the second searchable ciphertext to the receiving end 3 .

[0061] The keyword searchable delayed encryption system of the present invention does not need to establish a secure channel between the user and the cloud server; does not need to specify the cloud server as completely trustworthy; does not need prior knowledge of the keyword space; and does not need to strictly manage the credibility of users. Compared with existing methods for dealing with keyword guessing attacks, it is more in line with the requirements of real-world scenarios.

[0062] The program content executed by the sender 2 is:

[0063] Generate a searchable ciphertext C for a keyword W of at least one file to be uploaded based on the public key PK w , encrypt the file to be uploaded to generate file ciphertext.

[0064] Preferably, the sending end 2 generates a searchable ciphertext C for each keyword W of the file to be uploaded based on the public key PK. w .

[0065] The sender 2 uploads the generated searchable ciphertext and / or file ciphertext to the cloud server 1 .

[0066] The program content executed by the receiving end 3 is:

[0067] Generate a retrieval trap T for the keyword W to be retrieved based on the private key SK w , and submit the retrieval trapdoor to cloud server 1.

[0068] The program content executed by cloud server 1 is:

[0069] Based on the retrieval trap T sent by the receiver 3 wAll searchable ciphertexts are retrieved, the corresponding searchable ciphertext is found, and the corresponding file ciphertext is further returned to the receiving end 3.

[0070] Preferably, before the sending end 2 sends the searchable ciphertext and / or the file ciphertext A1 to the cloud server 1, the cloud server 1, the sending end 2 and the receiving end 3 execute the program content of the initialization parameter setting.

[0071] The present invention uses a public trapdoor for encryption, and a predetermined time feature is required to calculate the trapdoor delay function TDF to achieve the delay effect. In addition, the receiving end of the present invention uses a secret trapdoor to calculate the trapdoor delay function TDF and generate a retrieval trapdoor. The time required to calculate the same result is very short, which will not affect the user experience of the receiving end.

[0072] Preferably, the method of initializing the program content of parameter setting includes:

[0073] S11: Construct a bilinear mapping based on the preset security parameter k Among them, the group and are elliptic curve groups, the length of the order q of these two elliptic curve groups is equal to the security parameter k;

[0074] S12: Constructing a trapdoor delay function based on the preset delay time parameter t The public trapdoor T of the trapdoor delay function is determined by the delay time parameter t. The secret trapdoor π of the trapdoor delay function is calculated based on the public trapdoor T.

[0075] Among them, the domain and range Related to the specific construction of the trapdoor delay function.

[0076] The public trapdoor T and the secret trapdoor π are in one-to-one correspondence with each other. For example, the public trapdoor T and the secret trapdoor π are paired.

[0077] Except for the receiver that constructs TDF, other people or other terminals cannot derive the secret trapdoor π based on the public trapdoor T. At the same time, the secret trapdoor can easily calculate the trapdoor delay function TDF, saving calculation time, thus not affecting the user experience of the receiver. In addition, the time overhead of using the public trapdoor to calculate TDF is significant and the effect of parallel acceleration is negligible. For a TDF instance, for TDF(x, T) = TDF(x, π) always holds. This means that there is no need to establish a secure channel between the cloud server and the sender and receiver. Only the verification of the trapdoor delay function is needed to confirm whether the process of generating searchable ciphertext by the sender takes at least the time overhead set by the receiver in the initialization phase.

[0078] Preferably, the trapdoor delay function TDF can be constructed based on a modulo-N residue class ring.

[0079] Preferably, the method for constructing a trapdoor delay function TDF includes:

[0080] According to the preset delay time parameter t, a modulo N residual class loop is constructed. Where N = P·Q, P and Q are large prime numbers respectively;

[0081] Determine the public trap door T according to the delay time parameter t, and calculate Secret Trapdoor

[0082] The trapdoor delay function TDF is expressed as: and

[0083] According to Euler number and The operational properties on That is, TDF(x, T) = TDF(x, π). It is generally acknowledged that the prime factorization of a large integer N is difficult, so it is difficult to obtain the secret trapdoor π based on N and T. In the case of only the public trapdoor T, calculating TDF requires sequentially performing T times of square operations modulo N, which is time-consuming and meets the requirements of the predetermined delay time parameter. In addition, the effect of parallel acceleration on the TDF calculation process is negligible.

[0084] S13: In elliptic curve groups Randomly select a generator g from Let h = g s . Choose three cryptographic hash functions:

[0085] S14: Based on bilinear mapping e, trapdoor delay function TDF, elliptic curve group The generator g and three cryptographic hash functions generate the public key PK and private key

[0086] After the receiving end is initialized, the receiving end sends the public information to the cloud server. The sending end can obtain the public information from the cloud server.

[0087] For example, the receiver initializes a set of parameters. The sender generates a searchable ciphertext in a delayed manner based on the public information obtained from the cloud server. Since the sender cannot obtain the secret trapdoor of the trapdoor delay function TDF, the sender takes a long time to calculate the trapdoor delay function TDF, thus achieving delayed encryption.

[0088] The receiving end generates a retrieval trap based on the initialized secret information. The retrieval trap has the ability to verify whether the searchable ciphertext generated by the sender is delayed as required. The receiving end has a TDF secret trap, so the time to calculate the trap delay function TDF is short.

[0089] Preferably, in the program executed by the sending end 2, a searchable ciphertext C is generated. w The specific sub-procedures include:

[0090] S21: Select a random value Let C 0 =g r ;

[0091] S22: Calculate Δ=TDF(H 1 (w), T), let C 1 =H 3 (e(H 2 (Δ) r , h));

[0092] S23: Based on C 0 and C 1 Generate searchable ciphertext C w =(C 0 , C 1 ).

[0093] The sending end 2 of the present invention introduces a delay effect in the process of generating searchable ciphertext, which increases the cost of the attacker to carry out keyword guessing attacks and effectively copes with keyword guessing attacks.

[0094] In the process of generating searchable ciphertext, the calculation of the trapdoor delay function TDF causes a delay, that is, the calculation Δ = TDF (H 1 The process of calculating the time cost of the trapdoor delay function TDF (w), T) consumes a lot of time; according to the definition and functional requirements of the trapdoor delay function TDF, the time cost of calculating TDF is significant when only the public trapdoor T is known, and the effect of parallel acceleration can be ignored. The time cost meets the requirements of the predetermined delay time parameter. Although the secret trapdoor π can be used to quickly calculate TDF, except for the constructor of TDF, others cannot obtain the secret trapdoor π based on public information. Therefore, malicious users and attackers cannot quickly calculate TDF, that is, they cannot shorten the generation time of searchable ciphertext.

[0095] Preferably, when the receiving end 3 executes the program, a search trap T is generated for the keyword W to be searched based on the private key SK. w The subroutines include:

[0096] S41: Calculate Δ=TDF(H 1 (w),π);

[0097] S42: Generate a trapdoor T for keyword w w =H 2 (Δ) s ;

[0098] S43: Initiate a search request to cloud server 1, that is, upload trapdoor T w Go to cloud server 1.

[0099] The trapdoor generated by the receiving end 3 of the present invention has a delay verification function. According to the definition of the trapdoor delay function, for the same keyword w, TDF(H 1 (w), T) = TDF(H 1 (w), π) always holds true; therefore, the present invention can ensure that the generation of searchable ciphertext matching the trapdoor in the retrieval phase must take a predetermined time to calculate TDF (H 1 (w), T).

[0100] Preferably, the cloud server 1 retrieves the trapdoor T w The subroutines for retrieving all searchable ciphertext include:

[0101] S51: Retrieval trap T based on reception w Retrieve all searchable ciphertext. 0 , C 1 )Satisfies: H 3 (e(T w , C 0 ))=C 1 In the case of , the searchable ciphertext is the searchable ciphertext containing the keyword w; the generation of the searchable ciphertext must take a predetermined time to calculate TDF (H 1 (w), T).

[0102] The cloud server determines whether the "retrieval trap" and the "searchable ciphertext" match. In this process, the cloud server does not know the value of the trap delay function TDF.

[0103] The conditions for determining whether a "retrieval trap" and "searchable ciphertext" match include:

[0104] (1) Both contain the same keywords;

[0105] (2) During the generation process of both, the calculated values ​​of the trapdoor delay function TDF are the same.

[0106] Since the sender cannot calculate the trapdoor delay function TDF in an "efficient / easy" way, it is ensured that the sender takes a predetermined time to generate the searchable ciphertext; this time is determined by the delay time parameter when the receiver is initialized.

[0107] S52: Return the searched corresponding file ciphertext to the receiving end 3.

[0108] Example 2

[0109] This embodiment is a further explanation of the embodiment 1, and the repeated contents will not be repeated here.

[0110] like Figure 2 As shown, the steps of the keyword searchable delayed encryption method implemented by the keyword searchable delayed encryption system of the present invention at least include:

[0111] S1: Construct the corresponding bilinear mapping and trapdoor delay function according to the preset security parameters and delay time parameters, and calculate the public key PK and the private key SK according to the parameters of the bilinear mapping and the trapdoor delay function.

[0112] S2: Generate at least one searchable ciphertext C for the keyword W of at least one file to be uploaded based on the public key PK w The file to be uploaded is encrypted to generate a file ciphertext, and finally the generated searchable ciphertext and / or file ciphertext is uploaded to the cloud server 1.

[0113] S3: Cloud server 1 receives and stores the searchable ciphertext and the file ciphertext.

[0114] S4: Generate a search trap T for the keyword W to be searched based on the private key SK w , and sends the retrieval trap to cloud server 1.

[0115] S5: All searchable ciphertexts are retrieved based on the retrieval trap, and the ciphertexts of files that meet the conditions are returned to the receiving end 3.

[0116] Cloud server 1 receives the retrieval trap C w Retrieve all searchable ciphertexts, find the corresponding searchable ciphertext, and further return the corresponding file ciphertext to the receiving end 3. -

[0117] Preferably, step S2 further includes:

[0118] Generate at least one searchable ciphertext C for each keyword W of the file to be uploaded based on the public key PK w .

[0119] The present invention introduces a delay effect in the process of generating searchable ciphertext, thereby increasing the cost of an attacker performing a keyword guessing attack and effectively coping with the keyword guessing attack.

[0120] Preferably, before uploading the ciphertext, the cloud server, the sending end and the receiving end can initialize the system and set various parameters of the system, that is, the initialization parameter setting of the system is realized through step S1.

[0121] The detailed procedure for initializing the system includes:

[0122] S11: Construct a bilinear mapping based on the system's preset security parameter k Among them, the group and are elliptic curve groups, the length of the order q of these two elliptic curve groups is equal to the security parameter k;

[0123] S12: Constructing a trapdoor delay function based on the preset delay time parameter t The public trapdoor T of the trapdoor delay function is determined by the delay time parameter t. The secret trapdoor π of the trapdoor delay function is calculated based on the public trapdoor T.

[0124] Among them, the domain and range Related to the specific construction of the trapdoor delay function.

[0125] The public trapdoor T and the secret trapdoor π are in one-to-one correspondence with each other. For example, the public trapdoor T and the secret trapdoor π are paired.

[0126] Except for one end that builds TDF, other people or other terminals cannot derive the secret trapdoor π based on the public trapdoor T. At the same time, the secret trapdoor can easily calculate the trapdoor delay function TDF, saving calculation time, thus not affecting the user experience of the receiving end. In addition, the time overhead of using the public trapdoor to calculate TDF is significant and the effect of parallel acceleration is negligible. For a TDF instance, for TDF(x, T) = TDF(x, π) always holds. This means that there is no need to establish a secure channel between the cloud server and the sender and receiver. Only the verification of the trapdoor delay function is needed to confirm whether the process of generating searchable ciphertext by the sender takes at least the time overhead set by the receiver in the initialization phase.

[0127] Preferably, the trapdoor delay function TDF can be constructed based on a modulo-N residue class ring.

[0128] Preferably, the method for constructing a trapdoor delay function TDF includes:

[0129] According to the preset delay time parameter t, a modulo N residual class loop is constructed. Where N = P·Q, P and Q are large prime numbers respectively;

[0130] Determine the public trap door T according to the delay time parameter t, and calculate Secret Trapdoor

[0131] The trapdoor delay function TDF is expressed as: and

[0132] According to Euler number and The operational properties on That is, TDF(x, T) = TDF(x, π). It is generally acknowledged that the prime factorization of a large integer N is difficult, so it is difficult to obtain the secret trapdoor π based on N and T. In the case of only the public trapdoor T, calculating TDF requires sequentially performing T times of square operations modulo N, which is time-consuming and meets the requirements of the predetermined delay time parameter. In addition, the effect of parallel acceleration on the TDF calculation process is negligible.

[0133] S13: In elliptic curve groups Randomly select a generator g from Let h = g s . Choose three cryptographic hash functions:

[0134] S14: Generate a public key PK and a private key based on the results of the above steps S11, S12 and S13

[0135] S2: Generate ciphertext using delayed encryption method.

[0136] The specific steps to generate ciphertext include:

[0137] S21: Pick a random value

[0138] S22: Calculate Δ=TDF(H 1 (w), T), let C 1 =H 3 (e(H 2 (Δ) r , h));

[0139] S23: Generate a searchable ciphertext C of keyword w based on the results of steps S21 and S22 w =(C 0 , C 1 ).

[0140] S24: Encrypt the file to be uploaded to obtain the file ciphertext, and the sender uploads the searchable ciphertext and the file ciphertext to the cloud server.

[0141] S3: The cloud server receives and stores the searchable ciphertext and file ciphertext uploaded by the sender.

[0142] S4: Generate a retrieval trap and initiate a search request.

[0143] The specific steps of generating a retrieval trapdoor include:

[0144] S41: Calculate Δ=TDF(H 1 (w),π);

[0145] S42: Generate a trapdoor T for keyword w based on the result of step S41 w =H 2 (Δ) s ;

[0146] S43: Receiver uploads trapdoor T w To the cloud server, a search request is initiated.

[0147] The present invention generates a trapdoor with delayed verification function at the receiving end and sends it to the cloud server, which performs retrieval to determine whether the ciphertext contains the corresponding keyword and verify the workload of the sender. According to the definition of the trapdoor delay function, for the same keyword w, TDF(H 1 (w), T) = TDF(H 1 (w), π) always holds; therefore, it can be ensured that the generation of searchable ciphertext matching the trapdoor in the retrieval phase will definitely take a predetermined time to calculate TDF (H 1 (w), T).

[0148] S5: Retrieve the ciphertext and return the result.

[0149] The steps to retrieve ciphertext include:

[0150] S51: The cloud server uses the received retrieval trap T w Retrieve all searchable ciphertexts. If searchable ciphertexts (C 0 , C 1 )Satisfies: H 3 (e(T w , C 0 ))=C 1 , then this is a searchable ciphertext containing keyword w; wherein, the generation of the matching searchable ciphertext takes at least the time overhead set in the initialization phase of the receiving end, which greatly increases the cost for the attacker to carry out keyword guessing attacks, and effectively responds to keyword guessing attacks.

[0151] S52: The cloud server returns the corresponding file ciphertext to the receiving end according to the found searchable ciphertext.

[0152] In the communication process between the cloud server 1, the sending end 2 and the receiving end 3, the present invention has no special requirements for the server and the keyword space distribution, nor does it require complex identity recognition and management. Therefore, the present invention does not need to establish a secure channel between the user and the cloud server; it does not need to specify the cloud server as fully trustworthy; it does not need prior knowledge of the keyword space distribution; it does not need to strictly manage the credibility of the user. Compared with the existing methods for dealing with keyword guessing attacks, the present invention is more in line with the application requirements of keyword retrieval in the real world, and its execution effect can reach a practical level.

[0153] It should be noted that the above specific embodiments are exemplary, and those skilled in the art can come up with various solutions inspired by the disclosure of the present invention, and these solutions also belong to the disclosure scope of the present invention and fall within the protection scope of the present invention. Those skilled in the art should understand that the present invention description and its drawings are illustrative and do not constitute a limitation of the claims. The protection scope of the present invention is defined by the claims and their equivalents.

[0154] The present invention specification contains multiple inventive concepts, and the applicant reserves the right to file a divisional application based on each inventive concept. The present invention specification contains multiple inventive concepts, such as "preferably", "according to a preferred embodiment" or "optionally" all indicate that the corresponding paragraph discloses an independent concept, and the applicant reserves the right to file a divisional application based on each inventive concept.

Claims

1. A keyword searchable delayed encryption method, characterized in that: The method at least comprises: Generate a searchable ciphertext C in a delayed encryption manner for a keyword w of at least one file to be uploaded based on the public key PK w and / or file ciphertext and upload to the cloud server; At least one retrieval trap T generated based on the private key SK for the keyword w to be retrieved w Send to cloud server, The cloud server retrieves the trapdoor T w For all the searchable ciphertexts C w Search to obtain the corresponding searchable ciphertext C w , based on the retrieved searchable ciphertext C w Determine the corresponding file ciphertext and feed it back to the receiving end, The method of initializing the program content of parameter setting includes: constructing a trapdoor delay function based on a preset delay time parameter t The public trapdoor T of the trapdoor delay function is determined by the delay time parameter t, and the secret trapdoor π of the trapdoor delay function is calculated based on the public trapdoor T. The domain is defined as and range It is related to the specific construction of the trapdoor delay function; The method for constructing a trapdoor delay function TDF includes: constructing a modulo N residue class ring according to a preset delay time parameter t Where N = P·Q, P and Q are large prime numbers respectively; Determine the public trap door T according to the delay time parameter t, and calculate Secret Trapdoor The trapdoor delay function TDF is expressed as: and 2. The keyword searchable delayed encryption method according to claim 1, characterized in that: The generated searchable ciphertext C w The method of encrypting and / or documenting at least includes: Generate a searchable ciphertext C for each keyword w of at least one file to be uploaded in a delayed encryption manner based on the public key PK w , encrypt the file to be uploaded to generate the file ciphertext.

3. The keyword searchable delayed encryption method according to claim 2, characterized in that: Generate a searchable ciphertext C for the keyword w of at least one file to be uploaded based on the public key PK w The method includes at least: Pick a random value Let C0 = g r ; Calculate Δ = TDF(H1(w),T), let C1 = H3(e(H2(Δ) r ,h)); Generate searchable ciphertext C based on C0 and C1 w =(C0,C1); Where TDF represents the trapdoor delay function, w represents the keyword of the file to be uploaded, H1 represents the first cryptographic hash function, H2 represents the second cryptographic hash function, H3 represents the third cryptographic hash function, e represents the bilinear mapping, h represents the retrieval public key, T represents the public trapdoor of the trapdoor delay function, and g represents the elliptic curve group The generator of .

4. The keyword searchable delayed encryption method according to claim 3, characterized in that: Generate at least one retrieval trap T for the keyword w to be retrieved based on the private key SK w The method includes at least: Calculate Δ = TDF(H1(w),π); Generate a trapdoor T for keyword w w =H2(Δ) s ; Wherein, TDF represents a trapdoor delay function, w represents a keyword to be retrieved, H1 represents a first cryptographic hash function, H2 represents a second cryptographic hash function, π represents a secret trapdoor of the trapdoor delay function, and s represents a retrieval private key.

5. The keyword searchable delayed encryption method according to any one of claims 1 to 4, characterized in that: Based on the retrieval trap T w For all the searchable ciphertexts C w Methods for conducting searches include: Retrieval trap based on reception w Retrieve all searchable ciphertexts; In the searchable ciphertext (C0, C1) that satisfies: H3(e(T w ,C0))=C1, the searchable ciphertext (C0,C1) is the searchable ciphertext containing the keyword w.

6. The keyword searchable delayed encryption method according to claim 5, characterized in that: The method also includes initialization parameter setting; wherein, Based on the preset security parameters and delay time parameters, the corresponding bilinear mapping and trapdoor delay function are constructed, and the public key PK and the private key SK are calculated according to the parameters of the bilinear mapping and the trapdoor delay function.

7. The keyword searchable delayed encryption method according to claim 6, characterized in that: The method for initializing parameter setting also includes: Construct a bilinear map based on the preset security parameter k Among them, the group and represents the elliptic curve group, the length of the order q of these two elliptic curve groups is equal to the security parameter k; In elliptic curve groups Randomly select a generator g and a random value As the retrieval private key, let the retrieval public key h = g s ; Choose three cryptographic hash functions:

8. A keyword searchable delayed encryption system, characterized in that: The system at least comprises: a cloud server (1), and a sending end (2) and a receiving end (3) respectively establishing communication with the cloud server (1). The sending end (2) generates a searchable ciphertext C for a keyword w of at least one file to be uploaded in a delayed encryption manner based on the public key PK. w and / or file ciphertext and upload to the cloud server; The receiving end (3) generates at least one retrieval trap T for the keyword w to be retrieved based on the private key SK. w Send to cloud server, The cloud server retrieves the trap door T w For all the searchable ciphertexts C w Search to obtain the corresponding searchable ciphertext C w , based on the retrieved searchable ciphertext C w Determine the corresponding file ciphertext and feed it back to the receiving end, The method of initializing the program content of parameter setting includes: constructing a trapdoor delay function based on a preset delay time parameter t The public trapdoor T of the trapdoor delay function is determined by the delay time parameter t, and the secret trapdoor π of the trapdoor delay function is calculated based on the public trapdoor T. The domain is defined as and range It is related to the specific construction of the trapdoor delay function; The method for constructing a trapdoor delay function TDF includes: constructing a modulo N residue class ring according to a preset delay time parameter t Where N = P·Q, P and Q are large prime numbers respectively; Determine the public trap door T according to the delay time parameter t, and calculate Secret Trapdoor The trapdoor delay function TDF is expressed as: and 9. The keyword searchable delayed encryption system according to claim 8, characterized in that: The sending end (2) generates a searchable ciphertext C for a keyword w of at least one file to be uploaded based on the public key PK. w The method includes at least: Pick a random value Let C0 = g r ; Calculate Δ = TDF(H1(w),T), let C1 = H3(e(H2(Δ) r ,h)); Generate searchable ciphertext C based on C0 and C1 w =(C0,C1); Where TDF represents the trapdoor delay function, w represents the keyword of the file to be uploaded, H1 represents the first cryptographic hash function, H2 represents the second cryptographic hash function, H3 represents the third cryptographic hash function, e represents the bilinear mapping, h represents the retrieval public key, T represents the public trapdoor of the trapdoor delay function, and g represents the elliptic curve group The generator of .

10. The keyword searchable delayed encryption system according to claim 8, characterized in that: The receiving end (3) generates at least one retrieval trap T for the keyword w to be retrieved based on the private key SK w The method includes at least: Calculate Δ = TDF(H1(w),π); Generate a trapdoor T for keyword w w =H2(Δ) s ; Wherein, TDF represents a trapdoor delay function, w represents a keyword to be retrieved, H1 represents a first cryptographic hash function, H2 represents a second cryptographic hash function, π represents a secret trapdoor of the trapdoor delay function, and s represents a retrieval private key.

Citation Information

Patent Citations

  • A multi-key searchable public-key encryption method

    CN108599937B

  • Dynamic searchable public key encryption method

    CN105553660A

  • Lightweight searchable public key encryption method based on edge computing environment

    CN109639425A

  • Online and offline attribute-based Boolean keyword searchable encryption method and system

    CN111913981A