A fine-grained cloud data access control method integrating time and location attributes

By introducing time and location trapdoor tokens into cloud data access control, the problems of low efficiency and insufficient adaptability in the existing technology are solved, a flexible access strategy for time- and location-sensitive data is realized, and the security of cloud data is improved. security and privacy, and reduced computational overhead.

CN114239062BActive Publication Date: 2024-10-22UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111542687.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-10-22
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

Existing cloud data access control methods are inefficient in handling scenarios with large scale and large number of users, lack the ability to adapt to complex changes in time and location attributes, and cannot provide flexible access policies to ensure the security of cloud data. and privacy.

Method used

A fine-grained cloud data access control method that integrates time and location attributes is adopted. By introducing time trapdoors and location trapdoors in the cloud server, the central attribute authority and location server issue time and location trapdoor tokens respectively for control Access permissions to data to ensure the security of time and location sensitive data.

Benefits of technology

It implements flexible access policies for time- and location-sensitive data, improves the security and privacy of cloud data, resists illegal access and user collusion attacks, reduces computing overhead, and is suitable for diverse access control requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114239062B_ABST
    Figure CN114239062B_ABST
Patent Text Reader

Abstract

The present invention discloses a fine-grained cloud data access control method integrating time and location attributes. By changing the access structure encrypted by the ciphertext policy attribute base, the nodes of the access structure can support time trapdoors and location trapdoors at the same time. The central attribute authority and the location server are responsible for issuing time trapdoor tokens and location trapdoor tokens respectively, and use the tokens to change the state of the trapdoors to control the release of time and location attributes. The method provides a flexible access strategy for time and location sensitive data, and ensures the security and privacy of data in the cloud server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud data security technology, and in particular to a fine-grained cloud data access control method integrating time and location attributes. Background Art

[0002] In the era of cloud computing and big data, it is crucial to protect the privacy information contained in cloud storage data. In the traditional cloud data access control method based on key management, users are distinguished by controlling the key sets held by users. At this time, the data owner needs to know the potential authorized users and their encryption keys or public keys in the cloud data access control system in advance. The traditional key management-based access control method is not efficient for large-scale application scenarios with a large number of users.

[0003] Existing cloud data access control methods mainly rely on ciphertext policy attribute-based encryption, which allows data owners to define fine-grained access policies based on different attributes. Compared with traditional cloud data access control methods based on key management, access control methods based on ciphertext policy attribute-based encryption are more flexible. However, existing cloud data access control methods only consider static attributes or single dynamic attributes of data users, and lack the ability to adapt to complex changes in time and location attributes. Summary of the invention

[0004] The purpose of the present invention is to provide a fine-grained cloud data access control method that integrates time and location attributes, which provides a flexible access strategy for time and location sensitive data and ensures the security and privacy of data in the cloud server.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A fine-grained cloud data access control method integrating time and location attributes, comprising:

[0007] The cloud server in the fine-grained cloud data access control system receives encrypted data generated by the data owner by constructing a node trapdoor, wherein the node trapdoor includes a time trapdoor and a location trapdoor;

[0008] When the fine-grained cloud data access control system receives an encrypted data access request from a data user, the central attribute authority in the fine-grained cloud data access control system issues a time trapdoor token of a predetermined granularity based on the time where the data user is located, and the location server in the fine-grained cloud data access control system issues a location trapdoor token of a predetermined granularity based on the location where the data user is located;

[0009] The cloud server determines whether the associated time trapdoor and location trapdoor can be released based on the time trapdoor token and the location trapdoor token. If so, the cloud server modifies the encrypted data in combination with the time trapdoor token and the location trapdoor token, and transmits the modified encrypted data to the data user.

[0010] It can be seen from the technical solution provided by the present invention that by changing the access structure encrypted by the ciphertext policy attribute base, the nodes of the access structure can support time trapdoors and location trapdoors at the same time. The central attribute authority and the location server are responsible for issuing time trapdoor tokens and location trapdoor tokens respectively, and use the tokens to change the state of the trapdoors to control the release of time and location attributes. This method provides flexible access strategies for time and location sensitive data, ensuring the security and privacy of data in the cloud server. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0012] Figure 1 A flowchart of a fine-grained cloud data access control method integrating time and location attributes provided by an embodiment of the present invention;

