Searchable public key encryption method and system with key update and ciphertext sharing functions
By introducing key update and ciphertext sharing functions into the searchable public key encryption method, and utilizing the system's global parameter set and public and private key generation mechanism, keyword privacy protection and secure channel elimination without decryption during the ciphertext update and sharing process are achieved. , solves the high overhead and privacy problems after key leakage, and reduces the computing and communication load.
Patent Information
- Application Number
- CN202110711216.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-06-25
AI Technical Summary
Existing searchable public key encryption methods have problems such as high communication and computational overhead and insufficient keyword privacy protection during the ciphertext update and sharing process after the key is leaked. In particular, a secure channel is required during the search trapdoor transmission process. This results in a large computational and communication load.
A searchable public key encryption method with key update and ciphertext sharing functions is proposed. By generating a system global parameter set, the user and the ciphertext storage server generate public and private keys respectively, and the data owner generates indexed ciphertext and appends keywords. The re-encryption key is generated interactively, the ciphertext storage server generates shared index ciphertext, the user generates a search trapdoor, and the server side tests the matching and updates the index ciphertext. The ciphertext can be updated and shared without decryption, protecting keyword privacy.
It realizes the need for decryption during the ciphertext update and sharing process, protects keyword privacy, eliminates the requirement for a secure channel in search trapdoor transmission, reduces the computing and communication load, and enhances the information security on the ciphertext storage server.
Smart Images

