Cloud computing data sharing method and device
By combining a hybrid encapsulation mechanism of ciphertext policy attribute encryption and symmetric encryption, and utilizing trapdoor-free RSA accumulators and non-membership proofs, the problems of fine-grained access control and global anti-tampering in cloud computing data sharing are solved, achieving efficient data sharing and dynamic revocation.
Patent Information
- Application Number
- CN202611470431.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-27
AI Technical Summary
Existing cloud computing data sharing solutions have shortcomings in fine-grained group access control, globally verifiable anti-tampering mechanisms, and decoupling of access policies from data content, resulting in low efficiency in permission management and excessive overhead in revocation.
A hybrid encapsulation mechanism combining ciphertext policy attribute encryption algorithm and symmetric encryption is adopted to construct a data capsule, and global verification is performed using a trapdoor-free RSA accumulator and non-membership proof. The policy decoupled update is achieved by combining the ciphertext delegation protocol.
It achieves fine-grained group sharing based on attributes, tamper-proof protection with verifiable global state, and efficient dynamic revocation with decoupling of policies and data, thereby improving the efficiency of permission management and the security of data use.
Smart Images

Figure CN123184945A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cloud computing security technology, and in particular to a cloud computing data sharing method and apparatus. Background Technology
[0002] With the rapid development of cloud computing technology, an increasing number of data owners (DOs) are choosing to outsource the storage of their local data to cloud servers (CS) to reduce local storage and maintenance costs and achieve data sharing across regions and organizations. However, in data outsourcing scenarios, data owners lose direct control over the physical storage media, facing security risks such as data leakage, unauthorized access, and malicious tampering. Therefore, how to achieve secure, controllable, and verifiable data sharing in an untrusted cloud environment has become a core research issue in the field of cloud computing security.
[0003] To address the above issues, academia and industry have proposed various technical solutions, which mainly include the following categories: 1. Proxy Re-Encryption (PRE) Scheme: Blaze et al. were among the first to propose proxy re-encryption technology. Its core idea is that after the data owner encrypts the data using their public key, they can delegate the conversion of the ciphertext into new ciphertext under the recipient's public key to a semi-trusted proxy server. The proxy server cannot obtain the plaintext information throughout this process. Subsequent researchers have further developed variants such as Identity Based Proxy Re-Encryption (IB-PRE) and Conditional Proxy Re-Encryption (Conditional PRE) to support more flexible access control requirements.
[0004] However, the PRE scheme is essentially a "one-to-one" delegated encryption mechanism. When a data owner needs to share the same data with multiple recipients, an independent ciphertext conversion operation must be performed for each recipient, and the computational and communication overhead increases linearly with the number of users. Furthermore, the PRE scheme only guarantees the confidentiality of data during transmission. Once the data is decrypted by a recipient, the data owner completely loses security control over the data usage phase and cannot impose any compliance constraints on the decrypted data (such as prohibiting copying or restricting analysis types).
[0005] 2. Attribute-Based Encryption (ABE) Scheme: Sahai and Waters first proposed the concept of attribute-based encryption, which achieves fine-grained "one-to-many" access control by associating access policies with user attributes. Bethencourt et al. further proposed Ciphertext-Policy ABE (CP-ABE), which embeds the access policy into ciphertext, making it particularly suitable for data sharing scenarios in cloud storage environments. In the CP-ABE architecture, the data owner only needs to define the access policy once, and all users whose attributes meet the policy can decrypt and obtain the data, without needing to encrypt it individually for each user.
[0006] However, traditional ABE solutions have inherent security limitations in their architectural design: once an authorized user passes attribute verification, they can directly obtain and decrypt the complete original plaintext data. This means that the data owner completely loses security control during the data usage phase, making it impossible to prevent legitimate users from redistributing, illegally retaining, or using the decrypted data without authorization. Furthermore, traditional ABE solutions lack effective verification mechanisms for data integrity and freshness, making them vulnerable to rollback attacks or data replacement attacks launched by malicious cloud servers.
[0007] 3. Data Capsule Solution: Wang et al. proposed the data capsule architecture, whose core innovation lies in encapsulating raw data and programmable access policies into a single unit (i.e., a data capsule). Under this architecture, data users cannot directly access the underlying plaintext; instead, they must submit an analysis program that satisfies the access policy to a Trusted Execution Environment (TEE). The TEE executes this program in a hardware-isolated environment and returns only the processed, anonymized result to the user. This mechanism effectively prevents the illegal dissemination and misuse of data.
[0008] Subsequent solutions further introduce trusted execution environments (such as Intel SGX, ARM TrustZone, etc.) to enforce hardware-level compliance checks, ensuring that data usage policies are strictly enforced at the hardware level. Building on this, Tian et al. proposed the Verifiable Data Capsule (VDC) scheme, designing a Lightweight Verifiable Chameleon Tag (LVCT) that allows data owners to bind all data capsules to a fixed-size tag, thereby supporting verifiable data update operations and cloud server trust assessments.
[0009] However, existing data capsule solutions still have significant shortcomings in terms of access control granularity. The solutions proposed by Wang et al. and Gao et al. only support simple access control based on identity (e.g., user A can access), and cannot support complex logical policies based on attributes (e.g., department = R&D AND level ≥ 3 AND project ∈ {X, Y}). While VDC solutions introduce verifiable mechanisms, they also lack deep integration with attribute-based encryption technology, making it difficult to achieve precise attribute-level isolation and dynamic permission management in group sharing scenarios.
[0010] 4. Regarding data security solutions based on TEE, Gao et al. proposed the TEEKAP scheme, which utilizes a trusted execution environment to implement self-expiring data capsules and manages the key lifecycle through secret sharing by an independent key management committee. Mainstream TEE technologies such as Intel SGX and ARM TrustZone have been widely deployed in cloud environments to ensure the execution integrity and confidentiality of sensitive workloads. TEE, through hardware isolation mechanisms, provides a trusted execution environment isolated from the operating system and hypervisor for sensitive computing, effectively preventing privileged software from spying on and tampering with the data.
[0011] While TEE provides robust hardware-level security for the data usage phase, it cannot solve the verifiability problem during data transmission and storage. Especially when facing malicious cloud servers, TEE relies on external mechanisms to verify whether the received data capsules are the latest version and have not been revoked or tampered with. In existing solutions, TEE often blindly trusts data capsules provided by cloud servers, lacking independent global state verification capabilities.
[0012] Based on the above analysis, existing technologies have the following three shortcomings in cloud computing data sharing scenarios: Defect 1: Lack of fine-grained group access control mechanism.
[0013] Existing data capsule architectures lack deep integration with attribute-based encryption, making it difficult to achieve fine-grained attribute-based access control in large-scale group sharing scenarios. Specifically, the solutions proposed by Wang et al. and Gao et al. only support simple access control based on identity, and data owners cannot define flexible attribute access policies (such as composite attribute conditions based on Boolean expressions). While VDC solutions support compliance checks and verifiable updates, they also lack attribute-based group isolation capabilities, failing to meet the practical needs of dynamic authorization and revocation based on attributes in one-to-many scenarios. This results in inefficient access control for data sharing in enterprise environments with complex organizational structures and high staff turnover, and makes it difficult to implement the principle of least privilege.
[0014] Defect 2: Lack of a globally verifiable state anti-tampering mechanism.
[0015] Existing verification mechanisms are significantly inadequate in the face of potential rollback attacks launched by malicious cloud servers—where cloud servers intentionally provide TEEs with expired or revoked data capsules instead of the latest versions. Specifically, the VDC solution relies on locally verifiable chameleon tags for data integrity verification, but this mechanism cannot simultaneously guarantee the global consistency and immutability of both data updates themselves and access status updates. In existing solutions, the TEE lacks a mechanism to independently verify the freshness of data capsules, leaving it without effective defenses against malicious servers providing expired or revoked data capsules. This could lead to revoked users regaining data access or users making incorrect decisions based on outdated data.
[0016] Thirdly, the high degree of coupling between the update strategy and the data content leads to low reversal efficiency.
[0017] Existing data capsule solutions employ a holistic and coupled design for updates, tightly binding data payloads, access policies, and verification metadata within the same data structure. When the data payload changes or group permissions need adjustment, a cascading update effect is often triggered—requiring the entire data capsule, including the encrypted data, to be re-encrypted, and all related verification metadata to be recalculated and uploaded, resulting in significant communication and computational overhead. Particularly in scenarios involving the revocation of user access permissions, existing solutions require data owners to re-encrypt the entire data capsule and re-upload it to the cloud server. The communication and computational overhead is proportional to the data size, making it difficult to meet the requirements of real-time performance and cost-effectiveness in large-scale data sharing scenarios.
[0018] Therefore, there is an urgent need for a new type of cloud computing data sharing solution that can achieve fine-grained group access control based on attributes, globally verifiable anti-tampering protection, and an efficient dynamic revocation mechanism that decouples policies from data, while ensuring the security and controllability of data usage. Summary of the Invention
[0019] This invention provides a cloud computing data sharing method and apparatus to address the shortcomings of existing technologies in cloud computing environments, such as the lack of fine-grained attribute-level access control, the lack of a globally verifiable anti-tampering mechanism for data status, and the excessive overhead of permission revocation due to the high coupling between access policies and data content. It achieves attribute-based fine-grained group sharing, globally verifiable anti-tampering protection, and efficient dynamic revocation with decoupling of policies and data.
[0020] This invention provides a cloud computing data sharing method, comprising: Obtain the plaintext data to be shared and the corresponding access policy, encrypt the plaintext data using a symmetric key to obtain ciphertext, and encapsulate the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body; A data capsule is constructed based on the ciphertext, the key encapsulation, and the access policy, and the digital signature of the data capsule is calculated. The data capsule is then sent to the cloud server. Receive an access request from a user for the data capsule, the access request carrying the user's attribute set; Based on the attribute set and the access policy, the user's access permissions are verified to obtain the permission verification result; Obtain the non-membership proof corresponding to the data capsule, and verify the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator to obtain a freshness verification result indicating whether the data capsule has been revoked; When both the permission verification result and the freshness verification result indicate that the verification is successful, the key encapsulation is decrypted to obtain the symmetric key, and the ciphertext is decrypted using the symmetric key to provide data access to the user.
[0021] In one possible implementation, the method further includes: Obtain the policy matrix and mapping function corresponding to the access policy; Select a random vector, and perform an inner product operation between the random vector and each row vector of the strategy matrix to obtain the linear combination result corresponding to each row; For each row of the strategy matrix, a corresponding row random number is randomly selected, and the ciphertext component is calculated based on the linear combination result and the row random number; Based on the symmetric key, the first element of the random vector, and the bilinear pairing operation result in the system common parameters, calculate the key encapsulation principal component; The key encapsulation main component and the ciphertext component are combined to generate the key encapsulation body.
[0022] In one possible implementation, the method further includes: Obtain the master symmetric key and data capsule index; The symmetric key is generated using the key derivation function based on the master symmetric key and the data capsule index.
[0023] In one possible implementation, the method further includes: Obtain the BLS signing private key from the data owner; The ciphertext, the key encapsulation body, and the access policy are concatenated to obtain the data to be signed; The digital signature is generated by performing a signature operation on the data to be signed using the BLS signature private key.
[0024] In one possible implementation, the method further includes: Obtain the policy matrix and mapping function corresponding to the access policy, as well as the user's attribute key; Based on the mapping function, using the attribute key and the attribute set, it is verified whether the attribute set satisfies the access structure defined by the strategy matrix; When it is determined that the attribute set satisfies the access structure, a permission verification result indicating that the verification has passed is generated; When it is determined that the attribute set does not satisfy the access structure, a permission verification result indicating verification failure is generated, and the access request is rejected.
[0025] In one possible implementation, the method further includes: The representative element of the data capsule is calculated, and the representative element is obtained by mapping the ciphertext, the key encapsulation, and the access strategy using a collision-resistant prime hash function; Obtain the representative element product of each revoked element in the revocation set of the RSA accumulator, and use the extended Euclidean algorithm to operate on the representative element of the data capsule to obtain the first coefficient and the second coefficient. Modular exponentiation is performed based on the second coefficient and the basis elements of the RSA accumulator to obtain an auxiliary proof value, and the first coefficient and the auxiliary proof value are used as the non-membership proof. Verify whether the product of the first coefficient power of the current accumulator value and the representative element power of the data capsule of the auxiliary proof value is equal to the base element; When the verification results are equal, the freshness verification result is determined to be verified as passed, indicating that the data capsule has not been revoked; When the verification results are not equal, the freshness verification result is determined to be a verification failure, indicating that the data capsule has been revoked.
[0026] In one possible implementation, the method further includes: The prime number length is determined based on the system security parameters, two prime numbers that satisfy the prime number length are generated, and the RSA modulus is calculated based on the two prime numbers. Based on the RSA modulus, select a basis element that is coprime to the RSA modulus; The undo set of the RSA accumulator is initialized to an empty set, and the base element is used as the initial accumulator value.
[0027] In one possible implementation, the method further includes: Receive an attribute revocation instruction, the attribute revocation instruction indicating at least one user attribute to be revoked; An extended policy matrix is constructed based on the cancellation policy. The extended policy matrix is obtained by concatenating the original policy matrix corresponding to the original access policy and the cancellation policy matrix corresponding to the cancellation policy. The access policy in the key envelope is updated using the encrypted delegation protocol based on the extended policy matrix to obtain the updated key envelope; The digital signature is recalculated based on the updated key capsule, and the original data capsule's representative element is added to the RSA accumulator's revocation set to update the RSA accumulator's state, so that the original data capsule is rejected during subsequent accesses due to the RSA accumulator's non-membership verification failure.
[0028] In one possible implementation, the method further includes: Receive a data update request, the data update request including new plaintext data; The new plaintext data is encrypted using the symmetric key to obtain a new ciphertext, and a new digital signature is calculated based on the new ciphertext, the key encapsulation body, and the access policy to obtain a new data capsule; Calculate the representative element of the original data capsule, add the representative element to the undo set of the RSA accumulator, and update the accumulator value of the RSA accumulator based on the representative element; The new data capsule is sent to the cloud server to replace the original data capsule.
[0029] The present invention also provides a cloud computing data sharing device, comprising the following modules: The module is used to acquire the plaintext data to be shared and the corresponding access policy, encrypt the plaintext data using a symmetric key to obtain ciphertext, and encapsulate the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body. A computational module is constructed to construct a data capsule based on the ciphertext, the key encapsulation, and the access policy, calculate the digital signature of the data capsule, and send the data capsule to the cloud server. A receiving module is used to receive an access request sent by a user for the data capsule, the access request carrying the user's attribute set; The verification module is used to verify the user's access permissions based on the attribute set and the access policy, and obtain the permission verification result; The verification module is also used to obtain the non-membership proof corresponding to the data capsule, and verify the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator, to obtain a freshness verification result indicating whether the data capsule has been revoked. The data sharing module is used to decrypt the key package to obtain the symmetric key when both the permission verification result and the freshness verification result indicate that the verification is passed, and to use the symmetric key to decrypt the ciphertext in order to provide data access to the user.
[0030] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the cloud computing data sharing method as described above.
[0031] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the cloud computing data sharing method as described above.
[0032] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the cloud computing data sharing method as described above.
[0033] The cloud computing data sharing method and apparatus provided by this invention obtains plaintext data to be shared and the corresponding access policy; encrypts the plaintext data using a symmetric key to obtain ciphertext; encapsulates the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body; constructs a data capsule based on the ciphertext, the key encapsulation body, and the access policy; calculates the digital signature of the data capsule; and sends the data capsule to a cloud server; receives an access request for the data capsule sent by a user, the access request carrying the user's attribute set; verifies the user's access rights based on the attribute set and the access policy to obtain an access verification result; obtains a non-membership proof corresponding to the data capsule; verifies the non-membership proof based on the current accumulator value of a trapdoor-free RSA accumulator to obtain a freshness verification result indicating whether the data capsule has been revoked; when both the access verification result and the freshness verification result indicate successful verification, decrypts the key encapsulation body to obtain the symmetric key, and uses the symmetric key to decrypt the ciphertext to provide data access to the user. Compared to existing technologies in cloud computing environments, which suffer from the lack of fine-grained attribute-level access control, the lack of globally verifiable anti-tampering mechanisms for data status, and the excessive overhead of permission revocation due to the high coupling between access policies and data content, this solution constructs data capsules by combining a hybrid encapsulation mechanism that integrates encrypted policy attribute encryption algorithms with symmetric encryption. It uses a trapdoor-free RSA accumulator and non-membership proof to globally verify whether the data capsule has expired, and uses an encrypted delegation protocol to decouple and update access policies. This achieves attribute-based fine-grained group sharing, globally verifiable anti-tampering protection, and efficient dynamic revocation with decoupling of policies and data. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0035] Figure 1 This is a system architecture diagram of the cloud computing data sharing method provided by the present invention.
[0036] Figure 2 This is one of the flowcharts of the cloud computing data sharing method provided by the present invention.
[0037] Figure 3 This is the second flowchart of the cloud computing data sharing method provided by the present invention.
[0038] Figure 4 This is a diagram showing the comparison of data encapsulation and verification time overhead provided by the present invention.
[0039] Figure 5 This is a diagram showing the comparison of the time overhead of data access phase proof generation and verification provided by the present invention.
[0040] Figure 6 This is a diagram illustrating the comparison of time costs in the trust assessment phase provided by the present invention.
[0041] Figure 7 This is a diagram illustrating the comparison of time overhead during the data update phase provided by the present invention.
[0042] Figure 8 This is a schematic diagram of the structure of the cloud computing data sharing device provided by the present invention.
[0043] Figure 9 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0045] To facilitate understanding of the embodiments of the present invention, further explanations and descriptions will be provided below with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of the present invention.
[0046] Figure 1 This is a system architecture diagram of the cloud computing data sharing method provided by the present invention, such as... Figure 1 As shown, the system in this embodiment consists of five entities: Attribute Authority (AA), Cloud Server (CS), Trusted Execution Environment (TEE), Data Owner (DO), and Data User (DU). These entities communicate via secure channels or standard network protocols to collaboratively complete the four main operation phases of data capsule encapsulation, access, update, and revocation.
[0047] During the encapsulation phase, the data owner (DO) is responsible for encapsulating plaintext data into data capsules, including encrypting plaintext using a symmetric key, encapsulating the symmetric key using the Ciphertext Policy Attribute Encryption (CP-ABE) algorithm, constructing a compliance policy, calculating a digital signature, and uploading the data capsule to the cloud server CS storage.
[0048] During the access phase, the data user DU initiates an access request to the Trusted Execution Environment (TEE), carrying its own attribute set and analysis program; the TEE requests the cloud server CS to obtain the target data capsule and its non-membership certificate; the TEE performs dual verification in a hardware-isolated environment, including digital signature verification and freshness verification of the trapdoor-free RSA accumulator, and decrypts the data and performs compliance analysis after the dual verification is passed, returning only the de-identified results to the data user DU without exposing the underlying plaintext.
[0049] During the update phase, when the data owner (DO) needs to replace the data content, the new plaintext data is encrypted using the original symmetric key to generate new ciphertext, a new data capsule is constructed, the representative element corresponding to the original data capsule is added to the revocation set of the RSA accumulator to invalidate it, and the new data capsule is uploaded to the cloud server (CS) to replace the original data capsule.
[0050] During the revocation phase, when the data owner (DO) needs to revoke the access attributes of a specific user, the access policy matrix is extended at the ciphertext level using the ciphertext delegation protocol. The digital signature is recalculated and the RSA accumulator state is updated. Dynamic attribute revocation can be achieved without re-encrypting the underlying data, while ensuring forward security.
[0051] Figure 2 This is one of the flowcharts illustrating the cloud computing data sharing method provided by the present invention, such as... Figure 2 As shown, the method includes the following: S21. Obtain the plaintext data to be shared and the corresponding access policy, encrypt the plaintext data using a symmetric key to obtain ciphertext, and encapsulate the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body.
[0052] In this step, the data owner obtains the plaintext data to be shared and the corresponding access policy, encrypts the plaintext data using a symmetric key to obtain ciphertext, and encapsulates the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body.
[0053] Specifically, the data owner obtains the plaintext data to be shared and the corresponding access policy. The access policy includes a policy matrix and a mapping function, used to define the access structure that the data user's attribute set must satisfy (e.g., composite attribute conditions based on Boolean expressions, such as Department = R&D AND Level ≥ 3). Before encryption, the data owner obtains the master symmetric key and the data capsule index, and generates a symmetric key using a key derivation function based on the master symmetric key and the data capsule index. Subsequently, the plaintext data is encrypted using the symmetric key to obtain ciphertext, and the policy matrix and mapping function corresponding to the access policy are obtained; a random vector is selected, and the random vector is performed with each row vector of the policy matrix to obtain the linear combination result corresponding to each row; for each row of the policy matrix, a corresponding row random number is randomly selected, and the ciphertext component is calculated based on the linear combination result and the row random number; the key encapsulation master component is calculated based on the symmetric key, the first element of the random vector, and the bilinear pairing operation result in the system common parameters; the key encapsulation master component and the ciphertext component are combined to generate the key encapsulation body.
[0054] S22. Construct a data capsule based on the ciphertext, the key encapsulation body, and the access policy, calculate the digital signature of the data capsule, and send the data capsule to the cloud server.
[0055] The data owner combines the ciphertext, key envelope, and access policy, and optionally encapsulates a compliance policy within the data capsule. The compliance policy limits the types of analytical operations allowed by the data user on the decrypted plaintext data (e.g., allowing only statistical analysis, prohibiting the export of raw data). Subsequently, the data owner's BLS signing private key is obtained, and the ciphertext, key envelope, and access policy are concatenated to obtain the data to be signed. The BLS signing private key is then used to perform a signing operation on the data to be signed, generating a digital signature. The data capsule containing the ciphertext, key envelope, access policy, compliance policy, and digital signature is sent to a cloud server, where the cloud server verifies the digital signature before storing it.
[0056] S23. Receive an access request for the data capsule sent by the data user, the access request carrying the attribute set of the data user.
[0057] Data users send access requests to the Trusted Execution Environment (TEE) for a target data capsule. The access request carries the data user's attribute set (e.g., a set containing multiple attribute labels and their values), and may further carry the identifier of the requested analyzer or the analyzer itself. Upon receiving the access request, the TEE requests the corresponding data capsule from the cloud server.
[0058] S24. Verify the access permissions of the data user based on the attribute set and the access policy, and obtain the permission verification result.
[0059] The trusted execution environment obtains the policy matrix and mapping function corresponding to the access policy, as well as the attribute key of the data user; based on the mapping function, it uses the attribute key and the attribute set of the data user to verify whether the attribute set meets the access structure defined by the policy matrix; when it is determined that the attribute set meets the access structure, it generates a permission verification result indicating that the verification has passed; when it is determined that the attribute set does not meet the access structure, it generates a permission verification result indicating that the verification has failed and rejects the access request for the data capsule.
[0060] S25. Obtain the non-membership proof corresponding to the data capsule, and verify the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator to obtain a freshness verification result indicating whether the data capsule has been revoked.
[0061] The cloud server calculates the representative element of the data capsule using a collision-resistant prime hash function based on the encrypted data, key encapsulation, and access policy of the data capsule. Based on the product of the representative elements of each revoked element in the revocation set of the RSA accumulator, it performs an operation on the product of the representative elements and the representative element of the data capsule using the extended Euclidean algorithm to obtain a first coefficient and a second coefficient. Based on the second coefficient and the base element of the RSA accumulator, it performs a modular exponentiation operation to obtain an auxiliary proof value, and sends the first coefficient and the auxiliary proof value as the non-membership proof to the trusted execution environment. The trusted execution environment verifies whether the product of the first coefficient power of the current accumulator value and the power of the representative element of the data capsule in the auxiliary proof value is equal to the base element. When the verification is equal, the freshness verification result is determined to be successful, indicating that the data capsule has not been revoked; when the verification is not equal, the freshness verification result is determined to be unsuccessful, indicating that the data capsule has been revoked.
[0062] S26. When both the permission verification result and the freshness verification result indicate that the verification is successful, the key encapsulation is decrypted to obtain the symmetric key, and the ciphertext is decrypted using the symmetric key to provide data access to the user.
[0063] The Trusted Execution Environment (TEE) uses the attribute key of the data user to decrypt the key package in the hardware isolation environment to recover the symmetric key; within the TEE, the symmetric key is used to decrypt the ciphertext to recover the plaintext data; based on the compliance policy in the data capsule, the plaintext data is analyzed and processed within the TEE, and the processing results are returned to the data user without exposing the plaintext data.
[0064] The cloud computing data sharing method provided by this invention involves: acquiring plaintext data to be shared and its corresponding access policy; encrypting the plaintext data using a symmetric key to obtain ciphertext; encapsulating the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body; constructing a data capsule based on the ciphertext, the key encapsulation body, and the access policy; calculating the digital signature of the data capsule; sending the data capsule to a cloud server; receiving access requests for the data capsule from data users, the access requests carrying the data user's attribute set; verifying the data user's access permissions based on the attribute set and the access policy to obtain an access verification result; acquiring a non-membership proof corresponding to the data capsule; verifying the non-membership proof based on the current accumulator value of a trapdoor-free RSA accumulator to obtain a freshness verification result indicating whether the data capsule has been revoked; and when both the access verification result and the freshness verification result indicate successful verification, decrypting the key encapsulation body to obtain the symmetric key, and using the symmetric key to decrypt the ciphertext to provide data access to the data user. Compared to existing technologies in cloud computing environments, which suffer from the lack of fine-grained attribute-level access control, the lack of globally verifiable anti-tampering mechanisms for data status, and the excessive overhead of permission revocation due to the high coupling between access policies and data content, this method constructs data capsules by combining a hybrid encapsulation mechanism that integrates encrypted policy attribute encryption algorithms with symmetric encryption. It uses a trapdoor-free RSA accumulator and non-membership proof to globally verify whether the data capsule has expired, and uses an encrypted delegation protocol to decouple and update access policies. This achieves attribute-based fine-grained group sharing, globally verifiable anti-tampering protection, and efficient dynamic revocation with decoupling of policies and data.
[0065] Figure 3 This is the second flowchart illustrating the cloud computing data sharing method provided by the present invention, as shown below. Figure 3 As shown, the method includes the following: S31. Obtain the plaintext data to be shared and the corresponding access policy, encrypt the plaintext data using a symmetric key to obtain ciphertext, and obtain the policy matrix and mapping function corresponding to the access policy.
[0066] Data owner (DO) retrieves plaintext data to be shared. And the corresponding access strategy (M, f) (M is a t×k matrix). Before encrypting plaintext data using the symmetric key, the data owner DO first obtains the master symmetric key. And data capsule index i, based on master symmetric key And the data capsule index i, using the key derivation function to generate a symmetric key. Subsequently, the data owner, DO, used a symmetric key. Encrypt plaintext data Receive ciphertext Simultaneously, obtain the policy matrix M (M is a t×k matrix) and mapping function f corresponding to the access policy (M, f).
[0067] S32. Select a random vector, and perform an inner product operation between the random vector and each row vector of the strategy matrix to obtain the linear combination result corresponding to each row.
[0068] Data owner DO selects random vector , will random vector With each row vector of the policy matrix M Perform inner product operations on each row to obtain the linear combination result for each row. , where j ∈ [1, t].
[0069] S33. For each row of the strategy matrix, randomly select the corresponding row random number, and calculate the ciphertext component based on the linear combination result and the row random number.
[0070] For each row j of the strategy matrix M, the data owner DO randomly selects the corresponding row random number. Based on the results of linear combination Random numbers in rows Calculate the ciphertext components. Specifically, calculate... Where g is a generator of group G, and a is the system master key parameter. Group elements related to attributes.
[0071] S34. Calculate the key encapsulation principal component based on the symmetric key, the first element of the random vector, and the bilinear pairing operation result in the system common parameters.
[0072] Based on symmetric key The first element r of the random vector (i.e. The first component) and the bilinear pairing operation result in the system common parameters Calculate the key encapsulation master component. Specific calculation... and , where α is the system master key exponent and e is the bilinear pairing mapping.
[0073] S35. Combine the key encapsulation main component and the ciphertext component to generate the key encapsulation body.
[0074] Combine the above components to generate the key package:
[0075] S36. Construct a data capsule based on the ciphertext, the key encapsulation body, and the access policy, calculate the digital signature of the data capsule, and send the data capsule to the cloud server.
[0076] Data owner (DO) will implement compliance strategies. Encapsulate into a data capsule to construct a data capsule. Among them, digital signatures The calculation process is as follows: Obtain the BLS signature private key x∈ of the data owner. , ciphertext Key Encapsulation and compliance strategy The data to be signed is obtained by concatenating the data, and then the BLS signature private key x is used to perform a signature operation on the data to be signed to generate a digital signature. Subsequently, the data owner, DO, will use the data capsule. Send to the cloud server CS, and the cloud server CS verifies the signature. Whether it is valid, among which For public key, For the group The generator is stored after successful verification.
[0077] S37. Receive an access request for the data capsule sent by the data user, the access request carrying the attribute set of the data user.
[0078] Data user DU sends an access request (i, S, Analyst) to the Trusted Execution Environment (TEE), where i is the data capsule index, S is the data user's attribute set, and Analyst is the requested analysis program. Upon receiving the access request, the TEE requests the corresponding data capsule from the cloud server CS. And its non-member proof.
[0079] S38. Obtain the policy matrix and mapping function corresponding to the access policy, as well as the attribute key of the data user.
[0080] Trusted Execution Environment (TEE) Data Capsule Acquisition The access policy (M, f) in the data includes the policy matrix M and mapping function f, as well as the attribute key of the data user. Where Att is the user's attribute set. This is the random blinding factor.
[0081] S39. Based on the mapping function, using the attribute key and the attribute set, verify whether the attribute set satisfies the access structure defined by the strategy matrix.
[0082] Trusted Execution Environment (TEE) is based on mapping function f and utilizes attribute keys. The system examines the attributes S of each component and the data user, and verifies whether the attribute set S satisfies the access structure (M, f) defined by the strategy matrix M. If there is no attribute subset in the attribute set S that satisfies the access structure, then proceed to step S311; if there is an attribute subset that satisfies the access structure, then proceed to step S310.
[0083] S310. When it is determined that the attribute set satisfies the access structure, a permission verification result indicating that the verification has passed is generated.
[0084] S311. When it is determined that the attribute set does not satisfy the access structure, a permission verification result indicating verification failure is generated, and the data access request is rejected.
[0085] S312. Obtain the non-membership proof corresponding to the data capsule, and verify the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator to obtain a freshness verification result indicating whether the data capsule has been revoked.
[0086] The cloud server CS runs ACC.WitCreate to generate a non-membership certificate. Representative element of computational data capsule ,in For collision-resistant prime hash functions; calculate Where R is the undo set of the RSA accumulator; the extended Euclidean algorithm is used to obtain... ;calculate , where d is the base element of the RSA accumulator; output non-membership proof .
[0087] After receiving the non-membership certificate, the Trusted Execution Environment (TEE) performs dual verification: first, it performs BLS signature verification, and then... Whether it is true or not; secondly, perform non-membership verification of the accumulator to verify. The freshness check result is determined by the value of Acc(R), where Acc(R) is the current accumulator value. If the validation results are equal, the freshness check is considered successful, indicating that the data capsule has not been revoked; if the validation results are not equal, the freshness check is considered unsuccessful, indicating that the data capsule has been revoked.
[0088] S313. When both the permission verification result and the freshness verification result indicate that the verification is successful, the key encapsulation is decrypted to obtain the symmetric key, and the ciphertext is decrypted using the symmetric key to provide data access to the data user.
[0089] When both the permission verification result and the freshness verification result indicate that the verification is successful, the decryption key package is used to obtain the symmetric key, and the ciphertext is decrypted using the symmetric key to provide data access to the data user.
[0090] Specifically, after successful verification, the Trusted Execution Environment (TEE) utilizes the data user's attribute key to the key encapsulation body in a hardware-isolated environment. Perform decryption to recover the symmetric key. The specific decryption process is as follows: Based on a subset of attributes that satisfy the access structure, calculate the decryption factor. to restore = / Subsequently, a symmetric key was used within the TEE. For ciphertext Perform decryption operations to recover the plaintext data. Compliance strategies based on data capsules Plaintext data within TEE The Analyst program is executed to obtain the Result, which is then returned to the data user DU without exposing the plaintext data. .
[0091] Based on the above steps, this embodiment also includes system initialization, key generation, attribute revocation, and data update stages, as detailed below: System initialization phase: Attribute Authority AA runs the Setup algorithm to generate common system parameters , where e is a bilinear pairing mapping, G and Let G be a multiplicative cyclic group, g be the generator of group G, p be the group order, and H be the hash function.
[0092] The Trusted Execution Environment (TEE) determines the prime number length based on system security parameters, generates two prime numbers that satisfy the prime number length, and calculates the RSA modulus N based on the two prime numbers. Based on the RSA modulus N, a basis element d∈ZN that is coprime to the RSA modulus N is selected. Initialize the RSA accumulator. , where R is the cancellation list (initially an empty set).
[0093] Attribute Authority AA Initialization Collision-resistant Prime Hash Function .
[0094] Attribute Authority AA Broadcast Second Group Common Parameters PP=(BP, (N,d) to the cloud server CS, the trusted execution environment TEE, and the data owner DO.
[0095] Key generation phase: Data owner DO selects random value Set the master key .
[0096] The data owner DO initializes the symmetric encryption algorithm SE=(KeyGen,Enc,Dec) and runs SE.KeyGen(1^λ) to generate the master symmetric key ks.
[0097] The data owner (DO) initializes the BLS signature algorithm BLS=(KeyGen, Sign, Verify) and selects a private key x∈ Calculate the public key .
[0098] For each user Ui, the data owner DO selects a random blinding factor. Generate user key , where Att is the user's attribute set.
[0099] Attribute cancellation phase: When it is necessary to revoke user attributes, the data owner (DO) retrieves the target data capsule from the cloud server (CS) via a data access protocol. Perform accumulator verification and BLS signature verification to confirm its validity.
[0100] Data owner (DO) defines the revocation policy. ,in, for Construct an extended policy matrix M', where the upper part is the original policy M and the lower part is the withdrawal policy. And update the mapping function to f'.
[0101] The data owner DO calculates the new ciphertext delegation component C'' and the random ciphertext component C''', resulting in the updated key envelope CKi'.
[0102] Data owner DO recalculates digital signature And calculate the new representative element. Add the representative element of the original data capsule to the undo set of the RSA accumulator. Update accumulator value This is to cause the original data capsule to be rejected during subsequent accesses due to the failure of non-member verification of the RSA accumulator.
[0103] Data update phase: When the data owner needs to replace the data content, the data owner (DO) accesses and verifies the current data capsule (DCi) through the data access protocol.
[0104] Data owner DO uses new data Generate new ciphertext Calculate the new digital signature New data capsules were obtained. .
[0105] The data owner (DO) calculates the representative element of the original data capsule. Add the representative element to the undo set of the RSA accumulator. And update the accumulator value of the RSA accumulator based on the representative element. .
[0106] Data owner DO will create a new data capsule Upload to cloud server CS, and after cloud server CS verifies the signature, replace the original data capsule.
[0107] Figure 4 This diagram illustrates a comparison of data encapsulation and verification time overhead provided by the present invention. (For example...) Figure 4 As shown, Figure 4 (a) Comparison of time overhead during the data encapsulation stage, with the horizontal axis representing file size (1~10 MB) and the vertical axis representing time overhead (seconds). The comparison schemes include Wang et al.'s scheme (DC=4KB), Gao et al.'s scheme (DC=4KB), the VDC scheme (DC=4KB), and our own scheme (DC=4KB / 8KB / 16KB). The time overhead of all schemes increases linearly with file size. Wang et al.'s and Gao et al.'s schemes have extremely low encapsulation overhead (only AES encryption). The VDC scheme and our own scheme have similar overhead (approximately 49 seconds / 10MB). Since both require block-by-block BLS signing, the additional overhead of our scheme comes from a one-time CP-ABE encryption (approximately 264 milliseconds), which is negligible when spread across all data capsules. Figure 4 (b) Comparison of time overhead during the data verification phase: The schemes of Wang et al. and Gao et al. do not support verifiable encapsulation (overhead is 0). The verification overhead of this scheme is slightly higher than VDC (53.9 seconds vs 48.3 seconds / 10MB, DC=4KB) because it requires additional verification of the accumulator registration status. The larger the data capsule (DC=8KB / 16KB), the fewer the blocks, and the lower the total verification time.
[0108] Figure 5 This diagram illustrates a comparison of the time overhead of data access phase proof generation and verification provided by the present invention. (For example...) Figure 5 As shown, Figure 5(a) For the comparison of time overhead in the proof generation stage, the horizontal axis represents file size (1~10 MB), and the vertical axis represents time overhead (seconds). The proof generation time of this scheme (DC=4KB) is approximately 37.1 seconds / 10MB, which is higher than VDC's 17.4 seconds. This is because the non-membership proof of the RSA accumulator involves 2048-bit large integer modular exponentiation operations. However, the key advantage of this scheme lies in the constant-size proof: regardless of the number of elements in the accumulator, the proof size is always 512 bytes, while VDC's LVCT proof is 2560 bytes. Figure 5 (b) To demonstrate the time overhead of the verification phase, the vertical axis represents milliseconds. This scheme requires approximately 10.3 seconds per 10MB (DC=4KB), while VDC requires approximately 5.2 seconds. Although the cost per verification is higher, this scheme does not require maintaining any auxiliary data structures, and the verification complexity is strictly O(1). The larger the data capsule and the fewer the blocks, the lower the total verification time.
[0109] Figure 6 This is a diagram illustrating the time overhead of the trust assessment phase provided by the present invention. Figure 6 As shown, the horizontal axis represents the number of challenged data blocks (data capsules) (50~500), and the vertical axis represents the time cost (seconds). Trust assessment is used by the Trusted Execution Environment (TEE) to periodically check the reliability of the cloud server CS by randomly challenging z data capsules and verifying their integrity. Figure 6 (a) To prove the generation phase (executed on the cloud server). Figure 6 (b) Proof verification phase (executed in the trusted execution environment). The overhead of both schemes increases linearly with the number of challenges z. When z = 500 and DC = 4KB, the proof generation of this scheme takes approximately 9.2 seconds, and verification takes approximately 2.3 seconds, while the corresponding values for VDC are 4.8 seconds and 1.2 seconds, respectively. This scheme avoids the O(n) hash operations required by VDC, and its advantage is more pronounced when the total number of data capsules n is large. The larger the data capsule, the lower the overhead, because fewer data capsules are generated from the same file.
[0110] Figure 7 This is a diagram illustrating the comparison of time overhead during the data update phase provided by the present invention. (See diagram for example.) Figure 7 As shown, the horizontal axis represents file size (1~10 MB), and the vertical axis represents time cost (milliseconds). Data updates involve replacing only a single data capsule, so the cost is much lower than a full file operation. Figure 7 (a) For the data update phase (executed on the data owner's side), this scheme requires approximately 35.9 milliseconds to update a single data capsule (10MB, DC=4KB), slightly higher than VDC's 30.1 milliseconds. The additional overhead comes from the accumulator state update (adding the old data capsule representative to the undo set). Figure 7(b) For the update verification phase (executed on the cloud server), this solution requires approximately 86.4 milliseconds (10MB, DC=4KB), which is higher than the 35.9 milliseconds of VDC, because an additional bilinear pairing operation is required to verify CP-ABE ciphertext consistency. The larger the data capsule (DC=8KB / 16KB), the lower the verification time per data capsule (57.4 milliseconds / 42.8 milliseconds), because the structured verification overhead is relatively fixed.
[0111] Figure 4-7 Experimental results show that the additional computational overhead of this method compared to VDC is approximately 1.2×~2.4×. This moderate performance cost yields two key new functions: fine-grained attribute access control (CP-ABE) and efficient dynamic attribute revocation (ciphertext delegation + RSA accumulator). While the schemes of Wang et al. and Gao et al. have extremely low computational overhead, they completely lack verifiability, trust assessment, and fine-grained access control capabilities, failing to meet the secure data sharing requirements in untrusted cloud environments.
[0112] The embodiments of the present invention have the following technical advantages: Fine-grained attribute-level access control: By integrating CP-ABE into the data capsule architecture, attribute-based one-to-many group sharing is achieved. The data owner only needs to define the access policy matrix (M, f) once; all users whose attributes satisfy the policy can access the data without requiring independent encryption for each user. Compared to existing solutions: The solutions by Wang et al. and Gao et al. do not support fine-grained access control; the VDC solution does not support attribute-based policy definition.
[0113] Constant-level efficiency and verifiability: The non-membership proof size and verification time of the RSA accumulator are both O(1) constant complexity: The proof size is only 2|ZN| = 512 bytes (RSA-2048), while the LVCT proof of the VDC scheme is 10|ZN| = 2560 bytes; the proof verification only requires Hp + Exp operations, while the LVCT verification of VDC requires O(n) hash operations (n is the total number of capsules); experiments show that the non-membership proof verification time of a 10MB file (DC=4KB) is about 86.4ms, and the overhead is controllable.
[0114] Dynamic attribute revocation without re-encryption: The ciphertext delegation protocol implements policy-level dynamic attribute revocation: it eliminates the need to re-encrypt the underlying data, extending the access matrix only at the CP-ABE ciphertext level; the additional computational overhead is only... Each exponential operation ( The number of attributes to be revoked is independent of the data size; forward security is guaranteed: after the policy is updated, even if the cloud server replays the original ciphertext to the revoked user, the original ciphertext cannot be decrypted due to the policy change.
[0115] Decoupled two-layer revocation reduces operational overhead: The policy layer (identity management) and the data layer (version control) operate independently: When revoking user attributes, only encrypted delegation needs to be executed, without involving data re-encryption; when replacing data content, only a new capsule needs to be generated and the accumulator updated, without affecting the current access policy; the two can be executed independently and in parallel, avoiding the coupling problem of affecting the whole system in traditional solutions.
[0116] Strong security against rollback attacks and acceptable performance overhead: The experimental performance comparison is shown in Table 1 (based on Intel Core i7-13700, 2.10GHz, 32GB RAM, Python + py_ecc / BN254 implementation): Table 1
[0117] Overall, VRDC incurs approximately 1.2× to 2.4× additional computational overhead compared to VDC, which is a reasonable cost for achieving the two key new functions of fine-grained attribute access control and efficient attribute revocation. While the schemes proposed by Wang et al. and Gao et al. have extremely low computational overhead, they do not support verifiability, trust assessment, and access control capabilities.
[0118] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Within the scope of the technical concept of the present invention, various modifications and substitutions can be made to the above embodiments.
[0119] Alternative Implementation Example 1: Implementation Based on Key Policy Attribute Encryption (KP-ABE) In the above embodiments, the access policy is embedded in the ciphertext of the data capsule (i.e., using a CP-ABE architecture). Alternatively, CP-ABE can be replaced with KP-ABE (Key Policy Attribute Encryption), where the access policy is embedded in the data user's attribute key instead of the ciphertext of the data capsule. With this alternative, the ciphertext of the data capsule is shorter and encryption is faster; however, the data owner cannot flexibly specify the access policy during encryption, and keys need to be redistributed to each data user when the policy changes. Therefore, this alternative is more suitable for data sharing scenarios with relatively fixed access policies.
[0120] Alternative Implementation Example 2: Vector Commitment-Based Replacement for Trapdoor-Free RSA Accumulator In the above embodiment, the verification of whether the data capsule has expired (revoked) is implemented based on a trapdoor-free RSA accumulator. Alternatively, pairwise vector commitments can be used instead of RSA accumulators to verify data freshness. The advantage of this alternative is that it avoids large integer modular exponentiation and may have higher computational efficiency on certain elliptic curves; however, its disadvantage is that the proof size may increase, and it requires a trusted setup to generate a structured reference string, introducing additional trust assumptions.
[0121] Alternative Implementation Example 3: Attribute Revocation Based on Proxy Re-encryption In the above embodiments, attribute revocation is achieved by directly extending the access policy matrix at the ciphertext level through a ciphertext delegation protocol. Alternatively, during revocation, Proxy Re-Encryption (PRE) can be used to convert the ciphertext of the data capsule from the old policy to the new policy. The advantage of this alternative is its good compatibility, allowing reuse of existing proxy re-encryption infrastructure; however, its disadvantage is the need to introduce a semi-trusted proxy to participate in the ciphertext conversion, and the higher computational overhead of the re-encryption operation compared to the ciphertext delegation scheme.
[0122] Alternative Implementation Example 4: Blockchain-based Accumulator State Management In the above embodiments, the state of the RSA accumulator is maintained by a trusted execution environment. Alternatively, the state update record of the RSA accumulator can be recorded on the blockchain (e.g., through an Ethereum smart contract) to achieve decentralized reversal state management. The advantage of this alternative is that it eliminates the need to trust a single trusted execution environment to maintain the accumulator state, enhancing the audit transparency of state changes; however, its disadvantages include the introduction of blockchain consensus latency and gas fees, making it suitable for data-sharing scenarios with low reversal frequency but high audit requirements.
[0123] Extended Example: Multi-Authority Attribute Management In the above embodiments, it is assumed that a single attribute authority manages all attributes. As an extension, this invention can be extended to a Multi-Authority Attribute Encryption (MA-ABE) architecture, where multiple independent attribute authorities each manage a set of attributes and independently issue attribute keys, eliminating the need for centralized coordination. This extended scheme is suitable for cross-organizational data sharing scenarios (e.g., medical consortium blockchains, supply chain collaboration platforms), but the policy extension logic in the encrypted delegation protocol needs to be adjusted accordingly to support policy matrix concatenation and attribute key aggregation under a multi-authority key structure.
[0124] The cloud computing data sharing device provided by the present invention is described below. The cloud computing data sharing device described below and the cloud computing data sharing method described above can be referred to in correspondence.
[0125] Figure 8 This is a schematic diagram of the structure of the cloud computing data sharing device provided by the present invention, specifically including: The encapsulation module 801 is used to acquire the plaintext data to be shared and the corresponding access policy, encrypt the plaintext data using a symmetric key to obtain ciphertext, and encapsulate the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body. For detailed explanations, please refer to the relevant descriptions in the above method embodiments, which will not be repeated here.
[0126] A computational module 802 is used to construct a data capsule based on the ciphertext, the key encapsulation, and the access policy, calculate the digital signature of the data capsule, and send the data capsule to the cloud server. For detailed explanations, please refer to the relevant descriptions in the above method embodiments; they will not be repeated here.
[0127] The receiving module 803 is used to receive an access request sent by a user for the data capsule, the access request carrying the user's attribute set. For detailed explanation, please refer to the relevant descriptions in the above method embodiments, which will not be repeated here.
[0128] The verification module 804 is used to verify the user's access permissions based on the attribute set and the access policy, and obtain the permission verification result. For detailed explanations, please refer to the relevant descriptions in the above method embodiments; they will not be repeated here.
[0129] The verification module 804 is further configured to obtain the non-membership proof corresponding to the data capsule, and verify the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator, to obtain a freshness verification result indicating whether the data capsule has been revoked. For detailed explanations, please refer to the relevant descriptions in the above method embodiments, which will not be repeated here.
[0130] The data sharing module 805 is configured to, when both the permission verification result and the freshness verification result indicate that the verification has passed, decrypt the key encapsulation to obtain the symmetric key, and use the symmetric key to decrypt the ciphertext to provide data access to the user. For detailed explanations, please refer to the relevant descriptions in the above method embodiments, which will not be repeated here.
[0131] Figure 9 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 9As shown, the electronic device may include: a processor 910, a communications interface 920, a memory 930, and a communications bus 940, wherein the processor 910, the communications interface 920, and the memory 930 communicate with each other through the communications bus 940. The processor 910 can call logical instructions in the memory 930 to execute a cloud computing data sharing method. This method includes: acquiring plaintext data to be shared and its corresponding access policy; encrypting the plaintext data using a symmetric key to obtain ciphertext; encapsulating the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body; constructing a data capsule based on the ciphertext, the key encapsulation body, and the access policy; calculating the digital signature of the data capsule; sending the data capsule to a cloud server; receiving an access request from a user for the data capsule, the access request carrying the user's attribute set; verifying the user's access rights based on the attribute set and the access policy to obtain an access verification result; acquiring a non-membership proof corresponding to the data capsule; verifying the non-membership proof based on the current accumulator value of a trapdoor-free RSA accumulator to obtain a freshness verification result indicating whether the data capsule has been revoked; and when both the access verification result and the freshness verification result indicate successful verification, decrypting the key encapsulation body to obtain the symmetric key, and using the symmetric key to decrypt the ciphertext to provide data access to the user.
[0132] Furthermore, the logical instructions in the aforementioned memory 930 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0133] On the other hand, the present invention also provides a computer program product, which includes a computer program that 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 cloud computing data sharing method provided by the above methods. The method includes: acquiring plaintext data to be shared and the corresponding access policy; encrypting the plaintext data using a symmetric key to obtain ciphertext; encapsulating the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body; constructing a data capsule based on the ciphertext, the key encapsulation body, and the access policy; calculating the digital signature of the data capsule; and transferring the digital signature to the data capsule. The system sends the data capsule to the cloud server; receives access requests from users for the data capsule, the access requests carrying the user's attribute set; verifies the user's access permissions based on the attribute set and the access policy, obtaining an access verification result; obtains the non-membership proof corresponding to the data capsule, and verifies the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator, obtaining a freshness verification result indicating whether the data capsule has been revoked; when both the access verification result and the freshness verification result indicate successful verification, decrypts the key encapsulation to obtain the symmetric key, and uses the symmetric key to decrypt the ciphertext to provide data access to the user.
[0134] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the cloud computing data sharing method provided by the above methods. This method includes: acquiring plaintext data to be shared and a corresponding access policy; encrypting the plaintext data using a symmetric key to obtain ciphertext; encapsulating the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body; constructing a data capsule based on the ciphertext, the key encapsulation body, and the access policy; calculating the digital signature of the data capsule; and sending the data capsule to a cloud server; receiving data... The system receives an access request from a user for the data capsule, the request carrying the user's attribute set; verifies the user's access permissions based on the attribute set and the access policy, obtaining an access verification result; obtains the non-membership proof corresponding to the data capsule, and verifies the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator, obtaining a freshness verification result indicating whether the data capsule has been revoked; when both the access verification result and the freshness verification result indicate successful verification, decrypts the key encapsulation to obtain the symmetric key, and uses the symmetric key to decrypt the ciphertext to provide data access to the user.
[0135] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0136] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cloud computing data sharing method, characterized in that, include: Obtain the plaintext data to be shared and the corresponding access policy, encrypt the plaintext data using a symmetric key to obtain ciphertext, and encapsulate the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body; A data capsule is constructed based on the ciphertext, the key encapsulation, and the access policy, and the digital signature of the data capsule is calculated. The data capsule is then sent to the cloud server. Receive an access request from a user for the data capsule, the access request carrying the user's attribute set and access procedure; Based on the attribute set, the access policy, and the access procedure, the user's access permissions are verified to obtain the access verification result; Obtain the non-membership proof corresponding to the data capsule, and verify the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator to obtain a freshness verification result indicating whether the data capsule has been revoked; When both the permission verification result and the freshness verification result indicate that the verification is successful, the key encapsulation is decrypted to obtain the symmetric key, and the ciphertext is decrypted using the symmetric key to provide data access to the user.
2. The method according to claim 1, characterized in that, The encryption algorithm utilizing ciphertext policy attributes encapsulates the symmetric key based on the access policy to obtain a key encapsulation body, comprising: Obtain the policy matrix and mapping function corresponding to the access policy; Select a random vector, and perform an inner product operation between the random vector and each row vector of the strategy matrix to obtain the linear combination result corresponding to each row; For each row of the strategy matrix, a corresponding row random number is randomly selected, and the ciphertext component is calculated based on the linear combination result and the row random number; Based on the symmetric key, the first element of the random vector, and the bilinear pairing operation result in the system common parameters, calculate the key encapsulation principal component; The key encapsulation main component and the ciphertext component are combined to generate the key encapsulation body.
3. The method according to claim 1, characterized in that, Before encrypting the plaintext data using a symmetric key to obtain the ciphertext, the method further includes: Obtain the master symmetric key and data capsule index; The symmetric key is generated using the key derivation function based on the master symmetric key and the data capsule index.
4. The method according to claim 1, characterized in that, The calculation of the digital signature of the data capsule includes: Obtain the BLS signing private key from the data owner; The ciphertext, the key encapsulation body, and the access policy are concatenated to obtain the data to be signed; The digital signature is generated by performing a signature operation on the data to be signed using the BLS signature private key.
5. The method according to any one of claims 1-4, characterized in that, The process of verifying the user's access permissions based on the attribute set and the access policy to obtain the permission verification result includes: Obtain the policy matrix and mapping function corresponding to the access policy, as well as the user's attribute key; Based on the mapping function, using the attribute key and the attribute set, it is verified whether the attribute set satisfies the access structure defined by the strategy matrix; When it is determined that the attribute set satisfies the access structure, a permission verification result indicating that the verification has passed is generated; When it is determined that the attribute set does not satisfy the access structure, a permission verification result indicating verification failure is generated, and the access request is rejected.
6. The method according to claim 5, characterized in that, The process of obtaining the non-membership proof corresponding to the data capsule and verifying the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator to obtain a freshness verification result indicating whether the data capsule has been revoked includes: The representative element of the data capsule is calculated, and the representative element is obtained by mapping the ciphertext, the key encapsulation, and the access strategy using a collision-resistant prime hash function; Obtain the representative element product of each revoked element in the revocation set of the RSA accumulator, and use the extended Euclidean algorithm to operate on the representative element of the data capsule to obtain the first coefficient and the second coefficient. Modular exponentiation is performed based on the second coefficient and the basis elements of the RSA accumulator to obtain an auxiliary proof value, and the first coefficient and the auxiliary proof value are used as the non-membership proof. Verify whether the product of the first coefficient power of the current accumulator value and the representative element power of the data capsule of the auxiliary proof value is equal to the base element; When the verification results are equal, the freshness verification result is determined to be verified as passed, indicating that the data capsule has not been revoked; When the verification results are not equal, the freshness verification result is determined to be a verification failure, indicating that the data capsule has been revoked.
7. The method according to claim 6, characterized in that, Before verifying the non-membership proof using the current accumulator value based on the trapdoor-free RSA accumulator, the following steps are also included: The prime number length is determined based on the system security parameters, two prime numbers that satisfy the prime number length are generated, and the RSA modulus is calculated based on the two prime numbers. Based on the RSA modulus, select a basis element that is coprime to the RSA modulus; The undo set of the RSA accumulator is initialized to an empty set, and the base element is used as the initial accumulator value.
8. The method according to claim 1, characterized in that, The method further includes: Receive an attribute revocation instruction, the attribute revocation instruction indicating at least one user attribute to be revoked; An extended policy matrix is constructed based on the cancellation policy. The extended policy matrix is obtained by concatenating the original policy matrix corresponding to the original access policy and the cancellation policy matrix corresponding to the cancellation policy. The access policy in the key envelope is updated using the encrypted delegation protocol based on the extended policy matrix to obtain the updated key envelope; The digital signature is recalculated based on the updated key capsule, and the original data capsule's representative element is added to the RSA accumulator's revocation set to update the RSA accumulator's state, so that the original data capsule is rejected during subsequent accesses due to the RSA accumulator's non-membership verification failure.
9. The method according to claim 1 or 8, characterized in that, The method further includes: Receive a data update request, the data update request including new plaintext data; The new plaintext data is encrypted using the symmetric key to obtain a new ciphertext, and a new digital signature is calculated based on the new ciphertext, the key encapsulation body, and the access policy to obtain a new data capsule; Calculate the representative element of the original data capsule, add the representative element to the undo set of the RSA accumulator, and update the accumulator value of the RSA accumulator based on the representative element; The new data capsule is sent to the cloud server to replace the original data capsule.
10. A cloud computing data sharing device, characterized in that, include: The module is used to acquire the plaintext data to be shared and the corresponding access policy, encrypt the plaintext data using a symmetric key to obtain ciphertext, and encapsulate the symmetric key based on the access policy using a ciphertext policy attribute encryption algorithm to obtain a key encapsulation body. A computational module is constructed to construct a data capsule based on the ciphertext, the key encapsulation, and the access policy, calculate the digital signature of the data capsule, and send the data capsule to the cloud server. A receiving module is used to receive an access request sent by a user for the data capsule, the access request carrying the user's attribute set; The verification module is used to verify the user's access permissions based on the attribute set and the access policy, and obtain the permission verification result; The verification module is also used to obtain the non-membership proof corresponding to the data capsule, and verify the non-membership proof based on the current accumulator value of the trapdoor-free RSA accumulator, to obtain a freshness verification result indicating whether the data capsule has been revoked. The data sharing module is used to decrypt the key package to obtain the symmetric key when both the permission verification result and the freshness verification result indicate that the verification is passed, and to use the symmetric key to decrypt the ciphertext in order to provide data access to the user.