[0013] Figure 2 A block diagram of a fine-grained cloud data access control system integrating time and location attributes provided by an embodiment of the present invention;

[0014] Figure 3 A flowchart of another fine-grained cloud data access control method integrating time and location attributes provided by an embodiment of the present invention;

[0015] Figure 4 A schematic diagram of an access structure for adapting time and location attributes provided in an embodiment of the present invention;

[0016] Figure 5 A curve diagram showing the relationship between the encryption time of the data owner and the number of leaf nodes in the access strategy provided by the embodiment of the present invention;

[0017] Figure 6 A curve diagram showing the relationship between the trapdoor release time and the number of trapdoors provided in an embodiment of the present invention;

[0018] Figure 7 A curve diagram showing the relationship between the decryption time and the number of leaf nodes in the access strategy provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings 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 protection scope of the present invention.

[0020] First, the terms that may be used in this article are explained as follows:

[0021] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.

[0022] The following is a detailed description of a fine-grained cloud data access control method that integrates time and location attributes provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field. If no specific conditions are specified in the embodiments of the present invention, the conventional conditions in the field or the conditions recommended by the manufacturer shall be followed. The instruments used in the embodiments of the present invention, if the manufacturer is not specified, are all conventional products that can be purchased commercially.

[0023] like Figure 1 As shown in the figure, a fine-grained cloud data access control method integrating time and location attributes mainly includes the following steps:

[0024] Step S1, a cloud server in a fine-grained cloud data access control system receives encrypted data generated by a data owner by constructing a node trapdoor, wherein the node trapdoor includes a time trapdoor and a location trapdoor;

[0025] Step S2, when the fine-grained cloud data access control system receives an encrypted data access request from a data user, the central attribute authority in the fine-grained cloud data access control system issues a time trapdoor token of a predetermined granularity based on the time where the data user is located, and the location server in the fine-grained cloud data access control system issues a location trapdoor token of a predetermined granularity based on the location where the data user is located.

[0026] Step S3, the cloud server determines whether the associated time trapdoor and location trapdoor can be released based on the time trapdoor token and the location trapdoor token. If so, the cloud server modifies the encrypted data in combination with the time trapdoor token and the location trapdoor token, and transmits the modified encrypted data to the data user.

[0027] The above scheme of the embodiment of the present invention changes the access structure encrypted by the ciphertext policy attribute base so that the nodes of the access structure can support time trapdoors and location trapdoors at the same time. The central attribute authority and the location server are responsible for issuing time trapdoor tokens and location trapdoor tokens respectively, and use the trapdoor tokens to change the state of the trapdoors to control the release of time and location attributes. This method provides flexible access strategies for time and location sensitive data, and ensures the security and privacy of data in the cloud server.

[0028] In order to more clearly demonstrate the technical solution and technical effects provided by the present invention, a fine-grained cloud data access control method integrating time and location attributes provided by an embodiment of the present invention is described in detail with a specific embodiment below.

[0029] 1. Main physical parts involved in the system

[0030] Figure 2 The block diagram of the fine-grained cloud data access control system that integrates time and location attributes. It mainly includes the following five entities:

[0031] 1. Central attribute authority: responsible for system settings and distributing private keys to data users based on attribute sets. It is also responsible for issuing time trapdoor tokens and is completely trustworthy.

[0032] 2. Cloud server: It is honest but curious (semi-trusted), responsible for storing data uploaded by data owners and providing data access services to data users.

[0033] 3. Location server: It is completely trustworthy and is responsible for determining the current geographic location of data users and issuing location trapdoor tokens through IP address positioning technology.

[0034] 4. Data owner: Responsible for defining fine-grained access control policies with different identity attributes, time attributes, and location attributes for different data users, and uploading the encrypted data to the cloud server. The access control policy refers to using the attribute set as the public key to encrypt data, requiring that only users who meet the attribute set can decrypt the data.

[0035] 5. Data user: A data user who holds a private key associated with his attribute set can download the ciphertext of interest from the cloud server and attempt to decrypt the downloaded ciphertext. According to the access control policy, decryption can only be performed if and only if the data user meets one or more of the following conditions: (1) the identity attribute set satisfies the access policy; (2) the access time is within the preset time interval; (3) the access location is within the preset geographical range.

