Data processing method, system and equipment based on attribute-based encryption

By introducing a unique identity into the user's pre-decryption key and decryption private key, and constructing tracking ciphertext data to interact with the decryption black box, the problem of low black box tracking efficiency in the existing technology is solved, and the leaked password can be quickly determined. Key user identity.

CN118802379AInactive Publication Date: 2024-10-18CRYPTOZOOLOGY & CYBERSPACE SECURITY (HUANGPU) RES INST
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411281967.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing black-box traceability methods based on attribute-based encryption are inefficient in tracking the identity of users who leak decryption keys and require multiple interactions with the decryption black box.

Method used

When generating the user's pre-decryption key and decryption private key, the user's unique identity is introduced, and by constructing specific tracking ciphertext data to interact with the decryption black box, the identity of the user who leaked the key can be determined with only one interaction.

Benefits of technology

It minimizes the time complexity during black box tracking, and only needs to interact with the decryption black box once to determine the malicious user who leaked the key, improving tracking efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802379A_ABST
    Figure CN118802379A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method, system and device based on attribute-based encryption, and the method comprises the steps: generating a decryption private key and a pre-decryption key corresponding to a user according to an identity label of the user and attributes owned by the user; in response to a data access request of a user for the target ciphertext data, pre-decrypting the target ciphertext data according to a pre-decryption key of the user to obtain pre-decrypted data; and sending the pre-decrypted data to the user, so that the user decrypts the pre-decrypted data according to the decryption private key to obtain plaintext data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of encryption technology, and in particular to a data processing method, system and device based on attribute-based encryption. Background Art

[0002] With the rapid development of the cloud computing industry, more and more users (including corporate users and individual users) are using cloud storage. When using cloud storage, the data owner will store the personal data they own in the cloud server. In order to protect the security of personal data and ensure that personal data is only accessed by users authorized by the data owner, the personal data can be encrypted first and then uploaded to the cloud server for storage.

[0003] Attribute-Based Encryption (ABE) is a recently proposed encryption method that can be used to encrypt personal data. In a system that uses attribute-based encryption to encrypt personal data, authorized users can use the decryption key they obtain to access the encrypted data of the system. However, the system still has the following security risks: authorized users leak the decryption key they obtain to unauthorized users, allowing the latter to access the encrypted data without authorization.

[0004] In order to deal with the above risks, relevant technical personnel have proposed some encryption methods with black box traceability capabilities, which are used to track the identity of the user who leaked the decryption key when the authorized user leaked the decryption key to the unauthorized user, so as to take countermeasures.

[0005] However, the existing encryption method with black box traceability requires multiple interactions with the decryption black box to track the identity of the corresponding user, which is inefficient. Summary of the invention

[0006] In view of the above-mentioned shortcomings of the prior art, the present invention provides a data processing method, system and device based on attribute-based encryption to provide an encryption method with higher tracking efficiency.

[0007] The first aspect of the present application provides a data processing method based on attribute-based encryption, comprising:

[0008] Generate a decryption private key and a pre-decryption key corresponding to the user according to the user's identity identifier and the attributes possessed by the user;

[0009] In response to a data access request of the user to the target ciphertext data, pre-decrypting the target ciphertext data according to the pre-decryption key of the user to obtain pre-decrypted data;

[0010] The pre-decrypted data is sent to the user, so that the user decrypts the pre-decrypted data according to the decryption private key to obtain plaintext data.

[0011] Optionally, also include:

[0012] The target ciphertext data uploaded by the data owner is received, where the target ciphertext data is obtained by the data owner encrypting the plaintext data according to a preset access control policy, where the access control policy includes one or more attributes having access rights to the plaintext data.

[0013] Optionally, pre-decrypting the target ciphertext data according to the pre-decryption key of the user to obtain the pre-decrypted data includes:

[0014] The user's pre-decryption key and the target ciphertext data are input into an outsourced decryption server, so that the outsourced decryption server pre-decrypts the target ciphertext data according to the pre-decryption key to obtain pre-decrypted data.

[0015] Optionally, also include:

[0016] When an attribute group corresponding to any of the attributes is updated, the ciphertext data and the pre-decryption key are updated according to the updated attribute group, and the attribute group corresponding to the attribute includes a user who has the attribute.

[0017] Optionally, also include:

[0018] Check whether the attributes of the user meet the access control policy corresponding to the target ciphertext data;

[0019] In the case where the attributes of the user satisfy the access control policy corresponding to the target ciphertext data, the step of pre-decrypting the target ciphertext data according to the pre-decryption key of the user to obtain the pre-decrypted data is performed.

[0020] Optionally, also include:

[0021] When it is determined that the ciphertext data is accessed by the decryption black box, generating tracking ciphertext data;

[0022] Sending the tracking ciphertext data to the decryption black box;

[0023] The user identity information of the target user is determined according to the feedback of the decryption black box, wherein the target user is a user who leaks the pre-decryption key and the decryption private key used to construct the decryption black box.

[0024] Optionally, after determining the user identity information of the target user according to the feedback of the decryption black box, the method further includes:

[0025] Revoke every attribute possessed by the target user.

[0026] Optionally, determining that the ciphertext data is accessed by a decryption black box includes:

[0027] Determine the historical downloading user corresponding to the ciphertext data;

[0028] In a case where the attribute possessed by the historical downloading user does not satisfy the access control policy corresponding to the ciphertext data, it is determined that the ciphertext data is accessed by a decryption black box.

[0029] The second aspect of the present application provides a data processing system based on attribute-based encryption, including a storage server, an authorization server, a decryption server and a terminal device, each of the terminal devices corresponding to a user;

