A ciphertext policy attribute encryption method supporting fine-grained attribute revocation

By introducing an update mechanism for time parameters and attribute sets in ciphertext policy attribute encryption, the problem of computational complexity and communication overhead when user permissions are reduced is solved, a balance between security and storage efficiency is achieved, and the overhead for data owners is reduced. and user revocation scope.

CN116232685BActive Publication Date: 2024-09-17SICHUAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310015711.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-06
Publication Date
2024-09-17
Estimated Expiration
2043-01-06

AI Technical Summary

Technical Problem

When user permissions are reduced, the existing ciphertext policy attribute encryption method has complex calculations, high overhead for the data owner, high overhead for attribute authorization and user communication, and the impact of user revocation is large.

Method used

By introducing an update mechanism for time parameters and attribute sets, the user's decryption key and ciphertext are XORed, reducing the data owner's computing and storage overhead, and reducing the frequent interaction between attribute authorization and user communication through indirect revocation.

Benefits of technology

It achieves the goal of reducing the data owner's overhead, reducing the number of users affected by attribute revocation, and reducing the communication overhead between attribute authorization and users while meeting security and acceptable storage overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232685B
    Figure CN116232685B
Patent Text Reader

Abstract

The present invention discloses a ciphertext policy attribute encryption method supporting fine-grained attribute revocation. After the system is initialized, the attribute authorization maintains an initial time parameter T. When a request for obtaining a key is received from a user, an attribute set S is assigned to the user according to the system role. The SkeyGen (PK, MK, S, T) algorithm is run, and MK, S and T are used as inputs. The user's decryption key Sk is outputted by calculation. The attribute authorization sends Sk and T⊕Sk to the user, and sends T to a cloud storage service provider. Then, the Encrypt (PK, M, Tr) algorithm is run to encrypt data, form ciphertext and submit it to the cloud storage service provider. After that, the key is updated, the ciphertext is updated and the data is decrypted. Finally, the correct plaintext is decrypted. Under the condition of meeting security and acceptable storage overhead, the overhead of the data owner is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of encryption technology, and in particular to a ciphertext policy attribute encryption method supporting fine-grained attribute revocation. Background Art

[0002] The emergence of cloud computing technology has greatly facilitated the storage and use of personal data and the development and utilization of corporate data. More and more companies and individuals are storing their data in the cloud. At the same time, outsourcing data storage also has certain security risks. Once users upload their data to the cloud, they lose actual control of the data. How to protect the privacy and security of user data while enjoying the convenience brought by cloud storage has become a research hotspot.

[0003] To ensure the security of outsourced data, only legitimate users are allowed to access and operate the data. A common method is to encrypt the data. Ciphertext-Policy Attribute-Based Encryption (CP-ABE) is more flexible and lightweight than traditional encryption methods. It embeds the policy into the ciphertext and the attribute into the user key. The ciphertext corresponds to an access structure, and the key corresponds to an attribute set. Decryption can only be successful if and only if the attributes in the user attribute set can satisfy this access structure.

[0004] However, in practical applications, there may be situations where user permissions need to be reduced, which requires the revocation of some of the user's attributes. Therefore, CP-ABE with a revocation mechanism was proposed, in which supporting fine-grained attribute-level user revocation has become the current research focus. However, existing solutions generally have problems such as complex attribute revocation calculations, large computing and storage consumption for data owners, and high overhead caused by frequent communication between attribute authorization and users. Summary of the invention

[0005] The purpose of the present invention is to provide a ciphertext policy attribute encryption method that supports fine-grained attribute revocation, which can reduce the overhead of data owners as much as possible while meeting security and acceptable storage overhead, and minimize the number of users affected by attribute revocation, thereby reducing the communication overhead between attribute authorization and users.

[0006] The present invention is implemented by the following technical solution: a ciphertext policy attribute encryption method supporting fine-grained attribute revocation, comprising the following steps:

[0007] S1, system initialization: take implicit security parameter λ as input, output system public key PK and system master private key MK;

[0008] S2. Key generation: Attribute authorization maintains an initial time parameter T. When the attribute authorization receives a request from a user to obtain a key, the attribute authorization assigns an attribute set S to the user according to the user's system role. The attribute authorization runs the SkeyGen (PK, MK, S, T) algorithm, takes the system master private key MK, the attribute set S, and the time parameter T as input, and calculates and outputs the user's decryption key Sk. The attribute authorization sends the decryption key Sk and T⊕Sk to the user, and sends the time parameter T to the cloud storage service provider.