[0036] The relevant parameters and functions in the system are defined as follows: and is a multiplicative cyclic group, with a prime number p as its order; g is Generator of; e: Represents a bilinear map; using the hash function H0: and H1: The symbol * represents a positive integer, and the symbol represents the set of congruence classes modulo p, that is, the set of positive integers of order p; and defines the Lagrange coefficient:

[0037] 2. Fine-grained cloud data access control method integrating time and location attributes

[0038] like Figure 3 As shown, it mainly includes the following steps:

[0039] 1. Initialization of a fine-grained cloud data access control system that integrates time and location attributes.

[0040] In this phase, the central attribute authority randomly selects a series of parameters (From the set of positive integers ), and generate the public key PK and the master key MK, expressed as:

[0041]

[0042] MK=(β,γ t ,γ l ,g α )

[0043] Among them, parameters I, h, f1, and f2 are all part of the public key. Parameter I is used to generate the public key, parameter h is used for data encryption and decryption, parameter f1 is used to construct a time trapdoor, and parameter f2 is used to construct a position trapdoor.

[0044] 2. Generate data user private keys based on central attribute authority.

[0045] In this stage, the central attribute authority generates the private key of each data user. For data user j, the central attribute authority selects a random number As the unique identifier of data user j, and the attribute set S of data user j j Each attribute in Att i Assigning random numbers Generate the data user's private key:

[0046]

[0047] Among them, D is the partial private key generated for the unique identification of data user j, D i and D′ iIt is the partial private key generated for each identity attribute of the data user j, and they constitute the complete user private key.

[0048] The central attribute authority then sends the generated private key of each data user to the relevant data users through a secure channel.

[0049] In the embodiment of the present invention, the attribute set S j Each identity attribute Att in i Mainly refers to static identity attributes, such as name, position, department, etc.

[0050] 3. The data owner encrypts the data by constructing a node trapdoor and uploads it to the cloud server.

[0051] The preferred implementation of this stage is as follows:

[0052] 1) Access structure tree to be constructed Perform secret distribution, starting from the root node, to access the structure tree Each node x on is assigned four associated secret parameters, which are Among them, the parameters Associated with the parent node of node x, if node x is the root node R, The master secret parameter Associated with the child nodes of node x, that is, shared with its child nodes as the secret in the final secret sharing mechanism. If node x is a leaf node, the parameter Associated with related attributes, parameters Associated with time, parameters Associated with a location.

[0053] 2) For the root node R, the data owner randomly selects the master secret

[0054] 3) For the parameters assigned to For any node x (excluding the root node R), assign three other secret parameters to it:

[0055]

[0056] in, Represents from the set Random selection, parameters Associated with the parent node of node x, used in secret parameter assignment (not explicitly present) and in the subsequent decryption phase to recursively recover the root node secret value.

[0057] 4) For the parameters If the node x is a non-leaf node, the data owner generates a random polynomial qx , the polynomial satisfies: a) the degree of the random polynomial is equal to the number of child nodes of the corresponding non-leaf node minus 1, b) (0 means the variable x in the polynomial takes the value 0).

[0058] 5) For the parameters If the node x is a non-leaf node, its related attribute is the identity attribute specified in the data user attribute set, denoted by Att x , the data owner calculates the identity attribute of the corresponding leaf node and associates it with the encrypted data part:

[0059]

[0060] Among them, C x and C′ x It is to divide the encrypted data associated with the attribute into two parts to facilitate subsequent calculations.

[0061] 6) Construct node trapdoor.

[0062] a) If the permission release time associated with node x is t, the parameter associated with time is The data owner chooses the random number (From the set of positive integers ), generate its temporal trapdoor:

[0063]

[0064] Among them, A x , B x Represents the time trapdoor TD x f1 is the parameter for generating the time trapdoor.

[0065] b) If the permission release location associated with node x is Loc k , the parameters associated with the position are The data owner chooses the random number Generate its position trapdoor:

[0066]

[0067] Among them, A′ x , B′ x Indicates the position trapdoor LD x f2 represents the parameters for generating the time trapdoor.

[0068] c) If node x is a non-leaf node, set the parameters for each of its child nodes y Used for subsequent data decryption.

[0069] 7) The encrypted data finally generated is expressed as:

[0070]

[0071] in, C represents the different components of encrypted data (i.e., ciphertext) to facilitate subsequent calculations. represents the data to be encrypted (i.e., unencrypted plaintext data), and e represents a bilinear map.