[0030] The storage server is used to store the encrypted ciphertext data;

[0031] The authorization server is used to generate a decryption private key and a pre-decryption key corresponding to the user according to the user's identity identifier and the attributes possessed by the user;

[0032] a decryption server, configured to respond to a data access request of the user for the target ciphertext data and pre-decrypt the target ciphertext data stored in the storage server according to the pre-decryption key of the user to obtain pre-decrypted data;

[0033] The decryption server is used to send the pre-decrypted data to the terminal device corresponding to the user, so that the user decrypts the pre-decrypted data according to the decryption private key to obtain plaintext data.

[0034] A third aspect of the present application provides an electronic device, including a memory and a processor;

[0035] The memory is used to store computer programs;

[0036] The processor is used to execute the computer program, specifically to implement the data processing method based on attribute-based encryption provided in any one of the first aspects of the present application.

[0037] The beneficial effects of this application are:

[0038] When generating a pre-decryption key and a decryption private key for each user, this scheme introduces a unique identity identifier corresponding to each user into the pre-decryption key and the decryption private key. Therefore, when black-box tracing is required, it is only necessary to construct specific tracing ciphertext data and input it into the decryption black box. The user identity information of the malicious user corresponding to the key used for decryption can be restored based on the decryption result output by the decryption black box. The malicious user can then be identified by searching in the user identity list. Therefore, when performing black-box tracing, this scheme only needs to interact with the decryption black box once to identify the malicious user who leaked the key, minimizing the time complexity of black-box tracing. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0040] Figure 1 is a flow chart of a data processing method based on attribute-based encryption provided in an embodiment of the present application;

[0041] Figure 2 It is a framework diagram of a data processing system based on attribute-based encryption provided by an embodiment of the present invention;

[0042] Figure 3 It is a schematic diagram of simulation results of the computational overhead of a data processing method based on attribute-based encryption provided by an embodiment of the present invention and other attribute-based encryption methods when performing encryption processing under different access control matrix sizes;

[0043] Figure 4 It is a schematic diagram of simulation results of decryption calculation overhead under different access control matrix sizes when a data processing method based on attribute-based encryption provided by an embodiment of the present invention has a user subscribed to an outsourced decryption service or not;

[0044] Figure 5 It is a schematic diagram of simulation results of user decryption calculation overhead under different numbers of attributes involved in decryption using a data processing method based on attribute-based encryption provided by an embodiment of the present invention and other attribute-based encryption methods;

[0045] Figure 6 It is a schematic diagram of simulation results of system update time overhead of a data processing method based on attribute-based encryption provided by an embodiment of the present invention and other attribute-based encryption methods under different numbers of re-encrypted ciphertexts;

[0046] Figure 7is a flowchart of another data processing method based on attribute-based encryption provided by an embodiment of the present application;

[0047] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] Black box traceability. Assume that one or more unauthorized non-users obtain the decryption key through abnormal channels and use this decryption key to construct a decryption black box that can decrypt data and hide the decryption key and the decryption algorithm used. In this case, if an encryption method can determine the identity of the user who leaked the key based on the data obtained by interacting with the decryption black box, then this encryption method is considered to have black box traceability.

[0050] In order to solve the problem in the prior art that encryption methods with black box traceability need to interact with the decryption black box multiple times during tracing, resulting in low tracing efficiency, an embodiment of the present application provides a data processing method based on attribute-based encryption.

[0051] See also Figure 1 , which is a flowchart of a data processing method based on attribute-based encryption provided in an embodiment of the present application. The method may include the following steps.

[0052] S101, the certificate authority performs system initialization to generate a key tuple MSK, a public key PK, a complete set of system attributes U and an attribute group set U', and sends the attribute group set U' to an outsourced decryption provider.

[0053] like Figure 2As shown, the method of this embodiment can be implemented by a certificate authority (CA, also called a central authority), an outsourcing decryption provider (ODP), a cloud server and multiple users. The central authority, the outsourcing decryption provider and the cloud server can be three different server devices, and each user can communicate with the above server devices through their own terminal devices. Users can include data owners and data users, the former being users who need to encrypt data and store it in the cloud server, and the latter being users who need to download encrypted ciphertext data from the cloud server and decrypt it to obtain the corresponding plaintext data.

[0054] There may be malicious users among data users. Malicious users refer to users who leak their own keys without authorization. Malicious users can encapsulate their own keys (including pre-decryption keys and decryption private keys) in a decryption black box and leak them to other unauthorized users (i.e. Figure 2 The buyer user shown in the figure) enables other unauthorized users to download and decrypt the ciphertext data of the cloud server without authorization and obtain the corresponding plaintext data.

[0055] The attribute set U is a set of t attributes, where t is any positive integer, that is, U={a1, a2, a3…a t}. Any attribute a i It can be an n-dimensional integer vector randomly generated by CA.

[0056] The attribute group set U' includes multiple attribute groups. The attribute groups correspond to the attributes in U one by one, that is, each attribute corresponds to a unique attribute group. Any attribute group (denoted as U ai ) corresponds to an attribute a of U i , this attribute group indicates that among all users registered with CA, those with attribute a i For example, suppose that among the users registered with CA, only user A and user B have attribute a1, then U a1 ={A, B}.

[0057] The attribute group set U' may be specifically sent to the ODP server and stored by the ODP server.

[0058] Each user registered in the CA can have at least one attribute. After generating the full set of attributes, the CA can allocate the attributes of the full set of attributes to the users registered in the CA according to certain allocation rules, user requests, relationships between users, user identity information, etc.

[0059] When any new user registers with the CA, the CA may assign several attributes to the user from the full attribute set and update the attribute group set of the ODP after the assignment.