[0009] S3, data encryption: the data owner runs the Encrypt(PK,M,Tr) algorithm, takes the system public key PK, plaintext M and access tree Tr as input, encrypts the plaintext M according to the access tree Tr to form ciphertext, and submits the ciphertext to the cloud storage service provider;

[0010] S4. Key update: When an attribute revocation operation occurs, the attribute authorization generates a new time parameter T', and sends the user ID, attribute ID and newly generated time parameter T' to be revoked to the cloud storage service provider, runs the SkeyGen (PK, MK, S, T) algorithm, and uses the newly generated time parameter T' and the new attribute set S' to update the decryption key of the revoked user to Sk', and sends the decryption key Sk' and T'⊕Sk' of the revoked user to the revoked user;

[0011] S5, Ciphertext update: The cloud storage service provider finds all ciphertexts CT related to the attribute according to the attribute identifier, runs the CTUpdate(CT,UID,T) algorithm, encrypts the ciphertext CT according to the user identifier and the new time parameter T' to generate a new ciphertext CT*. When the user requests data, the new ciphertext CT* is sent to the user.

[0012] S6. Data decryption: The user runs the Decrypt(PK, CT, Sk) algorithm, taking the system public key PK, the new ciphertext CT* generated after encryption by the cloud storage service provider, the decryption key Sk and T⊕Sk as input. If the correct original ciphertext CT is obtained and the attribute set S satisfies the access tree Tr, the ciphertext can be correctly decrypted and the plaintext M can be output.

[0013] In order to better implement the ciphertext policy attribute encryption method supporting fine-grained attribute revocation described in the present invention, the following setting is particularly adopted: the step S1 is specifically:

[0014] S1.1. Select a bilinear group G0 of order p, and the generator of the bilinear group G0 is g;

[0015] S1.2, randomly select encryption index α and encryption index β;

[0016] S1.3. Output the system public key PK and the system master private key MK, and PK=(G0,g,h=g β ,f=g 1 / β ,e(g,g) α ),MK=(β,g α );

[0017] Among them, α∈Z p , β∈Z p , Z p is an integer group, h is the generator g to the power of β, f is the generator g to the power of 1 / β, and e is a bilinear map.

[0018] In order to better implement the ciphertext policy attribute encryption method supporting fine-grained attribute revocation described in the present invention, the following setting is particularly adopted: In step S2, the specific process of calculating the user's decryption key Sk by running the SkeyGen (PK, MK, S, T) algorithm is:

[0019] S2.1. Select a random number r;

[0020] S2.2. For each attribute j, randomly select r j ;

[0021] S2.3. Calculate the decryption key Sk as follows:

[0022]

[0023] Among them, j∈S, α, β, γ are all encryption exponents, α∈Z p ,γ∈Z p ,β∈Z p , r∈Z p , r j ∈Z p , Z p is an integer addition group, g is a generator of the bilinear group G0 of prime order p, j is an attribute in the attribute set S, D j is the generator g raised to the power of r and The product of The hash function H maps attribute j to a group element and r j Power, D j ’ r is the generator of g j Power.

[0024] In order to better implement the ciphertext policy attribute encryption method supporting fine-grained attribute revocation described in the present invention, the following setting is particularly adopted: the step S3 is specifically:

[0025] S3.1. Select a polynomial for each node x in the access tree Tr, including leaf nodes. , polynomial Select from the root node R in a top-down manner; for each leaf node x in the access tree Tr, there are d x =k x -1, where d x For polynomial The order, k x is the threshold of node x;

[0026] S3.2, Randomly select s from the root node R, and s∈Z p , and set ;

[0027] S3.3. Random Selection of Polynomials Other points to define the polynomial; among them, represents a polynomial selected for the root node R of the tree Tr, is the order of the polynomial corresponding to the root node R;

[0028] S3.4. For any other node x, let , and randomly select polynomials Other x points to define the polynomial;

[0029] S3.5, let Y be the set of leaf nodes of the visited tree Tr;

[0030] S3.6. Construct the ciphertext CT by accessing the tree Tr as follows:

[0031] ;