[0072] 4. Generate time trapdoor tokens and location trapdoor tokens.

[0073] 1) The central attribute authority determines that the data user is at time t k The time interval in which it is located selects the representative time t of the time interval and publishes a time trapdoor token of a predetermined granularity:

[0074]

[0075] Among them, γ t These are the parameters generated when the system is initialized and used to construct the time trapdoor token.

[0076] 2) The location server is based on the location Loc of the data user k Publish location trapdoor tokens of a predetermined granularity:

[0077]

[0078] Among them, γ l These are the parameters generated when the system is initialized and used to construct the position trapdoor token.

[0079] 5. Time trap and location trap are released.

[0080] The cloud server determines whether the associated time trapdoor and location trapdoor can be released based on the time trapdoor token and the location trapdoor token. If so, the cloud server modifies the encrypted data in combination with the time trapdoor token and the location trapdoor token, and transmits the modified encrypted data to the data user. Specifically:

[0081] The cloud server determines whether the associated time trapdoor and location trapdoor can be released based on the received time trapdoor token TK and location trapdoor token LK. The cloud server modifies the encrypted data:

[0082] TD′ x =B x -H1(e(TK,A x ))

[0083] LD′ x =B′ x -H1(e(LK,A′ x ))

[0084] Among them, TD′ x , LD′ x Each represents the modified time trap and location trap. When the time trap token TK and the location trap token LK correspond to the time t and the location Loc k When all trapdoor release conditions are met, and The cloud server replaces TD in the encrypted data CT x TD′ x , LD x LD′ x , the modified encrypted data is recorded as CT′ and sent to the relevant data users.

[0085] Figure 4 The access structure diagram of the adaptive time and location attributes is shown. Assume that the attribute set of data user U1 is Attribute set of data user U2 Among them, A0, A1, and A2 each represent a single attribute, and the access structure tree can be divided into the following types:

[0086] (1) Figure 4 Part (a) is an access structure tree structure that is not associated with a time trapdoor or a location trapdoor. The access policy "(A1OR A2)AND A0" does not restrict the access time and location of data users, that is, both data users U1 and U2 can access the encrypted data.

[0087] (2) Figure 4 Part (b) is the access structure tree associated with the time trapdoor. The time trapdoor TD is attached to the non-leaf node to limit the permission release time of the sub-policy "A1 or A2", that is, the data user U1 needs to be within the representative range at time t (to obtain the time trapdoor token TK t ) to access, while data user U2 is not subject to time restrictions.

[0088] (3) Figure 4 Part (c) is the access structure tree associated with the location trapdoor. The location trapdoor LD is attached to the leaf node to limit the permission release location of a single attribute A2, that is, data user U2 can only access the data at Loc (where the location trapdoor token TK is obtained). Loc ) to access the data, while data user U1 is not restricted by location.

[0089] (4) Figure 4 Part (d) of is the access structure tree structure that associates both the time trapdoor and the location trapdoor. Under this strategy, the attribute set is Data user U1 needs to be within the representative range at time t to access the data, and the attribute set is Data user U2 can access the data only when he is at Loc and within the time range represented by time t.

[0090] 6. The data user downloads and decrypts the data from the cloud server according to the trapdoor status.

[0091] In contrast to the encryption process, the decryption process is a bottom-up process (from leaf nodes to root nodes). The preferred implementation method of this stage is as follows:

[0092] 1) After the data user obtains the modified encrypted data, he starts decrypting from the leaf node; the data user is recorded as data user j, and the modified encrypted data is recorded as CT′; since the modified encrypted data CT′ So for each node x, the parameters associated with time and position vary as follows:

[0093]

[0094] 2) For node x, if it is a leaf node.

[0095] The relevant attribute Att of node x x The identity attribute Att specified in the attribute set of data user j i .

[0096] If the identity attribute Or the trapdoor is not released successfully, then F x =⊥, where the symbol ⊥ indicates decryption failure.

[0097] If the identity attribute Att i ∈S j , and node x is not associated with the time trapdoor and position trapdoor of the unreleased state, then data user j calculates the decrypted data:

[0098]

[0099] 3) For node x, if it is a non-leaf node: set S x Defined as containing k x Any set of elements, where each element y is a child node of node x and satisfies F y ≠⊥, where F y Represents the value of the child node y, and the symbol ⊥ indicates decryption failure.

