Attribute-based encryption method and system for edge controller
The attribute-based encryption method that uses the global management agency, attribute authorization agency and edge controller to work together solves the problem of key escrow and low computing efficiency in the edge controller environment, achieves safe and efficient decryption and access control of data, and ensures Data security and system stability.
Patent Information
- Application Number
- CN202410899108.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-17
AI Technical Summary
Existing attribute-based encryption methods have key escrow issues, single point of failure risks, access control policies leaking data user information, and long encryption and decryption operations in edge controller environments, especially in resource-constrained terminal devices. The computing efficiency is low and it is difficult to ensure data security.
It adopts the attribute-based encryption method in which the global management agency, attribute authority and edge controller work together to generate and distribute partial attribute keys and public keys, and perform key aggregation based on user attributes to ensure that the client can decrypt data safely and efficiently. And reduce the burden on terminal devices through the computing power of edge servers.
It effectively reduces the latency of encryption and decryption operations, improves computing efficiency, ensures data security and access control accuracy, avoids single point of failure and key leak risks, and is suitable for edge intelligent control systems with limited resources.
Smart Images

Figure CN118659877A
Abstract
Description
Technical Field
[0001] The present application relates to the field of attribute-based encryption technology, and in particular to an attribute-based encryption method and system for edge controllers. Background Art
[0002] In the Industrial Internet, various devices on the production line need to meet requirements such as intelligent access, real-time communication, and privacy protection with other devices.
[0003] In the traditional cloud computing model, centralized deployment usually means that the computing nodes are usually far away from the communication distance between smart terminals, and the communication equipment needs to have high bandwidth, high real-time performance and low latency performance.
[0004] To interconnect every piece of equipment on the production line, such as robots, machine tools, and transfer vehicles, data must be collected from each device and uploaded via communication interfaces. Thousands of sensors are used to collect this data, and redundant data must be removed. Furthermore, this collected data places significant computational pressure on the PLC controllers on the equipment and also places significant pressure on the network interfaces.
[0005] To overcome the aforementioned shortcomings of centralized deployment, the concept of edge deployment has been proposed. This involves placing edge controllers near production line equipment. These controllers act as gateways for communication with backend servers and also handle computing tasks for the equipment.
[0006] Edge-deployed industrial Internet also brings new challenges to encrypted communication and storage of data.
[0007] Since a factory has many departments and employees, such as the production department, quality department, process department, and project department, and the job levels of employees in each department are different, data access permissions need to be allocated based on departments and job levels.
[0008] To address the aforementioned data security issues, attribute-based encryption is often used to generate public and private keys. The private keys are decryption functions defined for different departments and employees.
[0009] However, the following problems still exist in the existing attribute-based encryption methods:
[0010] Relying on a single attribute authorization agency to manage and distribute keys will lead to key custody problems and the risk of single point failure. Access control policies may leak information of data users, there may be a risk of malicious users leaking keys, and encryption and decryption operations take a long time, while terminal devices are generally resource-constrained devices.
[0011] Therefore, research on data encryption methods for edge controllers must not only consider how to reduce latency and improve computational efficiency, but also protect the sensitive information involved. This is of great significance to the secure and efficient operation of edge intelligent control systems. Summary of the Invention
[0012] To overcome the problems existing in the related art, this application provides an attribute-based encryption method for edge controllers, including:
[0013] S1. Initialization of global management organization:
[0014] The global management agency generates a global key based on the global parameters and distributes it to the user end;
[0015] S2. Initialization of attribute authority:
[0016] The attribute authorization mechanism divides the user attribute set into multiple user attribute subsets, and sends the user attribute subsets to corresponding edge controllers respectively;
[0017] S3. Initialize the edge controller:
[0018] Each of the edge controllers generates a partial attribute key and a partial attribute public key according to the user attribute subset and a random number, and sends the partial attribute key and the partial attribute public key to the attribute authorization agency;
[0019] S4. The attribute authorization agency aggregates the partial attribute keys and the partial attribute public keys to obtain an aggregated attribute key and attribute public key;
[0020] S5. Key distribution:
[0021] The global management agency generates a group key for the user based on the user's attributes and sends a partial key to the user;
[0022] The attribute authorization agency generates a user attribute authentication key associated with uid;
[0023] The user terminal aggregates the secret key of the global management agency and the secret key of the attribute authorization agency to obtain a user decryption key;
[0024] S6. Data encryption:
[0025] S7, data decryption;
[0026] The edge server determines whether to send the ciphertext according to the user decryption key. If so, it sends the pre-decrypted ciphertext to the user. The user decrypts the pre-decrypted ciphertext according to the user decryption key to obtain a plaintext message.
[0027] In one embodiment, the global management mechanism generates a global key based on global parameters, specifically including:
[0028] Choose two multiplicative groups G1 and G of prime order p T Let g be the generator of G1, e:G1×G1→G T is a bilinear map using a collision-resistant hash function H:{0,1} * →G1;
[0029] The global management agency selects a random number η,r∈Z p and publish the global parameters as The global key is
[0030] In one embodiment, the attribute authority selects random numbers α, φ, ψ∈Z p , and calculate g α 、e(g,g) α and (g φ ) ψ , and the attribute authority sends the parameter ψ to the edge controller.
[0031] In one embodiment, the edge controller initialization specifically includes:
[0032] The edge controller selects a random number β x ,h x ,γ x ∈Z p , and calculate and (H(x)) ψ ;
[0033] Each edge controller generates a partial master key as follows:
[0034] Part of the public key is:
[0035] In one embodiment, the data encryption specifically includes:
[0036] The edge controller formulates access control policies and generates ciphertext CT.
[0037] In one embodiment, the data decryption further includes: an edge server
[0038] Pre-decryption obtains pre-decrypted ciphertexts CT1' and CT2'.
[0039] In one embodiment, after receiving CT, CT1', and CT2' from the edge server, the user calculates:
[0040]
[0041] Finally, the plaintext message M is obtained through M=C0 / CT".
[0042] In one embodiment, after the data is decrypted, the method further includes: S8, tracking and revoking malicious users.
[0043] A second aspect of the present application provides an edge controller-oriented attribute-based encryption system, which is used to execute the attribute-based encryption method described in the present application, including:
[0044] The global management agency, attribute authorization agency, edge server, edge controller and user terminal. The technical solution provided by this application may have the following beneficial effects:
[0045] In order to speed up the calculation efficiency of the key, the embodiment of the present application uses the computing performance of the edge controller to help the attribute authorization agency share the computing pressure. At the same time, since the user's key generation process is completed jointly by the global management agency, the attribute authorization agency and the user, it can ensure that the global management agency or the attribute authorization agency cannot obtain the complete decryption key alone to decrypt the ciphertext, thereby ensuring data security.
[0046] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0048] Figure 1 This is a flow chart of an attribute-based encryption method for an edge controller shown in an embodiment of the present application;
[0049] Figure 2 This is a structural diagram of an attribute-based encryption system for edge controllers shown in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0051] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0052] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0053] In response to the data security issue of edge controllers in the industrial Internet edge computing environment raised in the background technology, an embodiment of the present application provides an attribute-based encryption method for edge controllers, which can effectively prevent the leakage of sensitive information in industrial control scenarios and protect the data security of industrial systems.
[0054] like Figure 1 As shown, the attribute-based encryption method for edge controllers described in the embodiment of the present application specifically includes the following steps:
[0055] S1, initialization of global management organization;
[0056] S2, attribute authority initialization;
[0057] S3, edge controller initialization;
[0058] S4. Aggregate the partial attribute keys and the partial attribute public keys to obtain aggregated attribute keys and attribute public keys;
[0059] S5, key distribution;
[0060] S6, data encryption;
[0061] S7, data decryption;
[0062] S8. Malicious user tracking and revocation.
[0063] In step S1, it specifically includes:
[0064] S101, select two multiplicative groups G1 and G with prime order p TLet g be the generator of G1, e:G1×G1→G T is a bilinear map using a collision-resistant hash function H:{0,1} * →G1.
[0065] S102. Each user and edge controller registers with the global management agency. The global management agency distributes unique global user identifiers (uid) and (eid) to each user and edge controller. T is a binary tree associated with users, used to manage a group of users and maintain the user's group key. The global management agency randomly selects x for each node in T. i ∈Z p ,i∈{0,…,2|U|-2} and calculate
[0066] S103, the global management agency selects a random number η, r∈Z p and publish the global parameters as The global key is
[0067]
[0068] In step S2, it specifically includes:
[0069] The attribute authority first selects random numbers α, φ, ψ∈Z p , and calculate g α 、e(g,g) α and (g φ ) ψ The attribute authorization agency then sends the parameter ψ to the edge controller. Next, the attribute authorization agency divides the user attribute set S into multiple disjoint parts and sends each part to the corresponding edge controller, which then assists in calculating the corresponding partial master key and partial public key.
[0070] In step S3, it specifically includes:
[0071] Each edge controller receives parameters and a partial attribute set S from the attribute authority. eid For each element x∈S in the attribute set eid , the edge controller selects a random number β x ,h x ,γ x ∈Z p , and calculate and (H(x)) ψ Each edge controller then generates a partial master key and a partial public key and send them to the property authority.
[0072] In step S4, the attribute authority receives and aggregates the partial master key PMSK generated by all edge controllers eid and the partial public key PMPK eid . The attribute authority then sets the aggregated public key to Set the aggregated master key to MSK AA ={α,φ,{β x ,h x ,γ x ,(H(x))ψ} x∈S}.
[0073] In step S5, it specifically includes:
[0074] S501. The global management agency selects a random number σ for the user. uid ∈Z p , and store the number in the leaf node of the binary tree associated with the user. Assume path(uid)={i0,…,i d} represents the path of the leaf nodes associated with the user in the binary tree, where i0 = root, representing the root node, i d represents a leaf node in the binary tree associated with a user, then the user's group key is {x i} i∈path(uid) . Global Management Agency Calculation Then part of the key Sent to the user.
[0075] S502, the attribute authority first calculates g φ , then the user attribute set S uid Each attribute x∈S in uid Calculate x'=e(g φ ,(H(x)) ψ ), thus generating the set S uid '.
[0076] S503, the attribute authority generates a user attribute authentication key associated with uid Used to determine whether the user attributes meet the set during the decryption process, and calculate and
[0077] S504, the attribute authority sends part of the key
[0078] Sent to the user.
[0079] S505, user receives SKGA and SK AA Post-calculation
[0080] The final personal key is:
[0081]
[0082] In step S6, it specifically includes:
[0083] S601, edge controller ciphertext pool generation:
[0084] Specifically, it is divided into the following three steps:
[0085] 1. The edge controller selects a random index s∈Z p And calculate: C0'=e(g,g) αs ,C'=g s , then for EIC selects λ i ′,w i ',μ i ∈Z p And calculate:
[0086] 2. The global management agency maintains a revocation list R for malicious users list , assuming S(R list ) represents the revocation list R list The minimum cover set of associated unrevoked users, for each j∈S(R list ), calculate the relevant ciphertext components
[0087] 3. Finally, the intermediate ciphertext of the ciphertext pool is:
[0088]
[0089] This embodiment of the application leverages the storage capacity of the edge controller to first generate a ciphertext pool, reducing the time required to subsequently upload encrypted data to the edge server for storage. Furthermore, for resource-constrained terminal devices, they only need to collect data and transmit it to the edge controller via a secure channel. The edge controller then processes and encrypts the data before uploading it to the edge server for storage, significantly reducing the computing pressure on the terminal device.
[0090] S602. Edge controller encrypts data:
[0091] 1. The edge controller formulates access control policies to allow S TThe attribute set representing the access control policy. For each attribute x∈S in the access control policy T , the edge controller runs the algorithm x'=e((g φ ) ψ ,H(x)) to generate S T ', making the attribute hidden in the access control policy.
[0092] 2. The edge controller generates a l×n linear secret sharing matrix A, and ρ maps each row of the matrix to S T ', where l is S T '. The edge controller EIC then selects a random vector
[0093] where s,s2,s3,…,s n Used to share secret s. Let λ i Indicates A i The dot product with v, where A i is the i-th row of A. At the same time, a random vector is selected And let w i represents the i-th row A of A i The dot product with z. The edge controller then calculates:
[0094] C0=MC0′=Me(g,g) αs
[0095]
[0096] {C 3,i =λ i -λ i ′} i∈{1,…,l}
[0097] {D 3,i =w i -w i '} i∈{1,…,l}
[0098] Finally, the ciphertext is
[0099]
[0100] In the embodiment of the present application, the edge controller uses the formula x'=e((g φ ) ψ ,H(x)) to hide information. When decrypting, users need to first pair their own attribute set with the access control policy.
[0101] Therefore, in the key generation phase, it is necessary to calculate x'=e(g φ ,(H(x))ψ ), which consumes a lot of time.
[0102] In this embodiment of the application, each edge controller assists in computing And the attribute authority aggregates it to generate {(H(x)) ψ} x∈S , setting it as part of the master key helps to reduce the computational pressure of the attribute authority when generating keys for users.
[0103] In step S7, it specifically includes:
[0104] S701, access control policy verification:
[0105] When a user submits a data access request, the edge server first verifies whether the user's attribute set satisfies the access control policy in the ciphertext to determine whether the user has permission to access the ciphertext. If the user satisfies the access control policy, they are deemed to be a shared object of the ciphertext. Based on the user's key and the relevant ciphertext information, the edge server performs the following calculations:
[0106]
[0107] {V 1,i =e(H(uid),V 0,i )} i∈{1,…,l}
[0108] {V 2,i =D 1,i ·V 1,i} i∈{1,…,l}
[0109]
[0110] If P=1, the user attribute set satisfies the access control policy and belongs to the shared object of the ciphertext. The edge server can provide pre-decryption calculation.
[0111] S702, edge server pre-decryption:
[0112] Edge server selection satisfies the formula Random number
[0113] Then calculate:
[0114] T0=e(C',K3
[0115]
[0116] {T 2,i =e(T 1,i ,K2)}i∈{1,…,l}
[0117]
[0118]
[0119] j=S(R list )∩path(uid)
[0120]
[0121] CT2'=e(K1,T j ) θ =e(g,g) rs
[0122] Next, the edge server sends the complete ciphertext CT and the pre-decrypted ciphertexts CT1 ′ and CT2 ′ to the user.
[0123] S703: User decryption.
[0124] After the user receives CT, CT1' and CT2' from the edge server, it calculates:
[0125]
[0126] M=C0 / CT”
[0127] Among them, the plaintext message obtained is M.
[0128] In step S8, it specifically includes:
[0129] S801. Malicious User Tracking and Revocation:
[0130] Specifically, when a user who is not registered with the global management agency is detected to use a key to decrypt data, the global management agency first checks whether the key is complete using the following formula:
[0131] K0,x i ∈Z p H(uid),AK x,uid ,P x ,K1,K2,K3∈G1
[0132]
[0133] For the complete key, the global management authority passes the key component K0 = σ uid The user information of the binary tree locates the user who leaked the key maliciously and revokes it. At the same time, the revocation list R is updated list ′=R list ∪{uid}.
[0134] S802, update.
[0135] The update phase includes key update and ciphertext update. The global management agency selects ξ∈Z p , calculate x i '=ξ·x i ,i∈{0,…,2|U|-2} and And update the global parameter GPP and global key GSK; then calculate the corresponding group key {x i '} i∈path(uid) And send it to the user to update the key. At the same time, the global management agency will send and the updated revocation list R list 'Sent to edge server, edge server calculates And update the ciphertext.
[0136] When a user is revoked, the ciphertext and key are updated at the same time to ensure the security of the ciphertext and to ensure that legitimate users registered with the global management agency can normally decrypt existing ciphertext and subsequently encrypted ciphertext.
[0137] In order to speed up the calculation efficiency of the key, the embodiment of the present application uses the computing performance of the edge controller to help the attribute authorization agency share the computing pressure. At the same time, since the user's key generation process is completed jointly by the global management agency, the attribute authorization agency and the user, it can ensure that the global management agency or the attribute authorization agency cannot obtain the complete decryption key alone to decrypt the ciphertext, thereby ensuring data security.
[0138] Example 2
[0139] Based on the first embodiment, the present application provides an edge controller-oriented attribute-based encryption system, which is used in the attribute-based encryption method described in the first embodiment, including:
[0140] Global Management: The global management organization is responsible for system initialization, registration of edge intelligent controllers and users, and assigning unique identifiers (UIDs) and EIDs to edge intelligent controllers and users joining the system. This organization manages users using a binary tree and maintains a user revocation list to remove malicious users. Furthermore, the global management organization generates global parameters for encryption and retains global keys for generating partial decryption keys.
[0141] Attribute Authority: The Attribute Authority is responsible for managing attributes, including generating public keys for encrypting data and retaining master keys for generating partial decryption keys associated with the attributes. Leveraging the computing power of the edge intelligent controller, the Attribute Authority generates partial public keys and master keys. It then combines these self-generated partial key components into complete public and master keys, significantly reducing computational burden.
[0142] Edge controllers: Edge controllers connect to end devices with limited computing resources, such as sensors and actuators. These edge controllers receive data from end devices, encrypt it using access control policies, and then upload it to edge servers for storage and sharing. Simultaneously, multiple edge intelligent controllers leverage their computing power to assist the attribute authority in generating components of the public key and master key, thereby offloading the attribute authority's computational burden.
[0143] Edge server: Edge servers have powerful computing power and data storage capabilities, and can assist some user devices with limited performance to decrypt ciphertext, thereby effectively reducing the computing burden on data users.
[0144] User: Users are the nodes that access data and are typically resource-constrained devices. Each legally registered user can request key fragments from the global management authority and the attribute authority. These fragments are then combined to obtain the complete user key. When a user needs to access data, the edge server can pre-decrypt the ciphertext, so the user only needs to perform a simple decryption calculation to obtain the plaintext data.
[0145] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0146] The embodiments of the present application have been described above. The above description is illustrative and not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or improvements to the technology in the market, or to enable other persons skilled in the art to understand the embodiments disclosed herein.
Claims
1. An attribute-based encryption method for edge controllers, It is characterized in that include: S1. Initialization of global management organization: The global management agency generates a global key according to the global parameters and distributes it to the user end; S2. Initialization of attribute authority: The attribute authorization mechanism divides the user attribute set into a plurality of user attribute subsets, and sends the user attribute subsets to the corresponding edge controllers respectively; S3. Initialize the edge controller: Each of the edge controllers generates a partial attribute key and a partial attribute public key according to the user attribute subset and a random number, and sends the partial attribute key and the partial attribute public key to the attribute authorization agency; S4, aggregating each of the partial attribute keys and the partial attribute public keys to obtain an aggregated attribute key and an attribute public key; S5. Key distribution: The global management agency generates a group key of the user according to the user attributes and sends a partial key to the user; The attribute authorization agency generates a user attribute authentication key associated with uid; The user terminal aggregates the secret key of the global management agency and the secret key of the attribute authorization agency to obtain a user decryption key; S6. Data encryption: S7, data decryption; The edge server determines whether to send the ciphertext according to the user decryption key. If so, it sends the pre-decrypted ciphertext to the user. The user decrypts the pre-decrypted ciphertext according to the user decryption key to obtain a plaintext message.
2. The attribute-based encryption method according to claim 1, It is characterized in that The global management mechanism generates a global key according to the global parameters, specifically including: Choose two multiplicative groups G of prime order p 1 and G T Let g be G 1 Generator of e:G 1 ×G 1 →G T is a bilinear map, using a collision-resistant hash function H:{0,1} * →G 1 ; The global management agency selects a random number η,r∈Z p , and publish the global parameters as The global key is 3. The attribute-based encryption method according to claim 1, It is characterized in that The attribute authority selects random numbers α, φ, ψ∈Z p , and calculate g α 、e(g,g) α and (g φ ) ψ , and the attribute authority sends the parameter ψ to the edge controller.
4. The attribute-based encryption method according to claim 1, It is characterized in that The edge controller initialization specifically includes: Edge controller selects random number β x ,h x ,γ x ∈Z p , and calculate and (H(x)) ψ ; Each edge controller generates a partial master key as: Part of the public key is:
5. The attribute-based encryption method according to claim 1, It is characterized in that The data encryption specifically includes: The edge controller formulates access control policies and generates ciphertext CT.
6. The attribute-based encryption method according to claim 1, It is characterized in that The data decryption also includes: edge server pre-decryption to obtain the pre-decrypted ciphertext CT 1 ' and CT 2 '.
7. The attribute-based encryption method according to claim 6, It is characterized in that The user receives CT sent by the edge server. 1 ' and CT 2 'After that, calculate: Finally, through M = C 0 / CT" to get the plaintext message M.
8. The attribute-based encryption method according to claim 1, It is characterized in that After the data is decrypted, it also includes: S8. Malicious user tracking and revocation.
9. An attribute-based encryption system for edge controllers, It is characterized in that The method for performing the attribute-based encryption method according to claim 1 to claim 8 comprises: Global management agency, attribute authorization agency, edge server, edge controller and user end.
Citation Information
Cited By
Key distribution method
CN119276490A