[0032] S3.7, submitting the ciphertext CT to the cloud storage service provider;

[0033] Where M is the plaintext, α is the encryption exponent, and α∈Z p , Z p is the group of integers.

[0034] In order to better implement the ciphertext policy attribute encryption method supporting fine-grained attribute revocation described in the present invention, the following setting is particularly adopted: the SkeyGen (PK, MK, S, T) algorithm is run, and the decryption key of the revoked user is updated to Sk' using the newly generated time parameter T' and the new attribute set S', specifically:

[0035] S4.1. Select a random number r;

[0036] S4.2. For each attribute j, randomly select r j ;

[0037] S4.3. Calculate the decryption key Sk' as follows:

[0038]

[0039] Among them, j∈S', α, β, γ are all encryption exponents, α∈Z p ,γ∈Z p ,β∈Z p , r∈Z p , r j ∈Z p , Z p is an integer addition group, g is a generator of the bilinear group G0 of prime order p, j is an attribute in the attribute set S, D j is the generator g raised to the power of r and The product of The hash function H maps attribute j to a group element and r j Power, D j ’ r is the generator of g j The power, S' is a set without revocation attributes.

[0040] In order to better implement the ciphertext policy attribute encryption method supporting fine-grained attribute revocation described in the present invention, the following setting is particularly adopted: the CTUpdate(CT,UID,T) algorithm is run to encrypt the ciphertext CT according to the user identifier and the new time parameter T' to generate a new ciphertext CT*, specifically:

[0041] S5.1. Select one ciphertext from all ciphertexts CT and define it as the selected ciphertext CT1. Select the first small part of the ciphertext CT1 and define it as the front part of the ciphertext CT1_1.

[0042] S5.2, respectively use the initial time parameter T, the newly generated time parameter T' and the user identifier XOR T'⊕u id XOR operation is performed with the front part of the ciphertext CT1_1 to generate the new ciphertext CT1 * ={T⊕CT1_1,T'⊕u id ⊕CT1_1,u id}+CT1'; where CT1' is the remaining part of the ciphertext CT1 except the front part CT1_1, u id The id value of the revoked user.

[0043] Furthermore, in order to better implement the ciphertext policy attribute encryption method supporting fine-grained attribute revocation described in the present invention, the following setting is particularly adopted: the step S6 is specifically:

[0044] S6.1. Calculate the time parameter t of the current user user based on Sk and T⊕Sk user :t user = Sk ⊕ T ⊕ Sk;

[0045] S6.2. Determine whether the current user ID is equal to u id , if yes, then calculate (t user ⊕u id )⊕(T'⊕u id ⊕CT1_1)+CT1' as the original ciphertext, otherwise calculate t user ⊕(T⊕CT1_1)+CT1' is taken as the original ciphertext CT;

[0046] S6.3. Run the Decrypt (PK, CT, Sk) algorithm, and use the system public key PK, the original ciphertext CT, and the key Sk as inputs of the Decrypt (PK, CT, Sk) algorithm;

[0047] Define a recursive algorithm DecryptNode(CT,Sk,x), the input of which is a ciphertext CT=(Tr,C',C,∀y∈Y:C y ,C y '), a decryption key Sk based on the attribute set S and a node x of the access tree Tr, where C' is Me(g,g) αs ,C is h s , y is a leaf node in the visited tree Tr, Y is the set of leaf nodes in the visited tree Tr, C y for ,C y 'for ;

[0048] If node x is a leaf node, let i=att(x), if i∈S, define:

[0049] ;

[0050] Among them, e is a bilinear map, D i for ,C x for , D i 'for ,C x 'for , H is a hash function that maps the attribute described by any string to a random group element;

[0051] Assume i∉S, define DecryptNode(CT,Sk,x)=⊥;

[0052] The execution starts by simply calling the function on the root node R of the access tree Tr: If the attribute set S can satisfy the access tree Tr, then let:

[0053] ,

[0054] Then decrypt C' / (e(C,D) / A)=C' / (e(h s ,g (α+r) / β ) / e(g,g) rs )=M to get the plaintext; where C' is Me(g,g) αs ,C is h s ,D is g (α+r) / β ,A is e(g,g) rs .

[0055] In order to better implement the ciphertext policy attribute encryption method supporting fine-grained attribute revocation described in the present invention, the following setting is particularly adopted: in step S6.2:

[0056] For the revoked user: 1) When the decryption key Sk and T⊕Sk are input, t user = Sk⊕T⊕Sk=T, calculate (T⊕u id )⊕(T'⊕u id ⊕CT1_1)+CT1' cannot get the original ciphertext; 2) When entering the new key, t user =Sk'⊕T'⊕Sk'=T', calculate (T'⊕u id )⊕(T'⊕u id ⊕CT1_1)+CT1'=CT1_1+CT1'=CT1 to get the original ciphertext CT;

[0057] For normal users, the decryption key Sk and T⊕Sk are not updated, and the time parameter t of the user user is user Still using the initial time parameter T, calculate T⊕(T⊕CT1_1)+CT1'=CT1_1+CT1'=CT1 to obtain the original ciphertext CT.

[0058] A ciphertext policy attribute encryption system supporting fine-grained attribute revocation is used to implement a ciphertext policy attribute encryption method supporting fine-grained attribute revocation, and is provided with a cloud storage service provider for storing ciphertext sent by a data owner, updating the ciphertext and sending the ciphertext to a user; the data owner encrypts the plaintext to be shared into ciphertext and then sends it to the cloud storage service provider; attribute authorization is used to generate keys for users, update the user's keys and complete attribute revocation together with the cloud storage service provider; and multiple users obtain ciphertext from the cloud storage service provider and decrypt it to obtain plaintext.

[0059] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0060] The present invention can achieve that the revoked user cannot decrypt the original ciphertext when using the old key, and thus cannot obtain the plaintext M, while the revoked user can obtain the original ciphertext when using the new key and the normal user inputs his key, and then determines whether it can decrypt the plaintext based on whether the access tree structure matches.