Figure CN113407966B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data encryption in information security, and in particular relates to a searchable public key encryption method and system. Background Art
[0002] In order to solve the problem of encrypted data retrieval, Song et al. proposed the technology of searchable encryption in 2000. This new cryptographic technology overcomes the defect that traditional encryption technology cannot directly retrieve ciphertext, and quickly attracted the attention and research of the cryptographic community. However, the searchable encryption proposed by Song et al. is based on a symmetric cryptographic system, so there are problems with key management and key distribution. In 2004, Boneh et al. first proposed a searchable public key encryption method. This method allows users to authorize untrusted ciphertext storage servers to detect whether the ciphertext sent to them and encrypted with their public key contains specific keywords, which effectively solves the problem of ciphertext retrieval in public key cryptographic systems.
[0003] The security of cryptographic systems mainly depends on the confidentiality of secret keys. Once a secret key is leaked, the security of the entire cryptographic system will be threatened. The earliest proposed method to solve the problem of secret key leakage is to divide the secret key into several partial keys and then store these partial keys in multiple different devices. However, this method not only increases the deployment cost of the cryptographic system, but also consumes a lot of computing resources. Since cryptographic calculations often need to be performed on some insecure or volatile devices, secret key leakage is inevitable. The methods proposed by some cryptographers are no longer limited to preventing the occurrence of secret key leakage, but to minimize the harm caused by secret key leakage as much as possible after it occurs. In terms of searchable public key encryption, Anada et al. first proposed a public key searchable encryption method with key update function in 2018 to deal with the problem of user private key leakage. In this method, users can revoke old public and private keys and enable new public and private keys at the beginning of each system cycle. In order to update the ciphertext on the ciphertext storage server, the user either downloads all the ciphertext and re-encrypts it locally; or sends the old private key to the ciphertext storage server, which decrypts the old index ciphertext to obtain the keyword, and then encrypts the keyword with the new public key to obtain the new ciphertext. Obviously, this method has the following shortcomings in ciphertext update: if the user downloads all the ciphertext to complete the ciphertext update locally, it will inevitably generate high communication, computing and storage overhead; but if the ciphertext storage server completes the index ciphertext update, the keyword information will inevitably be completely exposed to the ciphertext storage server, so the privacy of the keyword cannot be protected. In addition, in the method proposed by Anada et al., the search trap needs to be transmitted to the ciphertext storage server through a secure channel, otherwise the indistinguishable security of the keyword ciphertext cannot be guaranteed. However, building a secure channel usually requires a lot of computing overhead and communication load, so it is obviously not suitable for some applications. Summary of the invention
[0004] In order to solve the technical problems mentioned in the above background technology, the present invention proposes a searchable public key encryption method and system with key update and ciphertext sharing functions, which not only supports the function of user key update and effectively overcomes the problem of private key leakage, but also realizes the update and sharing of ciphertext on the ciphertext storage server without decryption, thereby protecting the user's information resources on the ciphertext storage server from unauthorized access. In addition, it also overcomes the problem that the search trap needs to be transmitted through a secure channel.
[0005] In order to achieve the above technical objectives, the technical solution of the present invention is:
[0006] A searchable public key encryption method with key update and ciphertext sharing functions comprises the following steps:
[0007] Step A: Generate a global parameter set of the system according to the security parameters;
[0008] Step B: According to the global parameter set of the system, the ciphertext storage server generates its own public and private keys;
[0009] Step C: According to the global parameter set of the system, users generate their own public and private keys. Users include data owners and authorized data users;
[0010] Step D: Based on the system's global parameter set, the data owner's public key, the ciphertext storage server's public key, and a keyword associated with the data ciphertext, the data owner generates an index ciphertext and appends it to the data ciphertext;
[0011] Step E: According to the global parameter set of the system, the private key of the data owner and the private key of the authorized data user, the data owner and the authorized data user interactively generate the index ciphertext re-encryption key;
[0012] Step F: Based on the system's global parameter set, the ciphertext re-encryption key, and the index ciphertext of the data owner, the ciphertext storage server generates a shared index ciphertext that can be retrieved by the authorized data user;
[0013] Step G: The user generates a search trap based on the system's global parameter set, the user's private key, the public key of the ciphertext storage server, and the keyword to be searched;
[0014] Step H: According to the global parameter set of the system, the private key of the ciphertext storage server, the index ciphertext and the search trapdoor, the ciphertext storage server tests whether the index ciphertext and the search trapdoor match, that is, tests whether the keywords contained in the index ciphertext and the search trapdoor are the same, wherein the index ciphertext is the index ciphertext of the data owner, or the shared index ciphertext for the authorized data user; if the index ciphertext and the search trapdoor match successfully, the ciphertext storage server sends the data ciphertext corresponding to the index ciphertext to the user; otherwise, the ciphertext storage server ignores the data ciphertext corresponding to the index ciphertext;
[0015] Step I: According to the global parameter set of the system, the private key currently used by the data owner and the new private key to be enabled by the data owner, the data owner generates an index ciphertext update key;
[0016] Step J: According to the system's global parameter set, the data owner's index ciphertext update key and the data owner's original index ciphertext, the ciphertext storage server updates the original index ciphertext and generates a new index ciphertext.
[0017] Furthermore, the specific process of step A is as follows:
[0018] Step A1: The system parameter generation center generates the security parameter λ∈Z +Generate a prime number q of λ bits, a q-order multiplicative cyclic group G and a q-order multiplicative cyclic group G T , and define a bilinear map f bp :G×G→G T , where Z + is a set of positive integers, f bp :G×G→G T is the Cartesian product of a multiplicative cyclic group G and itself G×G to a multiplicative cyclic group G T The mapping, that is, the bilinear mapping f bp :G×G→G T It means the function z = f bp (x, y), where x, y∈G are independent variables, z∈G T is the dependent variable;
[0019] Step A2, selecting a generator g from the multiplication cyclic group G;
[0020] Step A3: Define three hash functions H:G→G, H1:{0,1} * →G,H2:G T →{0,1} l , where l∈Z + , H is the hash function from a multiplicative cyclic group G to a multiplicative cyclic group G, and H1 is {0,1} * Hash function to the multiplicative cyclic group G, H2 is the multiplicative cyclic group G T Hash function to a binary string of length l, {0,1} * is a set of binary symbol strings of variable length, {0,1} l is a set of binary symbol strings of length l;
[0021] Step A4: Generate the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}.
[0022] Furthermore, the specific process of step B is as follows:
[0023] According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the ciphertext storage server is in the set Randomly select your own private key SK S = a, and calculate its own public key PK S =g a ,in
[0024] Furthermore, the specific process of step C is as follows:
[0025] According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the user is in the set Randomly select your own private key SK U =x U , and calculate your own public key The public and private keys currently used by the data owner and the new public and private keys to be enabled are represented as (PK DO ,SK DO )and The public and private keys of the authorized data user are represented as (PK AU ,SK AU ).
[0026] Furthermore, the specific process of step D is as follows:
[0027] Step D1: According to the global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner uses his public key PK DO , the public key PK of the ciphertext storage server S And a keyword w associated with the ciphertext of the data to be sent, randomly select an integer Generate a bilinear map value t = f bp (PK S ,H1(w)) r , where H1(w) is the hash value of keyword w output by hash function H1;
[0028] Step D2, calculate the first part of the index ciphertext A = (PK DO ) r and the second part of the index ciphertext B = H2(t);
[0029] Step D3: The sender combines A and B to generate the index ciphertext CT w,DO , that is, index ciphertext CT w,DO =(A,B) and then append it to the data ciphertext and send it to the ciphertext storage server.
[0030] Furthermore, the specific process of step E is as follows:
[0031] Step E1: According to the system global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner randomly selects an integer Using your own private key SK DO Calculate t1 = nSKDO mod p is used as the interaction value between itself and the authorized data user, and then sent to the authorized data user;
[0032] Step E2: After receiving t1, the authorized data user uses his private key SK AU Calculate t2 = SK AU / t1 is used as the interaction value between the data owner and the data owner, and then sent to the data owner;
[0033] Step E3: After receiving t2, the data owner uses the random integer n to calculate the index ciphertext re-encryption key rk DO→AU =nt2, and then send it to the ciphertext storage server.
[0034] Furthermore, the specific process of step F is as follows:
[0035] According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the ciphertext storage server re-encrypts the key rk according to the index ciphertext DO→AU and the data owner's index ciphertext CT w,DO =(A,B), recalculate the first part of the index ciphertext Generate shared index ciphertext CT w,AU =(A',B).
[0036] Furthermore, the specific process of step G is as follows:
[0037] Step G1: According to the system global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the user randomly selects an integer Calculate the first part of the search trapdoor T1 = g r ';
[0038] Step G2: The user uses his private key SK U , the public key PK of the ciphertext storage server S And the keyword w′ to be searched, calculate the second part of the search trap Where H1(w') is the hash value of the keyword w' output by the hash function H1. The server public key PK is stored as the ciphertext output by the hash function H S The hash value of r′;
[0039] Step G3: User combination T1 and T2 generates search trap door T w' , that is, search for trapdoor T w'=(T1,T2), and then sent to the ciphertext storage server.
[0040] Furthermore, the specific process of step H is as follows:
[0041] According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, index ciphertext CT w,U and search trapdoor T w' =(T1,T2), where the index ciphertext CT w,U is the index ciphertext CT of the data owner w,DO =(A,B), or the shared index ciphertext CT for authorized data users w,AU =(A',B), the ciphertext storage server uses its own private key SK S =a Check the equation Y = H2(e(X,(T2 / H(T1 a )) a )) is true. If the equality is true, it means that the index ciphertext and the search trapdoor match. w,U The corresponding data ciphertext is sent to the searcher; otherwise, the matching test fails and the index ciphertext CT is ignored w,U ;
[0042] The specific process of step I is as follows:
[0043] According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner uses the private key SK currently used DO and the new private key that will be enabled Generate an index ciphertext update key Then send it to the ciphertext storage server;
[0044] The specific process of step J is as follows:
[0045] According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner's index ciphertext update key UK DO and index ciphertext CT w,DO =(A,B), the ciphertext storage server recalculates the first part of the index ciphertext Generate a new index ciphertext
[0046] A searchable public key encryption system with key update and ciphertext sharing functions, comprising:
[0047] A system parameter generation module is used to generate a global parameter set of the system according to the input security parameters;
[0048] The ciphertext storage server public and private key generation module is used to generate the public and private keys of the ciphertext storage server according to the global parameter set of the system;
[0049] User public and private key generation module, used to generate public and private keys of users according to the global parameter set of the system. Users include data owners and authorized data users;
[0050] The index ciphertext generation module generates the index ciphertext for the data owner according to the global parameter set of the system, the public key of the data owner, the public key of the ciphertext storage server and a keyword associated with the data ciphertext;
[0051] An index ciphertext re-encryption key generation module is used to interactively generate an index ciphertext re-encryption key between the data owner and the authorized data user based on the system's global parameter set, the data owner's private key, and the authorized data user's private key;
[0052] A shared index ciphertext generation module, which is used for the ciphertext storage server to generate index ciphertext that can be retrieved by authorized data users based on the system's global parameter set, the index ciphertext re-encryption key and the index ciphertext of the data owner;
[0053] A search trap generation module, used for generating a search trap for a user according to a global parameter set of the system, a private key of a user, a public key of a ciphertext storage server and a keyword to be searched;
[0054] The ciphertext retrieval module is used for testing whether the index ciphertext and the search trapdoor match according to the global parameter set of the system, the private key of the ciphertext storage server, the index ciphertext and the search trapdoor, that is, testing whether the keywords contained in the index ciphertext and the search trapdoor are the same, wherein the index ciphertext is the index ciphertext of the data owner, or the shared index ciphertext for the authorized data user; if the index ciphertext and the search trapdoor match successfully, the ciphertext storage server sends the data ciphertext corresponding to the index ciphertext to the user; otherwise, the ciphertext storage server ignores the data ciphertext corresponding to the index ciphertext;
[0055] An index ciphertext update key generation module, used for the data owner to generate an index ciphertext update key according to the global parameter set of the system, the private key currently used by the data owner and the new private key to be enabled;
[0056] The index ciphertext update module is used to update the original index ciphertext of the data owner according to the global parameter set of the system, the index ciphertext update key of the data owner and the original index ciphertext of the data owner. The ciphertext storage server updates the original index ciphertext of the data owner to generate a new index ciphertext.
[0057] The beneficial effects brought by adopting the above technical solution are:
[0058] Firstly, the present invention provides a ciphertext update function that preserves keyword privacy. Since the index ciphertext does not need to be decrypted during the index ciphertext update process, the ciphertext storage server knows nothing about the keyword information in the keyword ciphertext, thereby effectively protecting the keyword privacy.
[0059] Secondly, the present invention uses the public keys of the receiver and the designated storage server to generate the index ciphertext at the same time, and only the designated ciphertext storage server can perform the test operation, thereby eliminating the requirement of a secure channel in the search trap transmission. Since only the designated storage server can perform the matching test operation using its private key, even if an external attacker intercepts the search trap, the indistinguishability of the index ciphertext cannot be destroyed.
[0060] Finally, the present invention provides a ciphertext sharing function. The data owner can authorize the ciphertext storage server to use the index ciphertext re-encryption key sent by the data owner to re-encrypt the index ciphertext and convert it into an index ciphertext that other users can directly retrieve. Therefore, other users can directly access and retrieve the ciphertext shared by the data owner on the ciphertext storage server. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 It is the overall flow chart of the present invention;
[0062] Figure 2 It is a specific flow chart of the present invention;
[0063] Figure 3 It is a schematic diagram of the composition of the system in the present invention. DETAILED DESCRIPTION
[0064] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings.
[0065] The searchable public key encryption method with key update and ciphertext sharing functions proposed in the present invention can be implemented by using bilinear mapping. The basic knowledge of bilinear mapping is briefly introduced below.
[0066] Let q be a prime number, G be the q-order multiplicative cyclic group, G T is a q-order multiplicative cyclic group, and g is a generator of the multiplicative cyclic group G. If defined in the multiplicative cyclic group G and the multiplicative cyclic group G T A map f on bp :G×G→G T If the following three properties are satisfied, the mapping is called a valid bilinear mapping. bp :G×G→G T is the Cartesian product of a multiplicative cyclic group G and itself G×G to a multiplicative cyclic group G TThe mapping, that is, the bilinear mapping f bp :G×G→G T It means the function z = f bp (x,y), where x,y∈G are independent variables, z∈G T is the dependent variable.
[0067] A valid bilinear map f bp :G×G→G T The following three properties must be met:
[0068] (1) Bilinear: For any Satisfy f bp (g m ,g n ) = f bp (g,g) mn ;
[0069] (2) Non-degenerate: in Denotes the multiplicative cyclic group G T The unit element in ;
[0070] (3) Computability: For any There exists an algorithm that efficiently computes f bp (g m ,g n ). The concepts of group and cyclic group are: Let G be a group. If there exists an element g∈G such that G={g n |n∈Z} (or G={ng|n∈Z}), then G is called a multiplicative cyclic group (or additive cyclic group), and g is called a generator of group G. If the order of the generator g is q (that is, q is the smallest positive integer that makes the power of g equal to the identity element of group G), then G is called a q-order cyclic group. In addition, Where Z q is the remainder class of integers modulo q, i.e. Z q ={0,1,...,q-1}.
[0071] Based on the above description of bilinear pairings, the searchable public key encryption method with key update and ciphertext sharing functions proposed by the present invention is further described below in conjunction with the accompanying drawings and implementation examples, but it is not intended to limit the present invention.
[0072] The users involved in the method of the present invention are as follows:
[0073] (1) System parameter generation center: the only trusted third party in the system, responsible for generating the global parameter set of the system;
[0074] (2) Ciphertext storage server: responsible for generating its own public and private keys, generating new index ciphertext and shared index ciphertext, and storing ciphertext in the system; after receiving the search trap, it retrieves the ciphertext and sends the ciphertext that meets the requirements to the user;
[0075] (3) Data owner: responsible for generating the initial public and private keys, index ciphertext update keys, and index ciphertext re-encryption keys, and responsible for encrypting the data to be sent into data ciphertext, then encrypting the keywords associated with the data into index ciphertext and attaching them to the data ciphertext and sending them to the ciphertext storage server, generating a search trap for the keywords to be searched, sending the trap to the ciphertext storage server, and authorizing the ciphertext storage server to retrieve the ciphertext it has received through the search trap. ;
[0076] (4) Authorized data user: responsible for generating his / her own public and private keys, and responsible for generating a search trap for the keywords to be searched, sending the trap to the ciphertext storage server, and authorizing the ciphertext storage server to retrieve the ciphertext it receives through the search trap.
[0077] Reference Figure 1 and Figure 2 The steps of the method of the present invention are specifically described as follows:
[0078] A searchable public key encryption method with key update and ciphertext sharing functions, the method comprising the following steps:
[0079] Step A: Based on the security parameters, the system parameter generation center generates a global parameter set of the system;
[0080] Step B: According to the global parameter set of the system, the ciphertext storage server generates its own public and private keys;
[0081] Step C: According to the global parameter set of the system, users generate their own public and private keys. Users include data owners and authorized data users;
[0082] Step D: Based on the global parameter set of the system, the public key of the data owner, the public key of the ciphertext storage server and a keyword associated with the data ciphertext, the data owner generates an index ciphertext and appends it to the data ciphertext to form a searchable ciphertext;
[0083] Step E: According to the global parameter set of the system, the private key of the data owner and the private key of the authorized data user, the data owner and the authorized data user interactively generate the index ciphertext re-encryption key;
[0084] Step F: Based on the system's global parameter set, the index ciphertext re-encryption key, and the data owner's index ciphertext, the ciphertext storage server generates a shared index ciphertext that can be retrieved by the authorized data user;
[0085] Step G: Based on the global parameter set of the system, the user's private key, the public key of the ciphertext storage server and the keywords to be searched, the user generates a search trap, and the user includes the data owner and the authorized data user;
[0086] Step H: Based on the system's global parameter set, the private key of the ciphertext storage server, the index ciphertext and the search trapdoor, the ciphertext storage server tests whether the index ciphertext and the search trapdoor match, that is, tests whether the keywords contained in the index ciphertext and the search trapdoor are the same, where the index ciphertext can be the index ciphertext of the data owner or the index ciphertext shared with the authorized data user. If the index ciphertext and the search trapdoor match successfully, the ciphertext storage server sends the data ciphertext corresponding to the index ciphertext to the user; otherwise, the ciphertext storage server ignores the data ciphertext corresponding to the index ciphertext;
[0087] Step I: According to the global parameter set of the system, the private key currently used by the data owner and the new private key to be activated by the data owner, the data owner generates an index ciphertext update key;
[0088] Step J: According to the system's global parameter set, the data owner's index ciphertext update key and the data owner's original index ciphertext, the ciphertext storage server updates the original index ciphertext and generates a new index ciphertext.
[0089] Preferably, the detailed steps of step A are as follows:
[0090] Step A.1: The system parameter generation center generates the security parameter λ∈Z + Generate a prime number q of λ bits, a q-order multiplicative cyclic group G and a q-order multiplicative cyclic group G T , and define a bilinear map f bp :G×G→G T , where Z + is a set of positive integers, f bp :G×G→G T is the Cartesian product of a multiplicative cyclic group G and itself G×G to a multiplicative cyclic group G T The mapping, that is, the bilinear mapping f bp :G×G→G T It means the function z = f bp (x, y), where x, y∈G are independent variables, z∈G T is the dependent variable;
[0091] Step A.2, select a generator g from the multiplicative cyclic group G;
[0092] Step A.3, define three hash functions H:G→G, H1:{0,1} * →G,H2:G T →{0,1}l , where l∈Z + , H is the hash function from a multiplicative cyclic group G to a multiplicative cyclic group G, and H1 is {0,1} * Hash function to the multiplicative cyclic group G, H2 is the multiplicative cyclic group G T Hash function to a binary string of length l, {0,1} * is a set of binary symbol strings of variable length, {0,1} l is a set of binary symbol strings of length l;
[0093] Step A.4: Generate the global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}.
[0094] Preferably, the detailed steps of step B are as follows: according to the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}, the ciphertext storage server is in the set Randomly select your own private key SK S = a, and calculate its own public key PK S =g a .
[0095] Preferably, the detailed steps of step C are as follows: according to the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}, the user is in the set Randomly select your own private key SK U =x U , and calculate your own public key The public and private keys currently used by the data owner and the new public and private keys to be enabled are represented as (PK DO ,SK DO )and The public and private keys of the authorized data user are represented as (PK AU ,SK AU ).
[0096] Preferably, the detailed steps of step D are as follows:
[0097] Step D.1: According to the global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner uses his public key PK DO , the public key PK of the ciphertext storage server SAnd a keyword w associated with the ciphertext of the data to be sent, randomly select an integer Generate a bilinear map value t = f bp (PK S ,H1(w)) r , where H1(w) is the hash value of keyword w output by hash function H1;
[0098] Step D.2: Calculate the first part of the index ciphertext A = (PK DO ) r and the second part of the index ciphertext B = H2(t);
[0099] Step D.3: The sender combines A and B to generate the index ciphertext CT w,DO , that is, index ciphertext CT w,DO =(A,B) consists of two parts, A and B, which are then attached to the data ciphertext and sent to the ciphertext storage server.
[0100] Preferably, the detailed steps of step E are as follows:
[0101] Step E.1: According to the global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner randomly selects an integer Using your own private key SK DO Calculate t1 = nSK DO mod p is used as the interaction value between him and the authorized data user, and then sent to the authorized data user;
[0102] Step E.2: After receiving t1, the authorized data user uses his private key SK AU Calculate t2 = SK AU / t1 is used as the interaction value between him and the data owner, and then sent to the data owner;
[0103] Step E.3: After receiving t2, the data owner uses the random integer n to calculate the index ciphertext re-encryption key rk DO→AU =nt2, and then send it to the ciphertext storage server.
[0104] Preferably, the detailed steps of step F are as follows: according to the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}, the ciphertext storage server re-encrypts the key rk according to the index ciphertext DO→AU and the data owner's index ciphertext CT w,DO =(A,B), recalculate the first part of the index ciphertext Generate shared index ciphertext CT w,AU =(A',B), that is, the shared index ciphertext CT w,AU =(A',B) consists of two parts, A' and B.
[0105] Preferably, the detailed steps of step G are as follows:
[0106] Step G.1: According to the global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the user randomly selects an integer Calculate the first part of the search trapdoor T1 = g r ';
[0107] Step G.2: The user uses his private key SK U , the public key PK of the ciphertext storage server S And the keyword w′ to be searched, calculate the second part of the search trap Where H1(w') is the hash value of the keyword w' output by the hash function H1. The server public key PK is stored as the ciphertext output by the hash function H S The hash value of r′;
[0108] Step G.3: User combination T1 and T2 generates search trap door T w' , that is, search for trapdoor T w' =(T1, T2) consists of two parts, T1 and T2, and then sent to the ciphertext storage server.
[0109] Preferably, the detailed steps of step H are as follows: according to the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}, index ciphertext CT w,U =(X,Y) and search trap door T w' =(T1,T2), where the index ciphertext CT w,U =(X,Y) can be the index ciphertext CT of the data owner w,DO =(A,B), or it can be the index ciphertext CT shared with authorized data users w,AU =(A',B), the ciphertext storage server uses its own private key SK S =a Check the equation Y = H2(e(X,(T2 / H(T1 a )) a )) is true. If the equality is true, it means that the index ciphertext and the search trapdoor match, and the index ciphertext CT w,UThe corresponding data ciphertext is sent to the searcher; otherwise, the matching test fails and the index ciphertext CT is ignored w,U .
[0110] Preferably, the detailed steps of step I are as follows: according to the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner uses the private key SK currently used DO and the new private key that will be enabled Generate an index ciphertext update key Then send it to the ciphertext storage server.
[0111] Preferably, the detailed steps of step J are as follows: according to the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner's index ciphertext update key UK DO and index ciphertext CT w,DO =(A,B), the ciphertext storage server recalculates the first part of the index ciphertext Generate a new index ciphertext New index ciphertext It consists of two parts, A″ and B.
[0112] See also Figure 3 The present invention also proposes a searchable public key encryption system with key update and ciphertext sharing functions, including a system initialization module, a ciphertext storage server public and private key generation module, a user public and private key generation module, an index ciphertext generation module, an index ciphertext re-encryption key generation module, a shared index ciphertext generation module, a search trapdoor generation module, a ciphertext retrieval module, an index ciphertext update key generation module and an index ciphertext update module, which are specifically as follows:
[0113] A system parameter generation module is used to generate a global parameter set of the system according to the input security parameters;
[0114] A ciphertext storage server public and private key generation module, used to generate the public and private keys of the ciphertext storage server according to the global parameter set of the system;
[0115] A user public and private key generation module, used to generate public and private keys of users according to the global parameter set of the system, where the users include data owners and authorized data users;
[0116] The index ciphertext generation module generates the index ciphertext for the data owner according to the global parameter set of the system, the public key of the data owner, the public key of the ciphertext storage server and a keyword associated with the data ciphertext;
[0117] An index ciphertext re-encryption key generation module, used for interactively generating an index ciphertext re-encryption key by the data owner and the authorized data user according to the global parameter set of the system, the private key of the data owner and the private key of the authorized data user;
[0118] A shared index ciphertext generation module, configured to generate, by a ciphertext storage server, an index ciphertext that can be retrieved by an authorized data user, based on a global parameter set of the system, an index ciphertext re-encryption key, and an index ciphertext of a data owner;
[0119] A search trapdoor generation module, used for generating a search trapdoor for a user according to a global parameter set of the system, a private key of a user, a public key of a ciphertext storage server and a keyword to be searched, wherein the user includes a data owner and an authorized data user;
[0120] The ciphertext retrieval module is used to test whether the index ciphertext and the search trapdoor match based on the global parameter set of the system, the private key of the ciphertext storage server, the index ciphertext and the search trapdoor, that is, to test whether the keywords contained in the index ciphertext and the search trapdoor are the same, wherein the index ciphertext can be the index ciphertext of the data owner or the index ciphertext shared with the authorized data user. If the index ciphertext and the search trapdoor match successfully, the ciphertext storage server sends the data ciphertext corresponding to the index ciphertext to the user; otherwise, the ciphertext storage server ignores the data ciphertext corresponding to the index ciphertext;
[0121] An index ciphertext update key generation module, used for the data owner to generate an index ciphertext update key according to the global parameter set of the system, the private key currently used by the data owner and the new private key to be enabled;
[0122] The index ciphertext update module is used to update the original index ciphertext of the data owner by the ciphertext storage server according to the global parameter set of the system, the index ciphertext update key of the data owner and the original index ciphertext of the data owner to generate a new index ciphertext.
[0123] The embodiments are only for illustrating the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the present invention.
Claims
1. A searchable public key encryption method with key update and ciphertext sharing functions, characterized in that: The following steps are involved: Step A: Generate a global parameter set of the system according to the security parameters; Step B: According to the global parameter set of the system, the ciphertext storage server generates its own public and private keys; Step C: According to the global parameter set of the system, users generate their own public and private keys. Users include data owners and authorized data users; Step D: Based on the system's global parameter set, the data owner's public key, the ciphertext storage server's public key, and a keyword associated with the data ciphertext, the data owner generates an index ciphertext and appends it to the data ciphertext; Step E: According to the global parameter set of the system, the private key of the data owner and the private key of the authorized data user, the data owner and the authorized data user interactively generate the index ciphertext re-encryption key; Step F: Based on the system's global parameter set, the ciphertext re-encryption key, and the index ciphertext of the data owner, the ciphertext storage server generates a shared index ciphertext that can be retrieved by the authorized data user; Step G: The user generates a search trap based on the system's global parameter set, the user's private key, the public key of the ciphertext storage server, and the keyword to be searched; Step H: According to the global parameter set of the system, the private key of the ciphertext storage server, the index ciphertext and the search trapdoor, the ciphertext storage server tests whether the index ciphertext and the search trapdoor match, that is, tests whether the keywords contained in the index ciphertext and the search trapdoor are the same, wherein the index ciphertext is the index ciphertext of the data owner, or the shared index ciphertext for the authorized data user; if the index ciphertext and the search trapdoor match successfully, the ciphertext storage server sends the data ciphertext corresponding to the index ciphertext to the user; otherwise, the ciphertext storage server ignores the data ciphertext corresponding to the index ciphertext; Step I: According to the global parameter set of the system, the private key currently used by the data owner and the new private key to be enabled by the data owner, the data owner generates an index ciphertext update key; Step J: According to the global parameter set of the system, the index ciphertext update key of the data owner and the original index ciphertext of the data owner, the ciphertext storage server updates the original index ciphertext and generates a new index ciphertext; The specific process of step A is as follows: Step A1: The system parameter generation center generates the security parameter λ∈Z + Generate a prime number q of λ bits, a q-order multiplicative cyclic group G and a q-order multiplicative cyclic group G T , and define a bilinear map f bp :G×G→G T , where Z + is a set of positive integers, f bp :G×G→G T is the Cartesian product of a multiplicative cyclic group G and itself G×G to a multiplicative cyclic group G T The mapping, that is, the bilinear mapping f bp :G×G→G T It means the function z = f bp (x, y), where x, y∈G are independent variables, z∈G T is the dependent variable; Step A2, selecting a generator g from the multiplication cyclic group G; Step A3: Define three hash functions H:G→G, H1:{0,1} * →G,H2:G T →{0,1} l , where l∈Z + , H is the hash function from a multiplicative cyclic group G to a multiplicative cyclic group G, and H1 is {0,1} * Hash function to the multiplicative cyclic group G, H2 is the multiplicative cyclic group G T Hash function to a binary string of length l, {0,1} * is a set of binary symbol strings of variable length, {0,1} l is a set of binary symbol strings of length l; Step A4: Generate the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}.
2. The searchable public key encryption method with key update and ciphertext sharing functions according to claim 1, characterized in that: The specific process of step B is as follows: According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the ciphertext storage server is in the set Randomly select your own private key SK S = a, and calculate its own public key PK S =g a ,in 3. The searchable public key encryption method with key update and ciphertext sharing functions according to claim 2, characterized in that: The specific process of step C is as follows: According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the user is in the set Randomly select your own private key SK U =x U , and calculate your own public key The public and private keys currently used by the data owner and the new public and private keys to be enabled are represented as (PK DO ,SK DO )and The public and private keys of the authorized data user are represented as (PK AU ,SK AU ).
4. The searchable public key encryption method with key update and ciphertext sharing functions according to claim 3, characterized in that: The specific process of step D is as follows: Step D1: According to the global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner uses his public key PK DO , the public key PK of the ciphertext storage server S And a keyword w associated with the ciphertext of the data to be sent, randomly select an integer Generate a bilinear map value t = f bp (PK S ,H1(w)) r , where H1(w) is the hash value of keyword w output by hash function H1; Step D2, calculate the first part of the index ciphertext A = (PK DO ) r and the second part of the index ciphertext B = H2(t); Step D3: The sender combines A and B to generate the index ciphertext CT w,DO , that is, index ciphertext CT w,DO =(A,B) and then append it to the data ciphertext and send it to the ciphertext storage server.
5. The searchable public key encryption method with key update and ciphertext sharing functions according to claim 4, characterized in that: The specific process of step E is as follows: Step E1: According to the system global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner randomly selects an integer Using your own private key SK DO Calculate t1 = nSK DO modq is used as the interaction value between itself and the authorized data user, and then sent to the authorized data user; Step E2: After receiving t1, the authorized data user uses his private key SK AU Calculate t2 = SK AU / t1 is used as the interaction value between the data owner and the data owner, and then sent to the data owner; Step E3: After receiving t2, the data owner uses the random integer n to calculate the index ciphertext re-encryption key rk DO→AU =nt2, and then send it to the ciphertext storage server.
6. The searchable public key encryption method with key update and ciphertext sharing functions according to claim 5, characterized in that: The specific process of step F is as follows: According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the ciphertext storage server re-encrypts the key rk according to the index ciphertext DO→AU and the data owner's index ciphertext CT w,DO =(A,B), recalculate the first part of the index ciphertext Generate shared index ciphertext CT w,AU =(A',B).
7. The searchable public key encryption method with key update and ciphertext sharing functions according to claim 6, characterized in that: The specific process of step G is as follows: Step G1: According to the system global parameter set prms = {q, G, G T ,f bp ,g,H,H1,H2}, the user randomly selects an integer Calculate the first part of the search trapdoor T1 = g r '; Step G2: The user uses his private key SK U , the public key PK of the ciphertext storage server S And the keyword w′ to be searched, calculate the second part of the search trap Where H1(w') is the hash value of the keyword w' output by the hash function H1. The server public key PK is stored as the ciphertext output by the hash function H S The hash value of r′; Step G3: User combination T1 and T2 generates search trap door T w' , that is, search for trapdoor T w' =(T1,T2), and then sent to the ciphertext storage server.
8. The searchable public key encryption method with key update and ciphertext sharing functions according to claim 7, characterized in that: The specific process of step H is as follows: According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, index ciphertext CT w,U and search trapdoor T w' =(T1,T2), where the index ciphertext CT w,U is the index ciphertext CT of the data owner w,DO =(A,B), or the shared index ciphertext CT for authorized data users w,AU =(A',B), the ciphertext storage server uses its own private key SK S =aCheck the equation Is it true? If the equality is true, it means that the index ciphertext and the search trapdoor match, and the index ciphertext CT w,U The corresponding data ciphertext is sent to the searcher; otherwise, the matching test fails and the index ciphertext CT is ignored w,U ; The specific process of step I is as follows: According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner uses the private key SK currently used DO and the new private key that will be enabled Generate an index ciphertext update key Then send it to the ciphertext storage server; The specific process of step J is as follows: According to the global parameter set of the system prms = {q, G, G T ,f bp ,g,H,H1,H2}, the data owner's index ciphertext update key UK DO and index ciphertext CT w,DO =(A,B), the ciphertext storage server recalculates the first part of the index ciphertext Generate a new index ciphertext 9. A searchable public key encryption system with key update and ciphertext sharing functions, characterized in that: include: The system parameter generation module is used to generate the system's global parameter set based on the input security parameters, specifically: Step A1: The system parameter generation center generates the security parameter λ∈Z + Generate a prime number q of λ bits, a q-order multiplicative cyclic group G and a q-order multiplicative cyclic group G T , and define a bilinear map f bp :G×G→G T , where Z + is a set of positive integers, f bp :G×G→G T is the Cartesian product of a multiplicative cyclic group G and itself G×G to a multiplicative cyclic group G T The mapping, that is, the bilinear mapping f bp :G×G→G T It means the function z = f bp (x, y), where x, y∈G are independent variables, z∈G T is the dependent variable; Step A2, selecting a generator g from the multiplication cyclic group G; Step A3: Define three hash functions H:G→G, H1:{0,1} * →G,H2:G T →{0,1} l , where l∈Z + , H is the hash function from a multiplicative cyclic group G to a multiplicative cyclic group G, and H1 is {0,1} * Hash function to the multiplicative cyclic group G, H2 is the multiplicative cyclic group G T Hash function to a binary string of length l, {0,1} * is a set of binary symbol strings of variable length, {0,1} l is a set of binary symbol strings of length l; Step A4: Generate the global parameter set prms of the system = {q, G, G T ,f bp ,g,H,H1,H2}; The ciphertext storage server public and private key generation module is used to generate the public and private keys of the ciphertext storage server according to the global parameter set of the system; User public and private key generation module, used to generate public and private keys of users according to the global parameter set of the system. Users include data owners and authorized data users; The index ciphertext generation module generates the index ciphertext for the data owner according to the global parameter set of the system, the public key of the data owner, the public key of the ciphertext storage server and a keyword associated with the data ciphertext; An index ciphertext re-encryption key generation module is used to interactively generate an index ciphertext re-encryption key between the data owner and the authorized data user based on the system's global parameter set, the data owner's private key, and the authorized data user's private key; A shared index ciphertext generation module, which is used for the ciphertext storage server to generate index ciphertext that can be retrieved by authorized data users based on the system's global parameter set, the index ciphertext re-encryption key and the index ciphertext of the data owner; A search trap generation module, used for generating a search trap for a user according to a global parameter set of the system, a private key of a user, a public key of a ciphertext storage server and a keyword to be searched; The ciphertext retrieval module is used for testing whether the index ciphertext and the search trapdoor match according to the global parameter set of the system, the private key of the ciphertext storage server, the index ciphertext and the search trapdoor, that is, testing whether the keywords contained in the index ciphertext and the search trapdoor are the same, wherein the index ciphertext is the index ciphertext of the data owner, or the shared index ciphertext for the authorized data user; if the index ciphertext and the search trapdoor match successfully, the ciphertext storage server sends the data ciphertext corresponding to the index ciphertext to the user; otherwise, the ciphertext storage server ignores the data ciphertext corresponding to the index ciphertext; An index ciphertext update key generation module, used for the data owner to generate an index ciphertext update key according to the global parameter set of the system, the private key currently used by the data owner and the new private key to be enabled; The index ciphertext update module is used to update the original index ciphertext of the data owner according to the global parameter set of the system, the index ciphertext update key of the data owner and the original index ciphertext of the data owner. The ciphertext storage server updates the original index ciphertext of the data owner to generate a new index ciphertext.
Citation Information
Patent Citations
Public key encryption method and system supporting ciphertext fuzzy search function
CN111934875A
Distributed ciphertext shared key management method and system based on encrypted data deduplication
CN112152798A
Method and apparatus for securing sensitive data in a cloud storage system
US20150365385A1