[0100] If the set S x If it does not exist, then F x =⊥.

[0101] If the set S xexists, and node x is not associated with a trapdoor in an unreleased state, then data user j computes the decrypted data:

[0102]

[0103] in, represents the Lagrange coefficient, y and y′ represent two different child nodes of node x, index y 、index y′ Respectively represent the index values ​​of two different child nodes y and y' of node x.

[0104] 4) For the root node R, if F R ≠⊥ (the symbol ⊥ indicates decryption failure), then data user j calculates the decrypted data: Among them, F R Is the decrypted data from Recursively obtained, Indicates the master secret.

[0105] 5) Finally, the data decrypted by data user j is as follows:

[0106]

[0107] If you get Description Data user decryption failed.

[0108] The above embodiments of the present invention can be applied to Figure 4 In any of the situations shown, since the data owner formulates the access policy, all secret parameters will be generated accordingly, and trapdoors will also be generated accordingly; for data users, there is no need to worry about the situations of different trapdoor tokens, each user will hold their own trapdoor token, and the subsequent decryption process will autonomously recover the secret value according to the required requirements.

[0109] The above solution of the embodiment of the present invention mainly achieves the following beneficial effects:

[0110] In terms of security, it can resist illegal access to the cloud, user collusion attacks, and chosen plaintext attacks, and in terms of performance, it achieves functional diversity and low computing overhead.

[0111] The honest but curious cloud server only has the time trapdoor token and location trapdoor token required to release the trapdoor, and cannot know the real time and location privacy of the data user. Although the cloud server can release the corresponding trapdoor of the illegal data user by forging the trapdoor token, since the real decryption operation (restoring the root node secret value of the access structure tree) is not performed in the cloud, even if the trapdoor is successfully released, the illegal cloud server still cannot access the data.

[0112] Assume that data user U i and U j (The data user identifiers are u i and u j ) do not satisfy the access policy, and they attempt to decrypt by combining their private keys, thereby illegally accessing the data. Suppose the leaf nodes that satisfy the policy are numbered 1, 2, ..., n, ..., n+k. According to the above F x Calculation formula, the leaf node secret value they can obtain is It can be seen that the secret values ​​of the recovered leaf nodes all have data user U i and U j The unique identifier of the root node cannot be restored. Therefore, the present invention can resist the collusion attack of multiple unauthorized data users with joint attributes.

[0113] By establishing a security game, simulating the interaction between the adversary and the challenger, and demonstrating the attack behavior in reality, it is proved that the present invention can resist the following two types of adversaries with the greatest advantages:

[0114] (1) Polynomial-time adversaries whose identity attributes meet the requirements of time or location.

[0115] (2) Polynomial-time adversaries whose time and location constraints are satisfied but whose identity attributes are not consistent.

[0116] In order to further illustrate the technical effect of the above scheme of the present invention, the following is an illustration through test experiments.

[0117] From the functional perspective, the cloud data access control method proposed in the present invention is denoted as TLAC, and is compared with the three existing methods: TAFC (cloud data access control method based on time attributes), LoTAC (cloud data access control method based on location attributes), and PPLBAC (location-based privacy-preserving access control method) from four aspects: fine-grained attributes, time-sensitive characteristics, location-sensitive characteristics, and flexibility. Table 1 shows the functional characteristics of each cloud data access control method. Table 1 illustrates the functional advantages of the cloud data access control method proposed in the present invention. In addition to successfully realizing the fine-grained access control requirements based on the dynamic attributes of time and location, it can also realize any combination of time, location, and data user attributes.

[0118] Of course, if time and location are treated as common attributes, the traditional CPABE (Cipher Policy Attribute Based Encryption) method can also achieve flexibility, but the system performance will be greatly reduced. The specific analysis is as follows.

[0119]

[0120] Table 1 Functional characteristics of various cloud data access control methods

[0121] The present invention was tested separately based on the open source library Charm-Crypto 0.50, using an Intel(R) Core(TM) i7-8550 1.80GHz processor, Ubuntu 16.04 64-bit system and Python 3.7.1, and the positioning simulation process used the GeoIP2 database. The test was based on the symmetric elliptic curve "SS512" over a 512-bit finite field, and all experimental results in the process were the average of 10 results.