[0061] The present invention adopts an indirect revocation method, in which attribute authorization is responsible for attribute revocation tasks. Data owners do not need to re-encrypt ciphertexts and maintain attribute revocation lists, thereby reducing the computing and storage overhead of data owners.

[0062] The attribute revocation process of the present invention does not involve the key update of normal users, but only the key of the revoked user needs to be updated, and the designed decryption algorithm allows the revoked user to use only the updated key to decrypt the original ciphertext, thereby reducing the overhead generated by frequent communication between attribute authorization and normal users.

[0063] The present invention uses the user identification and the time parameter to perform XOR encryption on the original ciphertext to update the ciphertext, which has low calculation cost and high efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 The invention provides a ciphertext policy attribute encryption system.

[0065] Figure 2 The present invention is a flowchart of the ciphertext policy attribute encryption method. DETAILED DESCRIPTION

[0066] The present invention is further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.

[0067] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0068] Embodiment 1:

[0069] A ciphertext policy attribute encryption system that supports fine-grained attribute revocation, combined with Figure 1 As shown, a ciphertext policy attribute encryption method for supporting fine-grained attribute revocation is implemented, wherein a cloud storage service provider is provided, which is used to save the ciphertext sent by the data owner, update the ciphertext and send the ciphertext to the user; the data owner encrypts the plaintext to be shared into ciphertext and sends it to the cloud storage service provider; attribute authorization is used to generate keys for users, update the user's keys and complete attribute revocation together with the cloud storage service provider; and multiple users obtain the ciphertext from the cloud storage service provider and decrypt it to obtain the plaintext.

[0070] Embodiment 2:

[0071] This embodiment is further optimized based on the above embodiment. Figure 1 , Figure 2 As shown, the present invention designs a ciphertext policy attribute encryption method that supports fine-grained attribute revocation, which reduces the overhead of the data owner as much as possible while meeting security and acceptable storage overhead, and reduces the number of users affected by attribute revocation as little as possible, thereby reducing the communication overhead between attribute authorization and users, including the following steps:

[0072] S1. System initialization: Take the implicit security parameter λ as input and output the system public key PK and the system master private key MK:

[0073] S1.1. Select a bilinear group G0 of order p, and the generator of the bilinear group G0 is g;

[0074] S1.2, randomly select encryption index α and encryption index β;

[0075] S1.3. Output the system public key PK and the system master private key MK, and PK=(G0,g,h=g β ,f=g 1 / β ,e(g,g) α ),MK=(β,g α );