[0060] The way to generate PK and MSK is as follows.

[0061] Randomly select two integers α and β from the integer set Zp, randomly generate an integer g as the group generator, and randomly select t integers, denoted as h1, h2, ... h t h1 to h t With attributes a1 to a t One-to-one correspondence, that is, for every integer i between 1 and t, every attribute a i Each corresponds to an integer h i .

[0062] Then generate the public key PK as follows.

[0063] PK = {g, e(g, g) α , h=g β , h1, h2, ... h t}.

[0064] That is, PK includes t+3 numbers, including the aforementioned t integers h1 to h t , and includes g, e (g, g) α and h. Where e() represents a bilinear map.

[0065] The key tuple MSK is equal to g to the power of α, that is, MSK=g α .

[0066] The public key generated in S101 may be sent to each user and ODP registered in the CA.

[0067] S102, the certificate authority generates a decryption private key and a pre-decryption key for the user, sends the decryption private key to the user, and sends the pre-decryption key to the outsourced decryption provider.

[0068] A user may have a decryption private key and a pre-decryption key, or may not have a decryption private key and a pre-decryption key. Specifically, if a user needs to store ciphertext data on a cloud server, the certificate authority can generate a decryption private key and a pre-decryption key for the user. If a user does not need to store ciphertext data, the CA may not generate a decryption private key and a pre-decryption key for the user.

[0069] The way to generate the decryption private key and pre-decryption key is as follows.

[0070] The CA randomly selects an integer r from the integer set Zp as the unique identifier of the user. That is, each user registered in the CA corresponds to an integer r, and the corresponding r of any two different users is different. Among them, the CA can randomly select the corresponding r for any user after receiving and approving the registration request of any user.

[0071] The CA randomly selects an integer λ from the integer set Zp for the user who needs to generate a decryption private key and a pre-decryption key. The λ of different users can be the same or different.

[0072] After completing the above preparations, the system generates the basic key SK corresponding to the current user according to the following formula.