[0122] The cloud data access control method proposed in this invention inherits the advantages of the traditional CPABE method, and performs a series of operations such as key generation, encryption and decryption in fine-grained units of attributes. Therefore, the time for private key generation varies linearly with the number of attributes associated with data users, and has no direct relationship with the number of data users. The performance improvement lies in that the private key only contains the static identity attributes of the data user, and only needs to be executed once during registration, without repeated execution.

[0123] Figure 5 The curve graph shows the relationship between the encryption time of the data owner and the number of leaf nodes in the access policy. Since the cloud data access control method proposed in the present invention embeds the trapdoor construction into the encryption algorithm, the encryption time will increase with the increase of the trapdoor types, but this operation only involves simple multiplication and division operations, and the impact on the encryption time is not significant. Figure 5 As shown in Figure 3, when the access strategy contains both time trapdoors and location trapdoors, the computational overhead of the encrypted access structure tree is the largest.

[0124] Figure 6 A plot of trapdoor release time versus the number of trapdoors is shown. Figure 7 The graph shows the relationship between the decryption time and the number of leaf nodes in the access policy. Similar to encryption, the advantage of the cloud data access control method proposed in the present invention is that decryption only needs to recover the secret parameters according to the data user association attributes and the access structure, without the need to perform trapdoor related operations, and the computational overhead is greatly reduced. Therefore, there is no need to compare the running time under different trapdoor conditions, and only show its relationship with the number of leaf nodes in the access policy.

[0125] In order to show the computational overhead advantage of the cloud data access control method proposed in the present invention, the computational overhead of each entity of the cloud data access control method TLAC proposed in the present invention is compared with the CPABE, LoTAC and TAFC methods. In particular, the analysis is conducted from the aspects related to time and location functions.

[0126] Assume that an access policy is associated with l trapdoors (time / location), and there are N data users who want to access data. The main operation cost is defined as follows: m Represents multiplication operation, O e represents the exponentiation operation, O p Represents a pairing operation. Represented in the group The multiplication operation below, The definition is similar.

[0127] In terms of the computational overhead related to time and location trapdoor tokens, the cloud data access control method proposed in the present invention predefines a timetable of a specific granularity. The central attribute authority only needs to issue trapdoor tokens representing the time to all data users within the interval according to the interval of the data user's real-time access time. It is not affected by the access frequency and will not bring additional time-related overhead to other entities in the system. The location server only undertakes the task of issuing location trapdoor tokens and performs positioning operations on data users. Table 2 shows the calculation overhead of trapdoor tokens for related entities in the cloud data access control system. As can be seen from Table 2, the cloud data access control method proposed in the present invention can significantly reduce the token issuance overhead of the central attribute authority and the location server.

[0128]

[0129] Table 2 Token computation overhead of related entities in cloud data access control system

[0130] In terms of the overhead of data owners and data users, the cloud data access control method proposed in the present invention embeds the time and location conditions as trapdoors into any node (leaf or non-leaf node) of the access structure tree, and for the release operation of the trapdoor, the cloud data access control method proposed in the present invention outsources it to the cloud, and the data user only needs to perform simple decryption. Compared with the two methods of CPABE and TAFC, the cloud data access control method TLAC proposed in the present invention not only does not increase the overhead of data owners, but can even reduce the overhead of data users. The computational overhead of data owners and data users on trapdoor encryption is shown in Table 3.

[0131]

[0132] Table 3 Computational overhead of data owners and data users on trapdoor encryption

[0133] As for the overall encryption, the encryption time of the cloud data access control method proposed by the present invention is directly related to the number of attributes. Compared with the number of data users, the growth rate of the number of attributes is greatly reduced, the growth rate of encryption time is slowed down, and operations such as permission release are all concentrated in the cloud, which effectively reduces the computing overhead of data users.