[0076] Among them, α∈Z p , β∈Z p , Z p is an integer group, h is the generator g to the power of β, f is the generator g to the power of 1 / β, and e is a bilinear map.

[0077] S2. Key generation: Attribute authorization maintains an initial time parameter T. When the attribute authorization receives a request from a user to obtain a key, the attribute authorization assigns an attribute set S to the user according to the user's system role. The attribute authorization runs the SkeyGen (PK, MK, S, T) algorithm, takes the system master private key MK, the attribute set S, and the time parameter T as input, and calculates and outputs the user's decryption key Sk. The attribute authorization sends the decryption key Sk and T⊕Sk to the user, and sends the time parameter T to the cloud storage service provider.

[0078] The specific process of calculating the user's decryption key Sk by running the SkeyGen (PK, MK, S, T) algorithm is as follows:

[0079] S2.1. Select a random number r;

[0080] S2.2. For each attribute j, randomly select r j ;

[0081] S2.3. Calculate the decryption key Sk as follows:

[0082]

[0083] Among them, j∈S, α, β, γ are all encryption exponents, α∈Z p ,γ∈Z p ,β∈Z p , r∈Z p , r j ∈Z p , Z p is an integer addition group, g is a generator of the bilinear group G0 of prime order p, j is an attribute in the attribute set S, D j is the generator g raised to the power of r and The product of The hash function H maps attribute j to a group element and r j Power, D j ’ r is the generator of gj Power.

[0084] S3, Data encryption: The data owner runs the Encrypt (PK, M, Tr) algorithm, takes the system public key PK, plaintext M and access tree Tr as input, encrypts the plaintext M according to the access tree Tr to form ciphertext, and submits the ciphertext to the cloud storage service provider; the specific process is as follows:

[0085] S3.1. Select a polynomial for each node x in the access tree Tr, including leaf nodes. , polynomial Select from the root node R in a top-down manner; for each leaf node x in the access tree Tr, there are d x =k x -1, where d x For polynomial The order, k x is the threshold of node x;

[0086] S3.2, Randomly select s from the root node R, and s∈Z p , and set ;

[0087] S3.3. Random Selection of Polynomials Other points to define the polynomial; among them, represents a polynomial selected for the root node R of the tree Tr, is the order of the polynomial corresponding to the root node R;

[0088] S3.4. For any other node x, let , and randomly select polynomials Other x points to define the polynomial;

[0089] S3.5, let Y be the set of leaf nodes of the visited tree Tr;

[0090] S3.6. Construct the ciphertext CT by accessing the tree Tr as follows:

[0091] ;

[0092] S3.7, submitting the ciphertext CT to the cloud storage service provider;

[0093] Where M is the plaintext, α is the encryption exponent, and α∈Z p , Z p is the group of integers.

[0094] S4. Key update: When an attribute revocation operation occurs, the attribute authorization generates a new time parameter T', and sends the user ID, attribute ID and newly generated time parameter T' to be revoked to the cloud storage service provider, runs the SkeyGen (PK, MK, S, T) algorithm, and uses the newly generated time parameter T' and the new attribute set S' to update the decryption key of the revoked user to Sk', and sends the decryption key Sk' and T'⊕Sk' of the revoked user to the revoked user;

[0095] The SkeyGen (PK, MK, S, T) algorithm is run to update the decryption key of the revoked user to Sk' using the newly generated time parameter T' and the new attribute set S'. Specifically:

[0096] S4.1. Select a random number r;

[0097] S4.2. For each attribute j, randomly select r j ;

[0098] S4.3. Calculate the decryption key Sk' as follows:

[0099]

[0100] Among them, j∈S', α, β, γ are all encryption exponents, α∈Z p ,γ∈Z p ,β∈Z p , r∈Z p , r j ∈Z p , Z p is an integer addition group, g is a generator of the bilinear group G0 of prime order p, j is an attribute in the attribute set S, D j is the generator g raised to the power of r and The product of The hash function H maps attribute j to a group element and r j Power, D j ’ r is the generator of g j The power, S' is a set without revocation attributes.

[0101] S5, Ciphertext update: The cloud storage service provider finds all ciphertexts CT related to the attribute according to the attribute identifier, runs the CTUpdate(CT,UID,T) algorithm, encrypts the ciphertext CT according to the user identifier and the new time parameter T' to generate a new ciphertext CT*. When the user requests data, the new ciphertext CT* is sent to the user.