[0073] SK={K'=MSK*g βr , L'=g r , K x '=h x r}.

[0074] Among them, x can be any attribute in the attribute set owned by the current user, h x Indicates h1 to h t The integer corresponding to the attribute x in h. For example, if x is attribute a1, then h x This is the h1 mentioned above. x ' is equal to h x to the power of r. r is the unique identifier corresponding to the current user.

[0075] The current user here refers to any user in the CA who needs to generate a decryption private key and a pre-decryption key.

[0076] After generating the above basic key, CA can convert the e(L', h) = e(g, g) corresponding to the current user into βr Stored in the user identity list, that is, e(g, g) βr The user identity information of the current user is stored so that the specific user can be retrieved based on the user identity information when black box tracking is triggered later.

[0077] On the other hand, CA generates the current user's pre-decryption key SK according to the following formula: pre .

[0078] SK pre ={K=(K') λ , L = (L') λ , K x =(K x ) λ}.

[0079] Then, CA determines the current user's decryption private key SK based on the pre-decryption key u = (λ, SK pre ).

[0080] like Figure 2 As shown, the CA can send the pre-decryption key of the current user together with the user identity information of the current user to the ODP, and the ODP stores the pre-decryption key and distinguishes the pre-decryption keys of different users based on the user identity information. In addition, the CA sends the decryption private key of the current user to the current user, specifically, to the terminal device used by the current user.

[0081] S103, when data needs to be stored in the cloud server, the data owner encrypts the plaintext data to be stored according to a predetermined access control policy and a public key to obtain ciphertext data, and sends the ciphertext data to the cloud server for storage.

[0082] The data owner can refer to the user who needs to store data in the cloud server, or the user's terminal device.

[0083] The access control policy set by the data owner can be expressed as (M, ρ), where M is an attribute set that contains all or part of the attributes in the attribute set U. By setting the set M, the data owner can authorize users who have the attributes contained in M ​​to decrypt their ciphertext data and obtain the corresponding plaintext data.

[0084] Exemplarily, assuming that M includes attributes a1 and a2, after the data owner encrypts and uploads the ciphertext data in the manner of this embodiment, users with attribute a1 and users with attribute a2 can both download the ciphertext data and correctly decrypt the ciphertext data to obtain the plaintext data.

[0085] ρ is a mapping relationship determined according to M, which is used to map each element in M ​​to an integer from 1 to t. For example, ρ(1) can be equal to 1, ρ(2) can be equal to t, and ρ(3)=4. For any integer i between 1 and F, ρ can map the i-th element in the set M to an integer k between 1 and t, that is, ρ(i)=k, where F is equivalent to the number of attributes contained in the set M.

[0086] Access control policies can be set by data owners as needed.

[0087] After determining the access control policy, the data owner can randomly select an n-dimensional integer vector v'=(s, s2, s3, ... s n ) T , the superscript T means that the row vector is transposed into a column vector, and then λ is calculated based on this integer vector i =Mi *v', where i is an integer between 1 and F. That is, the vector inner product operation can be performed on the i-th attribute in M ​​and v', and the result is determined as λ i .

[0088] Finally, the data owner encrypts the plaintext data m according to the following formula to obtain the corresponding ciphertext data CT.

[0089] CT={C=m*e(gg) αs , C' = g s , C i =h λi *(h ρ(i) ) -s}.

[0090] Where i is any integer between 1 and F. That is, CT can include F+2 elements, the first two elements are C and C', and the following F elements are C1 to C F Among them, element C can be called the ciphertext component of the ciphertext data. i It can be called the attribute component corresponding to the i-th attribute of M in the ciphertext data.

[0091] S104: When any attribute group is updated, the certificate authority re-encrypts the relevant ciphertext data according to the updated attribute group.

[0092] The definition of relevant ciphertext data is as follows:

[0093] For any attribute a i , if the attribute group corresponding to the attribute is updated, then in the ciphertext data stored in the cloud server, according to attribute a i Each ciphertext data encrypted by the relevant access control policy belongs to the relevant ciphertext data. The relevant access control policy here means that the attribute set M specified by the access control policy contains the attribute a corresponding to the updated attribute group. i Access control policy.

[0094] An attribute group is updated, which may include adding a user u to the attribute group. r , or a user u that originally belongs to the attribute group r Exit. The former case is equivalent to CA assigning the attribute corresponding to the attribute group to the user u r , so that the user obtains a new attribute. The latter case is equivalent to CA revoking the user u r This attribute enables user u r No longer has this property.

[0095] In S104 , taking an attribute group being updated as an example, the CA may send the updated attribute group to a cloud service provider (CSP), and the CSP randomly selects an integer δ and randomly selects an integer as an update key Δρ(k).

[0096] Then, for each relevant ciphertext data, the cloud server updates the ciphertext component of the relevant ciphertext data according to the following formula, updates the attribute component of the attribute corresponding to the updated attribute group in the relevant ciphertext data, and adds two re-encryption components Cre' and Cre" to the relevant ciphertext data, thereby obtaining the re-encrypted ciphertext data CTre after the relevant ciphertext data is re-encrypted.

[0097]

[0098] Among them, k represents the position of the attribute corresponding to the updated attribute group in the access control policy M used to encrypt the relevant ciphertext data. For example, the attribute corresponding to the updated attribute group is a1. For a certain relevant ciphertext data, in the access control policy M used to encrypt the relevant ciphertext data, a1 is the 5th attribute contained in M, then k is equal to 5.

[0099] S105, when any attribute group is updated, the cloud server determines the key update header MKU according to the updated attribute group.

[0100] In step S105, first determine the minimum covering element of the updated attribute group on the K-dimensional tree (KEK), denoted as D(U ai ), U ai is the updated attribute group.

[0101] Then, for any node of the minimum cover element, CSP uses the secret value of the node as the private key K and uses the symmetric encryption method E based on the private key K The encryption update key Δρ(k) is used to obtain the key update header MKU, which can be specifically expressed by the following formula.

[0102]

[0103] S106: When any attribute group is updated, the certificate authority updates the pre-decryption key according to the updated attribute group.

[0104] In step S106, the CA may first select the minimum covering element D (U ai ), and then update the secret value of the corresponding node in the minimum cover element.

[0105] Next, the CA sends the updated minimum coverage element to the ODP. The ODP decrypts the key update header provided by the cloud server according to the updated minimum coverage element, obtains the updated key Δρ(k), and then executes the pre-decryption key update algorithm based on the updated key, thereby updating the components contained in the target pre-decryption key and obtaining the updated target pre-decryption key.

[0106] The target pre-decryption key refers to the pre-decryption key of the user who can access the above-mentioned relevant ciphertext data. Exemplarily, the relevant ciphertext data is encrypted based on the access control policy M, M includes attribute a1, and user A has attribute a1. Then user A is a user who can access the above-mentioned relevant ciphertext data, and the pre-decryption key of user A can be used as the target pre-decryption key and updated according to step S106.

[0107] Updated target pre-decryption key SK pre 'It can be expressed by the following formula.

[0108] SK pre '={K=(K') λ , L = (L') λ , L ρ(k) =(L) 1 / Δρ(k) , K x =(K x ) λ}.

[0109] S107: In response to the data access request of the first user, the outsourced decryption provider pre-decrypts the target ciphertext data.

[0110] The first user can be any user who has registered with the CA and needs to access specific data, that is, Figure 2 Any one of the data users shown. The first user can send the above access request through his terminal device. The access request can carry a data identifier for indicating the ciphertext data to be accessed. After receiving the data access request, the outsourced decryption provider can determine the ciphertext data corresponding to the data identifier as the target ciphertext data and pre-decrypt the target ciphertext data.

[0111] In some optional embodiments, the outsourced decryption provider may also first identify whether the attribute set owned by the first user satisfies the access control policy corresponding to the target ciphertext data, and if so, execute the pre-decryption operation in S107, and if not, do not perform pre-decryption.

[0112] Among them, if the attribute set owned by the first user includes the attributes contained in the access control policy M corresponding to the target ciphertext data, it is determined that the attribute set owned by the first user satisfies the access control policy; if the attribute set owned by the first user does not include the attributes contained in the access control policy M corresponding to the target ciphertext data, it is determined that the attribute set owned by the first user does not satisfy the access control policy.

[0113] Exemplarily, assuming that the access control policy M of the target ciphertext data contains two attributes, namely a1 and a2. If the attribute set owned by the first user includes at least one of a1 and a2, that is, if the first user owns at least one of a1 and a2, it can be determined that the attribute set owned by the first user satisfies the access control policy. If the attribute set owned by the first user does not include a1 and a2, it is determined that the attribute set owned by the first user does not satisfy the access control policy.

[0114] In step S107, if the target ciphertext data has not been re-encrypted, then ODP can pre-decrypt the target ciphertext data according to the following formula to obtain the pre-decrypted data CT pre .

[0115]

[0116] Among them, C i is the attribute component corresponding to the i-th attribute in the target ciphertext data CT, F is the number of attributes contained in the access control policy M corresponding to the target ciphertext data, and ∏ represents cumulative multiplication. The r in the above formula is the r corresponding to the first user. λ is the λ selected by CA for the first user. C' is a component contained in the target ciphertext data, that is, C'=g s ω i is a set of s and λ i The associated integer constant, ω i It is a set of s and λ i The relationship between satisfies the following equation.

[0117]

[0118] If the target ciphertext data has been re-encrypted, then ODP can pre-decrypt the target ciphertext data according to the following formula to obtain the pre-decrypted data CT pre .

[0119]

[0120] Cre' represents the re-encrypted component contained in the re-encrypted target ciphertext data. k represents the position of the attribute corresponding to the updated attribute group in the access control policy M used to encrypt the target ciphertext data when the target ciphertext data is re-encrypted because the attribute group is updated. i∈F\{k} represents that a cumulative multiplication operation is performed on each attribute in the access control policy M except the kth attribute, that is, a cumulative multiplication operation is performed for i=1, 2, ...k-1, k+1, ...F.

[0121] In step S107, the ODP may determine whether the target ciphertext data has been re-encrypted according to whether the target ciphertext data contains the re-encryption component.

[0122] S108, the first user decrypts the pre-decrypted data according to the local decryption private key to obtain plaintext data.

[0123] If the target ciphertext data has not been re-encrypted, the first user can decrypt the pre-decrypted data according to the following formula to obtain the plaintext data m.

[0124]

[0125]

[0126] If the target ciphertext data has been re-encrypted, the first user can decrypt the pre-decrypted data according to the following formula to obtain the plaintext data m.

[0127]

[0128]

[0129]

[0130] In step S108, the first user may determine whether the target ciphertext data has been re-encrypted according to whether the target ciphertext data contains the re-encryption component.

[0131] Among them, if the first user is not a user authorized to access the target ciphertext data, in other words, if the attributes possessed by the first user do not include the attributes of the access control policy M corresponding to the target ciphertext data, then even if the ODP is pre-decrypted according to S107 and the first user is decrypted according to S108, the above-mentioned plaintext data cannot be obtained.

[0132] S109, when the certificate authority finds that the data of the cloud server is accessed by the decryption black box, it generates tracking ciphertext data and sends it to the decryption black box, and determines the user identity information of the target user based on the feedback of the decryption black box.

[0133] The target user of the above steps is equivalent to a malicious user who leaks the pre-decryption key and the decryption private key.

[0134] The certificate authority can determine whether the cloud server data is accessed by the decrypted black box in the following ways:

[0135] For any ciphertext data stored in the cloud server, the certificate authority obtains the historical download records of the ciphertext data from the cloud server. The historical download records may record the user identity information of each user who has downloaded the ciphertext data in the recent period (e.g., within one month);

[0136] After obtaining the historical download records, the certificate authority verifies whether the attribute set owned by each user satisfies the access control policy of the ciphertext data. The verification method can be found in the previous text and will not be described in detail.

[0137] If it is found that the attribute set of a certain user does not satisfy the access control policy of the ciphertext data, it can be determined that the ciphertext data is accessed by the decryption black box, and it can be determined that the terminal device downloading the ciphertext data is a device installed with the decryption black box;

[0138] If it is found that the attribute set owned by each user in the historical download records satisfies the access control policy of the ciphertext data, it can be determined that the ciphertext data has not been accessed by the decryption black box.

[0139] The certificate authority can periodically check each ciphertext data stored in the cloud server based on the above method at a certain period to determine whether the ciphertext data is accessed by the decryption black box.

[0140] The certificate authority can construct the tracking ciphertext data as follows:

[0141] CA first obtains the public key PK, determines any target access control policy (M1, ρ1) that the decryption black box can decrypt, and generates a random integer as the tracing plaintext data m1 for tracing.

[0142] The target access control policy may be determined by traversing each ciphertext data downloaded by the decryption black box and selecting an access control policy corresponding to any ciphertext data as the target access control policy. The access control policy corresponding to the ciphertext data may be understood as the access control policy used to encrypt the ciphertext data.

[0143] CA randomly generates an integer s as a tracking parameter and randomly generates an n-dimensional integer vector as a tracking vector v'' = (s', s2, s3, ... s n ) T , determine the tracking path information trap=s'-s, and then calculate the λ used to construct the tracking ciphertext data according to the tracking vector and the target access control policyi ,λ i =M1 i v'', that is, λ i It is equal to the result of the inner product operation between the i-th attribute of M1 and the tracking vector. The value range of i can be 1 to F1. F1 represents the number of attributes contained in M1, that is, M1 contains F1 attributes.

[0144] Then CA calculates the tracking ciphertext data CT according to the following formula based on the randomly generated data above: Trace .

[0145] CT Trace ={C trace =m1*e(gg) αs , C' = g s , C i =g βλi *(h ρ(i) ) -s}.

[0146] After obtaining the tracking ciphertext data, CA can send the tracking ciphertext data directly to the terminal device installed with the decryption black box. After the terminal device receives the tracking ciphertext data, it first uses the decryption black box to pre-decrypt the tracking ciphertext data to obtain the following tracking pre-decrypted data CT pre '.

[0147]

[0148] Then use the decryption black box to decrypt the tracking pre-decrypted data to obtain the corresponding decryption result D A '.

[0149]

[0150]

[0151] It should be noted that when the decryption black box performs the above-mentioned pre-decryption and decryption, the pre-decryption key and decryption private key used may be the pre-decryption key and decryption private key of the user who has registered with the CA and disclosed his own decryption private key and pre-decryption key to the decryption black box.

[0152] For example, assume that user A has registered with CA, CA generates a decryption private key and pre-decryption key for user A, and user A obtains authorization from user B to access the ciphertext data uploaded by user B in the cloud server. After a period of time, user A leaks the decryption private key and pre-decryption key to an unauthorized user C (user C in this example is equivalent to Figure 2The buyer shown in the figure), user C constructs the decryption black box of this embodiment according to the decryption private key and pre-decryption key held by user A. Then, after obtaining the ciphertext data of user B, the decryption black box can decrypt the ciphertext data according to the pre-decryption key and decryption private key of user A to obtain the plaintext data. Therefore, user C can obtain the plaintext data stored by user B without authorization through the decryption black box. Correspondingly, the keys used for the pre-decryption processing and decryption processing of the tracking ciphertext data are user A's pre-decryption key and user A's decryption private key, respectively. Therefore, D A The identifier r contained in is also the identifier r of user A.

[0153] In the above example, User A is equivalent to a malicious user who has leaked a key and is registered in the CA (and may also be equivalent to the target user of step S109 ).

[0154] CA can intercept the decryption result D output by the decryption black box A '. The decryption result is restored according to the following formula, thereby obtaining the user identity information ID corresponding to the identifier r t , this identity information is determined as the identity information of a malicious user who leaked the key used to construct the decryption black box, for example, it is determined as the identity information of user A in the above example.

[0155]

[0156] Finally, the CA retrieves the user identity information ID from the user identity list t , thereby determining the malicious user who leaked the key, and then revoking all attributes owned by the malicious user, updating the relevant ciphertext and the keys of other users. The update method can refer to the above steps S104 to S106, which will not be repeated here.

[0157] Specifically, the ciphertext data of the attributes owned by the malicious user may be re-encrypted according to the corresponding access control policy M. For example, before revocation, the malicious user has attributes a1 and a2, the access control policy M used when encrypting the ciphertext data Y1 includes attribute a1, and the access control policy M used when encrypting the ciphertext data Y2 includes attribute a2. After the attributes owned by the malicious user are revoked, the ciphertext data Y1 and the ciphertext data Y2 may be re-encrypted in the manner of S104.

[0158] In combination with the above example, CA can determine the user identity information of User A in the above manner, and then determine that User A is a malicious user based on the user identity information in the user identity list, and revoke all attributes owned by User A.

[0159] The beneficial effects of this embodiment are:

[0160] On the one hand, the method of this embodiment realizes the revocation of user attributes by introducing the KEK tree, so that users who have not been revoked can update the pre-decryption key. This also enables the certificate authority to revoke the decryption authority of the malicious user by revoking the attributes owned by the malicious user after tracking the malicious user, eliminating the hidden danger of key abuse. On the other hand, the method of this embodiment can assign most of the decryption calculation tasks to the ODP server for execution, reducing the overhead of the user's terminal device during decryption.

[0161] On the other hand, when generating a pre-decryption key and a decryption private key for each user, this scheme introduces a unique identifier r corresponding to each user into the pre-decryption key and the decryption private key. When black box tracing is required, it is only necessary to construct specific tracing ciphertext data and input it into the decryption black box. The user identity information of the malicious user corresponding to the key used for decryption can be restored based on the decryption result output by the decryption black box. The malicious user can then be identified by searching in the user identity list. Therefore, when performing black box tracing, this scheme only needs to interact with the decryption black box once to identify the malicious user who leaked the key, thereby minimizing the time complexity of black box tracing.

[0162] In order to illustrate the beneficial effects of the present embodiment, the test results obtained by conducting experiments on the method of the present embodiment in a simulation environment are described below. The simulation environment may be a Windows system environment on a computer host with a CPU frequency of 3.20 GHz.

[0163] In this test, P represents the bilinear mapping unit time, and |M| represents the number of access control tree leaf nodes or the number of rows of the access control matrix. The access control matrix is ​​equivalent to M in the aforementioned access control strategy. G0 The unit time of power operation of group G0, E GT Indicates group G T The unit time of power operation, H represents the average time required for hash operation, I represents the number of attributes involved in decryption, K represents the number of user keys that need to be updated, and C represents the number of ciphertexts that need to be updated (re-encrypted).

[0164] exist Figure 3 In the corresponding experiment, the independent variable can be set to the number of rows of the access control matrix. Among them, method 1 and method 2 represent two existing attribute-based encryption methods. Figure 3 It can be seen that the encryption time overhead of method 1 and method 2 is relatively high, and as the number of rows of the access control matrix increases, the encryption overhead of the method of this embodiment is in multiples. In summary, the processing method of this embodiment has a great advantage in encryption overhead.

[0165] Further, from Figure 4It can be seen that the method of this embodiment can assign most of the computing tasks to the server of the outsourced decryption provider for processing while ensuring the security of user data, which keeps the local computing time consumption during user decryption at a very low constant.

[0166] Figure 5 This is the result of a comparative experiment on the computational overhead of user decryption, in which the independent variable is the number of attributes involved in decryption. It can be seen that as the number of attributes increases, the user decryption overhead of method 1 and method 2 is basically the same, showing a very high time consumption. However, the user decryption overhead of the method of this embodiment can always be maintained at a very low level, which greatly reduces the computing burden of the user. In addition, the total decryption overhead of the method of this embodiment (i.e., the decryption overhead of the outsourced decryption provider and the decryption overhead of the user) is also much smaller than the decryption overhead of the other two schemes. The decryption overhead can be understood as the time required to decrypt the ciphertext data to obtain the plaintext data.

[0167] When a user obtains or has attributes revoked, the certificate authority will also update the relevant ciphertext and user key, which will generate certain system overhead. Figure 6 The results of the comparative experiment on the system overhead when updating ciphertexts and keys. In this experiment, the number of user keys that need to be updated in the system is set to 30, and the number of ciphertexts that need to be updated is used as the independent variable. It can be seen that as the number of ciphertexts that need to be updated in the system (i.e., the number of re-encrypted ciphertexts) increases from 5 to 100, the system update overhead of method 1 gradually shows a multiple relationship with the update overhead of the method of this embodiment. That is to say, when the number of ciphertexts that need to be updated is large, the system overhead of method 1 can reach several times the system overhead of the method of this embodiment.

[0168] This application embodiment provides a data processing method based on attribute-based encryption. Figure 7 , is a flow chart of the method, and the method may include the following steps.

[0169] S701, generating a decryption private key and a pre-decryption key corresponding to the user according to the user's identity and the attributes of the user.

[0170] For the specific method of generating the decryption private key and the pre-decryption key in step S701, reference may be made to steps S101 and S102 of the aforementioned embodiment.

[0171] S702 , in response to a data access request of a user for target ciphertext data, pre-decrypt the target ciphertext data according to a pre-decryption key of the user to obtain pre-decrypted data.

[0172] The user in S702 can be Figure 1The first user of the corresponding embodiment. The target ciphertext data can be encrypted by the owner of the corresponding plaintext data in step S103, and the target ciphertext data can be uploaded to the cloud server by the data owner and stored in the cloud server.

[0173] The target ciphertext data can be pre-decrypted by ODP to obtain the corresponding pre-decrypted data. The specific method of pre-decryption can be found in Figure 1 The corresponding embodiment is step S107.

[0174] S703, sending the pre-decrypted data to the user, so that the user decrypts the pre-decrypted data according to the decryption private key to obtain the plaintext data.

[0175] After obtaining the pre-decrypted data, the ODP can send the pre-decrypted data to the terminal device used by the user. The terminal device decrypts the pre-decrypted data in the manner of step S108 in the aforementioned embodiment to obtain the plaintext data.

[0176] Optionally, the processing method of this embodiment further includes:

[0177] The storage server (i.e., the cloud server in the aforementioned embodiment) receives the target ciphertext data uploaded by the data owner. The target ciphertext data is obtained by the data owner by encrypting the plaintext data according to a preset access control policy. The access control policy includes one or more attributes with access rights to the plaintext data.

[0178] The method for the data owner to encrypt plaintext data may refer to step S103 of the aforementioned embodiment.

[0179] Optionally, the target ciphertext data is pre-decrypted according to the user's pre-decryption key to obtain pre-decrypted data, including:

[0180] The user's pre-decryption key and target ciphertext data are input into the outsourced decryption server, so that the outsourced decryption server pre-decrypts the target ciphertext data according to the pre-decryption key to obtain the pre-decrypted data.

[0181] The pre-decryption method may refer to step S107 of the aforementioned embodiment.

[0182] Optionally, the processing method of this embodiment further includes:

[0183] When an attribute group corresponding to any attribute is updated, the ciphertext data and the pre-decryption key are updated according to the updated attribute group, and the attribute group corresponding to the attribute includes the user who owns the attribute.

[0184] Among them, updating the ciphertext data is equivalent to re-encrypting the relevant ciphertext data according to the updated attribute group. The updated ciphertext data can be the relevant ciphertext data of the updated attribute group in step S104 of the aforementioned embodiment. The updating method can refer to the method of re-encrypting the relevant ciphertext data in step S104.

[0185] The method of updating the pre-decryption key may refer to steps S105 and S106 of the aforementioned embodiment.

[0186] Optionally, the processing method of this embodiment further includes:

[0187] Check whether the attributes owned by the user meet the access control policy corresponding to the target ciphertext data;

[0188] In the case where the attributes possessed by the user satisfy the access control policy corresponding to the target ciphertext data, a step of pre-decrypting the target ciphertext data according to the user's pre-decryption key is performed to obtain pre-decrypted data.

[0189] The method of checking whether the attributes owned by the user satisfy the access control policy corresponding to the target ciphertext data can refer to step S107 of the aforementioned embodiment, where the outsourced decryption provider identifies whether the attribute set owned by the first user satisfies the access control policy corresponding to the target ciphertext data.

[0190] Optionally, the processing method of this embodiment further includes:

[0191] When it is determined that the ciphertext data is accessed by the decryption black box, generating tracking ciphertext data;

[0192] Send the tracing ciphertext data to the decryption black box;

[0193] The user identity information of the target user is determined according to the feedback of the decryption black box, and the target user is the user who leaks the pre-decryption key and the decryption private key used to construct the decryption black box.

[0194] The method of generating the tracking ciphertext data and the method of determining the user identity information of the target user according to the feedback of the decryption black box can refer to step S109 of the aforementioned embodiment.

[0195] Optionally, after determining the user identity information of the target user according to the feedback of the decryption black box, the method further includes:

[0196] Revoke every attribute possessed by the target user.

[0197] Optionally, ensure that the ciphertext data is accessible by a decryption black box, including:

[0198] Determine the historical downloading user corresponding to the ciphertext data;

[0199] In the case where the attributes owned by the historical downloading user do not satisfy the access control policy corresponding to the ciphertext data, it is determined that the ciphertext data is accessed by the decryption black box.

[0200] The above-mentioned historical downloading users are equivalent to the users included in the historical download records corresponding to the ciphertext data. The above-mentioned method of determining whether the ciphertext data is accessed by the decrypted black box can refer to the way in which the certificate authority determines whether the data of the cloud server is accessed by the decrypted black box in step S109.

[0201] The embodiment of the present application also provides a data processing system based on attribute-based encryption, including a storage server, an authorization server, a decryption server and a terminal device, each terminal device corresponding to a user;

[0202] A storage server, used to store encrypted ciphertext data;

[0203] The authorization server is used to generate a decryption private key and a pre-decryption key corresponding to the user according to the user's identity and attributes;

[0204] The decryption server is used to respond to the user's data access request for the target ciphertext data and pre-decrypt the target ciphertext data stored in the storage server according to the user's pre-decryption key to obtain pre-decrypted data;

[0205] The decryption server is used to send the pre-decrypted data to the terminal device corresponding to the user, so that the user can decrypt the pre-decrypted data according to the decryption private key to obtain the plaintext data.

[0206] The working principle of the system of this embodiment can refer to the relevant steps of the data processing method based on attribute-based encryption provided in the above-mentioned embodiment, which will not be repeated here.

[0207] In the above system, the storage server, the authorization server and the decryption server may be the same server or three different servers.

[0208] As some examples, the authorization server could be equivalent to Figure 2 The central authority shown, the decryption server can be equivalent to Figure 2 The outsourced decryption provider shown, the storage server can be equivalent to Figure 2 The cloud server shown in the figure, the terminal device can be equivalent to Figure 2 Individual users shown.

[0209] The present application also provides an electronic device. Figure 8 , the electronic device may include a memory 801 and a processor 802.

[0210] The memory 801 is used to store computer programs;

[0211] The processor 802 is used to execute a computer program, specifically to implement the data processing method based on attribute-based encryption provided in any embodiment of the present application.

[0212] Finally, it should be noted that, in this article, relational terms such as first and second, etc. 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 terms "include", "comprise" or any other variants thereof are 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. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0213] It should be noted that the concepts such as “first” and “second” mentioned in the present invention are only used to distinguish different systems, modules or units, and are not used to limit the order or interdependence of the functions performed by these systems, modules or units.

[0214] The present application can be implemented or used by professionals and technicians. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data processing method based on attribute-based encryption, characterized in that: include: Generate a decryption private key and a pre-decryption key corresponding to the user according to the user's identity identifier and the attributes possessed by the user; In response to a data access request of the user to the target ciphertext data, pre-decrypting the target ciphertext data according to the pre-decryption key of the user to obtain pre-decrypted data; The pre-decrypted data is sent to the user, so that the user decrypts the pre-decrypted data according to the decryption private key to obtain plaintext data.

2. The method according to claim 1, characterized in that Also includes: The target ciphertext data uploaded by the data owner is received, where the target ciphertext data is obtained by the data owner encrypting the plaintext data according to a preset access control policy, where the access control policy includes one or more attributes having access rights to the plaintext data.

3. The method according to claim 1, characterized in that: The pre-decrypting the target ciphertext data according to the pre-decryption key of the user to obtain the pre-decrypted data includes: The user's pre-decryption key and the target ciphertext data are input into an outsourced decryption server, so that the outsourced decryption server pre-decrypts the target ciphertext data according to the pre-decryption key to obtain pre-decrypted data.

4. The method according to claim 1, characterized in that: Also includes: When an attribute group corresponding to any of the attributes is updated, the ciphertext data and the pre-decryption key are updated according to the updated attribute group, and the attribute group corresponding to the attribute includes a user who has the attribute.

5. The method according to claim 1, characterized in that Also includes: Check whether the attributes of the user meet the access control policy corresponding to the target ciphertext data; In the case where the attributes of the user satisfy the access control policy corresponding to the target ciphertext data, the step of pre-decrypting the target ciphertext data according to the pre-decryption key of the user to obtain the pre-decrypted data is performed.

6. The method according to claim 1, characterized in that Also includes: When it is determined that the ciphertext data is accessed by the decryption black box, generating tracking ciphertext data; Sending the tracking ciphertext data to the decryption black box; The user identity information of the target user is determined according to the feedback of the decryption black box, wherein the target user is a user who leaks the pre-decryption key and the decryption private key used to construct the decryption black box.

7. The method according to claim 6, characterized in that After determining the user identity information of the target user according to the feedback of the decryption black box, the method further includes: Revoke every attribute possessed by the target user.

8. The method according to claim 6, characterized in that The step of determining that the ciphertext data is accessible by the decryption black box includes: Determine the historical downloading user corresponding to the ciphertext data; In a case where the attribute possessed by the historical downloading user does not satisfy the access control policy corresponding to the ciphertext data, it is determined that the ciphertext data is accessed by a decryption black box.

9. A data processing system based on attribute-based encryption, characterized in that: It includes a storage server, an authorization server, a decryption server and a terminal device, each of which corresponds to a user; The storage server is used to store the encrypted ciphertext data; The authorization server is used to generate a decryption private key and a pre-decryption key corresponding to the user according to the user's identity identifier and the attributes possessed by the user; a decryption server, configured to respond to a data access request of the user for the target ciphertext data and pre-decrypt the target ciphertext data stored in the storage server according to the pre-decryption key of the user to obtain pre-decrypted data; The decryption server is used to send the pre-decrypted data to the terminal device corresponding to the user, so that the user decrypts the pre-decrypted data according to the decryption private key to obtain plaintext data.

10. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program, specifically to implement the data processing method based on attribute-based encryption as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Black box traceable ciphertext policy attribute-based encryption method

    CN111447209A

  • Collaborative access control revocation method based on attributes

    CN111680306A

  • Fine-grained access control method and system based on fog block chain and attribute encryption

    CN114710370A

  • Ciphertext retrieval method and system supporting hierarchical access control and user revocation

    CN117763592A

  • Efficient multifunctional access control method and system based on attribute encryption

    CN118536136A