[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0135] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A fine-grained cloud data access control method integrating time and location attributes, characterized in that: include: The cloud server in the fine-grained cloud data access control system receives encrypted data generated by the data owner by constructing a node trapdoor, wherein the node trapdoor includes a time trapdoor and a location trapdoor; When the fine-grained cloud data access control system receives an encrypted data access request from a data user, the central attribute authority in the fine-grained cloud data access control system issues a time trapdoor token of a predetermined granularity based on the time where the data user is located, and the location server in the fine-grained cloud data access control system issues a location trapdoor token of a predetermined granularity based on the location where the data user is located; The cloud server determines whether the associated time trapdoor and location trapdoor can be released based on the time trapdoor token and the location trapdoor token, and if so, modifies the encrypted data in combination with the time trapdoor token and the location trapdoor token, and transmits the modified encrypted data to the data user; The steps for the data owner to encrypt data by constructing a node trapdoor include: The access structure tree to be constructed Perform secret distribution, starting from the root node, to access the structure tree Each node x on is assigned four associated secret parameters, which are Among them, the parameters Associated with the parent node of node x, if node x is the root node R, The master secret parameter Associated with the child nodes of node x, that is, shared with its child nodes as the secret in the final secret sharing mechanism. If node x is a leaf node, the parameter Associated with related attributes, parameters Associated with time, parameters Associated with location; For the root node R, the data owner randomly selects the master secret For the parameters assigned to For any node x except the root node R, assign three other secret parameters to it: in, represents a set of positive integers of order p, Represents from the set Random selection; For the parameters If the node x is a non-leaf node, the data owner generates a random polynomial q x , the polynomial satisfies: the degree of the random polynomial is equal to the number of child nodes of the corresponding non-leaf node minus 1, and 0 means that the variable x in the polynomial takes the value of 0; For the parameters If the node x is a non-leaf node, its related attribute is the identity attribute specified in the data user attribute set, denoted by Att x , the data owner calculates the ciphertext associated with the identity attribute of the corresponding leaf node: Among them, C x and C' x The encrypted data associated with the attribute is divided into two parts; g is The generator of is a multiplicative cyclic group, whose order is a prime number p; H0 is a hash function: The symbol * represents a positive integer; Construct node trapdoor: If the permission release time associated with node x is t, the parameter associated with time is The data owner chooses the random number Generate its time trapdoor: in, represents a bilinear map, H1 is a hash function and is a multiplicative cyclic group, with order p, A x , B x Represents the time trapdoor TD x The two parts of f1 represent the parameters of generating time trapdoor; If the permission release location associated with node x is Loc k , the parameters associated with the position are The data owner chooses the random number Generate its position trapdoor: Among them, A' x , B' x Indicates the position trapdoor LD x The two parts of f2 represent the parameters for generating the time trapdoor; If node x is a non-leaf node, set the parameters for each of its child nodes y. Used for subsequent data decryption; The encrypted data finally generated is represented as: in, C represents the different components of encrypted data. Indicates the data to be encrypted; The cloud server determines whether the associated time trapdoor and location trapdoor can be released based on the time trapdoor token and the location trapdoor token, and if so, modifies the encrypted data in combination with the time trapdoor token and the location trapdoor token, and transmits the modified encrypted data to the data user, including: The cloud server determines whether the associated time trapdoor and location trapdoor can be released based on the received time trapdoor token TK and location trapdoor token LK; The cloud server modifies the encrypted data: TD′ x =B x -H1(e(TK,A x )) LD′ x =B′ x -H1(e(LK,A′ x )) Among them, TD′ x , LD′ x They represent the modified time trapdoor and position trapdoor respectively. x With B x , and A′ x B′ x Each is a time trapdoor TD in the encrypted data x , Position trapdoor LD x two parts; represents a bilinear map, H1 is a hash function and is a multiplicative cyclic group, the order is a prime number p; the symbol * represents a positive integer; When the time trapdoor token TK and the location trapdoor token LK correspond to the time t and the location Loc k When all trapdoor release conditions are met, and The cloud server replaces TD in the encrypted data CT x TD′ x , LD x LD′ x , the modified encrypted data is recorded as CT' and sent to the relevant data users.

2. According to claim 1, a fine-grained cloud data access control method integrating time and location attributes is characterized in that: The fine-grained cloud data access control system includes: a central attribute authority, a cloud server, and a location server; Before the cloud server receives the encrypted data from the data owner through the node trapdoor construction, it performs system initialization and the central attribute authority randomly selects a series of parameters. And generate the public key PK and master key MK, expressed as: MK=(β,γ) t ,c l ,g α ) Among them, g is The generator of represents a bilinear map, and is a multiplicative cyclic group, with an order of prime number p; the symbol * represents a positive integer, and the symbol Represents a set of positive integers of order p; parameters I, h, f1, and f2 are all part of the public key. Parameter I is used to generate the public key, parameter h is used for data encryption and decryption, parameter f1 is used to construct a time trapdoor, and parameter f2 is used to construct a position trapdoor.