[0102] The CTUpdate(CT,UID,T) algorithm is run to encrypt the ciphertext CT according to the user ID and the new time parameter T' to generate a new ciphertext CT*, specifically:

[0103] S5.1. Select one ciphertext from all ciphertexts CT and define it as the selected ciphertext CT1. Select the first small part of the ciphertext CT1 and define it as the front part of the ciphertext CT1_1.

[0104] S5.2, respectively use the initial time parameter T, the newly generated time parameter T' and the user identifier XOR T'⊕u id XOR operation is performed with the front part of the ciphertext CT1_1 to generate the new ciphertext CT1 * ={T⊕CT1_1,T'⊕u id ⊕CT1_1,u id}+CT1'; where CT1' is the remaining part of the ciphertext CT1 except the front part CT1_1, u id The id value of the revoked user.

[0105] S6. Data decryption: The user runs the Decrypt(PK, CT, Sk) algorithm, taking the system public key PK, the new ciphertext CT* generated after encryption by the cloud storage service provider, the decryption key Sk and T⊕Sk as input. If the correct original ciphertext CT is obtained and the attribute set S satisfies the access tree Tr, the ciphertext can be correctly decrypted and the plaintext M can be output. The specific process is as follows:

[0106] S6.1. Calculate the time parameter t of the current user user based on Sk and T⊕Sk user :t user = Sk ⊕ T ⊕ Sk;

[0107] S6.2. Determine whether the current user ID is equal to u id , if yes, then calculate (t user ⊕u id )⊕(T'⊕u id ⊕CT1_1)+CT1' as the original ciphertext, otherwise calculate t user ⊕(T⊕CT1_1)+CT1' is taken as the original ciphertext CT; in this step:

[0108] For the revoked user: 1) When the decryption key Sk and T⊕Sk are input, t user = Sk⊕T⊕Sk=T, calculate (T⊕u id )⊕(T'⊕u id ⊕CT1_1)+CT1' cannot get the original ciphertext; 2) When entering the new key, t user =Sk'⊕T'⊕Sk'=T', calculate (T'⊕u id)⊕(T'⊕u id ⊕CT1_1)+CT1'=CT1_1+CT1'=CT1 to get the original ciphertext CT;

[0109] For normal users, the decryption key Sk and T⊕Sk are not updated, and the time parameter t of the user user is user Still with the initial time parameter T, calculate T⊕(T⊕CT1_1)+CT1'=CT1_1+CT1'=CT1 to get the original ciphertext CT;

[0110] S6.3. Run the Decrypt (PK, CT, Sk) algorithm, and use the system public key PK, the original ciphertext CT, and the key Sk as inputs of the Decrypt (PK, CT, Sk) algorithm;

[0111] Define a recursive algorithm DecryptNode(CT,Sk,x), the input of which is a ciphertext CT=(Tr,C',C,∀y∈Y:C y ,C y '), a decryption key Sk based on the attribute set S and a node x of the access tree Tr, where C' is Me(g,g) αs ,C is h s , y is a leaf node in the visited tree Tr, Y is the set of leaf nodes in the visited tree Tr, C y for ,C y 'for ;

[0112] If node x is a leaf node, let i=att(x), if i∈S, define:

[0113] ;

[0114] Among them, e is a bilinear map, D i for ,C x for , D i 'for ,C x 'for , H is a hash function that maps the attribute described by any string to a random group element;

[0115] Assume i∉S, define DecryptNode(CT,Sk,x)=⊥;

[0116] The execution starts by simply calling the function on the root node R of the access tree Tr: If the attribute set S can satisfy the access tree Tr, then let:

[0117] ,

[0118] Then decrypt C' / (e(C,D) / A)=C' / (e(h s ,g (α+r) / β ) / e(g,g) rs )=M to get the plaintext; where C' is Me(g,g) αs ,C is h s ,D is g (α+r) / β ,A is e(g,g) rs .

[0119] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification or equivalent change made to the above embodiment based on the technical essence of the present invention shall fall within the protection scope of the present invention.

Claims

1. A ciphertext policy attribute encryption method that supports fine-grained attribute revocation, Features: The steps include: S1, system initialization: take implicit security parameter λ as input, output system public key PK and system master private key MK; S2. Key generation: Attribute authorization maintains an initial time parameter T. When the attribute authorization receives a request from a user to obtain a key, the attribute authorization assigns an attribute set S to the user according to the user's system role. The attribute authorization runs the SkeyGen (PK, MK, S, T) algorithm, takes the system master private key MK, the attribute set S, and the time parameter T as input, and calculates and outputs the user's decryption key Sk. The attribute authorization sends the decryption key Sk and T⊕Sk to the user, and sends the time parameter T to the cloud storage service provider. S3, Data encryption: The data owner runs the Encrypt (PK, M, Tr) algorithm, takes the system public key PK, plaintext M and access tree Tr as input, encrypts the plaintext M according to the access tree Tr to form ciphertext, and submits the ciphertext to the cloud storage service provider. Specifically: S3.

1. Select a polynomial q for each node x in the access tree Tr, including the leaf nodes. x , polynomial q x Select from the root node R in a top-down manner; for each leaf node x in the access tree Tr, there are d x =k x -1, where d x The polynomial q x The order, k x is the threshold of node x; S3.2, Randomly select s from the root node R, and s∈Z p , and set q R (0) = s; S3.

3. Randomly select polynomial q R Other R points to define the polynomial; among them, q R represents a polynomial selected for the root node R of the tree Tr, d R is the order of the polynomial corresponding to the root node R; S3.

4. For any other node x, let q x (0) = q parent(x) (index(x)), and randomly select polynomial q x Other x points to define the polynomial; S3.5, let Y be the set of leaf nodes of the visited tree Tr; S3.

6. Construct the ciphertext CT by accessing the tree Tr as follows: S3.7, submitting the ciphertext CT to the cloud storage service provider; Where M is the plaintext, α is the encryption exponent, and α∈Z p , Z p is the group of integers; S4. Key update: When an attribute revocation operation occurs, the attribute authorization generates a new time parameter T', and sends the user ID, attribute ID and newly generated time parameter T' to be revoked to the cloud storage service provider, runs the SkeyGen (PK, MK, S, T) algorithm, and uses the newly generated time parameter T' and the new attribute set S' to update the decryption key of the revoked user to Sk', and sends the decryption key Sk' and T'⊕Sk' of the revoked user to the revoked user; S5, Ciphertext update: The cloud storage service provider finds all ciphertexts CT related to the attribute according to the attribute identifier, runs the CTUpdate(CT,UID,T) algorithm, encrypts the ciphertext CT according to the user identifier and the new time parameter T' to generate a new ciphertext CT*. When the user requests data, the new ciphertext CT* is sent to the user. S6. Data decryption: The user runs the Decrypt(PK, CT, Sk) algorithm, taking the system public key PK, the new ciphertext CT* generated after encryption by the cloud storage service provider, the decryption key Sk and T⊕Sk as input. If the correct original ciphertext CT is obtained and the attribute set S satisfies the access tree Tr, the ciphertext can be correctly decrypted and the plaintext M can be output. Specifically: S6.

1. Calculate the time parameter t of the current user user based on Sk and T⊕Sk user :t user =Sk⊕T⊕Sk; S6.

2. Determine whether the current user ID is equal to u id , if yes, then calculate (t user ⊕u id )⊕(T'⊕u id ⊕CT 1 _1)+CT 1 ' as the original ciphertext, otherwise calculate t user ⊕(T⊕CT 1 _1)+CT 1 'As the original ciphertext CT, in this step: For the revoked user: 1) When the decryption key Sk and T⊕Sk are input, t user =Sk⊕T⊕Sk=T,calculate(T⊕u id )⊕(T'⊕u id ⊕CT 1 _1)+CT 1 'The original ciphertext cannot be obtained; 2) When entering a new key, t user =Sk'⊕T'⊕Sk'=T', calculate (T'⊕u id )⊕(T'⊕u id ⊕CT 1 _1)+CT 1 '=CT 1 _1+CT 1 '=CT 1 Get the original ciphertext CT; For normal users, the decryption key Sk and T⊕Sk are not updated, and the time parameter t of the user user is user Still with the initial time parameter T, calculate T⊕(T⊕CT 1 _1)+CT 1 '=CT 1 _1+CT 1 '=CT 1 Get the original ciphertext CT; S6.

3. Run the Decrypt (PK, CT, Sk) algorithm, and use the system public key PK, the original ciphertext CT, and the key Sk as inputs of the Decrypt (PK, CT, Sk) algorithm; Define a recursive algorithm DecryptNode(CT,Sk,x), the input of which is a ciphertext A decryption key Sk based on the attribute set S and a node x of the access tree Tr, where C' is Me(g,g) αs ,C is h s , y is a leaf node in the visited tree Tr, Y is the set of leaf nodes in the visited tree Tr, C y for C y 'for If node x is a leaf node, let i = att(x), if i∈S, define: Among them, e is a bilinear map, D i for C x for D i 'for C x 'for H is a hash function that maps the attribute described by any string to a random group element; Assumptions define DecryptNode(CT,Sk,x)=⊥; The execution starts by simply calling the function on the root node R of the access tree Tr: If the attribute set S can satisfy the access tree Tr, then let: Then decrypt C' / (e(C,D) / A)=C' / (e(h s ,g (α+r) / β ) / e(g,g) rs )=M to get the plaintext; where C' is Me(g,g) αs ,C is h s ,D is g (α+r) / β ,A is e(g,g) rs ; α, β, and γ are all encryption indices.

2. According to claim 1, a ciphertext policy attribute encryption method supporting fine-grained attribute revocation, Features: The step S1 is specifically as follows: S1.

1. Choose a bilinear group G of order p 0 , and the bilinear group G 0 The generator of is g; S1.2, randomly select encryption index α and encryption index β; S1.3, output the system public key PK and the system master private key MK, and PK = (G 0 ,g,h=g β ,f=g 1 / β ,e(g,g) α ),MK=(β,g α ); Among them, α∈Z p , β∈Z p , Z p is an integer group, h is the generator g to the power of β, f is the generator g to the power of 1 / β, and e is a bilinear map.

3. According to claim 2, a ciphertext policy attribute encryption method supporting fine-grained attribute revocation, Features: In step S2, the specific process of calculating the user's decryption key Sk by running the SkeyGen (PK, MK, S, T) algorithm is as follows: S2.

1. Select a random number r; S2.

2. For each attribute j, randomly select r j ; S2.

3. Calculate the decryption key Sk as follows: Among them, j∈S, α, β, γ are all encryption exponents, α∈Z p ,γ∈Z p ,β∈Z p , r∈Z p , r j ∈Z p , Z p is the integer addition group, g is the bilinear group G of prime order p 0 The generator of D j is the generator g raised to the power of r and The product of The hash function H maps attribute j to a group element and r j Power, D j ’ r is the generator of g j Power.

4. According to claim 1, a ciphertext policy attribute encryption method supporting fine-grained attribute revocation, Features: The SkeyGen (PK, MK, S, T) algorithm is run to update the decryption key of the revoked user to Sk' using the newly generated time parameter T' and the new attribute set S', specifically: S4.

1. Select a random number r; S4.

2. For each attribute j, randomly select r j ; S4.

3. Calculate the decryption key Sk' as follows: Among them, j∈S', α, β, γ are all encryption exponents, α∈Z p ,γ∈Z p ,β∈Z p , r∈Z p , r j ∈Z p , Z p is the integer addition group, g is the bilinear group G of prime order p 0 The generator of D j is the generator g raised to the power of r and The product of The hash function H maps attribute j to a group element and r j Power, D j ’ r is the generator of g j The power, S' is a set without revocation attributes.

5. According to claim 4, a ciphertext policy attribute encryption method supporting fine-grained attribute revocation, Features: The CTUpdate(CT,UID,T) algorithm is run to encrypt the ciphertext CT according to the user identifier and the new time parameter T' to generate a new ciphertext CT*, specifically: S5.

1. Selecting one ciphertext from all ciphertexts CT is defined as selecting ciphertext CT 1 , select the ciphertext CT 1 The first small part is defined as the ciphertext front CT 1 _1; S5.2, respectively use the initial time parameter T, the newly generated time parameter T' and the user identifier XOR T'⊕u id With ciphertext front CT 1 _1 Perform XOR operation to generate new ciphertext CT 1 * ={T⊕CT 1 _1,T'⊕u id ⊕CT 1 _1,u id }+CT 1 '; Among them CT 1 'To select the ciphertext CT 1 CT before the ciphertext 1 _1 The rest, u id The id value of the revoked user.