LKH-based CP-ABE method and system for outsourcing encryption and decryption with flexible user revocation
Through the LKH-based outsourced encryption and decryption CP-ABE method that can flexibly revoke users, combined with the group communication model and blockchain technology, the problem of high computing cost and transmission cost when users frequently join and revoke in the attribute-based encryption scheme is solved. Efficient user revocation and data encryption and decryption are achieved, improving data security and privacy.
Patent Information
- Application Number
- CN202410034528.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-01-09
AI Technical Summary
In scenarios where users frequently join and withdraw, especially when attributes are withdrawn, the existing attribute-based encryption scheme has high computational costs and is not flexible enough. The transmission cost is also high, and it is difficult for traditional access control technology to achieve fine-grained data access control, which affects Data security.
Adopt the LKH-based outsourced encryption and decryption CP-ABE method that can flexibly revoke users. Through the group communication model and LKH technology, an efficient user revocation mechanism is achieved without the need to maintain a revocation list or perform complex revocation parameter calculations. During the encryption and decryption process, Outsourced computing, combined with blockchain technology to improve privacy.
It reduces the calculation and transmission costs of user revocation, implements an efficient user revocation mechanism, supports data encryption and decryption for resource-limited devices, improves the privacy of user group member communications, and supports large attribute domains and outsourced encryption and decryption functions.
Smart Images