3. According to claim 2, a fine-grained cloud data access control method integrating time and location attributes is characterized in that: After the system is initialized, the central attribute authority generates the private key of each data user. For data user j, the central attribute authority selects a random number As the unique identifier of data user j, and the attribute set S of data user j j Each identity attribute Att in i Assigning random numbers Generate the data user's private key: Among them, D is the partial private key generated for the unique identification of data user j, D i and D' i It is the partial private key generated for each identity attribute of the data user j, which constitutes the complete user private key; The central attribute authority sends the generated private key of each data user to the relevant data user through a secure channel.

4. According to claim 1, a fine-grained cloud data access control method integrating time and location attributes is characterized in that: The central attribute authority in the fine-grained cloud data access control system issues a time trapdoor token of a predetermined granularity based on the time at which the data user is located, including: The central attribute authority determines that the data user is at time t k The time interval in which it is located selects the representative time t of the time interval and publishes a time trapdoor token of a predetermined granularity: Among them, H0 is the hash function: is a multiplicative cyclic group, with a prime number p as its order; the symbol * represents a positive integer, γ t These are the parameters generated when the system is initialized and used to construct the time trapdoor token.

5. According to claim 1, a fine-grained cloud data access control method integrating time and location attributes is characterized in that: The location server in the fine-grained cloud data access control system issues a location trapdoor token of a predetermined granularity based on the location of the data user, including: The location server is based on the location Loc of the data user k Publish location trapdoor tokens of a predetermined granularity: Among them, H0 is the hash function: is a multiplicative cyclic group, with a prime number p as its order; the symbol * represents a positive integer, γ l These are the parameters generated when the system is initialized and used to construct the position trapdoor token.

6. A fine-grained cloud data access control method integrating time and location attributes according to any one of claims 1 to 5, characterized in that: The method also includes a step in which the data user decrypts the modified encrypted data obtained by the data user, and the relevant steps include: After the data user obtains the modified encrypted data, he starts decrypting from the leaf node; wherein the data user is recorded as data user j, and the modified encrypted data is recorded as CT'; For node x, if it is a leaf node: the relevant attribute Att of node x x The identity attribute Att specified in the attribute set of data user j i ; If the identity attribute Or the trapdoor is not released successfully, then F x =⊥, where the symbol ⊥ indicates decryption failure; if the identity attribute Att i ∈S j , and node x is not associated with the time trapdoor and position trapdoor of the unreleased state, then data user j calculates the decrypted data: in, represents a bilinear map, g is The generator of , H0 is the hash function: and is a multiplicative cyclic group, with order being a prime number p; u j represents the unique identifier of data user j, and the attribute set S of data user j j Each identity attribute in is assigned a random number D i and D′ i is a part of the private key of data user j, generated using identity attributes, and expressed as: Indicates the four secret parameters corresponding to node x when constructing node trapdoor encrypted data. Associated with identity attributes, parameters Associated with the parent node of node x, parameter Associated with time, parameters Associated with location; Indicates the encrypted data part associated with the identity attribute of the leaf node x; For node x, if it is a non-leaf node: set S x Defined as containing k x Any set of elements, where each element y is a child node of node x and satisfies F z ≠⊥; if the set S x If it does not exist, then F x =⊥, where F y Represents the value of the child node y; if the set S x exists, and node x is not associated with a trapdoor in an unreleased state, then data user j computes the decrypted data: Among them, the random polynomial parameter Associated with the child nodes of node x, that is, shared with its child nodes as the secret in the final secret sharing mechanism; represents the Lagrange coefficient, y and y' represent two different child nodes of node x, index y 、index y' Respectively represent the index values ​​of two different child nodes y and y' of node x; for the root node R, if F R ≠⊥, then data user j calculates the decrypted data: Among them, F R Is the decrypted data from Recursively obtained, It means the main secret; The data decrypted by data user j is as follows: Where h = g β , are parameters randomly selected when the system is initialized. represents a set of positive integers of order p; D is a part of the private key of data user j, using the unique identifier u j Generate, expressed as C represents the different components of encrypted data. Represents unencrypted plaintext data.