Searchable encryption method and device, equipment, storage medium and program product
By converting tenant attributes and access policies into equal-length vectors on the cloud computing platform, and using vector inner products to implement access control and ciphertext search, the challenges of the cloud computing platform in data access control and search operations are solved, and efficient, Secure fine-grained access and privacy protection.
Patent Information
- Application Number
- CN202410469202.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-04-18
AI Technical Summary
Cloud computing platforms have fine-grained, diversified access control, anonymity and tenant privacy protection, and efficiency challenges in data access control and search operations. In particular, traditional methods cannot efficiently search on encrypted data, resulting in excessive computing and storage overhead. big.
Adopting an attribute-based searchable encryption method, by converting tenant attributes and access policies into equal-length vectors, vector inner products are used to implement access control and ciphertext search, replacing traditional secret sharing and recovery methods, hiding tenant attribute privacy, and Fine-grained matching of ciphertext keywords during access control and search.
It implements lightweight access control and search that is friendly to tenant terminal devices, hides the privacy of tenant attributes, reduces computing and storage overhead, and can track the identity of the specific tenant when the key is leaked.
Smart Images

Figure CN118797679A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing technology, and in particular to a searchable encryption method, device, equipment, storage medium and program product. Background Art
[0002] The circulation of data is the core of cloud computing services. Some tenants will store their local data in the cloud, or hand it over to the cloud computing platform for analysis and processing. Correspondingly, tenants can also obtain service data of the cloud computing platform according to their own qualifications and payment, or obtain data uploaded by other tenants through the cloud computing platform for use. Regardless of the commercial benefits of the cloud computing platform or the data privacy and service fairness of the tenants, the cloud computing platform needs to impose an access control mechanism on tenants to ensure that tenants who have not paid (including arrears) and are not authorized for specific functions cannot access the corresponding data. Specifically, data access control for cloud computing tenants faces the following challenges:
[0003] Fine-grained and diversified access control: It is necessary to ensure that only authorized tenants or systems can decrypt and access confidential data. At the same time, fine-grained and diversified data services need to be provided according to the characteristics and functional requirements of tenants.
[0004] Anonymity and tenant privacy: Traditional access control requires cloud computing platforms to confirm and review the identity of tenants, and may further leak private information including personal identity information, financial data, medical records, etc., causing trouble and harm to tenants.
[0005] Secure search: Access control is usually implemented by cryptographic algorithms, but because the data is encrypted, traditional data search methods cannot perform search operations on encrypted data. If all ciphertexts on the cloud are downloaded and decrypted one by one for search, it will bring tenants unbearable huge communication volume and computing and storage overhead.
[0006] Efficiency: Cloud computing platforms are usually powerful hardware facilities consisting of multiple distributed server clusters, which enables them to cope with various computing needs. However, tenant devices are usually lightweight devices such as personal computers, mobile terminals or vehicle terminals. The computing and storage overhead brought by the complex algebraic structure of cryptographic algorithms poses a challenge to tenants' lightweight terminal devices.
[0007] Therefore, an efficient and secure search technology is needed that allows searching directly on ciphertext without decryption. Summary of the invention
[0008] The present invention provides a searchable encryption method, apparatus, device, storage medium and program product to solve the defects in the prior art and realize a privacy-protecting attribute-based searchable encryption method.
[0009] The present invention provides a searchable encryption method, comprising:
[0010] In response to a search trapdoor submitted by a data access tenant, determining keywords in the search trapdoor;
[0011] Based on the system public parameters, the keyword and the trapdoor component of the search trapdoor search from the stored ciphertext to determine whether there is a matching ciphertext;
[0012] Determining that there is a matching ciphertext, sending an intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant;
[0013] The search trapdoor is obtained according to a keyword of the data to be accessed by the data access tenant, a system public parameter, a tenant key of the data access tenant, and an attribute vector of the data access tenant;
[0014] The ciphertext is obtained according to the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext.
[0015] According to a searchable encryption method provided by the present invention, the method further comprises:
[0016] Constructing a first position set and a second position set corresponding to the access policy, and a third position set corresponding to the user attribute, wherein the first position set includes a first positive attribute position of the access policy, the second position set includes a wildcard attribute position of the access policy, and the third position set includes a second positive attribute position in the user attribute;
[0017] Based on the first positive attribute position in the first position set and the wildcard attribute position in the second position set, construct a Lagrange polynomial by Lagrange interpolation theorem, and extract a set of factors from the Lagrange polynomial;
[0018] determining an aggregate value based on a first positive attribute position in the first position set and a wildcard attribute position in the second position set;
[0019] constructing an access vector corresponding to the access strategy based on a set of the factors, the aggregate value, and a preset zero value;
[0020] Determining access vector elements based on all first positive attribute positions in the first position set and second positive attribute positions in the third position set;
[0021] An attribute vector corresponding to the user attribute is constructed based on the access vector elements and the preset tag vector; wherein the attribute vector and the access vector are two vectors of equal length.
[0022] According to a searchable encryption method provided by the present invention, the tenant key is obtained in the following manner:
[0023] Get the tenant's attribute vector and identity ID;
[0024] Generate a tenant key component based on the identity ID, the system public parameter, the system master key and the first random element;
[0025] A tenant key of the tenant is generated based on the tenant key component and the attribute vector.
[0026] According to a searchable encryption method provided by the present invention, the search threshold is obtained by the data access tenant in the following manner:
[0027] Determine the keywords of the data to be accessed;
[0028] determining three trapdoor components based on system public parameters, a tenant key of the data access tenant, and the keyword;
[0029] The search threshold is generated based on the three trapdoor components and the attribute vector of the data access tenant.
[0030] According to a searchable encryption method provided by the present invention, the ciphertext is obtained in the following manner:
[0031] Determine the data to be shared and an access strategy for the data to be shared, and convert the access strategy into an access vector;
[0032] Determine a first ciphertext component based on the access vector, the system public parameter, the offline ciphertext, and the first keyword of the data to be shared; the offline ciphertext is obtained according to the second random element and the offline ciphertext component, and the offline ciphertext component is obtained according to the system public parameter and the third random element;
[0033] Based on the first ciphertext component and the offline ciphertext component, the ciphertext of the data to be shared is obtained.
[0034] According to a searchable encryption method provided by the present invention, the method further comprises:
[0035] Decrypting a tenant key component in a tenant key of the tenant to be tracked to obtain a decryption result, wherein the decryption result includes an encrypted identity ID and a Lagrangian polynomial matching the encrypted identity ID;
[0036] It is determined that the decryption result exists in a discrete secret data point set, and it is determined that the tenant key of the tenant to be tracked is not leaked.
[0037] According to a searchable encryption method provided by the present invention, the method further comprises:
[0038] Determining that the decryption result does not exist in the discrete secret data point set, and determining that the tenant key of the tenant to be tracked is leaked;
[0039] Reconstructing the Lagrangian polynomial of the encrypted identity ID matching based on a discrete data point set and the Lagrangian interpolation theorem to obtain a reconstructed Lagrangian polynomial;
[0040] Malicious tenants are identified for the tenant to be tracked based on the Lagrangian polynomial matched with the encrypted identity ID and the reconstructed Lagrangian polynomial.
[0041] The present invention also provides a searchable encryption device, comprising:
[0042] a first searchable encryption module, configured to determine keywords in a search trapdoor in response to a search trapdoor submitted by a data access tenant;
[0043] a second searchable encryption module, configured to search the stored ciphertext based on the system public parameter, the keyword, and the trapdoor component of the search trapdoor to determine whether there is a matching ciphertext;
[0044] a third searchable encryption module, configured to determine that there is a matching ciphertext, and to send an intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access data corresponding to the ciphertext according to the tenant key of the data access tenant;
[0045] The search trapdoor is obtained according to a keyword of the data to be accessed by the data access tenant, a system public parameter, a tenant key of the data access tenant, and an attribute vector of the data access tenant;
[0046] The ciphertext is obtained according to the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext.
[0047] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the searchable encryption method described above is implemented.
[0048] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements any of the above-described searchable encryption methods when executed by a processor.
[0049] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the searchable encryption method described above is implemented.
[0050] The searchable encryption method, device, equipment, storage medium and program product provided by the present invention include responding to the search trap submitted by the data access tenant, determining the keyword in the search trap; determining whether there is a matching ciphertext based on the system public parameters, the keyword and the trap component of the search trap; determining whether there is a matching ciphertext, sending the intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant; the search trap is obtained according to the keyword of the data to be accessed by the data access tenant, the system public parameters, the tenant key of the data access tenant, and the attribute vector of the data access tenant; the ciphertext is obtained according to the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext. The present invention converts the tenant attributes and the access policy into two equal-length vectors respectively, and implements access control through the vector inner product to replace the complex access control based on secret sharing and recovery in the traditional related technology, which is not only very friendly to the lightweight devices of the tenant terminals, but also hides the attribute privacy of the tenants while performing access control and search. Based on this, the present invention further converts the search trapdoor matching process of the keyword of the ciphertext search into a vector inner product operation, thereby realizing fine-grained ciphertext keyword search with a relatively small computational overhead. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 It is a scenario schematic diagram of the searchable encryption method provided by the present invention;
[0053] Figure 2 It is one of the flowcharts of the searchable encryption method provided by the present invention;
[0054] Figure 3 This is the second flow chart of the searchable encryption method provided by the present invention;
[0055] Figure 4 It is a schematic diagram of the structure of the searchable encryption device provided by the present invention;
[0056] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] Through the analysis of the technical challenges of tenant access control in cloud computing and the current research and application progress, it can be understood that there are two main technical research aspects regarding tenant-oriented data access control in cloud computing: how to implement a secure, flexible and efficient access control mechanism, and how to allow tenants to have the ability to efficiently search for ciphertext before accessing data. However, in terms of access control mechanisms, although some role-based or attribute-based access control methods have been proposed, they still have the following problems and limitations:
[0059] First, it is difficult to effectively protect tenant privacy. For example, although access control based on anonymous encryption technology can hide the identity of tenants, the connection between anonymous tenants and the data they access is still obvious. Although attribute-based encryption can provide better flexibility, tenants' sensitive information may still be leaked from public access policies.
[0060] Secondly, the efficiency and performance are poor. The current mainstream attribute-based access control protocol algorithm has a complex structure, so it still causes heavy computing and storage overhead for tenants.
[0061] Finally, whether based on anonymous encryption technology or attribute encryption technology, it is difficult to regulate and constrain the flow or malicious use of tenant keys, which endangers the security of the cloud computing platform and leads to key abuse and malicious access.
[0062] In terms of ciphertext search on the cloud, public key searchable encryption and symmetric searchable encryption are hot topics in academia and industry respectively. Public key searchable encryption has strong scalability and diverse functions, and can meet a variety of ciphertext search needs, but its performance is very low and difficult to deploy in practice; symmetric searchable encryption, although its performance is high, its application mode is very limited. Therefore, how to strike a balance between usability and performance for searchable encryption is a difficult problem that has not been solved by existing technologies.
[0063] In view of the shortcomings of the prior art, the embodiment of the present invention proposes a searchable encryption method and an attribute-based access control strategy based on inner product operation. The technical method used is to convert the tenant attribute set and the access structure into two equal-length vectors respectively, and implement access control through the vector inner product, so as to replace the complex access control based on secret sharing and recovery in traditional related technologies, which is very friendly to the lightweight devices of tenant terminals. In addition, building on the attribute-based access control strategy itself avoids the leakage of user identity privacy; in addition, the tenant's attribute privacy is hidden during access control and search.
[0064] In addition, based on the above-mentioned attribute-based access control strategy based on inner product operation, the keyword and index matching process of ciphertext search is also converted into vector inner product operation, realizing fine-grained ciphertext keyword search with low computational overhead.
[0065] Finally, through careful algorithm design, the tenant key does not expose any information related to the tenant's identity and property privacy, thus achieving the anonymity of the key. However, when the tenant has malicious behavior (such as selling the key for profit) or the key is leaked, the specific tenant identity corresponding to the key can also be traced to hold him accountable.
[0066] It should be noted here that the reference Figure 1 The searchable encryption method proposed in this embodiment mainly involves data interaction between three entities in the cloud computing system: cloud administrator, tenant, and cloud computing platform. Among them, tenants can also be divided into tenants who upload encrypted data or data sharing tenants (referred to as tenant A) and tenants who access encrypted data or data access tenants (referred to as tenant B). The specific definitions of these entities are as follows:
[0067] The cloud administrator is a trusted entity responsible for initializing and managing the entire system and holding the system master key. It will neither collude with any other entity nor be vulnerable to attack. When it receives a registration request from a tenant, it distributes tenant keys based on the tenant's attributes. When a tenant key is leaked or abused, the cloud administrator can analyze the anonymous tenant key to track down the owner of the tenant key, i.e. the person responsible.
[0068] A tenant is a user who enjoys cloud computing services. It can encrypt local data and upload it to the cloud computing platform, and can also use its own keys to search and access encrypted data. It is an untrusted entity that may be attacked and has the motivation to illegally access cloud computing services through various means.
[0069] The cloud computing platform is used to provide various services for tenants. It can be used to store encrypted data uploaded by tenants and provide it to other tenants with authorization. It can also process data and generate its own encrypted data for tenants to access. In particular, in order to provide flexibility in data access, when a tenant initiates a search request, cloud computing can search for ciphertext that meets the requirements for the tenant without knowing any information related to the ciphertext.
[0070] It should be noted here that before performing searchable encryption, the cloud administrator must first initialize the cloud computing system, define system public parameters for all tenants and devices, and generate a secret system master key. Specifically, this stage is divided into the following steps:
[0071] The cloud administrator defines the system security parameter λ, which defines the security level of the system. For practicality, it can be set to 128. On this basis, the national SM4 symmetric encryption algorithm is called, and its encryption and decryption algorithms are set to SEnc and SDec respectively, and two symmetric keys k are set. 1 and k 2 ;
[0072] Define Shamir's secret sharing scheme as It is based on the Lagrange polynomial It can be discrete secret data points Refactoring;
[0073] Select three prime numbers p-factorial cyclic group G 0 ,G 1 ,G 2 , and set g and Group G 0 and G 1 The generator in defines the bilinear map e:G 0 ×G 1 →G 2 ;
[0074] Define a hash function H: Used to map a bit string of arbitrary length to an element in the p-order integer cyclic group;
[0075] Pick a random element On this basis, the components of the public parameters and the system master key are calculated h 0 =g θ ,
[0076] Based on the above, the system public parameters PP are output and made public:
[0077]
[0078] At the same time, the cloud administrator secretly holds the system master key MSK:
[0079]
[0080] In this embodiment, the cloud administrator defines and creates the system public parameter PP and generates the system master key MSK to prepare for subsequent operations.
[0081] The searchable encryption method provided by the embodiment of the present invention is applied to a cloud computing platform. Figure 1 One of the flowcharts of the searchable encryption method provided by the embodiment of the present invention; Figure 1 As shown, the method includes:
[0082] Step 110, in response to a search trap submitted by a data access tenant, determining keywords in the search trap;
[0083] The search trap in this embodiment is obtained based on the keyword of the data that the data access tenant wants to access, the system public parameters, the tenant key of the data access tenant, and the attribute vector of the data access tenant.
[0084] It should be noted that tenants or cloud computing platforms can use system public parameters to encrypt their own data, select keywords to give the ciphertext index structure, and then upload it to the cloud computing platform for search and retrieval; on this basis, when other tenants need to access the data, they can use their own tenant keys to generate search traps related to the keywords they are interested in, and submit them to the cloud computing platform for search.
[0085] Here, the keyword is the specific content that the tenant wants to search for (or the tenant wants to share). The keyword can be text, number or other type of data, which represents the information that the tenant is interested in.
[0086] The tenant key is unique to a tenant and is used to encrypt and decrypt the tenant's data. When building a search trap, using the tenant key ensures that only the tenant can perform valid search operations, thereby increasing the security of the system.
[0087] It should be noted that the attribute vector in this embodiment is obtained by vectorizing the user attributes. The attribute vector can be used to transform the originally complex modular exponential operation into a lightweight dot multiplication operation. By combining the attribute vector with the search trapdoor, more fine-grained access control can be achieved.
[0088] Specifically, the search threshold is obtained by the data access tenant in the following manner:
[0089] Determine the keywords of the data to be accessed;
[0090] determining three trapdoor components based on system public parameters, a tenant key of the data access tenant, and the keyword;
[0091] The search threshold is generated based on the three trapdoor components and the attribute vector of the data access tenant.
[0092] In this step, the data access tenant passes the system public parameter PP, the tenant key SK, and the keyword KW of the data to be accessed, and then calculates three trapdoor components Finally, combine the data to access the tenant's attribute vector Integrate and output search threshold
[0093] Step 120, based on the system public parameters, the keyword and the trapdoor component of the search trapdoor, searching from the stored ciphertext to determine whether there is a matching ciphertext;
[0094] The ciphertext in this embodiment is obtained based on the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext.
[0095] As mentioned above, the access vector in this embodiment is obtained by vectorizing the access policy. The access vector can be used to transform the originally complex modular exponential operation into a lightweight point multiplication operation. By combining the access vector with the ciphertext, more fine-grained access control can be achieved.
[0096] Offline ciphertext is a pre-generated ciphertext form used for sharing and accessing data under specific conditions (such as offline state).
[0097] In one example, when receiving a trapdoor from a tenant After that, the cloud computing platform inputs the system public parameter PP, the trapdoor and ciphertext CT=(c 0 ,c′ 0 ,c 1 ,c 1,i ,c 2 ,τ i ), and then performs matching calculation on the stored ciphertext. Specifically, this stage is divided into the following steps:
[0098] Compute search components:
[0099] Q 1 =e(c′ 1 ,d 2 ),Q 2 =e(c 1 ,d 1 ),Q 3=e(c 2 ,d 3 )
[0100] Among them, the search component
[0101] Based on the above search components, determine whether the following equation holds true:
[0102] c′ 0 =Q 2 ·(Q 1 Q 3 ) -1
[0103] If so, it is determined that there is a matching ciphertext. Otherwise, the cloud computing platform returns a symbol ⊥ to indicate that the ciphertext to be searched by the search trap does not exist.
[0104] Step 130, determining that there is a matching ciphertext, and sending the intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant;
[0105] In this embodiment, if there is a matching ciphertext, the intermediate ciphertext CT′=(c 0 ,c′ 0 ,c 1 ,c′ 1 ) to the data access tenant.
[0106] Among them, the data access tenant receives the intermediate ciphertext CT′=(c 0 ,c′ 0 ,c 1 ,c′ 1 ), combined with the tenant key SK of the data access tenant, the following equation is calculated to restore the data:
[0107]
[0108] The method provided in this embodiment determines the keywords in the search trap in response to the search trap submitted by the data access tenant; determines whether there is a matching ciphertext based on the system public parameters, keywords and the trap component of the search trap; determines whether there is a matching ciphertext, and sends the intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant; the search trap is obtained according to the keywords of the data to be accessed by the data access tenant, the system public parameters, the tenant key of the data access tenant, and the attribute vector of the data access tenant; the ciphertext is obtained according to the keywords of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext. The present invention converts the tenant attributes and access policies into two equal-length vectors respectively, and implements access control through vector inner product to replace the complex access control based on secret sharing and recovery in the traditional related technology, which is not only very friendly to the lightweight devices of the tenant terminals, but also hides the attribute privacy of the tenants while access control and search. Based on this, the present invention further converts the search trap matching process of the keyword of the ciphertext search into a vector inner product operation, and realizes fine-grained ciphertext keyword search with a small computational overhead.
[0109] In some embodiments, the method further comprises:
[0110] Constructing a first position set and a second position set corresponding to the access policy, and a third position set corresponding to the user attribute, wherein the first position set includes a first positive attribute position of the access policy, the second position set includes a wildcard attribute position of the access policy, and the third position set includes a second positive attribute position in the user attribute;
[0111] Based on the first positive attribute position in the first position set and the wildcard attribute position in the second position set, construct a Lagrange polynomial by Lagrange interpolation theorem, and extract a set of factors from the Lagrange polynomial;
[0112] determining an aggregate value based on a first positive attribute position in the first position set and a wildcard attribute position in the second position set;
[0113] constructing an access vector corresponding to the access strategy based on a set of the factors, the aggregate value, and a preset zero value;
[0114] Determining access vector elements based on all first positive attribute positions in the first position set and second positive attribute positions in the third position set;
[0115] An attribute vector corresponding to the user attribute is constructed based on the access vector elements and the preset tag vector; wherein the attribute vector and the access vector are two vectors of equal length.
[0116] It should be noted here that the vectorization in this embodiment can be executed not only by the cloud computing platform, but also by the tenants themselves. The cloud computing platform is used as a representative for explanation.
[0117] First, define the attribute set S as a set of m attributes, each of which can be positive (+) or negative (-).
[0118] For access policies, the attribute positions of the access policies are divided into two categories: a positive attribute position set P (ie, a first position set) and a wildcard attribute position set W (ie, a second position set).
[0119] Next, using the Lagrange interpolation theorem, based on the wildcard position k in the wildcard attribute position set W i ∈W and the positive attribute position j∈P in the positive attribute position set P, construct a Lagrangian polynomial This Lagrange polynomial can reflect the relationship between the wildcard positions in the wildcard attribute position set W and the positive attribute positions in the positive attribute position set P, and extract a set of factors u from it 0 ,...,u l Based on this, determine the aggregate value
[0120] Based on the above set of factors u 0 ,...,u l , Aggregate Value And the preset zero value (ie 0 l+1 ,...,0 n , used to extend the vector length to a preset fixed length) to construct an access vector
[0121] Similarly, all the positive attribute positions in the user attributes are stored in the set P′ (i.e., the third position set). For all elements x∈[1,n], the positive attribute positions x∈P′ in the set P′, and the positive attribute positions j∈P in the positive attribute position set P, the access vector element {v j =+∑ x∈P′ x j}, and finally construct an attribute vector by combining it with a preset tag vector (Where -1 is the last element of the attribute vector and can be considered as a special marker or placeholder).
[0122] The method provided in this embodiment converts the tenant attribute set and the access structure into two vectors of equal length respectively, so that access control can be implemented through vector inner product later, thereby replacing the complex access control based on secret sharing and recovery in traditional related technologies.
[0123] In some embodiments, the tenant key is obtained by:
[0124] Get the tenant's attribute vector and identity ID;
[0125] Generate a tenant key component based on the identity ID, the system public parameter, the system master key and the first random element;
[0126] A tenant key of the tenant is generated based on the tenant key component and the attribute vector.
[0127] In this embodiment, the tenant can convert the tenant's attribute set into an attribute vector based on the above method. And send it together with its own identity ID to the cloud computing platform (or cloud administrator).
[0128] Upon receiving the tenant's property vector After obtaining the identity ID, the tenant key component is calculated based on the system public parameter PP and the system master key MSK:
[0129]
[0130] Next, pick a random element And calculate the tenant key component
[0131]
[0132]
[0133] Based on the above steps, the tenant key is finally generated And send it to the tenant through a secure channel.
[0134] In this embodiment, the above method is used to ensure that the tenant key does not expose any information related to the tenant's identity and attribute privacy, thereby achieving the anonymity of the tenant key.
[0135] In some embodiments, the ciphertext is obtained by:
[0136] Determine the data to be shared and an access strategy for the data to be shared, and convert the access strategy into an access vector;
[0137] Determine a first ciphertext component based on the access vector, the system public parameter, the offline ciphertext, and the first keyword of the data to be shared; the offline ciphertext is obtained according to the second random element and the offline ciphertext component, and the offline ciphertext component is obtained according to the system public parameter and the third random element;
[0138] Based on the first ciphertext component and the offline ciphertext component, the ciphertext of the data to be shared is obtained.
[0139] Here, this step can be performed by the data sharing tenant or the cloud computing platform, and is used for the data sharing tenant to share their own data or the cloud computing platform to provide the collected and processed data. In this embodiment, the cloud computing platform is used as a representative for explanation.
[0140] Specifically, when the data to be shared M and the access strategy ψ of the data sharing tenant are clear, the access strategy ψ is first converted into an access vector based on the above method Then enter the system public parameter PP, offline ciphertext FCT, specify the keyword KW related to the data to be shared, and calculate the ciphertext component:
[0141] τ i =η i +u i t,
[0142] Among them, the offline ciphertext FCT is obtained by the following method:
[0143] Based on the system public parameter PP, select random elements And calculate the offline ciphertext component c 1 =g t , Then calculate the offline ciphertext FCT = (c 1 ,c 1,i ,c 2 ,t,η 1 ,...,η n ).
[0144] Finally, based on the above steps, the ciphertext CT is generated. 0 ,c′ 0 ,c 1 ,c 1,i ,c 2 ,τ i ) and store it on a cloud computing platform.
[0145] In some embodiments, the method further comprises:
[0146] Decrypting a tenant key component in a tenant key of the tenant to be tracked to obtain a decryption result, wherein the decryption result includes an encrypted identity ID and a Lagrangian polynomial matching the encrypted identity ID;
[0147] It is determined that the decryption result exists in a discrete secret data point set, and it is determined that the tenant key of the tenant to be tracked is not leaked.
[0148] In this embodiment, due to the need for tenant privacy protection and access control flexibility, the tenant key itself does not disclose any information about the tenant identity or attribute set. However, since the tenant's identity information in this embodiment is hidden and embedded in its tenant key, it is possible to track tenants who sell keys or intentionally disclose tenant keys. Therefore, in this embodiment, tenants whose tenant keys are disclosed are tracked and held accountable.
[0149] Specifically, first use the symmetric key k 2 The tenant key component sk in the tenant key SK of the tenant to be tracked 0 Decryption calculation get if in, If it is a discrete secret data point, then the tenant key of the tenant to be tracked is determined to be not leaked, so the symmetric key k can be used 1 Decrypt to get the tenant's identity
[0150] Furthermore, it also includes:
[0151] Determining that the decryption result does not exist in the discrete secret data point set, and determining that the tenant key of the tenant to be tracked is leaked;
[0152] Reconstructing the Lagrangian polynomial of the encrypted identity ID matching based on a discrete data point set and the Lagrangian interpolation theorem to obtain a reconstructed Lagrangian polynomial;
[0153] The malicious tenant is identified based on the Lagrangian polynomial matching the encrypted identity ID and the reconstructed Lagrangian polynomial.
[0154] like Then use Discrete data points Use the Lagrange interpolation theorem to encrypt the ID (i.e. ) matches the Lagrange polynomial (that is, ) is reconstructed according to the reconstructed Lagrange polynomial And solve f′(0). If f′(0)=f(0), then decrypt and calculate To track the tenant's ID and determine it as a malicious tenant. Otherwise, it can be determined that the tenant with ID has no malicious behavior.
[0155] In this embodiment, the above method can be used to trace the specific tenant identity corresponding to the key to investigate the responsibility when the tenant has malicious behavior (such as selling the tenant key for profit) or the tenant key is leaked.
[0156] For ease of understanding, refer to Figure 3 ,This embodiment also provides a searchable encryption method, which is divided into seven steps, including cloud computing system establishment, access policy and attribute vectorization, tenant key distribution, data encryption upload, tenant search trapdoor creation, ciphertext keyword search, tenant data access, and key leakage tracking.
[0157] First, in the cloud computing system establishment step, the cloud administrator defines and creates system public parameters and generates a master key to prepare for subsequent operations. In the access policy and attribute vectorization step, the user attribute set and access policy are vectorized. In the tenant key distribution step, the cloud administrator uses the system public parameters and the master key to generate tenant keys for tenants. After the key distribution is completed, the tenant or cloud computing platform can use the system public parameters to encrypt its own data, select keywords to give the ciphertext index structure, and then upload it to the cloud computing platform for search and access; on this basis, when other tenants need to access the data, through the tenant search trap creation phase, use their own tenant keys to generate search traps related to the keywords they are interested in, and submit them to the cloud computing platform; then, after receiving the search trap, the cloud computing platform enters the ciphertext keyword search phase, uses it to perform search operations from the stored ciphertext, and if there is a matching ciphertext, it returns the ciphertext to the tenant, otherwise if it does not exist, the process terminates; after obtaining the ciphertext, the tenant enters the tenant data access phase, uses its own tenant key to decrypt the ciphertext to obtain the data, and the tenant completes its purpose. In addition, in any of the above processes, if abuse or leakage of tenant keys is detected, the cloud administrator performs a key leakage tracking phase to trace the corresponding tenant information from the anonymous keys.
[0158] The searchable encryption device provided by the present invention is described below. The searchable encryption device described below and the searchable encryption method described above can be referenced to each other.
[0159] Figure 4 A schematic diagram of the structure of the searchable encryption device provided by the present invention; Figure 4 As shown, the device comprises:
[0160] A first searchable encryption module 410, for determining keywords in a search trapdoor in response to a search trapdoor submitted by a data access tenant;
[0161] A second searchable encryption module 420, configured to search the stored ciphertext based on the system public parameter, the keyword and the trapdoor component of the search trapdoor to determine whether there is a matching ciphertext;
[0162] A third searchable encryption module 430 is used to determine whether there is a matching ciphertext, and send an intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant;
[0163] The search trapdoor is obtained according to a keyword of the data to be accessed by the data access tenant, a system public parameter, a tenant key of the data access tenant, and an attribute vector of the data access tenant;
[0164] The ciphertext is obtained according to the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext.
[0165] The device provided by the present invention determines the keywords in the search trap in response to the search trap submitted by the data access tenant; determines whether there is a matching ciphertext based on the system public parameters, the keywords and the trap component of the search trap; determines whether there is a matching ciphertext, and sends the intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant; the search trap is obtained according to the keywords of the data to be accessed by the data access tenant, the system public parameters, the tenant key of the data access tenant, and the attribute vector of the data access tenant; the ciphertext is obtained according to the keywords of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext. The present invention converts the tenant attributes and the access policy into two equal-length vectors respectively, and implements access control through the vector inner product to replace the complex access control based on secret sharing and recovery in the traditional related technology, which is not only very friendly to the lightweight devices of the tenant terminals, but also hides the attribute privacy of the tenants while access control and search. Based on this, the present invention further converts the search trap matching process of the keyword of the ciphertext search into a vector inner product operation, and realizes fine-grained ciphertext keyword search with a small computational overhead.
[0166] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call the logic instructions in the memory 530 to execute a searchable encryption method, which includes: in response to a search trap submitted by a data access tenant, determining a keyword in the search trap; based on system public parameters, searching the keyword and the trapdoor component of the search trap from the stored ciphertext to determine whether there is a matching ciphertext; upon determining that there is a matching ciphertext, sending the intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant; wherein the search trap is obtained based on the keyword of the data to be accessed by the data access tenant, the system public parameters, the tenant key of the data access tenant, and the attribute vector of the data access tenant; the ciphertext is obtained based on the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters, and the offline ciphertext.
[0167] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0168] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the searchable encryption method provided by the above methods, the method including: in response to a search trap submitted by a data access tenant, determining a keyword in the search trap; based on system public parameters, searching the keyword and the trap component of the search trap from the stored ciphertext to determine whether there is a matching ciphertext; if it is determined that there is a matching ciphertext, sending the intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant; wherein the search trap is obtained based on the keyword of the data to be accessed by the data access tenant, the system public parameters, the tenant key of the data access tenant, and the attribute vector of the data access tenant; the ciphertext is obtained based on the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext.
[0169] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when executed by a processor to execute the searchable encryption method provided by the above-mentioned methods, the method comprising: in response to a search trap submitted by a data access tenant, determining a keyword in the search trap; based on system public parameters, searching the keyword and the trap component of the search trap from the stored ciphertext to determine whether there is a matching ciphertext; upon determining that there is a matching ciphertext, sending the intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant; wherein the search trap is obtained based on the keyword of the data to be accessed by the data access tenant, the system public parameters, the tenant key of the data access tenant, and the attribute vector of the data access tenant; the ciphertext is obtained based on the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters, and the offline ciphertext.
[0170] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0171] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0172] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A searchable encryption method, It is characterized in that The method comprises: In response to a search trapdoor submitted by a data access tenant, determining keywords in the search trapdoor; Based on the system public parameters, the keyword and the trapdoor component of the search trapdoor search from the stored ciphertext to determine whether there is a matching ciphertext; Determining that there is a matching ciphertext, sending an intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access the data corresponding to the ciphertext according to the tenant key of the data access tenant; The search trapdoor is obtained according to a keyword of the data to be accessed by the data access tenant, a system public parameter, a tenant key of the data access tenant, and an attribute vector of the data access tenant; The ciphertext is obtained according to the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext.
2. The searchable encryption method according to claim 1, It is characterized in that The method further comprises: Constructing a first position set and a second position set corresponding to the access policy, and a third position set corresponding to the user attribute, wherein the first position set includes a first positive attribute position of the access policy, the second position set includes a wildcard attribute position of the access policy, and the third position set includes a second positive attribute position in the user attribute; Based on the first positive attribute position in the first position set and the wildcard attribute position in the second position set, construct a Lagrange polynomial by Lagrange interpolation theorem, and extract a set of factors from the Lagrange polynomial; determining an aggregate value based on a first positive attribute position in the first position set and a wildcard attribute position in the second position set; constructing an access vector corresponding to the access strategy based on a set of the factors, the aggregate value, and a preset zero value; Determining access vector elements based on all first positive attribute positions in the first position set and second positive attribute positions in the third position set; An attribute vector corresponding to the user attribute is constructed based on the access vector elements and the preset tag vector; wherein the attribute vector and the access vector are two vectors of equal length.
3. The searchable encryption method according to claim 1, It is characterized in that The tenant key is obtained in the following way: Get the tenant's attribute vector and identity ID; Generate a tenant key component based on the identity ID, the system public parameter, the system master key and the first random element; A tenant key of the tenant is generated based on the tenant key component and the attribute vector.
4. The searchable encryption method according to claim 1, It is characterized in that The search threshold is obtained by the data access tenant in the following manner: Determine the keywords of the data to be accessed; determining three trapdoor components based on system public parameters, a tenant key of the data access tenant, and the keyword; The search threshold is generated based on the three trapdoor components and the attribute vector of the data access tenant.
5. The searchable encryption method according to claim 1, It is characterized in that The ciphertext is obtained in the following way: Determine the data to be shared and an access strategy for the data to be shared, and convert the access strategy into an access vector; Determining a first ciphertext component based on the access vector, the system public parameter, the offline ciphertext, and the first keyword of the data to be shared; The offline ciphertext is obtained according to the second random element and the offline ciphertext component, and the offline ciphertext component is obtained according to the system public parameter and the third random element; Based on the first ciphertext component and the offline ciphertext component, the ciphertext of the data to be shared is obtained.
6. The searchable encryption method according to any one of claims 1 to 5, It is characterized in that The method further comprises: Decrypting a tenant key component in a tenant key of the tenant to be tracked to obtain a decryption result, wherein the decryption result includes an encrypted identity ID and a Lagrangian polynomial matching the encrypted identity ID; It is determined that the decryption result exists in a discrete secret data point set, and it is determined that the tenant key of the tenant to be tracked is not leaked.
7. The searchable encryption method according to claim 6, It is characterized in that The method further comprises: Determining that the decryption result does not exist in the discrete secret data point set, and determining that the tenant key of the tenant to be tracked is leaked; Reconstructing the Lagrangian polynomial of the encrypted identity ID matching based on a discrete data point set and the Lagrangian interpolation theorem to obtain a reconstructed Lagrangian polynomial; Malicious tenants are identified for the tenant to be tracked based on the Lagrangian polynomial matched with the encrypted identity ID and the reconstructed Lagrangian polynomial.
8. A searchable encryption device, It is characterized in that The device comprises: a first searchable encryption module, configured to determine keywords in a search trapdoor in response to a search trapdoor submitted by a data access tenant; a second searchable encryption module, configured to search the stored ciphertext based on the system public parameter, the keyword, and the trapdoor component of the search trapdoor to determine whether there is a matching ciphertext; a third searchable encryption module, configured to determine that there is a matching ciphertext, and to send an intermediate ciphertext corresponding to the ciphertext to the data access tenant, so that the data access tenant can access data corresponding to the ciphertext according to the tenant key of the data access tenant; The search trapdoor is obtained according to a keyword of the data to be accessed by the data access tenant, a system public parameter, a tenant key of the data access tenant, and an attribute vector of the data access tenant; The ciphertext is obtained according to the keyword of the data to be shared by the data sharing tenant, the access vector of the access policy, the system public parameters and the offline ciphertext.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the searchable encryption method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the searchable encryption method according to any one of claims 1 to 7 is implemented.
11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the searchable encryption method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Attribute-based wildcard character searchable encryption method
CN111859425A
Ciphertext strategy attribute encryption algorithm based on national secret
CN113055164A
Single-keyword searchable encryption method based on inner product predicate in cloud
CN114826575A
Decentralized fine-grained privacy protection crowdsourcing task matching method and matching system
CN116662827A
Forward security attribute-based searchable encryption method, device and system and medium
CN117220919A
Cited By
Method and device for performing model reasoning by using dense state neural network
CN119849640A