Figure CN117857033B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of attribute-based encryption mechanism, and in particular to an outsourced encryption and decryption CP-ABE method and system based on LKH (Logical Key Hierarchy) that can flexibly revoke users. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] In the era of big data, cloud computing technology integrates multiple technologies such as distributed computing, load balancing and network storage, providing users with an efficient platform to improve their computing and storage capabilities. The online storage space owned by cloud service providers has the advantages of low cost, ease of use and high scalability, meeting the needs of massive data storage and providing data sharing services. In addition, cloud providers also provide automatic backup and replication functions to ensure the security, persistence and high availability of user data.
[0004] While cloud computing technology brings great convenience, it also brings new security issues and challenges. In a cloud computing environment, cloud servers are generally semi-trusted. When an enterprise or individual outsources data to the cloud, it is stored in plain text by default. Despite the existence of contractual security obligations, cloud managers may access and read data without the user's knowledge. Therefore, in order to ensure the confidentiality of stored data, users need to encrypt the data before uploading it to the cloud for storage, and only users with decryption keys can decrypt the ciphertext and access the data, thereby reducing the risk of data leakage and ensuring data security. In order to ensure that data resources can be shared within a legitimate scope, it is indispensable to design a suitable access control scheme so that fine-grained authorized access to data can be guaranteed through access control policies. Among them, protecting users' sensitive data (such as customer information, financial records, and medical records) is particularly important.
[0005] Faced with a series of security issues, if traditional access control technology is used, it will either violate data security or only allow coarse-grained access policies. Attribute-based encryption schemes are considered to be a very promising solution for achieving fine-grained access control. In 2005, Sahai et al. constructed the first attribute-based encryption scheme in the paper "Fuzzy identity-based encryption", which can achieve fine-grained access control of data. However, it is still necessary to solve the problems of outsourcing encryption and decryption, user revocation, and proxy re-encryption at the same time to ensure its safe and efficient application in scenarios where users frequently join and revoke.
[0006] As for the cost problem, since the largest computational cost in attribute-based encryption schemes comes from bilinear pairing operations, some researchers suggest outsourcing bilinear pairing operations to cloud service providers as much as possible, that is, outsourcing encryption and decryption. Although the concept of outsourcing encryption and decryption was proposed in 2012, there are still a large number of schemes that do not support outsourcing encryption and decryption. The revocation types in attribute-based encryption schemes can be divided into user revocation and attribute revocation according to the revocation granularity. It is very difficult to deal with the revocation problem, especially the attribute revocation problem, because each attribute in the system is jointly owned by multiple users, which means that when any attribute of any user is revoked, it may affect other users in the system. Tysowski et al. provided a method for directly revoking users in the paper "Hybrid Attribute-and Re-Encryption-Based Key Managementfor Secure and Scalable Mobile Applications in Clouds", but this method requires broadcasting update materials to all users at the time of revocation, which has a high communication cost. Jiang et al. proposed a fine-grained revocation scheme in the paper A Revocable Outsourcing Attribute-Based Encryption Scheme, Cloud Computing, Security, Privacy in New Computing Environments. However, this scheme requires the maintenance of an additional attribute group list and attribute group key. The computational cost of revoking attributes is high, and the efficiency is very low, especially in the scenario of revoking users. Therefore, the above revocation mechanisms are not flexible and efficient enough. Summary of the invention
[0007] In order to solve at least one technical problem existing in the above-mentioned background technology, the present invention provides a CP-ABE method and system for outsourcing encryption and decryption based on LKH that can flexibly revoke users. It designs a new high-efficiency outsourcing encryption and decryption scheme based on CP-ABE and LKH technology that can flexibly revoke users. The process does not need to maintain a revocation list or perform complex revocation parameter calculations. Outsourcing calculations are implemented in both the encryption and decryption processes, so that both data owners and users can be resource-constrained devices, and more computing tasks can be handed over to the cloud environment. Combining the LKH management part with blockchain technology can further improve the privacy of communications among user group members.
[0008] In order to achieve the above object, the present invention adopts the following technical solution:
[0009] The first aspect of the present invention provides a CP-ABE method for outsourcing encryption and decryption based on LKH that can flexibly revoke users, comprising the following steps:
[0010] Taking security parameters as input, output system public key and system master key;
[0011] Generate a decryption key and a conversion key related to the attribute set according to the system public key and the system master key, as well as the data user attribute set;
[0012] Each user group generates an LKH tree in the initial stage, and generates a node key for each node of the tree. The node key of the root node is the group public key. The number of leaf nodes is the number of users, and the node key of the leaf node is a symmetric key unique to the user.
[0013] According to the system public key, group public key, plaintext and access tree, the message is encrypted into an intermediate ciphertext, and the initial version ciphertext is obtained based on the intermediate ciphertext;
[0014] When the user changes, a new group public key and re-encryption key are generated, and a re-encryption operation is performed based on the ciphertext version and re-encryption key before the update to generate a new ciphertext version;
[0015] Based on the re-encrypted ciphertext and the conversion key, outsource decryption is performed to obtain the converted ciphertext, which is sent to the data user;
[0016] According to the converted ciphertext and the decryption key, the message is decrypted to obtain the decrypted message.
[0017] The second aspect of the present invention provides an LKH-based outsourced encryption and decryption CP-ABE system capable of flexibly revoking users, comprising:
[0018] The key generation module is configured to: take the security parameter as input, output the system public key and the system master key; generate the decryption key and the conversion key related to the attribute set according to the system public key and the system master key and the data user attribute set;
[0019] The group public key generation module is configured as follows: each user group generates an LKH tree in the initial stage, generates a node key for each node of the tree, the node key of the root node is the group public key, the number of leaf nodes is the number of users, and the node key of the leaf node is a symmetric key unique to the user;
[0020] The plaintext encryption module is configured to: encrypt the message into an intermediate ciphertext according to the system public key, the group public key, the plaintext and the access tree, and obtain the initial version ciphertext based on the intermediate ciphertext; when the user changes, a new group public key and a re-encryption key are generated, and a re-encryption operation is performed according to the ciphertext version and the re-encryption key before the update to generate a new ciphertext version;
[0021] The ciphertext decryption module is configured to: generate a new ciphertext version based on a certain version of the ciphertext and the re-encryption key, perform outsourced decryption based on the re-encrypted ciphertext and the conversion key to obtain the converted ciphertext, and send it to the data user; decrypt the message based on the converted ciphertext and the decryption key to obtain the decrypted message.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] 1. The present invention utilizes a group communication model to divide users with related attributes into user groups, and combines LKH technology to implement an efficient user revocation mechanism. This process does not require the maintenance of a revocation list or complex revocation parameter calculations (only related keys at the logarithmic level are updated). At the same time, a one-way function is used to update related node keys, further reducing the computational and transmission costs of revocation.
[0024] 2. The present invention realizes outsourced computing in both the encryption process and the decryption process, so that both the data owner (DataOwner) and the user (User) can be resource-constrained devices, and more computing tasks can be handed over to the cloud environment.
[0025] 3. The present invention has additional scalability. If the LKH management part is combined with blockchain technology, the privacy of communication among user group members can be further improved. For example, new transaction types can be defined to expand Ethereum, and related messages can be synchronized in the form of transactions with the help of blockchain smart contracts.
[0026] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0028] Figure 1 It is a block diagram of the outsourced encryption and decryption CP-ABE system based on LKH with flexible revocation of users provided by an embodiment of the present invention;
[0029] Figure 2 It is a flow chart of the outsourced encryption and decryption CP-ABE method based on LKH that can flexibly revoke users provided by an embodiment of the present invention;
[0030] Figure 3 It is a general structure of a key tree KT(d,h,n) based on LKH provided by an embodiment of the present invention; DETAILED DESCRIPTION
[0031] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0032] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0033] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0034] The present invention proposes an outsourced encryption and decryption method for efficiently revoking users based on the CP-ABE mechanism and LKH technology. To implement the above method, the present invention uses a group communication model to divide users with related attributes into user groups (such as employees of the same company), and combines LKH technology to realize an efficient user revocation mechanism. The process does not require the maintenance of a revocation list, and does not require complex revocation parameter calculations (only logarithmic-level related keys are updated). At the same time, a one-way function is used to update related node keys, further reducing the calculation cost and transmission cost of revocation. In addition, the present invention implements outsourced calculations in both the encryption and decryption processes, so that both the data owner (Data Owner) and the user (User) can be resource-constrained devices, and more computing tasks are handed over to the cloud environment. Finally, the present invention also has additional scalability. If the LKH management part is combined with blockchain technology, the privacy of communication among user group members can be further improved, such as defining new transaction types to expand Ethereum, and synchronizing related messages in the form of transactions with the help of blockchain smart contracts.
[0035] Embodiment 1
[0036] like Figure 1 As shown, this embodiment provides an LKH-based CP-ABE method for outsourcing encryption and decryption that can flexibly revoke a user, including:
[0037] Data Owner (DO): specifies the access policy, encrypts the data according to the access policy, and sends the ciphertext to the cloud service provider.
[0038] Cloud Service Provider (CSP): Cloud service providers are semi-trusted, that is, honest and curious, providing storage services and outsourced encryption functions, and only storing the initial version of the ciphertext.
[0039] Key Management Center (Key Manager, KM): Responsible for implementing system parameter settings, generating the system's public key and master key, and generating decryption keys and conversion keys for data users.
[0040] Group Manager (GM): Maintains the LKH tree of the user group and generates node keys. It can initiate re-encryption requests for the ciphertext uploaded by the data owner and update the user group key and node key when a user changes.
[0041] Proxy-Cloud (PC): It is a private cloud computing environment for user groups, which is smaller than the cloud service provider. It provides storage services and outsourced decryption functions, and stores the re-encrypted version of the ciphertext requested by the data user.
[0042] Data user: If the attribute set of the data user satisfies the access policy, the ciphertext can be decrypted to obtain the plaintext message.
[0043] like Figure 2 As shown, the following steps are included:
[0044] Step 1: Setup(λ)→PPK,PSK: The key management center executes the algorithm, takes the security parameter λ as input, and outputs the system public key PPK and the system master key PSK; the system public key can be found in the public queryable directory of the trusted organization.
[0045] Step 101: KM: Generate parameters <{g, p, G0, G1, Z p}, H: 0, 1 * →G0>;Z p is a finite field associated with prime number p, Z p A domain is a set that can be added, multiplied, and their inverse operations, subtracted and divided (division is not 0); where {g, p, G0, G1, e}: G0, G1 are two multiplication cyclic groups of order p, g is the generator of G0; there is a mapping relation e: G0×G0→G1, the input is two elements in G0, the output is an element in G1, and the mapping satisfies the bilinear property, that is, e is a bilinear mapping operation; H: 0, 1 * →G0: H is a hash function.
[0046] Step 102: KM: Randomly select α, β∈Z p , the master key of K is <α, β, g α >, the master public key is PSK=<α,β,g α >K;
[0047] The KM stores the PPK in a publicly queryable directory of trusted authorities.
[0048] Step 2: KeyGen(PPK, PSK, A) → SK, TK: The key management center executes the algorithm. Taking the system public key PPK and the system master key PSK, as well as the data user attribute set A as input, the decryption key SK and the conversion key TK associated with the attribute set are generated. The key management center distributes the decryption key SK to the data user through a secure channel and sends the conversion key TK to the proxy cloud server for outsourced decryption of the proxy cloud.
[0049] Specifically include:
[0050] Step 201: KM: Random Selection Z p The non-zero elements of
[0051] Step 202: KM: A is a set of attributes of User. Randomly select r j ∈Z p ,calculate get
[0052] Step 203: KM: Random Selection
[0053] KM sends the generated TK and SK to the corresponding users.
[0054] Step 3: The group manager executes the algorithm. Each user group generates a LKH tree in the initial stage. The number of leaf nodes is the number of users, and a node number is generated for each node of the tree. and node key The id is the unique number of each node in the key tree, and the node key of the root node is the group public key, GPK.
[0055] like Figure 3 As shown, specifically including:
[0056] Step 301: GM: Select the initial n users as members and create a related key tree KT(d, h, G) (d is the selected parameter, h≈log d (n));
[0057] Step 302: GM: Generates (i) a separate symmetric key for each leaf (i.e., each user) (ii) The symmetric key K of the root node of the tree G (iii) The intermediate symmetric key of each internal node
[0058] Step 303: GM: selects a unique group id for the group, stores the identity list (member_list) and key tree KT of the group members, to manage the group members;
[0059] Step 304: GM: Send group id and corresponding By sending a private message This information is ultimately stored in u i local;
[0060] Step 305: GM: uses the key tree structure to pass the intermediate node information of KT to the group members, and repeatedly encrypts the node information of the lth layer with the 1+1 layer symmetric key.
[0061] GM creates a Group Init Notification Message and stores it in the messagelist associated with the group id, which is uploaded to a searchable public directory and contains information
[0062] Step 306: User: Each group member uses the private key in the asymmetric encryption algorithm Decrypt your own leaf node to obtain the group id and personal symmetric key (i.e. ), obtained by repeated decryption Store a copy of these node information locally;
[0063] Step 307: GM: Get Group key GSK = <u0>, group public key Store GPKs in a publicly queryable directory of trusted authorities.
[0064] Step 4: The data owner executes the algorithm with the system public key, group public key GPK, plaintext and access tree As input, encrypt the message m into CT own .
[0065] Wherein, the access tree Based on secret sharing technology, let the root node have a secret value s, that is, q0(0) = s, randomly select a d-1 degree polynomial, substitute the x value to assign a slice value to the next layer of nodes. Recursively, we finally get the q of the leaf node. y (0).
[0066] Specifically include:
[0067] DU: Random Selection As a secret value, calculate
[0068] Y is the set of leaf nodes of the visited tree, and the calculation Among them, γ(y) represents the attribute value string obtained by the node, q y is a random polynomial chosen for each node.
[0069] final Upload this value to the cloud service provider.
[0070] Step 5: EncryptII (CT own )→CT0: The cloud service provider executes the algorithm. own As input, the initial version ciphertext CT0 is output and stored in the storage resources of the cloud service provider.
[0071] calculate calculate get
[0072] Step 6: LKHChange() → u x , R.K. 0→x :The group manager executes the algorithm. When the user changes, a new group public key u is generated x and the re-encryption key RK 0→x , used to update the initial ciphertext version.
[0073] When adding a user a:
[0074] GM creates a leaf node information (which includes ) and add it to the locally stored KT;
[0075] For the path from the root node to the new node oGenerate a new symmetric key using a one-way function
[0076] GM sends a private message to new user a Finally, all relevant node information is stored in a's private mailbox;
[0077] At the same time, the changes in KT node information should be notified to the previous group members, that is, node information Create a Group Join Notification Message in the message list of the group id, which contains information
[0078] Member a joins with a private key Get leaf node information, use Get all node information.
[0079] The old member retrieves the new joining notification information in the message list, generates a new group key and related node key by itself, and finally stores the new node information locally.
[0080] It should be noted that if backward secrecy is disabled, the group key update (including the intermediate node key) may not be performed. In this case, the Re-Encrypt process is not required, which can further reduce the computational cost.
[0081] When leaving a user u:
[0082] GM deletes the leaf node corresponding to u from the local KT Update the new node information for the path from the root node to the parent node of the deleted leaf node (ie, the new symmetric key Because the member who left has the old group key and the one-way function, the new group key cannot be simply generated from the old group key through the one-way function. GM generates a brand new group key The remaining node keys can be generated by a one-way function
[0083] GM creates Group Leave Notification Message, GM creates information
[0084] Each member retrieves the new Group Leave Notification Message from the group descriptor and decrypts it using the key corresponding to its own node id Then use the one-way function to generate the relevant Finally, the new node information is stored locally;
[0085] The last step of member change: if a new group key is generated GM calculation Upload to the cloud.
[0086] Step 7: Re-Encrypt (CT0, RK 0→x )→CT x :The proxy cloud executes the algorithm. With a certain version of the ciphertext and the re-encryption key RK 0→x For the input, a new ciphertext version is generated, and the re-encrypted ciphertext is stored in the storage resources of the proxy cloud.
[0087] PC: Computing calculate Finally, we get the new ciphertext
[0088] Step 8: Transform (TK, CT x )→CT pro :The proxy cloud executes the algorithm. Taking the ciphertext and the transformation key TK as input, it performs outsourced decryption and outputs the transformed ciphertext CT pro , and send it to the data user.
[0089] PC: recursively visit the tree, the sub-problem algorithm for the leaf node is DecrypNode(), and the termination condition is whether the internal node meets the threshold: When recursing to the root node, (If A can satisfy T);
[0090] PC: Computing
[0091] Step 9: The data user executes the algorithm to convert the ciphertext CT pro and decryption key SK as input, the decrypted message is
[0092] Among them, the decrypted message
[0093] Performance Analysis:
[0094] This scheme is compared with other schemes in terms of functionality and user computing cost. Method 1 is the second construction scheme proposed by Sahai et al. in the paper "Fuzzy Identity-Based Encryption" in 2005, Method 2 is the construction scheme proposed by Lai et al. in the paper "Expressive CP-ABE with partially hidden access structures" in 2012, Method 3 is the construction scheme proposed by Tysowski et al. in the paper "Hybrid Attribute-and Re-Encryption-Based Key Management for Secure and Scalable Mobile Applications in Clouds" in 2013, Method 4 is the construction scheme proposed by Zhang et al. in the paper "Security and privacy in smart health: Efficient policy-hiding attribute-based access control" in 2018, Method 5 is the construction scheme proposed by Jiang et al. in the paper "A Revocable Outsourcing Attribute-Based Encryption Scheme" in 2018, and Method 6 is the construction scheme proposed by Cui et al. in the paper "Pay as You Decrypt: Decryption Outsourcing for Functional Encryption" in 2020. Using Blockchain》, the method of the present invention is compared with the existing scheme, and the comparison results are shown in Table 1:
[0095] Table 1 Comparison of functionality and user computing cost solutions
[0096]
[0097] *The amount of calculation only counts the bilinear mapping operation
[0098] *d1 is the threshold value of the number of attributes that need to be met
[0099] *d2 is the number of leaf nodes that can meet the threshold condition
[0100] It can be observed that the ciphertext of method 1 is constructed based on the attribute set, method 3, method 5 and the present invention are constructed based on the access tree structure, and method 2, method 4, and method 6 are constructed based on the LSSS access structure. Except for method 1, all methods have efficient expression capabilities. The attribute domain of method 2 is fixed and not scalable. Methods 3 and 4 do not have the outsourced decryption function, and the user decryption calculation amount is very large. Method 5 is very inefficient when revoking a user, and it is necessary to maintain an additional attribute group list and attribute group key. Method 6 does not have the user revocation function. Among the above schemes, only this scheme supports large attribute domains, outsourced encryption and decryption, and efficient user revocation. Comprehensive analysis shows that the scheme of the present invention has better functions and lower user calculation costs.
[0101] The following is an analysis of the cost of user revocation. The indirect revocation mechanism of most solutions makes the efficiency of user revocation very low. Here, we mainly compare method 3 and the present invention, because method 3 also uses a direct revocation mechanism.
[0102] Table 2 Comparison of cost when initializing user groups
[0103]
[0104] *Assume that the key tree is a full n-ary tree
[0105] Table 3 Comparison of cost when adding users
[0106]
[0107]
[0108] Table 4 Comparison of cost when revoking a user
[0109]
[0110] From the above data analysis, it can be obtained that although the cost of the present invention is slightly higher than that of method 3 when the user group is initialized, the overall cost is much lower than that of method 3 when the user joins or withdraws. If the user changes frequently (joins or withdraws), the cost advantage of the present invention will be more obvious. In addition, the present invention adds a one-way function technology to the general LKH protocol, reducing the encryption and decryption operations of the key. Since the overhead of symmetric encryption and decryption operations is greater than the calculation of the key using a one-way function, avoiding encryption and decryption operations can effectively reduce the computational cost of the entire process. After the user has a one-way function, he can update the key locally by himself. The GM does not need to send a complete new key to the user, which can effectively reduce the communication cost of the entire process.
[0111] Finally, we analyze the optimal number of forks (i.e., degree d) of the LKH tree. In the paper "Secure group communications using key graphs", Chung Kei Wong et al. first proposed the concept of LKH. They fixed the size of the initial group and conducted multiple experiments to measure that the optimal d of their construction scheme is about 4. In the present invention, according to theoretical analysis, it can be obtained that the larger d is, the lower the cost is in the tree construction stage. When the LKH is updated, we assume that the cost is calculated here: Enc AS >Enc S >Hash, transmitted message size: k AS >k S >msg H , when a user joins, the communication cost is roughly inversely proportional to d, and the computational cost is roughly proportional to d. When a user leaves, both the computational cost and the communication cost are proportional to d. Since the scenario set in the present invention is that group members are updated frequently, the selected d should be as small as possible. In actual application, the specific optimal d value can be determined by measuring the average time spent on each user change request within a certain d value range after selecting the group size, asymmetric encryption algorithm, symmetric encryption algorithm, and one-way function, and finally determining the optimal d value.
[0112] Embodiment 2
[0113] This embodiment provides an outsourced encryption and decryption CP-ABE system based on LKH that can flexibly revoke users, including:
[0114] The key generation module is configured to: take the security parameter as input, output the system public key and the system master key; generate the decryption key and the conversion key related to the attribute set according to the system public key and the system master key and the data user attribute set;
[0115] The group public key generation module is configured as follows: each user group generates an LKH tree in the initial stage, generates a node key for each node of the tree, the node key of the root node is the group public key, the number of leaf nodes is the number of users, and the node key of the leaf node is a symmetric key unique to the user;
[0116] The plaintext encryption module is configured to: encrypt the message into an intermediate ciphertext according to the system public key, the group public key, the plaintext and the access tree, and obtain the initial version ciphertext based on the intermediate ciphertext; when the user changes, a new group public key and a re-encryption key are generated, and a re-encryption operation is performed according to the ciphertext version and the re-encryption key before the update to generate a new ciphertext version;
[0117] The ciphertext decryption module is configured to: generate a new ciphertext version based on a certain version of the ciphertext and the re-encryption key, perform outsourced decryption based on the re-encrypted ciphertext and the conversion key to obtain the converted ciphertext, and send it to the data user; decrypt the message based on the converted ciphertext and the decryption key to obtain the decrypted message.
[0118] Among them, in the group public key generation module, each user group generates a LKH tree in the initial stage, and generates a node key for each node of the tree, including:
[0119] Select the initial n users as members and create a related key tree KT(d, h, G), where d is the selected parameter and h≈log a (n);
[0120] Generate a separate symmetric key for each leaf The symmetric key K of the root node of the tree G and the intermediate symmetric key of each internal node
[0121] Select a unique group id for the group, store the identity list and key tree KT of group members to manage group members;
[0122] Send the group id and corresponding personal symmetric key to each group member in, is the node number, For the node key:
[0123] Using the key tree structure, the intermediate node information of the key tree KT is transmitted to the group members, and the node information is encrypted by repeated symmetric keys;
[0124] Each group member uses the private key of the asymmetric encryption algorithm to decrypt his own leaf node and obtain the group id and personal symmetric key. Obtained by repeated decryption Store a copy of these node information locally;
[0125] according to Get the group key GSK = <u0>, group public key
[0126] Among them, in the ciphertext update module, the user changes include changes of joining users and leaving users.
[0127] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. The outsourced encryption and decryption CP-ABE method based on LKH that can flexibly revoke users is characterized by: The steps include: Taking security parameters as input, output system public key and system master key; The security parameter is used as input and the system public key is output and the system master key ,include: Generate Parameters ; is a finite field associated with prime number p, The domain is the set of two operations, addition and multiplication, and their inverse operations, subtraction and division (division is not 0); : There are two stages The multiplicative cyclic group of yes Generator of ; there is a mapping relationship , the input is The output is An element in , and the mapping satisfies the bilinear property, is a bilinear mapping operation; :H is a hash function; Random Selection , system public key ; System master key ; Generate a decryption key and a conversion key related to the attribute set according to the system public key and the system master key, as well as the data user attribute set; The decryption key associated with the attribute set is generated according to the system public key, the system master key, and the data user attribute set. and conversion key ,include: Random Selection ,calculate ;in, , yes The generator of It is The multiplicative cyclic group of ; A is a collection of User attributes. , randomly selected ,calculate ,get ; Random Selection , ,in, for The non-zero elements of is a multiplicative group, is a finite field associated with prime number p, For the decryption key, To convert the key; Each user group generates an LKH tree in the initial stage, and generates a node key for each node of the tree. The node key of the root node is the group public key, the number of leaf nodes is the number of users, and the node key of the leaf node is a symmetric key unique to the user; Each user group generates a LKH tree in the initial stage and generates a node key for each node of the tree, including: Select the initial n users as members and create a related key tree , d is the selected parameter, ; Generate a separate symmetric key for each leaf , the symmetric key of the root node of the tree and the intermediate symmetric key of each internal node ; Select a unique group id for the group, store the identity list and key tree KT of group members to manage group members; Send the group id and corresponding personal symmetric key to each group member ,in, is the node number, is the node key; Using the key tree structure, the key tree The intermediate node information is passed to the group members, and the node information is encrypted through repeated symmetric keys; Each group member uses the private key of the asymmetric encryption algorithm to decrypt his own leaf node and obtain the group id and personal symmetric key. , obtained by repeated decryption , store a copy of these node information locally; according to , get the group key , group public key ; According to the system public key, group public key, plaintext and access tree, the message is encrypted into intermediate ciphertext, and the initial version of ciphertext is obtained based on the intermediate ciphertext; when the user changes, a new group public key and re-encryption key are generated, and the re-encryption operation is performed to generate a new ciphertext version based on the ciphertext version and re-encryption key before the update; based on the re-encrypted ciphertext and the conversion key, outsourced decryption is performed to obtain the converted ciphertext, which is sent to the data user; The access tree: based on secret sharing technology, the root node has a secret value s , randomly selected d -1 degree polynomial, substitute x The value is assigned to the next layer of nodes. Recursively, the leaf nodes are finally obtained. ,include: Random Selection As a secret value, calculate Is the set of leaf nodes of the access tree, calculation ;in Indicates that the node gets the attribute value string. is a random polynomial chosen for each node; The intermediate ciphertext is: Based on the intermediate ciphertext, the initial version ciphertext is obtained ,include: calculate , calculate , get ; The user changes include changes of joining users and leaving users; When a user a is added, the ciphertext version is updated including: Create a leaf node information , and add it to the locally stored key tree KT superior; For the path from the root node to the new node , o Generate a new symmetric key using a one-way function , ; Send a private message to new user a, and eventually all relevant node information is stored in user a’s private mailbox; At the same time, the changes in the key tree KT node information must be notified to the previous group members; Member a joins with a private key Get leaf node information, use Get all node information; The old member retrieves the new joining notification information in the message list, generates a new group key and related node key by itself, and finally stores the new node information locally; When a user u leaves, the ciphertext version is updated including: Delete the leaf node corresponding to u from the local KT , update the new node information for the path from the root node to the parent node of the deleted leaf node , generate a new group key , the remaining node keys are generated by a one-way function ; Create Group Leave Notification Message, GM creates information ; Each member retrieves the new Group Leave Notification Message from the group descriptor and decrypts it using the key corresponding to its own node id , and then use the one-way function to generate the relevant , and finally store the new node information locally; The re-encryption operation is performed according to the ciphertext version before the update and the re-encryption key to generate a new ciphertext version, including: calculate ,calculate Finally, we get the new ciphertext ; The re-encrypted ciphertext and conversion key , perform outsourced decryption and obtain the converted ciphertext ,include: Recursively visit the tree, and the subproblem algorithm for the leaf node is , the termination condition is whether the internal nodes meet the threshold: ; When recursing to the root node, ; calculate ; Decrypt the message according to the converted ciphertext and the decryption key to obtain a decrypted message; The decrypted message .
2. The outsourced encryption and decryption CP-ABE system based on LKH that can flexibly revoke users is characterized by: include: The key generation module is configured to: take the security parameter as input, output the system public key and the system master key; generate the decryption key and the conversion key related to the attribute set according to the system public key and the system master key and the data user attribute set; The security parameter is used as input and the system public key is output and the system master key ,include: Generate Parameters ; is a finite field associated with prime number p, The domain is the set of two operations, addition and multiplication, and their inverse operations, subtraction and division (division is not 0); : There are two stages The multiplicative cyclic group of yes Generator of ; there is a mapping relationship , the input is The output is An element in , and the mapping satisfies the bilinear property, is a bilinear mapping operation; :H is a hash function; Random Selection , system public key ; System master key ; The decryption key associated with the attribute set is generated according to the system public key, the system master key, and the data user attribute set. and conversion key ,include: Random Selection ,calculate ;in, , yes The generator of It is The multiplicative cyclic group of ; A is a collection of User attributes. , randomly selected ,calculate ,get ; Random Selection , ,in, for The non-zero elements of is a multiplicative group, is a finite field associated with prime number p, For the decryption key, To convert the key; The group public key generation module is configured as follows: each user group generates an LKH tree in the initial stage, generates a node key for each node of the tree, the node key of the root node is the group public key, the number of leaf nodes is the number of users, and the node key of the leaf node is a symmetric key unique to the user; Each user group generates a LKH tree in the initial stage and generates a node key for each node of the tree, including: Select the initial n users as members and create a related key tree , d is the selected parameter, ; Generate a separate symmetric key for each leaf , the symmetric key of the root node of the tree and the intermediate symmetric key of each internal node ; Select a unique group id for the group, store the identity list and key tree KT of group members to manage group members; Send the group id and corresponding personal symmetric key to each group member ,in, is the node number, is the node key; Using the key tree structure, the key tree The intermediate node information is passed to the group members, and the node information is encrypted through repeated symmetric keys; Each group member uses the private key of the asymmetric encryption algorithm to decrypt his own leaf node and obtain the group id and personal symmetric key. , obtained by repeated decryption , store a copy of these node information locally; according to , get the group key , group public key ; The plaintext encryption module is configured to: encrypt the message into an intermediate ciphertext according to the system public key, the group public key, the plaintext and the access tree, and obtain the initial version ciphertext based on the intermediate ciphertext; when the user changes, a new group public key and a re-encryption key are generated, and a re-encryption operation is performed according to the ciphertext version and the re-encryption key before the update to generate a new ciphertext version; The access tree: based on secret sharing technology, the root node has a secret value s , randomly selected d -1 degree polynomial, substitute x The value is assigned to the next layer of nodes. Recursively, the leaf nodes are finally obtained. ,include: Random Selection As a secret value, calculate Is the set of leaf nodes of the access tree, calculation ;in Indicates that the node gets the attribute value string. is a random polynomial chosen for each node; The intermediate ciphertext is: Based on the intermediate ciphertext, the initial version ciphertext is obtained ,include: calculate , calculate , get ; In the ciphertext update module, the user changes include changes of joining users and leaving users; When a user a is added, the ciphertext version is updated including: Create a leaf node information , and add it to the locally stored key tree KT superior; For the path from the root node to the new node , o Generate a new symmetric key using a one-way function , ; Send a private message to new user a, and eventually all relevant node information is stored in user a’s private mailbox; At the same time, the changes in the key tree KT node information must be notified to the previous group members; Member a joins with a private key Get leaf node information, use Get all node information; The old member retrieves the new joining notification information in the message list, generates a new group key and related node key by itself, and finally stores the new node information locally; When a user u leaves, the ciphertext version is updated including: Delete the leaf node corresponding to u from the local KT , update the new node information for the path from the root node to the parent node of the deleted leaf node , generate a new group key , the remaining node keys are generated by a one-way function ; Create Group Leave Notification Message, GM creates information ; Each member retrieves the new Group Leave Notification Message from the group descriptor and decrypts it using the key corresponding to its own node id , and then use the one-way function to generate the relevant , and finally store the new node information locally; The re-encryption operation is performed according to the ciphertext version before the update and the re-encryption key to generate a new ciphertext version, including: calculate ,calculate Finally, we get the new ciphertext ; A ciphertext decryption module, which is configured to: perform outsourced decryption based on the re-encrypted ciphertext and the conversion key to obtain a converted ciphertext, and send it to the data user; decrypt the message based on the converted ciphertext and the decryption key to obtain a decrypted message; The re-encrypted ciphertext and conversion key , perform outsourced decryption and obtain the converted ciphertext ,include: Recursively visit the tree, and the subproblem algorithm for the leaf node is , the termination condition is whether the internal nodes meet the threshold: ; When recursing to the root node, ; calculate ; The decrypted message .
Citation Information
Patent Citations
Outsourcing encryption and decryption CP-ABE method capable of achieving user revocation
CN107359986A
Revocable access control method for fog-based intelligent power grid system
CN110611571A
Public verifiable outsourcing attribute-based encryption method based on block chain
CN112671543A
Attribute encryption method capable of being revoked and updated in strategy in edge computing
CN115396093A
Revocable access control method based on cloud edge collaboration
CN116545715A
