Multi-mechanism attribute-based encryption method and device for resisting internal fraud, equipment and medium
By receiving and verifying authentication information and key request transactions in multi-agency attribute-based encryption technology, constructing and extracting semi-finished keys, and sending final attribute keys in the chain state, it solves the problem that existing technologies cannot prevent data users and The problem of collusion among attribute authorization agencies realizes effective defense against internal fraud.
Patent Information
- Application Number
- CN202410766790.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
AI Technical Summary
Existing multi-agency attribute-based encryption technology cannot prevent collusion between data users and attribute authorizing agencies, and cannot resist internal fraud attacks.
By receiving the authentication information and key request transaction sent by the data user, constructing and extracting the semi-finished key after verification by the attribute authority and cloud server, and adding it in the chain state to send the final attribute key, ensuring that users and institutions cannot Obtain false property promises to prevent unauthorized access.
It effectively prevents internal fraud attacks, ensures the security of data and the legality of access, and prevents malicious users from obtaining the final attribute key in the chain state.
Smart Images

Figure CN118740439A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a multi-organization attribute-based encryption method, device, equipment and medium to resist internal fraud. Background Art
[0002] Multi-Authority Ciphertext-PolicyAttribute-Based Encryption (MACP-ABE) allows the encrypting party to encrypt plaintext data using an access policy consisting of a set of attributes from multiple attribute authorities. When the decrypting party's attribute set satisfies the access policy, the ciphertext can be decrypted.
[0003] In a distributed multi-institution environment, multiple data users can collude to achieve unauthorized access using attribute keys from different attribute authorization agencies. In order to prevent user collusion, the multi-institution attribute-based encryption scheme needs to set a global identifier (Global Identifier, GID) for each data user to bind the attribute keys of the data user from different attribute authorization agencies.
[0004] Existing solutions use anonymous credential systems to hide users' global identities and attributes to prevent attribute authorization agencies from colluding to obtain user privacy information. However, existing solutions can only prevent collusion between data users and attribute authorization agencies, but cannot prevent collusion between data users and attribute authorization agencies, that is, they cannot resist internal fraud attacks. Summary of the invention
[0005] In order to solve the above technical problems, the present disclosure provides a multi-organization attribute-based encryption method, device, equipment and medium that are resistant to internal fraud.
[0006] In a first aspect, the present disclosure provides a multi-institution attribute-based encryption method for resisting internal fraud, comprising:
[0007] Receive authentication information and key request transactions sent by data users;
[0008] In the case where the identity authentication information and the key request transaction are verified to be valid by the attribute authority, constructing a key response transaction by the attribute authority;
[0009] When the key response transaction and the key request transaction are verified to be valid by the cloud server, extracting the semi-finished key from the key response transaction by the cloud server;
[0010] The cloud server adds the semi-finished key to the chain state, and sends the final attribute key to the data user.
[0011] In a second aspect, the present disclosure provides a multi-organization attribute-based encryption device for resisting internal fraud, comprising:
[0012] A data receiving module, used to receive identity authentication information and key request transactions sent by data users;
[0013] A key construction module, configured to construct a key response transaction through the attribute authorization mechanism when the identity authentication information and the key request transaction are verified to be valid through the attribute authorization mechanism;
[0014] A key extraction module, configured to extract a semi-finished key from the key response transaction through the cloud server when the key response transaction and the key request transaction are verified to be valid through the cloud server;
[0015] The key sending module is used to add the semi-finished key to the chain state through the cloud server, and send the final attribute key to the data user.
[0016] In a third aspect, the present disclosure provides a multi-organization attribute-based encryption device for resisting internal fraud, comprising:
[0017] processor;
[0018] A memory for storing executable instructions;
[0019] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the multi-institution attribute-based encryption method against internal fraud of the first aspect.
[0020] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the multi-institution attribute-based encryption method against internal fraud of the first aspect.
[0021] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0022] The multi-institution attribute-based encryption method, apparatus, device and medium for resisting internal fraud of the embodiments of the present disclosure can receive identity authentication information and key request transactions sent by data users, and then, when the identity authentication information and the key request transaction are verified to be valid by the attribute authorization agency, construct a key response transaction by the attribute authorization agency, and then, when the key response transaction and the key request transaction are verified to be valid by the cloud server, extract the semi-finished key from the key response transaction by the cloud server, and finally add the on-chain status to the semi-finished key by the cloud server, and send the obtained final attribute key to the data user, thereby neither the user nor the attribute authorization agency can use false attribute commitments to pass verification, malicious internal users cannot obtain the final attribute key with an on-chain status, and cannot implement unauthorized access, thereby effectively preventing internal fraud attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0024] Figure 1 A flowchart of a multi-institution attribute-based encryption method for resisting internal fraud provided by an embodiment of the present disclosure;
[0025] Figure 2 A flowchart of another multi-organization attribute-based encryption method for resisting internal fraud provided by an embodiment of the present disclosure;
[0026] Figure 3 A schematic diagram of the structure of a multi-organization attribute-based encryption device for resisting internal fraud provided by an embodiment of the present disclosure;
[0027] Figure 4 A schematic diagram of the structure of a multi-organization attribute-based encryption device for resisting internal fraud provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] In order to solve the above problems, the present disclosure provides a multi-organization attribute-based encryption method, device, equipment and medium to resist internal fraud. Figure 1-2 The multi-institution attribute-based encryption method for resisting internal fraud provided by the embodiment of the present disclosure is described in detail.
[0035] Figure 1 A flow chart of a multi-institution attribute-based encryption method for resisting internal fraud provided by an embodiment of the present disclosure is shown.
[0036] In the disclosed embodiment, the multi-organization attribute-based encryption method against internal fraud may be executed by an electronic device, wherein the electronic device may include but is not limited to devices such as computer devices, cloud servers or cloud server clusters.
[0037] like Figure 1 As shown, the multi-institution attribute-based encryption method to resist internal fraud may include the following steps.
[0038] S110, receiving identity authentication information and key request transaction sent by the data user.
[0039] In an embodiment of the present disclosure, the electronic device may receive identity authentication information and a key request transaction sent by a data user.
[0040] Optionally, the data user (DU) may be a user who needs to use the data.
[0041] Optionally, the identity verification information may be information used to verify the identity of the user. For example, the identity verification information may include a global identity identifier GID and attribute information.
[0042] Optionally, the key request transaction may be a transaction for requesting to obtain a key.
[0043] Specifically, when a data user accesses encrypted data, he or she needs to first send identity authentication information and a key request transaction to the electronic device, and the electronic device can receive the identity authentication information and the key request transaction sent by the data user.
[0044] S120: When the identity authentication information and the key request transaction are verified to be valid by the attribute authority, a key response transaction is constructed by the attribute authority.
[0045] In the embodiment of the present disclosure, when the identity authentication information and the key request transaction are verified to be valid by the attribute authority, the electronic device can construct a key response transaction through the attribute authority.
[0046] Optionally, an attribute authority (AA) can authorize attribute keys to data users.
[0047] Optionally, the key response transaction may be a transaction for performing key authorization in response to the key request transaction.
[0048] Specifically, after receiving the identity authentication information and key request transaction sent by the data user, if the identity authentication information and the key request transaction are verified to be valid by an attribute authority (AA), the electronic device can construct a key response transaction through the attribute authority.
[0049] S130. When the key response transaction and the key request transaction are verified to be valid by the cloud server, extract the semi-finished key from the key response transaction by the cloud server.
[0050] In an embodiment of the present disclosure, when the key response transaction and the key request transaction are verified to be valid by the cloud server, the electronic device can extract the semi-finished key from the key response transaction through the cloud server.
[0051] Optionally, a cloud server (CS) may be used to store ciphertext data.
[0052] Alternatively, the semi-finished key may be a key that has not completely reached a final state.
[0053] Specifically, when the electronic device verifies through the cloud server that the key response transaction and the key request transaction are valid, the semi-finished key can be extracted from the key response transaction through the cloud server.
[0054] S140. Add the semi-finished key to the chain state through the cloud server, and send the final attribute key to the data user.
[0055] In the disclosed embodiment, the electronic device can add the semi-finished key to the chain state through the cloud server, and send the final attribute key to the data user.
[0056] Optionally, the final attribute key may be a key capable of decrypting ciphertext.
[0057] Specifically, after obtaining the semi-finished key through the cloud server, the electronic device can add a chain state to the semi-finished key and send the obtained final attribute key to the data user.
[0058] Therefore, in the disclosed embodiment, it is possible to receive the identity authentication information and the key request transaction sent by the data user, and then, when the identity authentication information and the key request transaction are verified to be valid by the attribute authorization agency, the key response transaction is constructed by the attribute authorization agency, and then, when the key response transaction and the key request transaction are verified to be valid by the cloud server, the semi-finished key is extracted from the key response transaction by the cloud server, and finally, the cloud server adds the on-chain status to the semi-finished key, and sends the final attribute key to the data user, thereby neither the user nor the attribute authorization agency can use false attribute commitments to pass the verification, and malicious internal users cannot obtain the final attribute key with the on-chain status and cannot implement unauthorized access, thereby effectively preventing internal fraud attacks.
[0059] Optionally, before S110, the multi-institution attribute-based encryption method for resisting internal fraud may also include: receiving ciphertext data sent by the data owner through the cloud server, and saving the ciphertext data, wherein the ciphertext data is obtained by the data owner encrypting the plaintext data by executing an encryption algorithm.
[0060] In the disclosed embodiment, the electronic device may receive the ciphertext data sent by the data owner through the cloud server and save the ciphertext data.
[0061] Optionally, the data owner (DO) may be the user who uploads the encrypted data.
[0062] Optionally, the ciphertext data may be encrypted data, wherein the ciphertext data may be obtained by the data owner by encrypting the plaintext data through executing an encryption algorithm.
[0063] Optionally, the plaintext data may be unencrypted data.
[0064] For example, the data owner DO executes the Encryption algorithm to complete data encryption. The data owner DO first constructs a random vector For the shared secret S i , then calculate For each attribute in the access structure, DO compute Among them, M i,k is the LSSS matrix M i Next, DO randomly selects And calculate
[0065] Finally, the ciphertext DO will be uploaded to the cloud server CS.
[0066] Optionally, before S110, the multi-institution attribute-based encryption method for resisting internal fraud may also include: executing a system global initialization algorithm through the cloud server to generate system public parameters and on-chain public keys and on-chain private keys of each of the attribute authorization agencies; and recording the system public parameters and the on-chain public keys in the blockchain ledger.
[0067] In the disclosed embodiment, the electronic device can execute the system global initialization algorithm through the cloud server to generate system public parameters and the on-chain public key and on-chain private key of each attribute authorization agency, and record the system public parameters and the on-chain public key in the blockchain account book.
[0068] Optionally, the system global initialization algorithm may be used to enable the cloud server to perform system global initialization.
[0069] Optionally, the system common parameters may be parameters used in common in the system.
[0070] For example, the cloud server CS executes the Global Setup algorithm to complete the system initialization. Assume that the system contains N attribute authority {AA1, AA2, ..., AA N}, each attribute authority AA i∈[1,N] Responsible for a set of attributes At the same time, assuming that each user completes user initialization and has a legal GIDu, the cloud server CS first generates the public parameter through the security parameter k in, is a cyclic group of order p, g and h are generators of the cyclic group, and e is a bilinear map: is a finite field of order p, A collision-resistant hash function.
[0071] For property authority AA i∈[1,N] , CS randomly selected And calculate Let the public and private keys on the chain be OMK i =Δ i , CS will PP, {OPK1,...,OPK N}Recorded in the blockchain ledger.
[0072] Optionally, before S110, the multi-institution attribute-based encryption method for resisting internal fraud may also include: executing an attribute authorization agency initialization algorithm through the attribute authorization agency to generate a public key and a master key corresponding to the attribute authorization agency; and recording the public key in a blockchain ledger.
[0073] In the disclosed embodiment, the electronic device may execute the attribute authorization agency initialization algorithm through the attribute authorization agency, generate the public key and master key corresponding to the attribute authorization agency, and record the public key in the blockchain account book.
[0074] Optionally, the attribute authority initialization algorithm may be an algorithm for initializing the attribute authority.
[0075] For example, the attribute authority AA i∈[1,N] Execute the AA Setup algorithm to input the completed attribute authority initialization. i First randomly select And calculate For each attribute a i,j ∈A i , i∈[1,N], j∈[1,q i ], AA i Random Selection And calculate
[0076] Finally, AA i The public key Master Key AA i Publish the public key PK in the blockchain network BN i First, randomly select And calculate Then, AA iCreate a file containing The blockchain transaction is broadcasted in BN. After the consensus node collects the transaction, it verifies PK according to formula (1). i Whether it is in chain status:
[0077]
[0078] Among them, the symbol The formula can only be verified if the values on both sides are equal. Otherwise, it will fail. If formula (1) is verified, the consensus node will write the transaction into the blockchain ledger. Otherwise, the public key is invalid and cannot be written into the ledger.
[0079] Optionally, after S110, the multi-institution attribute-based encryption method for resisting internal fraud may also include: publishing the key request transaction on the blockchain network; checking the output of the smart contract call transaction in the key request transaction through the consensus node of the blockchain network; and if the output verification is successful, writing the key request transaction to the blockchain ledger.
[0080] In an embodiment of the present disclosure, the electronic device may publish the key request transaction on a blockchain network.
[0081] Furthermore, the electronic device may check the output of the smart contract call transaction in the key request transaction through the consensus node of the blockchain network.
[0082] Finally, if the output verification is successful, the electronic device can write the key request transaction into the blockchain ledger.
[0083] Among them, in the attribute key generation stage, the data user DU, the attribute authority AA and the cloud server CS execute the anonymous key distribution protocol through the blockchain network BN to obtain the final attribute key.
[0084] The anonymous key distribution protocol consists of two phases, namely the "AA-DU" phase and the "CS-DU" phase. In order to avoid privacy leakage and collusion attacks caused by GID exposure, DU uses the pseudonym Nym to interact with the other two entities. At the same time, Nym is also used to calculate the final attribute key. The pseudonym Nym generation method is implemented through the smart contract call transaction of the GID verification smart contract and the smart contract call transaction of the attribute verification smart contract.
[0085] For example, in the "AA-DU" stage, the data user DU first needs to submit the data to the attribute authority AA. iProve its legal identity, that is, it has a legal global identity identifier GID and attribute information. The verification method is the smart contract call transaction of the GID verification smart contract and the smart contract call transaction of the attribute verification smart contract. Assume that the smart contract call transactions used by DU to verify GID and attribute information are T V1 and T V2 , that is, T V1 Smart contract call transaction for GID to verify the smart contract, T V2 The smart contract calls the transaction for the attribute verification smart contract. When the transaction takes effect, DU immediately constructs the attribute key request R and first randomly selects To construct the commitment to ρ1, μ1, μ2, that is For each attribute a in the attribute set i,j ∈(S∩A i ), DU calculation Among them, σ and σ′ are obtained from the "attribute verification" in identity authentication. DU sets attribute key request:
[0086]
[0087] Next, DU calculates Let z = {z1, z2, z3, z4, z5, z6}. Then, DU creates a key request transaction Among them, TID v1 、TID v2 They are smart contract call transaction T v1 , T v2 DU publishes a key request transaction T in the blockchain network BN R , the consensus node collects T R Then check the smart contract call transaction TID v1 、TID v2 If the output is ⊥, then reject T R Otherwise, it will be written into the blockchain ledger.
[0088] Optionally, after S120, the multi-institution attribute-based encryption method for resisting internal fraud may further include: publishing the key response transaction on the blockchain network; verifying the key response transaction through the consensus node of the blockchain network to obtain a corresponding verification result; and when the verification result is that the verification is passed, writing the key response transaction into the blockchain ledger.
[0089] In an embodiment of the present disclosure, the electronic device may publish the key response transaction on a blockchain network.
[0090] Furthermore, the electronic device can verify the key response transaction through the consensus node of the blockchain network to obtain a corresponding verification result.
[0091] Finally, when the verification result is passed, the electronic device can write the key response transaction into the blockchain account book.
[0092] For example, before responding to a DU request, AA i First, the legitimacy of the data user DU's identity needs to be verified. The verification method is the smart contract call transaction of the GID verification smart contract and the smart contract call transaction of the attribute verification smart contract. v1 、TID v2 Invalid or output is ⊥, then the key requests transaction T R cannot be recorded on the blockchain, therefore, AA i By checking T R If the transaction does not exist, AA i Otherwise, AA i From T v2 Get make And verify it according to formula (2).
[0093]
[0094]
[0095] Among them, the symbol It is used to indicate that the values on both sides must be equal for the formula to pass the verification. Otherwise, it will fail. If any of the equations in formula (2) is not true, AA i Exit the protocol, otherwise construct a semi-finished key for DU.
[0096] First, AA i Random Selection And calculate η=ρ1ρ2(β i +u) For each attribute a i,j ∈(S∩A i ),calculate Where ρ1(β i +u) can be obtained through a general two-party computation protocol or Paillier homomorphic encryption. Then, AA i Random Selection And calculate For each attribute a i,j ∈(S∩A i ),calculate AAi Set the attribute key response to DU:
[0097]
[0098] AA i calculate Let z = {z1, z2, z3, z4, z5, z6,}. Then, AA i Create Key Response Transaction Where TID R Request transaction T for key R The ID of the
[0099] Then, AA i Publish key response transaction T' in blockchain network BN R After collecting the transaction, the consensus node requests transaction T from the key R Extract Nym, P1, Q and Verify according to formula (3):
[0100]
[0101] Among them, the symbol The formula can only be verified if the values on both sides are equal. Otherwise, it will fail. If any of the equations in formula (3) does not hold, the consensus node will reject the key response transaction T′. R Otherwise, it will be written into the blockchain ledger, and DU will get the semi-finished key.
[0102] Furthermore, in the "CS-DU" stage, the cloud server CS will The DU only needs to submit a key response transaction T′ R ID TID R′ Just give CS, because the key requests transaction T R and key response transaction T′ R In the blockchain ledger, they appear in pairs, CS from T′ R T can be easily found in R , and verify the validity of the two transactions.
[0103] CS responds to transaction T′ from key R Extract And calculate This information is then sent to DU.
[0104] After receiving the above information, the data user DU calculates:
[0105]
[0106] Finally, the attribute key for:
[0107]
[0108] Optionally, after S140, the multi-institution attribute-based encryption method for resisting internal fraud may also include: in response to the ciphertext download request of the data user, sending the ciphertext data corresponding to the ciphertext download request to the data user through the cloud server, so that the data user decrypts the ciphertext data through a decryption algorithm.
[0109] In an embodiment of the present disclosure, the electronic device may respond to the data user's ciphertext download request by sending the ciphertext data corresponding to the ciphertext download request to the data user through the cloud server, so that the data user may decrypt the ciphertext data using a decryption algorithm.
[0110] For example, the data user DU executes the Decryption algorithm to achieve decryption. Assuming that the attribute set of DU satisfies all access structures of the ciphertext, then for each access structure in the ciphertext DU first finds a set of constants satisfy in, To access the structure The authorization set is defined as Then, DU performs decryption according to formula (4):
[0111]
[0112] Figure 2 A flow chart of another multi-institution attribute-based encryption method for resisting internal fraud provided by an embodiment of the present disclosure is shown.
[0113] like Figure 2As shown, the data owner can encrypt the plaintext data by executing the encryption algorithm to obtain the ciphertext data, and send the ciphertext data to the cloud server, which saves the ciphertext data. When the data user wants to obtain, he first sends the identity authentication information and the key request transaction to the attribute authorization agency, and publishes the key request transaction on the blockchain network, checks the output of the smart contract call transaction in the key request transaction through the consensus node of the blockchain network, and then writes the key request transaction to the blockchain account book if the output verification is successful. When the identity authentication information and the key request transaction are verified to be valid by the attribute authorization agency, the key response transaction is constructed by the attribute authorization agency, and the key request transaction is published on the blockchain network, and the output of the smart contract call transaction in the key request transaction is checked through the consensus node of the blockchain network, and finally, when the output verification is successful, the key request transaction is written to the blockchain account book. When the key response transaction and the key request transaction are verified to be valid by the cloud server, the semi-finished key is extracted from the key response transaction by the cloud server, and the semi-finished key is added to the chain state by the cloud server, and the final attribute key is sent to the data user. The data user sends a ciphertext download request to the cloud server, and decrypts the ciphertext data through a decryption algorithm to obtain the plaintext data.
[0114] Figure 3 A schematic diagram of the structure of a multi-organization attribute-based encryption device for resisting internal fraud provided by an embodiment of the present disclosure is shown.
[0115] like Figure 3 As shown, the multi-institution attribute-based encryption device 300 that resists internal fraud may include a data receiving module 310 , a key construction module 320 , a key extraction module 330 and a key sending module 340 .
[0116] The data receiving module 310 can be used to receive identity authentication information and key request transactions sent by data users.
[0117] The key construction module 320 may be configured to construct a key response transaction through the attribute authority when the identity authentication information and the key request transaction are verified to be valid through the attribute authority.
[0118] The key extraction module 330 can be used to extract the semi-finished key from the key response transaction through the cloud server when the key response transaction and the key request transaction are verified to be valid through the cloud server.
[0119] The key sending module 340 can be used to add the semi-finished key to the chain state through the cloud server, and send the final attribute key to the data user.
[0120] Therefore, in the disclosed embodiment, it is possible to receive the identity authentication information and the key request transaction sent by the data user, and then, when the identity authentication information and the key request transaction are verified to be valid by the attribute authorization agency, the key response transaction is constructed by the attribute authorization agency, and then, when the key response transaction and the key request transaction are verified to be valid by the cloud server, the semi-finished key is extracted from the key response transaction by the cloud server, and finally, the cloud server adds the on-chain status to the semi-finished key, and sends the final attribute key to the data user, thereby neither the user nor the attribute authorization agency can use false attribute commitments to pass the verification, and malicious internal users cannot obtain the final attribute key with the on-chain status and cannot implement unauthorized access, thereby effectively preventing internal fraud attacks.
[0121] In some embodiments of the present disclosure, the multi-institution attribute-based encryption device 300 for resisting internal fraud may also include a data storage module.
[0122] The data storage module can be used to receive the ciphertext data sent by the data owner through the cloud server and save the ciphertext data before receiving the identity authentication information and key request transaction sent by the data user. The ciphertext data is obtained by the data owner by encrypting the plaintext data through executing an encryption algorithm.
[0123] In some embodiments of the present disclosure, the multi-institution attribute-based encryption device 300 for resisting internal fraud may also include a first generation module and a first recording module.
[0124] The first generation module can be used to execute a system global initialization algorithm through the cloud server to generate system public parameters and on-chain public keys and on-chain private keys of each of the attribute authorization agencies before receiving the identity authentication information and key request transactions sent by the data user.
[0125] The first recording module can be used to record the system public parameters and the on-chain public key in a blockchain account book.
[0126] In some embodiments of the present disclosure, the multi-institution attribute-based encryption device 300 that resists internal fraud may also include a second generation module and a second recording module.
[0127] The second generation module can be used to execute an attribute authorization agency initialization algorithm through the attribute authorization agency to generate a public key and a master key corresponding to the attribute authorization agency before the identity authentication information and key request transaction sent by the receiving data user.
[0128] The second recording module can be used to record the public key in the blockchain account book.
[0129] In some embodiments of the present disclosure, the multi-institution attribute-based encryption device 300 for resisting internal fraud may also include a first publishing module, a first verification module and a first writing module.
[0130] The first publishing module can be used to publish the key request transaction on the blockchain network after receiving the identity authentication information and the key request transaction sent by the data user.
[0131] The first verification module can be used to check the output of the smart contract call transaction in the key request transaction through the consensus node of the blockchain network.
[0132] The first writing module can be used to write the key request transaction into the blockchain ledger when the output verification is successful.
[0133] In some embodiments of the present disclosure, the multi-institution attribute-based encryption device 300 that resists internal fraud may also include a second publishing module, a second verification module and a second writing module.
[0134] The second publishing module can be used to publish the key response transaction on the blockchain network after the key response transaction is constructed by the attribute authority.
[0135] The second verification module can be used to verify the key response transaction through the consensus node of the blockchain network to obtain a corresponding verification result.
[0136] The second writing module can be used to write the key response transaction into the blockchain account book when the verification result is verification passed.
[0137] In some embodiments of the present disclosure, the multi-institution attribute-based encryption device 300 for resisting internal fraud may also include a data sending module.
[0138] The data sending module can be used to send the ciphertext data corresponding to the ciphertext download request to the data user through the cloud server in response to the data user's ciphertext download request after the final attribute key is sent to the data user, so that the data user can decrypt the ciphertext data through a decryption algorithm.
[0139] It should be noted that Figure 3 The multi-organization attribute-based encryption device 300 shown to resist internal fraud can execute Figure 1-2 The various steps in the method embodiment shown in the figure are implemented Figure 1-2 The various processes and effects in the method embodiment shown are not described in detail here.
[0140] Figure 4 A schematic diagram of the structure of a multi-institution attribute-based encryption device for resisting internal fraud provided by an embodiment of the present disclosure is shown.
[0141] In some embodiments of the present disclosure, Figure 4 The multi-organization attribute-based encryption device for resisting internal fraud shown can be an electronic device. Specifically, the electronic device can include but is not limited to devices such as computer devices, cloud servers or cloud server clusters.
[0142] like Figure 4 As shown, the multi-institution attribute-based encryption device for resisting internal fraud may include a processor 401 and a memory 402 storing computer program instructions.
[0143] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0144] The memory 402 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 402 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 402 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0145] The processor 401 reads and executes the computer program instructions stored in the memory 402 to perform the steps of the multi-institution attribute-based encryption method for resisting internal fraud provided in the embodiment of the present disclosure.
[0146] In one example, the multi-organization attribute-based encryption device against internal fraud may further include a transceiver 403 and a bus 404. Figure 4 As shown, the processor 401, the memory 402 and the transceiver 403 are connected via a bus 404 and communicate with each other.
[0147] The bus 404 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a Memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 404 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0148] The embodiments of the present disclosure also provide a computer-readable storage medium, which can store a computer program. When the computer program is executed by a processor, the processor implements the multi-institution attribute-based encryption method against internal fraud provided by the embodiments of the present disclosure.
[0149] The above-mentioned storage medium may, for example, include a memory 402 of computer program instructions, and the above-mentioned instructions may be executed by the processor 401 of the multi-organization attribute-based encryption device for resisting internal fraud to complete the multi-organization attribute-based encryption method for resisting internal fraud provided by the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0150] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0151] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A multi-institution attribute-based encryption method to resist internal fraud, It is characterized in that include: Receive authentication information and key request transactions sent by data users; In the case where the identity authentication information and the key request transaction are verified to be valid by the attribute authority, constructing a key response transaction by the attribute authority; When the key response transaction and the key request transaction are verified to be valid by the cloud server, extracting the semi-finished key from the key response transaction by the cloud server; The cloud server adds the semi-finished key to the chain state, and sends the final attribute key to the data user.
2. The method according to claim 1, It is characterized in that Before receiving the identity authentication information and key transaction request sent by the data user, the method further includes: The cloud server receives the ciphertext data sent by the data owner and saves the ciphertext data, wherein the ciphertext data is obtained by the data owner by encrypting the plaintext data through executing an encryption algorithm.
3. The method according to claim 1, It is characterized in that Before receiving the identity authentication information and key transaction request sent by the data user, the method further includes: Executing a system global initialization algorithm through the cloud server to generate system public parameters and on-chain public keys and on-chain private keys of each of the attribute authorization agencies; The system public parameters and the on-chain public key are recorded in the blockchain account book.
4. The method according to claim 1, It is characterized in that Before receiving the identity authentication information and key transaction request sent by the data user, the method further includes: Executing an attribute authorization mechanism initialization algorithm through the attribute authorization mechanism to generate a public key and a master key corresponding to the attribute authorization mechanism; The public key is recorded in the blockchain ledger.
5. The method according to claim 1, It is characterized in that After the receiving of the identity authentication information and the key transaction request sent by the data user, the method further includes: Publishing the key request transaction on a blockchain network; Checking the output of the smart contract call transaction in the key request transaction through the consensus node of the blockchain network; In the event that the output verification is successful, the key request transaction is written to the blockchain ledger.
6. The method according to claim 1, It is characterized in that After constructing the key response transaction through the attribute authority, the method further includes: Publishing the key response transaction on the blockchain network; Verifying the key response transaction through the consensus node of the blockchain network to obtain a corresponding verification result; When the verification result is that the verification is passed, the key response transaction is written into the blockchain account book.
7. The method according to claim 1, It is characterized in that After sending the obtained final attribute key to the data user, the method further includes: In response to the ciphertext download request of the data user, the ciphertext data corresponding to the ciphertext download request is sent to the data user through the cloud server, so that the data user decrypts the ciphertext data through a decryption algorithm.
8. A multi-organization attribute-based encryption device to resist internal fraud, It is characterized in that include: A data receiving module, used to receive identity authentication information and key request transactions sent by data users; A key construction module, configured to construct a key response transaction through the attribute authorization mechanism when the identity authentication information and the key request transaction are verified to be valid through the attribute authorization mechanism; A key extraction module, configured to extract a semi-finished key from the key response transaction through the cloud server when the key response transaction and the key request transaction are verified to be valid through the cloud server; The key sending module is used to add the semi-finished key to the chain state through the cloud server, and send the final attribute key to the data user.
9. A multi-organization attribute-based encryption device to resist internal fraud, It is characterized in that include: processor; A memory for storing executable instructions; Wherein, the processor is used to read the executable instructions from the memory and execute the executable instructions to implement the multi-institution attribute-based encryption method against internal fraud described in any one of claims 1-7 above.
10. A non-volatile computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the multi-institution attribute-based encryption method against internal fraud described in any one of claims 1 to 7.
