Re-encryption method and device, re-decryption method and device, electronic equipment and storage medium
By dividing the user's private key into the first private key and the second private key, and generating a proxy re-key after the illegal user logs out, the ciphertext is re-encrypted and the private key is updated only when the user initiates a ciphertext reading instruction. It solves the problem of low user private key update efficiency in the traditional CP-ABE system, reduces computing and communication overhead, and improves system security and availability.
Patent Information
- Application Number
- CN202410984543.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-27
AI Technical Summary
In user management, the traditional CP-ABE system relies on user operations to update user private keys and is inefficient when revoking user access permissions. As a result, global key updates cause excessive overhead in computing resources and communication resources, affecting system performance and security.
Split the user's private key into a first private key and a second private key, which are held by the client and the cloud server respectively, and generate a proxy re-key after the illegal user logs out, which is only performed when the client initiates a ciphertext reading instruction. Ciphertext re-encryption and private key update.
It achieves efficient revocation of user access rights, reduces unnecessary key update operations, reduces system computing and communication overhead, and improves system security and availability.
Smart Images

Figure CN118713912A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a re-encryption and decryption method and device, an electronic device, and a storage medium. Background Art
[0002] In the existing Ciphertext Policy-Based Attribute-Based Encryption (CP-ABE) scheme, access control policies are defined by access control trees (ACTs), which describe which users with a specific set of attributes can access specific encrypted data. Each user's private key is associated with its attribute set, and the user can only successfully decrypt the ciphertext when the user's attribute set satisfies the access control tree conditions in the ciphertext. However, the traditional CP-ABE system has a significant defect in user management, that is, the update of the user's private key is completely dependent on the user's own operations, and this update process is particularly inefficient when revoking user access rights.
[0003] Specifically, whenever a user's access rights are revoked, a key update operation is usually required to maintain the security of the system. This requires all other non-revoked users to update their private keys, even if these users do not intend to access the affected ciphertext. This global key update mechanism is particularly inefficient in large user groups because it causes a lot of computing resources and communication overhead to be wasted on users who do not need to access specific ciphertexts. In addition, since the key update process usually involves complex cryptographic operations and communication interactions, frequent key update operations in a large user group will further aggravate the performance bottleneck of the system. This not only reduces the system's availability and user experience, but also increases the system's operation and maintenance costs and security risks.
[0004] Therefore, in order to solve the above problems and improve the efficiency and security of the CP-ABE system in user management, it is necessary to design a new key update mechanism that can achieve efficient revocation of user access rights while reducing unnecessary key update operations, thereby reducing the system's computational and communication overhead. Summary of the invention
[0005] The present invention provides a re-encryption and decryption method and device, electronic device and storage medium, which is mainly intended to solve the problem of excessive computing and communication resource overhead caused by global key update when frequent user revocation occurs.
[0006] According to a first aspect of the present disclosure, a re-encryption method is provided, the method being applied to a cloud encryption system, the cloud encryption system comprising a cloud server, the method comprising:
[0007] Split the user's private key into a first private key and a second private key, send the first private key to the user terminal, and store the second private key in the cloud server;
[0008] Checking whether the deregistration process for the illegal user has been executed, after determining that the deregistration process for the illegal user has been executed, generating a proxy re-key, and storing the proxy re-key in the cloud server;
[0009] In response to the ciphertext reading instruction sent by the client, re-encrypt the encrypted ciphertext stored in the cloud server based on the proxy re-key, and update the second private key;
[0010] The updated second private key is sent from the cloud server to the user terminal, the user update key sent by the user terminal is received, and after the user update key is verified, the re-encrypted encrypted ciphertext is sent from the cloud server to the user terminal.
[0011] In some embodiments, before splitting the user private key into the first private key and the second private key, the method further includes:
[0012] Acquire security parameters, and generate an encryption public key and a master key based on the security parameters, wherein the encryption public key is used to encrypt the data to be encrypted to generate the encrypted ciphertext;
[0013] Acquire attribute information of each user, generate a user attribute set, and generate the user private key based on the user attribute set and the master key.
[0014] In some embodiments, the cloud server includes: a cloud storage server and a proxy server;
[0015] The checking whether the deregistration process has been performed on the illegal user, after determining that the deregistration process has been performed on the illegal user, generating a proxy re-key, and storing the proxy re-key in the cloud server, comprises:
[0016] Calling a preset algorithm and selecting a random number to generate the proxy re-key;
[0017] The proxy re-key is sent to the cloud storage server and the proxy server.
[0018] In some embodiments, before responding to the ciphertext reading instruction sent by the client, re-encrypting the encrypted ciphertext stored by the cloud server based on the proxy re-key, and updating the second private key, the method further includes:
[0019] Sending the proxy re-key generated each time to the cloud storage server for storage, and generating a first key table;
[0020] The proxy re-key generated each time is sent to the proxy server for storage, and a second key table is generated.
[0021] In some embodiments, in response to the ciphertext reading instruction sent by the client, re-encrypting the encrypted ciphertext stored by the cloud server based on the proxy re-key, and updating the second private key includes:
[0022] Obtaining a proxy re-key in the first key table, and updating and generating a second key component based on the proxy re-key in the first key table and the first key component corresponding to the encrypted ciphertext;
[0023] Re-encrypting the encrypted ciphertext stored in the cloud storage server using the second key component;
[0024] Based on the proxy re-key in the second key table, the second private key stored in the proxy server is updated.
[0025] According to a second aspect of the present disclosure, a decryption method is provided, the method being applied to a user terminal, the method comprising:
[0026] Receiving a first private key sent by the cloud encryption system;
[0027] Sending a ciphertext reading instruction to the cloud encryption system to obtain the encrypted ciphertext and the second private key sent by the cloud encryption system;
[0028] The first private key and the second private key sent by the proxy server in the cloud encryption system are combined to obtain a user private key;
[0029] Based on the user private key, the encrypted ciphertext is decrypted to obtain the encrypted data.
[0030] In some embodiments, the decrypting the encrypted ciphertext based on the user private key includes:
[0031] Based on the user attribute information in the user private key, determining whether the user attribute information can match the preset access structure tree in the encrypted ciphertext;
[0032] In the case that the user attribute information can be matched with the preset access structure tree, a preset decryption algorithm is called to decrypt the encrypted ciphertext using the user private key.
[0033] According to a third aspect of the present disclosure, a re-encryption device is provided, the device comprising:
[0034] A splitting unit, used to split the user private key into a first private key and a second private key, and send the first private key to the user terminal and store the second private key in the cloud server;
[0035] A verification unit, configured to verify whether the deregistration process for the illegal user has been executed, generate a proxy re-key after determining that the deregistration process for the illegal user has been executed, and store the proxy re-key in the cloud server;
[0036] a re-encryption unit, configured to, in response to a ciphertext reading instruction sent by the client, re-encrypt the encrypted ciphertext stored in the cloud server based on the proxy re-key, and update the second private key;
[0037] A sending unit is used to send the updated second private key from the cloud server to the user terminal, receive the user update key sent by the user terminal, and after the user update key is verified, send the re-encrypted encrypted ciphertext from the cloud server to the user terminal.
[0038] In some embodiments, the apparatus further comprises:
[0039] A first generating unit is used to obtain security parameters before splitting the user private key into the first private key and the second private key, and generate an encryption public key and a master key based on the security parameters, wherein the encryption public key is used to encrypt the data to be encrypted to generate the encrypted ciphertext;
[0040] The second generating unit is used to obtain attribute information of each user, generate a user attribute set, and generate the user private key based on the user attribute set and the master key.
[0041] In some embodiments, the cloud server includes: a cloud storage server and a proxy server;
[0042] The inspection unit comprises:
[0043] A generation module, used to call a preset algorithm and select a random number to generate the proxy re-key;
[0044] The sending module is used to send the proxy re-key to the cloud storage server and the proxy server.
[0045] In some embodiments, the apparatus further comprises:
[0046] A third generating unit is used to send the proxy re-key generated each time to the cloud storage server for storage and generate a first key table before the re-encryption unit re-encrypts the encrypted ciphertext stored in the cloud server and updates the second private key;
[0047] The fourth generating unit is used to send the proxy re-key generated each time to the proxy server for storage and generate a second key table.
[0048] In some embodiments, the re-encryption unit includes:
[0049] an acquisition module, configured to acquire the proxy re-key in the first key table, and update and generate a second key component based on the proxy re-key in the first key table and the first key component corresponding to the encrypted ciphertext;
[0050] a re-encryption module, configured to re-encrypt the encrypted ciphertext stored in the cloud storage server using the second key component;
[0051] An updating module is used to update the second private key stored in the proxy server based on the proxy re-key in the second key table.
[0052] According to a fourth aspect of the present disclosure, a decryption device is provided, the device comprising:
[0053] A receiving unit, configured to receive a first private key sent by a cloud encryption system;
[0054] An acquisition unit, used to send a ciphertext reading instruction to the cloud encryption system to obtain the encrypted ciphertext and the second private key sent by the cloud encryption system;
[0055] a merging unit, configured to merge the first private key and the second private key sent by the proxy server in the cloud encryption system to obtain a user private key;
[0056] The decryption unit is used to decrypt the encrypted ciphertext based on the user private key to obtain the encrypted data.
[0057] In some embodiments, the decryption unit comprises:
[0058] A judgment module, used to judge whether the user attribute information can match the preset access structure tree in the encrypted ciphertext based on the user attribute information in the user private key;
[0059] The decryption module is used to call a preset decryption algorithm and use the user private key to decrypt the encrypted ciphertext when the user attribute information can match the preset access structure tree.
[0060] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:
[0061] at least one processor; and
[0062] a memory communicatively connected to the at least one processor; wherein,
[0063] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect or the second aspect.
[0064] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect or the second aspect.
[0065] According to a seventh aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect or the second aspect.
[0066] The present disclosure provides a re-encryption and decryption method and device, electronic device and storage medium, which divide a user private key into a first private key and a second private key, and send the first private key to a user terminal and store the second private key in a cloud server; check whether the cancellation process for an illegal user has been executed, and after determining that the cancellation process for the illegal user has been executed, generate a proxy re-key, and store the proxy re-key in the cloud server; in response to a ciphertext read instruction sent by the user terminal, re-encrypt the encrypted ciphertext stored in the cloud server based on the proxy re-key, and update the second private key; send the updated second private key from the cloud server to the user terminal, receive the user update key sent by the user terminal, and after the user update key is verified, send the re-encrypted encrypted ciphertext from the cloud server to the user terminal. Compared with the related art, the present invention greatly enhances the security of the private key by dividing the user's private key into a first private key and a second private key, which are held by the user end and the cloud server respectively; the second private key is updated based on the proxy re-key, thereby realizing the update of the user's private key, and re-encrypting the encrypted ciphertext based on the proxy re-key; whenever an illegal user logs out, a new proxy re-key is generated, and there is no need to immediately re-encrypt the encrypted ciphertext and update the user's private key, and the encrypted ciphertext only needs to be re-encrypted and the user's private key needs to be updated when there is a need for the user end to read the encrypted ciphertext. In this way, the user's access rights can be efficiently revoked, while unnecessary key update operations are reduced, thereby reducing the system's computing and communication overhead.
[0067] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0069] Figure 1 A flowchart of a re-encryption method provided by an embodiment of the present disclosure;
[0070] Figure 2 A flowchart of another re-encryption method provided by an embodiment of the present disclosure;
[0071] Figure 3 It is a schematic diagram of the working process of an encryption system;
[0072] Figure 4 A flowchart of a decryption method provided by an embodiment of the present disclosure;
[0073] Figure 5 A schematic diagram of the structure of a re-encryption device provided in an embodiment of the present disclosure;
[0074] Figure 6 A schematic diagram of the structure of another re-encryption device provided in an embodiment of the present disclosure;
[0075] Figure 7 A schematic diagram of the structure of a decryption device provided in an embodiment of the present disclosure;
[0076] Figure 8 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0077] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0078] The following describes the re-encryption and decryption methods and devices, electronic devices, and storage media of the embodiments of the present disclosure with reference to the accompanying drawings.
[0079] Figure 1 A flowchart of a re-encryption method provided in an embodiment of the present disclosure.
[0080] like Figure 1 As shown, the method comprises the following steps:
[0081] Step 101, split the user private key into a first private key and a second private key, send the first private key to the user terminal, and store the second private key in the cloud server.
[0082] In the embodiment of the present disclosure, the CP-ABE encryption scheme is an attribute-based encryption scheme based on the ciphertext strategy. The principle is to associate the user's attribute information with the user's private key, and associate the access structure tree with the encrypted ciphertext. Only when the user's attribute set satisfies the preset access structure tree in the encrypted ciphertext can the user decrypt the ciphertext.
[0083] There is a phenomenon of asynchrony between the user logout event and the user access to the cloud to read data, that is, whenever a user logs out, not immediately a user will obtain the user's private key to decrypt the encrypted data (ciphertext) in the cloud. At the same time, since there are many users in the encryption system, every time an illegal user is logged out, the user private keys of all other legal users will be updated, which will cause the system's calculation amount to be very large and will occupy a lot of communication resources. Therefore, the system will perform a fine segmentation operation on this user's private key. This step card can ensure that no information of the original data will be lost during the segmentation process, while achieving the separation of private keys. The data in the user's private key that does not change and is related to the user's attribute information is divided into one category, namely the first private key; the data in the user's private key that will be updated with the private key version and is not related to the user's attribute new information is divided into one category, namely the second private key. The second private key is stored in the cloud server, and the first private key is sent to the user (end); in this way, there is no need to update the user's private key every time a user logs out, and it can be updated when a user requests to encrypt ciphertext, and one update can be updated to the latest version of the user's private key. Furthermore, dividing the user's private key into a first private key and a second private key can also improve the security of the user's private key.
[0084] Step 102, checking whether the logout process for the illegal user has been executed, after determining that the logout process has been executed for the illegal user, generating a proxy re-key, and storing the proxy re-key in the cloud server.
[0085] In the embodiments of the present disclosure, illegal users generally refer to those users who have cancelled their authorization to access the system, attempted to perform malicious operations, or violated the terms of service. In the daily operation of network services, system administrators will monitor user activities regularly or in real time, and once illegal users who need to be deregistered are found, the deregistration procedure for illegal users will be initiated.
[0086] After the logout procedure is initiated, the Cloud Encryption System (hereinafter referred to as the System) will perform a series of steps to ensure that the illegal user is effectively logged out. These steps may include clearing the user's session information, revoking the user's access rights, and recording the user's illegal behavior for subsequent review. Through these measures, it can be ensured that the illegal user cannot continue to operate in the system, thereby protecting the integrity and security of the system.
[0087] After confirming that the illegal user has been deregistered, the system will generate a proxy re-key. This proxy re-key is a new, unique encryption key that is used to replace or update the old key associated with the illegal user. The process of generating the proxy re-key can use, but is not limited to, new encryption algorithms and technologies to generate the proxy re-key to ensure the security and unpredictability of the key.
[0088] Once the proxy re-key is generated, the system will store it in the cloud server. The cloud server provides a safe and reliable environment to store and manage keys. Before storing the proxy re-key in the cloud server, the system will ensure that the communication with the cloud server is encrypted and that unauthorized access can be prevented using, but not limited to, appropriate authentication and authorization mechanisms. In this way, not only can illegal users be effectively identified and deregistered, but also the keys associated with these users can be updated and stored in a timely manner. This helps to improve the overall security of the system and reduce the potential threats that illegal users may pose to the system.
[0089] Step 103, in response to the ciphertext reading instruction sent by the client, re-encrypt the encrypted ciphertext stored in the cloud server based on the proxy re-key, and update the second private key.
[0090] In the embodiment of the present disclosure, when the user logged in at the client wants to obtain the data corresponding to the encrypted ciphertext, the client sends a ciphertext reading instruction to the system. After the system captures the ciphertext reading instruction from the client, it needs to verify whether the user who sent the instruction has sufficient authority to perform this operation. The verification process is as follows: the user first obtains the second private key, and uses the second private key to merge with the first private key of the client to generate the user private key; the system receives the user private key and verifies the user's reading authority.
[0091] In this embodiment, in order to reduce the number of times the encrypted ciphertext is re-encrypted and the number of times the user's private key is updated after the illegal user logs out, the encrypted ciphertext is re-encrypted and the user's private key is updated only after the system receives the ciphertext reading instruction sent by the user. The part of the user's private key that needs to be updated each time (i.e., the second private key) is stored in the cloud server, which can reduce communication consumption.
[0092] After receiving the ciphertext read instruction, the system will enter the ciphertext re-encryption phase and the second private key update phase. In this phase, the system will use the proxy re-key previously generated for the illegal user to re-encrypt the encrypted ciphertext stored on the cloud server. The purpose of re-encryption is to ensure that even if the illegal user previously had access to the ciphertext, they can no longer decrypt or read the ciphertext because the key has been updated. During the re-encryption process, the system will strictly follow the preset encryption algorithm and process to ensure that the security and integrity of the ciphertext are maintained. At the same time, the system will also record all operation logs related to re-encryption for subsequent auditing and tracking. In addition to re-encrypting the ciphertext, the system will also update the second private key associated with the illegal user. This private key is usually used to decrypt or verify the ciphertext in specific scenarios. The purpose of updating the private key is to eliminate the possibility of illegal users continuing to use the old private key to access sensitive information. When updating the private key, the system will generate a new, unique private key and store it securely. At the same time, the system will ensure that all access rights and references related to the old private key are updated or deleted to prevent any potential security risks.
[0093] Step 104, sending the updated second private key from the cloud server to the user terminal, receiving the user update key sent by the user terminal, and after the user update key is verified, sending the re-encrypted encrypted ciphertext from the cloud server to the user terminal.
[0094] In the embodiment of the present disclosure, the system will securely send the updated second private key from the cloud server to the user end. This ensures that the user end can use the latest and valid private key to decrypt or access the corresponding encrypted data. During the transmission process, the system will use a high-strength encryption communication protocol to ensure that the private key will not be intercepted or tampered with during the transmission process.
[0095] Once the client receives the updated second private key, it will merge it with the first private key to generate a user update key, which is a user private key synthesized by the user based on the updated second private key and the first private key. At the same time, the system will wait for the client to send the user update key. After the user update key is verified, the system will trigger a process to send the re-encrypted encrypted ciphertext. This process will send the re-encrypted encrypted ciphertext on the cloud server to the client. Before sending, the system will perform another integrity and security check on the ciphertext to ensure that there will be no errors or security vulnerabilities during the transmission process. During the transmission process, the system will also use a high-strength encryption communication protocol to ensure that the encrypted ciphertext will not be intercepted or tampered with during the transmission process. In addition, the system will also record log information related to the transmission for subsequent auditing and tracking.
[0096] Through this series of steps, the system can ensure that after verifying the identity of the user and the user updating the key, the re-encrypted ciphertext is sent to the user securely and accurately. This not only improves the security and reliability of the system, but also provides users with a smoother and more convenient data access experience.
[0097] The present disclosure provides a re-encryption method, which divides a user private key into a first private key and a second private key, and sends the first private key to a user terminal and stores the second private key in a cloud server; verifies whether the deregistration process for an illegal user has been executed, and after determining that the deregistration process for the illegal user has been executed, generates a proxy re-key, and stores the proxy re-key in the cloud server; in response to a ciphertext read instruction sent by the user terminal, re-encrypts the encrypted ciphertext stored in the cloud server based on the proxy re-key, and updates the second private key; sends the updated second private key from the cloud server to the user terminal, receives the user update key sent by the user terminal, and after the user update key is verified, sends the re-encrypted encrypted ciphertext from the cloud server to the user terminal. Compared with the related art, the present invention greatly enhances the security of the private key by dividing the user's private key into a first private key and a second private key, which are held by the user end and the cloud server respectively; the second private key is updated based on the proxy re-key, thereby realizing the update of the user's private key, and re-encrypting the encrypted ciphertext based on the proxy re-key; whenever an illegal user logs out, a new proxy re-key is generated, and there is no need to immediately re-encrypt the encrypted ciphertext and update the user's private key, and the encrypted ciphertext only needs to be re-encrypted and the user's private key needs to be updated when there is a need for the user end to read the encrypted ciphertext. In this way, the user's access rights can be efficiently revoked, while unnecessary key update operations are reduced, thereby reducing the system's computing and communication overhead.
[0098] In order to clearly illustrate the embodiment of the present disclosure, this embodiment provides a flowchart of another re-encryption method.
[0099] like Figure 2 As shown, the method comprises the following steps:
[0100] Step 201, obtain security parameters, and generate an encryption public key and a master key based on the security parameters, wherein the encryption public key is used to encrypt the data to be encrypted to generate the encrypted ciphertext.
[0101] Obtaining security parameters is the first step in implementing an encryption system. Security parameters are a set of predefined values that determine the strength and security level of an encryption algorithm. These parameters may include key length, number of iterations, choice of hash function, etc. The setting of these parameters needs to be based on specific security requirements and application scenarios to ensure that the encryption system can resist known cryptographic attacks and potential future threats.
[0102] After determining the security parameters, the next step is to generate encryption public and master keys. Public key cryptography (also known as asymmetric cryptography) uses a pair of keys: a public key and a private key. The public key is used to encrypt data, while the private key is used to decrypt data. The public key is public and can be widely distributed, while the private key is kept secret and can only be accessed by the holder.
[0103] Specifically, in step 201, the encryption system selects a bilinear map G0 with a generator of g and a prime number of order p, randomly selects α, β∈Zp, and generates a system public key (i.e., an encrypted public key): Master key: MK = (β, g α ). Figure 3 For a schematic diagram of the encryption system workflow, please refer to Figure 3 Understand this embodiment.
[0104] The data owner of the data to be encrypted encrypts the data to be encrypted. The encryption algorithm uses the access structure tree τ to encrypt the message M. The algorithm starts from the root node R and selects a random number s∈Zp and sets q R (0) = s. Then, we randomly select dR points through the algorithm to completely define the polynomial qR. For other nodes x, let q x (0) = q parent(x) (index(x)), randomly select other dx nodes to completely define qx. Encrypt the ciphertext component with the random number s Calculate C = h s . Let the set of all leaf nodes in τ be Y, then the ciphertext calculated under the given tree access structure τ is
[0105]
[0106] Where y is the access structure tree for each leaf node, that is, the access tree attribute. qy(0) is the constant term of the polynomial, att(y) is the attribute value, and H(att(y)) is the hash value corresponding to the attribute value. The data owner uploads the encrypted ciphertext to the cloud storage server.
[0107] Step 202: Acquire attribute information of each user, generate a user attribute set, and generate the user private key based on the user attribute set and the master key.
[0108] Specifically, in step 202, the attribute set S of each user is obtained. First, a random number r∈Zp is selected, and then a random number rj∈Zp is selected for each attribute j. Finally, the user private key is calculated. H(j) is the hash value corresponding to each attribute.
[0109] Step 203, split the user private key into a first private key and a second private key, send the first private key to the user terminal, and store the second private key in the cloud server.
[0110] Specifically, in step 203, the cloud server includes: a cloud storage server and a proxy server. Each user's private key is split into two parts: a private key component D that is not related to user attributes. b =D sent to the proxy server, the private key component related to the user attributes (first private key) Sent to the user (end).
[0111] Step 204, after determining to execute the deregistration process for the illegal user, call the preset algorithm and select a random number to generate the proxy re-key.
[0112] Step 205: Send the proxy re-key generated each time to the cloud storage server for storage, and generate a first key table.
[0113] Step 206: Send the proxy re-key generated each time to the proxy server for storage, and generate a second key table.
[0114] Specifically, in steps 204 to 206, after each execution of the logout process for an illegal user, a random number ε∈Zp is selected and sent to the proxy server and the cloud storage server as the proxy re-key. After receiving the proxy re-key, the proxy server and the cloud storage server will store the proxy re-key in the first key table and the second key table. When there is no user request to obtain the encrypted ciphertext, the proxy server and the cloud storage server will only receive the proxy re-key and maintain their respective key tables without re-encryption or second private key update.
[0115] Step 207, in response to the ciphertext read instruction sent by the user terminal, obtain the proxy re-key in the first key table, and update and generate the second key component based on the proxy re-key in the first key table and the first key component corresponding to the encrypted ciphertext.
[0116] Step 208: Re-encrypt the encrypted ciphertext stored in the cloud storage server using the second key component.
[0117] Specifically, in steps 207 to 208, the cloud storage server updates the ciphertext according to the historical record table of the proxy re-key (i.e., the first key table), the first key component is the current ciphertext version, and the second key component is the key component updated with the latest version of the proxy re-key generated previously. Assuming that the current ciphertext version of the first key component is k, and the latest version of the second key component is n, calling the preset algorithm will find the proxy re-key with versions k+1 to n from the historical record table of the proxy re-key (the first key table). That is, the second key component can be updated and generated according to the first key component, and the re-encryption operation can be performed by calling the preset algorithm:
[0118]
[0119] The updated ciphertext is:
[0120]
[0121] is the latest ciphertext component after re-encryption, is the ciphertext component of version k, ε k+1 is the proxy re-key in version k+1. e(g,g) s Bilinear map between generator g and random number s.
[0122] Step 209: Update the second private key stored in the proxy server based on the proxy re-key in the second key table.
[0123] Specifically, in step 209, the proxy server updates the second private key according to the second key table (history table) of the proxy re-key. When updating the second private key, if the user is determined to be a normal user, the user's private key component is updated. Assuming that the current user's private key version is j, it needs to be updated to the latest version n, and the proxy re-key with versions j+1 to n is found from the history table (second key table) of the proxy re-key. Only one call to the preset algorithm is required to perform the private key update operation:
[0124]
[0125] D b ′ is the latest user private key component after re-encryption, D′ j is the user private key component in version j, ε j+1 Re-key the proxy in version j+1. This is the public key component in the first step of system initialization. It is the initial user private key component. From ε1 to ε n The summation formula of .
[0126] Step 210, sending the updated second private key from the cloud server to the user terminal, receiving the user update key sent by the user terminal, and after the user update key is verified, sending the re-encrypted encrypted ciphertext from the cloud server to the user terminal.
[0127] Specifically, in step 210, Figure 3 As shown, the system will send the updated second private key from the proxy server to the client. This ensures that the client can use the latest and valid private key to decrypt or access the corresponding encrypted data. Once the client receives the updated second private key, it will merge it with the first private key to generate a user update key, which is a user private key synthesized by the user based on the updated second private key and the first private key. At the same time, the system will wait for the client to send the user update key. After the user update key verification is passed, the system will trigger a process of sending the re-encrypted encrypted ciphertext. This process will send the re-encrypted encrypted ciphertext on the cloud storage server to the client.
[0128] Through this series of steps, the system can ensure that after verifying the identity of the user and the user updating the key, the re-encrypted ciphertext is sent to the user securely and accurately. This not only improves the security and reliability of the system, but also provides users with a smoother and more convenient data access experience.
[0129] Figure 4 A flowchart of a decryption method provided by an embodiment of the present disclosure.
[0130] like Figure 4 As shown, the method comprises the following steps:
[0131] Step 301: Receive a first private key sent by a cloud encryption system.
[0132] Specifically, in step 301, the second private key is stored in the cloud server, and the first private key is sent to the user (terminal); in this way, the user private key does not need to be updated every time a user logs out, but can be updated when a user requests to encrypt a ciphertext, and the latest version of the user private key can be updated once. In addition, the user private key is divided into the first private key and the second private key, which can also improve the security of the user private key.
[0133] Receive the private key component (first private key) related to the user's attributes sent by the cloud encryption system
[0134] Step 302: Send a ciphertext read instruction to the cloud encryption system to obtain the encrypted ciphertext and the second private key sent by the cloud encryption system.
[0135] Specifically, in step 302, in a cloud computing environment, when a user needs to access data stored on a cloud encryption system, they first initiate an explicit request. Specifically, when a user wishes to read encrypted data, they send a ciphertext read instruction to the cloud encryption system. This instruction not only identifies the user's identity and the requested data, but also contains all necessary parameters and permission information to ensure the legitimacy and accuracy of the request.
[0136] Once the cloud encryption system receives the ciphertext reading instruction, it will first update the second private key and send it to the client. The client generates a user updated private key and sends it to the cloud encryption system. Then a series of security verification and permission checks are performed. This includes verifying whether the user's identity is authentic and valid, and whether the user has the authority to access the requested data. Only after the verification is passed will the cloud encryption system continue to process the request. Next, the cloud encryption system will find the encrypted ciphertext corresponding to the request. This ciphertext is obtained by encrypting the original data through a complex encryption algorithm, and only with the correct key can it be decrypted back to the original data.
[0137] Step 303: Combine the first private key and the second private key sent by the proxy server in the cloud encryption system to obtain a user private key.
[0138] Specifically, in step 303, in a real cloud encryption environment, there is a phenomenon of asynchrony between the user logout event and the user's access to the cloud data, that is, whenever a user logs out, not immediately a user will apply for a second private key to decrypt the cloud data. In addition, since there are many users in the cloud, every time an illegal user is logged out, the user of all other legal users will be updated, which will cause the system to have a very large amount of calculation. Therefore, in order to improve efficiency, the present disclosure adopts the idea of lazy re-encryption, and the user's private key does not need to be updated in real time. The user's private key is only updated when the encrypted ciphertext needs to be decrypted.
[0139] In the cloud encryption system, when no illegal user logout occurs, the user requests the user private key component (second private key) from the proxy server, and the proxy server distributes the second private key Db to the unrevoked user. Since no illegal user logout occurs, the second private key is not updated. After the user's second private key is obtained, the synthesized user private key is:
[0140] Then use the user's private key to start decryption.
[0141] In the cloud encryption system, when an illegal user logs out, the proxy server distributes the updated second private key to the legitimate users who have not logged out. The user synthesizes the user update private key (the user private key generated by the updated second private key) as:
[0142] Then use the user's updated private key to start decryption.
[0143] Step 304: decrypt the encrypted ciphertext based on the user private key to obtain the encrypted data.
[0144] Step 3041: Based on the user attribute information in the user private key, determine whether the user attribute information can match the preset access structure tree in the encrypted ciphertext.
[0145] Step 3042, when the user attribute information can be matched with the preset access structure tree, call the preset decryption algorithm and use the user private key to decrypt the encrypted ciphertext.
[0146] Specifically, in step 304, in the cloud encryption system, when no illegal user logout occurs, decryption is performed according to the recursive algorithm Decryptnode(CT,SK,x), where CT is the ciphertext, SK is the user private key associated with the user attribute set S, and x is the node in the access structure tree τ. When node x is a leaf node, i represents the attribute of node x, if i∈S, then
[0147]
[0148] if Then DecryptNode(CT,SK,x)=⊥. If x is a non-leaf node, the calculation form of the algorithm Decrypt(CT,TK,x) is as follows: For all child nodes z of x, call the recursive function to calculate F z =DecryptNode(CT,SK,z). Let Sx be a kx-sized node satisfying F z ≠⊥ is the set of child nodes z, kx is the threshold value of non-leaf nodes x. If there is no such set, then this node does not meet the condition and the function returns ⊥. Otherwise, we perform recursive operations based on polynomial interpolation to obtain:
[0149]
[0150] where i = index(z), S′ x ={index(z):z∈S x}, is the Lagrange coefficient. According to the Lagrange interpolation theorem, we can get the above result. We perform DecryptNode(CT,TK,R) on the root node, where R is the root node of the tree τ. If the attributes owned by the user satisfy the access policy, we can get
[0151]
[0152] Then use the following decryption formula:
[0153]
[0154] Decryption is successful and the plaintext M is obtained.
[0155] In the cloud encryption system, when an illegal user logs out, the user's attributes satisfy the access structure tree, that is,
[0156]
[0157] Make a bilinear mapping e(C,D′) on the user private key component C and the ciphertext component D′. According to the bilinear property e(g a ,h b )=e(g,h) ab , we can get the above decryption result
[0158] Therefore, the following decryption formula is used:
[0159]
[0160] Solve the plaintext M and decrypt it successfully; among them, is the re-encrypted ciphertext component, e(C,D′) is the bilinear mapping between the user private key component C and the ciphertext component D′, and A is the intermediate result calculated by calling the recursive function according to the Lagrange interpolation definition if the user's attributes satisfy the access control structure tree.
[0161] It should be noted that the embodiments of the present disclosure may include multiple steps. For the convenience of description, these steps are numbered, but these numbers do not limit the execution time slots or execution order between the steps; these steps can be implemented in any order, and the embodiments of the present disclosure do not limit this.
[0162] Corresponding to the above-mentioned re-encryption and decryption methods, the present invention also provides a re-encryption and decryption device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0163] Figure 5 A schematic diagram of a heavy encryption device provided in an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, including:
[0164] The splitting unit 41 is used to split the user private key into a first private key and a second private key, and send the first private key to the user terminal and store the second private key in the cloud server;
[0165] A verification unit 42, used to verify whether the deregistration process for the illegal user has been executed, and after determining that the deregistration process for the illegal user has been executed, generate a proxy re-key, and store the proxy re-key in the cloud server;
[0166] a re-encryption unit 43, configured to, in response to the ciphertext reading instruction sent by the client, re-encrypt the encrypted ciphertext stored in the cloud server based on the proxy re-key, and update the second private key;
[0167] The sending unit 44 is used to send the updated second private key from the cloud server to the user terminal, receive the user update key sent by the user terminal, and after the user update key is verified, send the re-encrypted encrypted ciphertext from the cloud server to the user terminal.
[0168] The present disclosure provides a re-encryption device, which divides a user private key into a first private key and a second private key, and sends the first private key to a user terminal and stores the second private key in a cloud server; verifies whether the deregistration process for an illegal user has been executed, and after determining that the deregistration process for the illegal user has been executed, generates a proxy re-key, and stores the proxy re-key in the cloud server; in response to a ciphertext read instruction sent by the user terminal, re-encrypts the encrypted ciphertext stored in the cloud server based on the proxy re-key, and updates the second private key; sends the updated second private key from the cloud server to the user terminal, receives the user update key sent by the user terminal, and after the user update key is verified, sends the re-encrypted encrypted ciphertext from the cloud server to the user terminal. Compared with the related art, the present invention greatly enhances the security of the private key by dividing the user's private key into a first private key and a second private key, which are held by the user end and the cloud server respectively; the second private key is updated based on the proxy re-key, thereby realizing the update of the user's private key, and re-encrypting the encrypted ciphertext based on the proxy re-key; whenever an illegal user logs out, a new proxy re-key is generated, and there is no need to immediately re-encrypt the encrypted ciphertext and update the user's private key, and the encrypted ciphertext only needs to be re-encrypted and the user's private key needs to be updated when there is a need for the user end to read the encrypted ciphertext. In this way, the user's access rights can be efficiently revoked, while unnecessary key update operations are reduced, thereby reducing the system's computing and communication overhead.
[0169] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the device also includes:
[0170] The first generating unit 45 is used to obtain security parameters before splitting the user private key into the first private key and the second private key, and generate an encryption public key and a master key based on the security parameters, wherein the encryption public key is used to encrypt the data to be encrypted to generate the encrypted ciphertext;
[0171] The second generating unit 46 is used to obtain attribute information of each user, generate a user attribute set, and generate the user private key based on the user attribute set and the master key.
[0172] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the cloud server includes: a cloud storage server and a proxy server;
[0173] The inspection unit 42 comprises:
[0174] A generation module 421 is used to call a preset algorithm and select a random number to generate the proxy re-key;
[0175] The sending module 422 is used to send the proxy re-key to the cloud storage server and the proxy server.
[0176] Furthermore, in a possible implementation of this embodiment, Figure 5 As shown, the device also includes:
[0177] The third generating unit 47 is used to send the proxy re-key generated each time to the cloud storage server for storage and generate a first key table before the re-encryption unit 43 re-encrypts the encrypted ciphertext stored in the cloud server and updates the second private key;
[0178] The fourth generating unit 48 is used to send the proxy re-key generated each time to the proxy server for storage, and generate a second key table.
[0179] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the re-encryption unit 43 includes:
[0180] The acquisition module 431 is used to acquire the proxy re-key in the first key table, and update and generate the second key component based on the proxy re-key in the first key table and the first key component corresponding to the encrypted ciphertext;
[0181] a re-encryption module 432, configured to re-encrypt the encrypted ciphertext stored in the cloud storage server using the second key component;
[0182] The updating module 433 is configured to update the second private key stored in the proxy server based on the proxy re-key in the second key table.
[0183] Figure 7 A schematic diagram of a decryption device provided by an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, including:
[0184] A receiving unit 51, configured to receive a first private key sent by a cloud encryption system;
[0185] An acquisition unit 52 is used to send a ciphertext reading instruction to the cloud encryption system to obtain the encrypted ciphertext and the second private key sent by the cloud encryption system;
[0186] A merging unit 53, configured to merge the first private key and the second private key sent by the proxy server in the cloud encryption system to obtain a user private key;
[0187] The decryption unit 54 is used to decrypt the encrypted ciphertext based on the user private key to obtain the encrypted data.
[0188] Furthermore, in a possible implementation of this embodiment, Figure 7 As shown, the decryption unit 54 includes:
[0189] A judgment module 541 is used to judge whether the user attribute information can match the preset access structure tree in the encrypted ciphertext based on the user attribute information in the user private key;
[0190] The decryption module 542 is used to call a preset decryption algorithm and use the user private key to decrypt the encrypted ciphertext when the user attribute information can be matched with the preset access structure tree.
[0191] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.
[0192] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0193] Figure 8A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0194] like Figure 8 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 to a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I / O (Input / Output) interface 605 is also connected to the bus 604.
[0195] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0196] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as re-encryption and decryption methods. For example, in some embodiments, the re-encryption and decryption methods may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the aforementioned re-encryption and decryption methods in any other appropriate manner (eg, by means of firmware).
[0197] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0198] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0199] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or a flash memory, an optical fiber, a CD-ROM (Compact Dis sc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0200] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0201] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.
[0202] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0203] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0204] The various numerical numbers such as first and second involved in the present disclosure are only for the convenience of description and are not used to limit the scope of the embodiments of the present disclosure, but also indicate the order of precedence.
[0205] At least one in the present disclosure may also be described as one or more, and a plurality may be two, three, four or more, which is not limited in the present disclosure. In the embodiments of the present disclosure, for a technical feature, the technical features in the technical feature are distinguished by "first", "second", "third", "A", "B", "C" and "D", etc., and there is no order of precedence or size between the technical features described by the "first", "second", "third", "A", "B", "C" and "D".
[0206] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0207] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A re-encryption method, characterized in that: The method is applied to a cloud encryption system, the cloud encryption system includes a cloud server, and the method includes: Split the user's private key into a first private key and a second private key, send the first private key to the user terminal, and store the second private key in the cloud server; Checking whether the deregistration process for the illegal user has been executed, after determining that the deregistration process for the illegal user has been executed, generating a proxy re-key, and storing the proxy re-key in the cloud server; In response to the ciphertext reading instruction sent by the client, re-encrypt the encrypted ciphertext stored in the cloud server based on the proxy re-key, and update the second private key; The updated second private key is sent from the cloud server to the user terminal, the user update key sent by the user terminal is received, and after the user update key is verified, the re-encrypted encrypted ciphertext is sent from the cloud server to the user terminal.
2. The method according to claim 1, characterized in that: Before dividing the user private key into the first private key and the second private key, the method further includes: Acquire security parameters, and generate an encryption public key and a master key based on the security parameters, wherein the encryption public key is used to encrypt the data to be encrypted to generate the encrypted ciphertext; Acquire attribute information of each user, generate a user attribute set, and generate the user private key based on the user attribute set and the master key.
3. The method according to claim 1, characterized in that The cloud server includes: a cloud storage server and a proxy server; The checking whether the deregistration process has been performed on the illegal user, after determining that the deregistration process has been performed on the illegal user, generating a proxy re-key, and storing the proxy re-key in the cloud server, comprises: Calling a preset algorithm and selecting a random number to generate the proxy re-key; The proxy re-key is sent to the cloud storage server and the proxy server.
4. The method according to claim 3, characterized in that In response to the ciphertext reading instruction sent by the client, the method further includes: re-encrypting the encrypted ciphertext stored in the cloud server based on the proxy re-key and updating the second private key. Sending the proxy re-key generated each time to the cloud storage server for storage, and generating a first key table; The proxy re-key generated each time is sent to the proxy server for storage, and a second key table is generated.
5. The method according to claim 3, characterized in that: The step of re-encrypting the encrypted ciphertext stored in the cloud server based on the proxy re-key in response to the ciphertext reading instruction sent by the client, and updating the second private key includes: Obtaining a proxy re-key in the first key table, and updating and generating a second key component based on the proxy re-key in the first key table and the first key component corresponding to the encrypted ciphertext; Re-encrypting the encrypted ciphertext stored in the cloud storage server using the second key component; Based on the proxy re-key in the second key table, the second private key stored in the proxy server is updated.
6. A decryption method, characterized in that: The method is applied to a user terminal, and the method comprises: Receiving a first private key sent by the cloud encryption system; Sending a ciphertext reading instruction to the cloud encryption system to obtain the encrypted ciphertext and the second private key sent by the cloud encryption system; The first private key and the second private key sent by the proxy server in the cloud encryption system are combined to obtain a user private key; Based on the user private key, the encrypted ciphertext is decrypted to obtain the encrypted data.
7. The method according to claim 6, characterized in that The decrypting the encrypted ciphertext based on the user private key includes: Based on the user attribute information in the user private key, determining whether the user attribute information can match the preset access structure tree in the encrypted ciphertext; In the case that the user attribute information can be matched with the preset access structure tree, a preset decryption algorithm is called to decrypt the encrypted ciphertext using the user private key.
8. A re-encryption device, characterized in that: The device comprises: A splitting unit, used to split the user private key into a first private key and a second private key, and send the first private key to the user terminal and store the second private key to the cloud server; A verification unit, configured to verify whether the deregistration process for the illegal user has been executed, generate a proxy re-key after determining that the deregistration process for the illegal user has been executed, and store the proxy re-key in the cloud server; a re-encryption unit, configured to, in response to a ciphertext reading instruction sent by the client, re-encrypt the encrypted ciphertext stored in the cloud server based on the proxy re-key, and update the second private key; A sending unit is used to send the updated second private key from the cloud server to the user terminal, receive the user update key sent by the user terminal, and after the user update key is verified, send the re-encrypted encrypted ciphertext from the cloud server to the user terminal.
9. A decryption device, characterized in that: The device comprises: A receiving unit, configured to receive a first private key sent by a cloud encryption system; An acquisition unit, used to send a ciphertext reading instruction to the cloud encryption system to obtain the encrypted ciphertext and the second private key sent by the cloud encryption system; a merging unit, configured to merge the first private key and the second private key sent by the proxy server in the cloud encryption system to obtain a user private key; The decryption unit is used to decrypt the encrypted ciphertext based on the user private key to obtain the encrypted data.
10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.
12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
