RFID group tag authentication method and authentication system based on Internet of Things application
By constructing an access subtree for the RFID group tag and using the encryption algorithm of the KP-ABE mechanism, the problem that the existing technology cannot identify the authentication object category is solved, the identity recognition and authentication of the group tag are realized, and security and management are improved. efficiency.
Patent Information
- Application Number
- CN202410635803.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-30
AI Technical Summary
The existing RFID group authentication method cannot actively identify the category of the authentication object, cannot implement the authentication function of individual group tags for entity groups with multiple categories, and cannot effectively identify non-single category entities in the batch authentication process.
By constructing an access subtree for each group tag object, and using the encryption algorithm of the KP-ABE mechanism to generate entity feature data ciphertext and key components for each single tag, it can only be restored when the complete attribute set is read. Access the subtree, determine the group tag category, and confirm the identity of the combined entity through the decrypted entity feature data.
It realizes the identification and authentication of group tags, improves the secure storage capacity of tag authentication information, avoids the risk of attackers cracking keys through single-point attacks, and supports the management and maintenance of multiple key parameters.
Smart Images

Figure CN118574122A
Abstract
Description
Technical Field
[0001] The present invention relates to information security authentication technology, and in particular to an RFID group tag authentication method and an authentication system thereof for Internet of Things applications. Background Art
[0002] The Internet of Things is an important part of the new generation of information technology. Its biggest advantage is that it interconnects highly heterogeneous devices and systems, covering entities of various shapes, sizes and functions. Radio Frequency Identification (RFID) technology is used as a node identification mechanism in the Internet of Things and is considered to be one of the necessary requirements for realizing the application of the Internet of Things. It helps to solve the identification problem of things in an economical and efficient way. The reader recognizes the tag through the wireless radio frequency signal, uniquely and effectively identifies the physical object attached to the tag, obtains its relevant feature data, and can quickly, timely and accurately collect and process information. However, since the wireless channel used in the RFID forward communication process is open to everyone, it is often plagued by various security and privacy issues. At present, tag authentication technology plays a vital role in RFID application systems as an effective means to prevent various attacks.
[0003] As global commodities and industrial chains become more diversified, more and more application entities are affixed with RFID tags, and the application of group proof technology, which is used to prove that several items with certain relationships appear as a group at the same time and place, is becoming more and more widespread. Existing technologies generally use broadcast group proof protocols for data collection. The reader broadcasts query commands, all tags respond to the commands, and the reader collects these responses and generates group proofs based on these responses. This authentication mode is widely used because it has certain time synchronization. It is not difficult to find in many research results that the existing group proof protocols are mainly guided by two factors. On the one hand, considering the limited computing power of RFID tags, it is necessary to design lightweight authentication algorithms, such as the bit operations or one-way hash functions used by most RFID group proof security protocols to implement message encryption to reduce computing overhead. On the other hand, it focuses on security, such as using a group authentication algorithm constructed based on a public key encryption mechanism to improve system security, or between the two, designing a security protocol with the purpose of balancing security and tag computing costs. However, these tag group authentication methods can only verify the authenticity of the entire group based on the group proof, but cannot effectively identify the authentication object itself. Since different types of group tags use different encryption mechanisms, the ciphertext read from the tag needs to select the corresponding type of decryption parameters in the background authentication end. Therefore, it is necessary to confirm the category of the subject to be authenticated in advance to realize the authentication function. This is not applicable to the batch authentication process of entities of non-single category, and it is impossible to realize the authentication function of individual group tags for entity groups with multiple categories. Summary of the invention
[0004] In order to overcome the problem that the existing RFID group authentication method cannot actively identify the category of the authentication object, the present invention provides an RFID group tag authentication method and an authentication system based on the Internet of Things application. By constructing an access subtree for each group tag object to distinguish them, the group tag is successfully authenticated only if the key components assigned to the tag carrier jointly satisfy a certain access subtree, and the entity identity of the group tag can be automatically identified.
[0005] In order to achieve the above object, the present invention provides an RFID group tag authentication method based on Internet of Things applications, which specifically includes the following stages:
[0006] Access structure initialization phase: construct an access subtree for each independent combination of group labels, including root nodes, intermediate nodes and leaf nodes. The root node of each access subtree represents the group label, each leaf node is associated with a unique attribute, and the intermediate node connects the root node with the leaf node through a set threshold value. After all access subtrees are connected together, an access tree associated with all types of group labels is formed;
[0007] Tag initialization phase: assign authentication entities to all single tags in the group tag, and assign corresponding attributes and entity feature data to each single tag according to the type of authentication entity. Extract the attributes of each single tag in the group tag to form an attribute set. Use the attribute set and entity feature data as input data, and use the encryption algorithm of the KP-ABE mechanism to generate the corresponding entity feature data ciphertext and key component for each single tag. Store the attribute identifier, entity feature data ciphertext and key component in the single tag.
[0008] Decryption key generation phase: using the access subtree as input data, the key generation algorithm of the KP-ABE mechanism is used to generate the corresponding decryption subkey for each leaf node;
[0009] Access structure identification phase: read the attribute identifiers, entity feature data ciphertexts and key components of all single tags in the group tag, and use the attribute identifiers to reconstruct the access subtree corresponding to the group tag in the access tree. If the reconstruction fails, the authentication operation is terminated and the access structure identification failure message is returned. Otherwise, the group tag authentication phase is executed;
[0010] Group tag authentication phase: all key components and decryption subkeys are used as input data, and the entity feature data ciphertext is decrypted using the decryption algorithm of the KP-ABE mechanism. If the decryption fails, the authentication operation is terminated and a decryption failure message is returned. Otherwise, it is further determined whether all decrypted entity feature data match the corresponding entity. If there is an inconsistent comparison result, it indicates that the authentication has failed and a group tag authentication failure message is returned. Otherwise, it indicates that the authentication has passed and a group tag authentication success message is returned.
[0011] Further preferably, the generation process of the access tree includes: among different access subtrees, first aggregating leaf nodes with the same attributes together, then merging the access subtrees that are subordinate to each other to form an access subtree group, connecting the access subtree groups or access subtrees that are parallel to each other in parallel to the root node of the access tree, and setting the threshold of the root node of the access tree to an OR gate constraint.
[0012] Further preferably, the above authentication method further comprises: performing a hash operation on the attribute value to calculate the obtained hash value as the attribute identifier.
[0013] Further preferably, the above authentication method also includes: signing the attribute identifier, entity feature data ciphertext and key component, storing the signed data in a single tag, and determining the authenticity of the data by a signature verification operation when reading the data.
[0014] Further preferably, the process of generating the entity characteristic data ciphertext and the key component includes:
[0015] Define a security parameter λ and a bilinear map e. Select two multiplicative cyclic groups G1 and G2 of prime order p according to the security parameter λ, and the bilinear map e: G1×G1→G2. Let g represent a generator of G1.
[0016] Pick a random number y∈Z p , Z p represents the domain of integers from 1 to p, let g1 = g y , randomly select an element g2 from group G1, and then randomly select a finite number t from group G1 i , and use the set N = {i}, 1≤i≤n+1 to represent the number t i The serial number is then used to construct the key component generation function:
[0017]
[0018] Among them, the Lagrange coefficient Δ i,N (x) is expressed as:
[0019]
[0020] Output common parameters CP = (G1, G2, e, g1, g2, {t i}) and the master private key MPK = y, the public parameter CP is made public, and the master private key MPK is kept confidential;
[0021] In the finite field Z p A random number r is randomly selected to generate a shared key E″=g for the current group tag r , and then generate the corresponding key component E for each attribute v in the attribute set Γ v =T(v) r , and use the bilinear mapping e to encrypt the entity feature data m to generate the ciphertext E′=me(g1,g2) r .
[0022] Further preferably, the generation process of the decryption subkey includes:
[0023] Construct a polynomial f for visiting the root node of the subtree root (x), let the polynomial f root The order d of (x) root =k root -1, k root represents the threshold value of the root node, let f root (0) = y, and randomly select d root constants as coefficients of each order;
[0024] Construct a polynomial f for visiting the nonroot nodes of the subtree nonroot(x), let the polynomial f nonroot The order d of (x) nonroot =k nonroot -1, k nonroot represents the threshold value of nonroot node, let f nonroot (0) = f parent(nonroot) (index(nonroot)), and randomly select d nonroot A constant is used as the coefficient of each order. The function parent(nonroot) means returning the parent node of the non-root node nonroot. The function index(nonroot) means returning the index of the non-root node nonroot in the parent node.
[0025] Generate a key pair for accessing the leaf node of the subtree:
[0026]
[0027]
[0028] Among them, r leaf Represents a finite field Z p The leaf node is a random number selected from the leaf node. leaf , R leaf ) as the decryption subkey of the leaf node leaf.
[0029] Further preferably, the decryption process of the entity characteristic data ciphertext includes:
[0030] First, use each attribute identifier VID read to index the corresponding attribute v, and accumulate all the indexed attributes to form an attribute set Γ;
[0031] Then, extract all leaf nodes in the identified access subtree, and use the judgment function JudgeNode() to generate a judgment value for each leaf node:
[0032]
[0033] Among them, the function att(leaF) represents the attribute associated with the leaf node leaf, ⊥ represents the terminator, and outputs a null value;
[0034] After obtaining the judgment values of all leaf nodes, we visit the subtree from bottom to top to determine whether each non-leaf node meets its threshold value:
[0035] Let the value F z represents the output of node z about JudgeNode(z), S u It is a z≠⊥The set of child nodes z of non-leaf node u, if |S u |=k u , it indicates that the non-leaf node u satisfies the access subtree, otherwise it indicates that the non-leaf node u does not satisfy the access subtree, and returns ⊥;
[0036] When the non-leaf node u satisfies the condition of accessing the subtree, the output value of the non-leaf node u with respect to JudgeNode(u) is further calculated:
[0037]
[0038] Where i = index(u), set S u ={index(z)};
[0039] When all non-leaf nodes satisfy the identified access subtree, the shared key SK=e(g1, g2) can be calculated at the root node of the access subtree. r , and further decrypt using the shared key SK to obtain the plaintext of the entity feature data:
[0040]
[0041] Further preferably, the above authentication method provided by the present invention also includes a tag status tracing process:
[0042] In the access structure identification phase, if the read attribute identifier is not associated with any leaf node in the access tree, the single label corresponding to the current attribute identifier is determined to be in a fault state;
[0043] In the group tag authentication phase, if the group tag cannot satisfy the identified access subtree, each single tag key component is extracted one by one, and the decryption algorithm of the KP-ABE mechanism is executed together with the preset sample set. If it still does not satisfy the identified access subtree, the current single tag is judged to be in a fault state. Otherwise, it is further judged whether the entity feature data obtained by decryption is consistent with the corresponding entity. If it is consistent, the current single tag is judged to be in a normal state, otherwise it is judged to be in a fault state.
[0044] In the group tag authentication phase, if the group tag satisfies the identified access subtree, the ciphertext of each single tag is extracted one by one, and the entity feature data obtained by decryption is further judged whether it matches the corresponding entity. If it matches, the current single tag is judged to be in a normal state, otherwise it is judged to be in a fault state;
[0045] The sample set is the key components pre-stored on the remaining leaf nodes in the access subtree except the leaf node associated with the current single label attribute.
[0046] The present invention also provides an RFID group tag authentication system based on Internet of Things applications, the system specifically comprising: an authentication server, an authentication client, a reader and a single tag;
[0047] The authentication server comprises: an access tree construction module, an attribute allocation module, a secret parameter generation module, a decryption key generation module and an access structure identification module;
[0048] Access tree construction module: constructs an access subtree for each independent combination of group labels, including root nodes, intermediate nodes and leaf nodes. The root node of each access subtree represents the group label, each leaf node is associated with a unique attribute, and the intermediate node connects the root node with the leaf node through a set threshold value. After all access subtrees are connected together, an access tree associated with all types of group labels is formed;
[0049] Attribute assignment module: assigns authentication entities to all single tags in the group tag, and assigns corresponding attributes and entity feature data to each single tag according to the type of authentication entity;
[0050] Secret parameter generation module: extract the attributes of each single label in the group label to form an attribute set, take the attribute set and entity feature data as input data, and use the encryption algorithm of the KP-ABE mechanism to generate the corresponding entity feature data ciphertext and key component for each single label;
[0051] Decryption key generation module: takes the access subtree as input data and uses the key generation algorithm of the KP-ABE mechanism to generate the corresponding decryption subkey for each leaf node;
[0052] Access structure identification module: reconstructs the access subtree corresponding to the group tag in the access tree using the attribute identifier received from the authentication client. If the reconstruction fails, the authentication operation is terminated and an access structure identification failure message is returned. Otherwise, the access subtree containing the decryption subkey is sent to the authentication client.
[0053] The authentication client comprises: a data decryption module and a feature data matching module;
[0054] Data decryption module: takes all key components and decryption subkeys as input data, and uses the decryption algorithm of the KP-ABE mechanism to decrypt the ciphertext of entity feature data. If the decryption fails, the authentication operation is terminated and a decryption failure message is returned;
[0055] Feature data matching module: after the entity feature data is successfully decrypted, it is determined whether all decrypted entity feature data matches the corresponding entity. If there is an inconsistent comparison result, it indicates that the authentication has failed and a group tag authentication failure message is returned. Otherwise, it indicates that the authentication has passed and a group tag authentication success message is returned.
[0056] Single tag: used to store and send attribute identifiers, entity feature data ciphertext and key components;
[0057] Reader: broadcasts authentication request messages to group tags via wireless radio frequency, reads attribute identifiers, entity feature data ciphertexts and key components fed back by all single tags in the group tag, and sends them to the authentication client.
[0058] The RFID group tag authentication method and authentication system of the present invention have the following beneficial effects:
[0059] The present invention adopts a key-policy-based attribute encryption (Key-Policy ABE, KP-ABE) mechanism to construct different access subtrees for each group label, map the attribute values related to each entity attached with a single label to the end node of the access subtree, and save the attribute and entity feature data in the label. Only when the complete attribute set is read can the access subtree be restored, so as to determine the group label category to which the access subtree belongs, and further identify the true identity of the combined entity. At the same time, each sub-entity object in the combined entity is further confirmed based on the entity feature data obtained by decryption, forming a complete group label authentication and identification process from the inside to the outside.
[0060] The present invention adopts the threshold secret sharing mechanism of KP-ABE, and uses the Lagrange difference theorem to decompose the shared secret information of the entire group into multiple key components, which are distributed to each single tag one by one. According to the access structure, only key components with a number not less than a threshold can restore the shared secret information, avoiding the risk of attackers cracking the key by implementing a single-point attack on the tag when the shared secret information is directly used as a key, thereby improving the secure storage capability of tag authentication information.
[0061] By utilizing the threshold constraints set on each node of the access subtree, entities with different attributes can be associated with each other. The process of reconstructing the access subtree is actually simulating the assembly process of real components. Between the subordinate access subtrees, the lower access subtree can also be integrated into the upper access subtree as an intermediate node to form an access subtree group. Therefore, the access tree can intuitively reflect the connection relationship between the entity components of the application label, which is convenient for the management and maintenance of multiple key parameters.
[0062] A sample set is established for each access subtree. The sample set contains the key components on all leaf nodes. When some labels cannot meet the access structure, the key components of each entity label are extracted one by one, and the key components pre-stored on other leaf nodes are used together to execute the decryption algorithm of the KP-ABE mechanism. The authenticity of the current label key component can be judged according to the output result, and the label normal and faulty status traceability function can be realized, so as to identify faulty or forged labels in the group. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 This is an operation flow chart of an RFID group tag authentication method provided in one embodiment of the present invention;
[0064] Figure 2 A simplified access tree structure diagram provided in an embodiment of the present invention;
[0065] Figure 3 A schematic diagram of the structure of an RFID group tag authentication system provided in one embodiment of the present invention;
[0066] Figure 4 It is an operation flow chart of an RFID group tag authentication method provided in another embodiment of the present invention;
[0067] Figure 5 This is a schematic diagram of the structure of an RFID group tag authentication system provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0068] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0069] The access structure is a logical structure that describes the access control policy. It defines the authorization set and the unauthorized set. The multiple participants in the authorization set can reconstruct the shared secret by satisfying the access structure, while the multiple participants in the unauthorized set cannot reconstruct the shared secret because they do not satisfy the access structure. The access structure in attribute-based encryption defines an intrinsic connection between user access rights and access control policies. With attributes as the expression subject, the system can divide the user's access / authentication rights accordingly based on the authorization attribute combination and the unauthorized attribute combination defined in the access structure. Different schemes are built based on various access structures according to the structure and construction characteristics of the scheme.
[0070] The present invention implements the authentication and identification process of group tags by constructing an access tree structure based on attributes. Unlike the traditional threshold structure, the access tree can reflect the logical relationship between attributes, associate specific attribute values with entities attached with tags, and describe the assembly or connection relationship of more complex entity combinations.
[0071] Assume that a visit tree is T, and each non-leaf node in T is represented by its child nodes and a threshold (k x , num x ) to describe. Let num x Represents the total number of child nodes contained in node x, k x Represents the threshold value of node x, 1≤k x ≤numx When k x =num x When it indicates an AND gate, it requires num x Node x can only take effect when k child nodes exist at the same time. x =1, it represents an OR gate. Node x is effective when any child node exists, and when 1 <k x <num x When num x There are at least k x The child nodes meet the conditions to pass the threshold constraint. At the end of the access tree, each leaf node represents a unique attribute, and its threshold value is k x = 1. Then define three pointer functions parent(x), index(x) and att(x), where parent(x) means returning the parent node of node x, index(x) means returning the number of node x, and the access tree T numbers the child nodes of each node from 1 to num, so that no matter how the access tree is traversed, the number output by index(x) is unique, and att(x) means the attribute associated with x when it is a leaf node.
[0072] Let r be the root node of the visited tree T, T x It means visiting the subtree with x as the root node in the tree T. Now given an attribute set γ, if γ satisfies the subtree T x , it can be expressed as a Boolean function T x (γ)=1, if it is not satisfied, then T x (γ)=0. For T x The output of (γ) can be calculated by the following recursive algorithm:
[0073] 1. If node x is a non-leaf node, calculate T of all child nodes z of x z (γ), if and only if there are at least k x When the child node outputs 1, T x (γ) output 1, otherwise T x (γ) output 0;
[0074] 2. If node x is a leaf node, T x (γ) output 1, otherwise T x (γ) outputs 0.
[0075] Repeat the above operation from the bottom to the top of the access tree T until the root node r of T rWhen (γ) also outputs 1, it indicates that the attribute set γ satisfies the access tree T and has the relevant access / authentication authority. Otherwise, it indicates that the attribute set γ does not satisfy the access tree T and does not have the relevant access / authentication authority.
[0076] like Figure 1 As shown, the RFID group tag authentication method based on the above access control structure specifically includes the following stages:
[0077] Access structure initialization phase: construct an access subtree for each independent combination of group labels, including root nodes, intermediate nodes and leaf nodes. The root node of each access subtree represents the group label, each leaf node is associated with a unique attribute, and the intermediate node connects the root node with the leaf node through a set threshold value. After all access subtrees are connected together, an access tree associated with all types of group labels is formed;
[0078] Tag initialization phase: assign authentication entities to all single tags in the group tag, and assign corresponding attributes and entity feature data to each single tag according to the type of authentication entity. Extract the attributes of each single tag in the group tag to form an attribute set. Use the attribute set and entity feature data as input data, and use the encryption algorithm of the KP-ABE mechanism to generate the corresponding entity feature data ciphertext and key component for each single tag. Store the attribute identifier, entity feature data ciphertext and key component in the single tag.
[0079] Decryption key generation phase: using the access subtree as input data, the key generation algorithm of the KP-ABE mechanism is used to generate the corresponding decryption subkey for each leaf node;
[0080] Access structure identification phase: read the attribute identifiers, entity feature data ciphertexts and key components of all single tags in the group tag, and use the attribute identifiers to reconstruct the access subtree corresponding to the group tag in the access tree. Specifically, search for the corresponding attribute v according to each attribute identifier VID in the system to obtain the attribute set {v}, and further map each attribute v to the corresponding leaf node in the access tree. Then, according to the threshold constraints set on each node, try to find the root node of an access subtree from bottom to top. If it is not found, it indicates that the reconstruction fails, then the authentication operation is terminated and the access structure identification failure message is returned. Otherwise, the access subtree corresponding to the current group tag is identified, and the group tag authentication phase continues.
[0081] Group tag authentication phase: all key components and decryption subkeys are used as input data, and the entity feature data ciphertext is decrypted using the decryption algorithm of the KP-ABE mechanism. If the decryption fails, the authentication operation is terminated and a decryption failure message is returned. Otherwise, it is further determined whether all decrypted entity feature data match the corresponding entity. If there is an inconsistent comparison result, it indicates that the authentication has failed and a group tag authentication failure message is returned. Otherwise, it indicates that the authentication has passed and a group tag authentication success message is returned.
[0082] like Figure 2 A simplified access tree structure example is shown, T r is the root node of the access tree, which contains three access subtrees T x1 , T x2 and T x3 , for ease of understanding, the thresholds on each node in the graph are set to be only OR gate and AND gate constraints, and the access tree Tr can be constructed according to the following steps:
[0083] First, the leaf nodes with the same attributes are aggregated together and the subtree T is visited. x1 and T x2 They have the same attribute nodes leaf6 and leaf7, so these two attribute nodes are merged; then the access subtrees that are subordinate to each other are merged together, where the access subtree T x1 and T x3 They are mutually subordinate, that is, access subtree T x3 Belong to T x1 A subset of the corresponding actual application scenario, access subtree T x3 Pointing entity combination E x3 Also belongs to T x1 Pointing entity combination E x1 Part of the entity combination E x3 Any solution in the set {(leaf1 OR leaf2 OR leaf3) AND leaf4} can form an entity combination E x1 , so the subtree T will be visited x3 Merge to visit subtree T x1 In the inner, a visited subtree group is formed, so that the visited subtree T x3 The root node also serves as the access subtree (group) T x1 Finally, the parallel access subtree groups or access subtrees are connected to the root node of the access tree, that is, the access subtree (group) T x1 With T x2 The root node is also connected in parallel to node T r And set the access tree root node T rThe threshold of is an OR gate constraint, which means that any child node is selected in a selective manner. Different from the access structure of the original attribute encryption mechanism, the access tree constructed in the present invention is a multi-branch tree structure with multiple leaf nodes. Some leaf nodes may belong to multiple access subtrees, but their associated attribute values are always consistent, and the attribute set of the group label does not have to satisfy the entire access tree. For example, if the access subtree T x3 The attribute set can be decrypted to obtain the entity combination E x3 , an attacker cannot restore the entire access tree by stealing a partial set of category group label attributes.
[0084] In the KP-ABE mechanism, the ciphertext is associated with the attribute set, and the decryption key is associated with the access control policy. The key corresponds to an access structure and the ciphertext corresponds to an attribute set. The decryption condition is if and only if the attributes in the attribute set can satisfy this access policy. The formal definition of the KP-ABE mechanism can be expressed as the following five algorithms:
[0085] (1)Setup(1 λ )→{CP, MPK}: The management or certification authority initializes the system, inputs a security parameter λ, and outputs the public parameter CP and the master private key MPK;
[0086] (2) KeyGen(CP, MPK, T) → SK: takes the access structure T, the master private key MPK and the public parameter CP as input, and outputs the node private key SK;
[0087] (3) Encrypt(CP, γ, M) → CT: takes plaintext message M, attribute set γ and public parameter CP as input and outputs ciphertext CT;
[0088] (4) Decrypt(CP, CT, SK) → M: With the ciphertext CT, public parameter CP and node private key SK as input, if the attribute set γ satisfies the access structure T, the data can be decrypted; otherwise, the plaintext cannot be decrypted.
[0089] In the above KP-ABE scheme, a part of users are associated with the access structure T, and each ciphertext CT is embedded with an attribute set γ. The management agency distributes the corresponding decryption private key to another part of users according to the access structure (authority). The ciphertext can only be successfully decrypted when all attributes in the attribute set jointly satisfy the access structure. The present invention uses the Lagrange difference theorem to decompose the shared secret information of the entire group into multiple key components. Each key component is generated by an attribute, and each attribute matches the corresponding label. According to the access structure constraints, only the complete group label can restore the shared secret information, so as to confirm the authenticity of all labels. Attackers cannot crack the shared secret information by obtaining partial key components through single-point attacks on labels, thereby improving the security of label authentication information storage. A specific embodiment is given below to describe the group label authentication process based on KP-ABE in detail:
[0090] (1) System initialization: First, define a security parameter λ and a bilinear map e. Select two multiplicative cyclic groups G1 and G2 with a prime order p according to the security parameter λ. The bilinear map e: G1×G1→G2 is responsible for performing a polynomial time operation on the elements of the two groups G1 to map them to the elements of the group G2. Let g represent a generator of G1. Select a random number y∈Z p , Z p represents the domain of integers from 1 to p, let g1 = g y , randomly select an element g2 from group G1, and then randomly select a finite number t from group G1 i , and use the set N = {i}, 1≤i≤n+1 to represent the number t i The serial number can be set to a finite number n according to the computational workload that the system can accept, and then the key component generation function is constructed:
[0091]
[0092] Among them, the Lagrange coefficient Δ i,N (x) is expressed as:
[0093]
[0094] Output common parameters CP = (G1, G2, e, g1, g2, {t i}) and the master private key MPK=y, the public parameter CP is made public, and the master private key MPK is kept confidential.
[0095] (2) Ciphertext generation: In the finite field Z p A random number r is randomly selected to generate a shared key E″=g for the current group tag r , and then generate the corresponding key component E for each attribute v in the attribute set Γv =T(v) r , and use the bilinear mapping e to encrypt the entity feature data m to generate the ciphertext E′=me(g1,g2) r , the key component E v And the ciphertext E′ is stored in the memory of the corresponding tag.
[0096] (3) Generation of decryption subkey: Construct polynomial f for accessing the root node of the subtree root (x), let the polynomial f root The order d of (x) root =k root -1, k root represents the threshold value of the root node, let f root (0) = y, and randomly select d root With constants as coefficients of each order, the polynomial function can be expressed as:
[0097]
[0098] In the above formula, let a0 = y, a t represents the coefficient of order t;
[0099] Then, construct a polynomial f for visiting the nonroot nodes of the subtree nonroot (x), let the polynomial f nonroot The order d of (x) nonroot =k nonroot -1, k nonroot represents the threshold value of nonroot node, let f nonroot (0) = f parent(nonroot )(index(nonroot)), and randomly select d nonroot A constant is used as the coefficient of each order. The function parent(nonroot) means returning the parent node of the non-root node nonroot. The function index(nonroot) means returning the index of the non-root node nonroot in the parent node.
[0100] Generate a key pair for accessing the leaf node leaF of the subtree:
[0101]
[0102]
[0103] Among them, att(leaf) = v, which means the attribute value v associated with the leaf node leaf, r leaf Represents a finite field Z p The leaf node is a random number selected from the leaf node. leaF , RleaF ) as the decryption subkey of the leaf node leaf.
[0104] (4) Decrypting the ciphertext: First, use each attribute identifier VID read to index the corresponding attribute v, and accumulate all the indexed attributes to form an attribute set Γ;
[0105] Then, extract all leaf nodes in the identified access subtree, and use the judgment function JudgeNode() to generate a judgment value for each leaf node:
[0106] If att(leaf)∈Γ, the function att(leaf) represents the attribute associated with the leaf node leaf, ⊥ represents the terminator, and the output is null;
[0107] Since any bilinear mapping e(a, b), a, b, c∈G1 satisfies the following properties:
[0108] Bilinear: e(a x , b y ) = e(a, b) xy =e(a y , b x )
[0109] Commutative law: e(a, b) = e(b, a)
[0110] Associative law: e(a, bc) = e(a, b)e(a, c)
[0111] Therefore, the above judgment function JudgeNode() can be further expressed as:
[0112]
[0113] After obtaining the judgment values of all leaf nodes, we visit the subtree from bottom to top to determine whether each non-leaf node meets its threshold value:
[0114] Let the value F z represents the output of node z about JudgeNode(z), S u It is a z ≠⊥The set of child nodes z of non-leaf node u, if the total count of elements in the set |S u |=k u , it indicates that the non-leaf node u satisfies the access subtree, otherwise it indicates that the non-leaf node u does not satisfy the access subtree, and returns ⊥;
[0115] When the non-leaf node u satisfies the condition of accessing the subtree, the output value of the non-leaf node u with respect to JudgeNode(u) is further calculated:
[0116]
[0117] Where i = index(u), set S′ u ={index(z)}, z∈S u , i′=index(z), f in the above formula u (0) Derived from the Lagrange interpolation formula:
[0118]
[0119] When all non-leaf nodes satisfy the identified access subtree, the root node of the access subtree can be calculated:
[0120]
[0121] Get the root node private key SK = e(g1, g2) r , and further decrypt using the private key SK to obtain the plaintext of the entity feature data:
[0122]
[0123] Since each access subtree has a unique master private key MPK at the root node, the key pair of each leaf node is calculated recursively from the root node to the bottom layer by layer by the master private key MPK. Therefore, for a leaf node belonging to multiple access subtrees, each corresponding access subtree also has a different key pair. Figure 2 The leaf nodes leaf5, leaf6, leaf7, and leaf8 in the tree are also included in the subtree T x1 and T x3 Therefore, these four nodes have two key pairs, and leaf nodes leaf6 and leaf7 belong to subtree T x2 Therefore, the subtree T is also stored on leaf6 and leaf7. x2 However, during the decryption process, it is not necessary to extract each key pair through enumeration and verify them one by one, because a certain access subtree has been identified before performing group tag authentication. At this time, it is only necessary to extract the key pair corresponding to the identified access subtree to participate in the decryption operation. Therefore, the access tree structure of the present invention does not increase the computing cost, so that the authentication result is timely.
[0124] According to the structural characteristics of the access tree, the present invention can be applied to various types of group tag authentication modes. For entity groups with unique combination modes, constraints can be performed by using AND gates, for example Figure 2 The leaf nodes leaf9, leaf10 and leaf11 shown in the figure must exist at the same time to satisfy the AND gate constraint of the parent node. For entity groups with multiple optional combination modes, constraints are performed between selective entity objects by using OR gates. For example, leaf nodes leaf1, leaf2 and leaf3 are used to represent three components of different colors but of the same type, and OR gates are selected at the parent node for constraints. For objects that meet specific requirements according to a certain number, the threshold value k can be set at the parent node. x (1 <k x <num x ) to constrain, for example, some packaging products need to confirm whether the same type of accessories being packaged meet the quantity requirements, so the threshold value k of the same quantity can be set x To verify.
[0125] The attribute is a general term for a class of objects with the same properties. Each attribute is divided into multiple different attribute values, and each attribute value corresponds to a different characteristic object. For example, the size, shape and other attributes can be set according to the specifications of the physical product or commodity. According to the size and shape, the attributes are divided into multiple attribute values, and each attribute value is associated with a corresponding leaf node. It can be seen that there is no one-to-one connection between the attributes and the entity objects in the present invention. The real identity of the entity cannot be directly located through the attribute value, and the characteristic data that truly records the entity identity information is encrypted. Therefore, the attribute identification exposed to the outside is still safe. For attackers, it is too vague to identify the entity identity only by obtaining the attribute information in the tag. It is possible that multiple entities have the same attribute values such as size and shape. The entity feature data can be expressed as an identity code. In the authentication system, each entity object is assigned a unique identity code.
[0126] In any group tag that has been implanted with authentication information, each single tag stores the attribute identifier associated with the leaf node, and there is a fixed logical relationship between the leaf nodes in the access subtree. Therefore, in the case of a group tag authentication failure, the tag data can be verified one by one by the elimination method, and then the true identity of the tag can be traced back based on the attribute identifier carried by the abnormal tag, that is, to know which entity in the entity group the abnormal tag belongs to, and trace the reason for the authentication failure. Abnormal tags include fake tags forged and replaced by attackers, tags with tampered data, and tags with hardware damage due to human or environmental factors. These tags are uniformly calibrated as a fault state in the embodiment of the present invention, and are calibrated as a normal state if the verification passes. The tag status tracing process is specifically implemented in the following two stages:
[0127] In the access structure identification stage, if the read attribute identifier is not associated with any leaf node in the access tree, the single label corresponding to the current attribute identifier is determined to be in a faulty state. In this stage, an ideal situation is: if the attribute identifiers of most labels can be found in the access tree, then the access subtree containing all these attribute identifiers can be found, and then the label corresponding to the attribute identifier missing from the current access subtree is used as the fault label. When there are many unrecognized attribute identifiers, the fault label cannot be located by searching the access subtree, and the only way is to further manually verify the group labels that failed to be identified in order to find the fault point.
[0128] In the group tag authentication stage, if the group tag cannot satisfy the identified access subtree, each single tag key component is extracted one by one, and the decryption algorithm of the KP-ABE mechanism is executed together with the preset sample set. If it still does not satisfy the identified access subtree, the current single tag is judged to be in a fault state, otherwise it is further judged whether the entity feature data obtained by decryption is consistent with the corresponding entity. If it is consistent, the current single tag is judged to be in a normal state, otherwise it is judged to be in a fault state. The above implementation process shows that all attribute identifiers of the group tag can find corresponding leaf nodes in the access tree, and jointly satisfy the constraints of a certain access subtree. The authentication failure is due to the existence of erroneous or forged key components, which makes it impossible to decrypt and obtain shared secret information. To this end, it is necessary to pre-set a complete set of key component sample sets to verify all key components of the group tag one by one. The sample set is the key components pre-stored on the remaining leaf nodes in the access subtree except the leaf nodes associated with the current single tag attributes.
[0129] Assume that a group label satisfies the access subtree T x2 , and has the attribute identifier set A corresponding to leaf nodes leaf6, leaf9, leaf10 and leaf11 = {VID6, VID9, VID 10、VID 11} and key component set Through the attribute identification set A, the corresponding attribute set V = {v6, v9, v 10 、v 11}, a predefined sample set of key components First verify the key component First, we need to test Remove the key component sample from Create a new sample set and Participate in the decryption algorithm of the KP-ABE mechanism together. Since the leaf nodes leaf6 and leaf7 are in an OR gate relationship, the leaf node leaF7 is not considered. Calculate the judgment value JudgeNode(leaf6) on the leaf node leaf6, using Calculate the judgment values on the remaining three leaf nodes, and then further restore the access subtree T x2 The shared secret information retained on the root node is used to decrypt the ciphertext using the calculated shared secret information. If the decryption is successful, it indicates that the key component is true, otherwise it is judged as false. After that, it is necessary to confirm whether the decrypted entity feature data matches an entity in the group entity. If it matches, the current single label is judged to be in a normal state and is indeed a legal label attached to a certain entity. If it does not match, it indicates that the plaintext may have been maliciously tampered with, so it is judged to be a fault state.
[0130] In the group tag authentication stage, if the group tag satisfies the identified access subtree, that is, the shared secret information is successfully obtained, the ciphertext of each single tag is extracted one by one, and it is further determined whether the decrypted entity feature data is consistent with the corresponding entity. If it is consistent, the current single tag is judged to be in a normal state, otherwise it is judged to be in a fault state. The premise for the implementation of this verification process is that the key component set of the group tag can restore the shared secret information, but there may be differences between the decrypted plaintext and the entity features, and it is necessary to identify the tags whose data have been tampered with.
[0131] In addition, in order to avoid the potential security risks caused by directly disclosing the real attribute value, the attribute identifier can be obtained by performing a hash operation on the attribute value. x =Hash(v x ), to calculate the hash value h x As the attribute identifier VID on the leaf node x x . Identify the attribute VID x Assign a value to the tag and save the attribute value v in the management or certification agencyx The association with the identifier VID x and keep the external confidentiality attribute value v x Using the one-way property of the hash value to ensure the security of the real attributes, algorithms with strong collision resistance such as SHA-256, SHA-384, and SHA-512 can be used to implement it.
[0132] In other embodiments, in order to further improve the security of the authentication system, signature technology can also be used to sign the attribute identifier, the ciphertext of the entity feature data, and the key component, and then store the signature data in a single tag, and determine the authenticity of the data through signature verification operations when reading the data, such as using public key digital signature algorithms such as ElGamal, Schnorr, and RSA to implement. Taking the RSA signature algorithm as an example below, the signature and signature verification processes are described in detail:
[0133] Step1 Parameter initialization: Select two large prime numbers p and q in the management or authentication agency, calculate n = pq, φ(n)=(p - 1)(q - 1), where φ(n) is the Euler function value of n, select an integer e, such that 1 < e < φ(n), and satisfy gcd(φ(n), e)=1, and further calculate the value of parameter d, satisfying de ≡ 1 mod φ(n), that is, d is the modular inverse element of e modulo φ(n). At this point, the public parameters {e, n} and the secret parameters {p, q, d, φ(n)} are obtained, and the secret parameters are kept confidential externally;
[0134] Step2 Generate signature: Fragment and encode the attribute identifier, the ciphertext of the entity feature data, and the key component, so that the decimal number converted from each fragment data data is not greater than the modulus n, and then calculate c1 ≡ (Hash(data)) d mod p, c2 ≡ (Hash(data)) d mod q and signature σ(data) ≡ (c1q (1) q + c2p (1) p) mod n, where q (1) q ≡ 1 mod p, p (1) p ≡ 1 mod q, and implant the data set {data||σ(data)} composed of all fragments into the tag;
[0135] Step3 Verify signature: When performing group authentication, read the data set {data||σ(data)} fed back by the tag through the reader and send it back to the management or authentication agency, and then execute the verification algorithm σ(data) e ≡ Hash(data) mod n, and judge whether both sides of the equation are equivalent. If so, it indicates that the signature is true, otherwise it indicates that the signature is false. Only when the signature is confirmed to be true can the group tag authentication process continue.
[0136] In order to implement the above group tag authentication method, the present invention also provides an RFID group tag authentication system based on Internet of Things applications, such as Figure 3 As shown, the system specifically includes: an authentication server, an authentication client, a reader and a single tag, wherein the authentication server includes: an access tree construction module, an attribute allocation module, a secret parameter generation module, a decryption key generation module and an access structure identification module;
[0137] Access tree construction module: constructs an access subtree for each independent combination of group labels, including root nodes, intermediate nodes and leaf nodes. The root node of each access subtree represents the group label, each leaf node is associated with a unique attribute, and the intermediate node connects the root node with the leaf node through a set threshold value. After all access subtrees are connected together, an access tree associated with all types of group labels is formed;
[0138] Attribute assignment module: assigns authentication entities to all single tags in the group tag, and assigns corresponding attributes and entity feature data to each single tag according to the type of authentication entity;
[0139] Secret parameter generation module: extract the attributes of each single label in the group label to form an attribute set, take the attribute set and entity feature data as input data, and use the encryption algorithm of the KP-ABE mechanism to generate the corresponding entity feature data ciphertext and key component for each single label;
[0140] Decryption key generation module: takes the access subtree as input data and uses the key generation algorithm of the KP-ABE mechanism to generate the corresponding decryption subkey for each leaf node;
[0141] Access structure identification module: reconstructs the access subtree corresponding to the group tag in the access tree using the attribute identifier received from the authentication client. If the reconstruction fails, the authentication operation is terminated and an access structure identification failure message is returned. Otherwise, the access subtree containing the decryption subkey is sent to the authentication client.
[0142] The authentication client comprises: a data decryption module and a feature data matching module;
[0143] Data decryption module: takes all key components and decryption subkeys as input data, and uses the decryption algorithm of the KP-ABE mechanism to decrypt the ciphertext of entity feature data. If the decryption fails, the authentication operation is terminated and a decryption failure message is returned;
[0144] Feature data matching module: after the entity feature data is successfully decrypted, it is determined whether all decrypted entity feature data matches the corresponding entity. If there is an inconsistent comparison result, it indicates that the authentication has failed and a group tag authentication failure message is returned. Otherwise, it indicates that the authentication has passed and a group tag authentication success message is returned.
[0145] Single tag: used to store and send attribute identifiers, entity feature data ciphertext and key components;
[0146] Reader: broadcasts authentication request messages to group tags via wireless radio frequency, reads attribute identifiers, entity feature data ciphertexts and key components fed back by all single tags in the group tag, and sends them to the authentication client.
[0147] In the RFID group tag authentication method described above, the entity feature data reflecting the entity identity is stored in the tag in ciphertext form. The root node private key SK used to decrypt the ciphertext is shared by group members. As long as the private key SK is obtained, all entity identity information will be known. Further, for the bilinear mapping e(g1, g2) r , except for the random number r, all other parameters are public parameters, so that the authentication method still faces certain security risks. To this end, the present invention provides another improved RFID group tag authentication method, such as Figure 4 As shown, the specific implementation process of this method is:
[0148] Access structure initialization phase: construct an access subtree for each independent combination of group labels, including root nodes, intermediate nodes and leaf nodes. The root node of each access subtree represents the group label, each leaf node is associated with a unique attribute, and the intermediate node connects the root node with the leaf node through a set threshold value. After all access subtrees are connected together, an access tree associated with all types of group labels is formed;
[0149] Tag initialization phase: assign authentication entities to all single tags in the group tag, and set corresponding attributes and entity feature data for each single tag according to the type of authentication entity, generate attribute sets and entity feature data sets, assign each attribute in the attribute set to the specified single tag, use the threshold parameter generation algorithm to convert the entity feature data set into a feature component set, randomly assign the feature components in the feature component set to each single tag, use the attribute set and feature components as input data, use the KP-ABE mechanism encryption algorithm to generate the corresponding feature component ciphertext and key component for each single tag, store the attribute identifier, feature component ciphertext and key component in the single tag, and store the entity feature data set in the access subtree root node corresponding to the group tag;
[0150] Decryption key generation phase: using the access subtree as input data, the key generation algorithm of the KP-ABE mechanism is used to generate the corresponding decryption subkey for each leaf node;
[0151] Access structure identification phase: read the attribute identifiers, feature component ciphertexts and key components of all single tags in the group tag, and use the attribute identifiers to reconstruct the access subtree corresponding to the group tag in the access tree. If the reconstruction fails, the authentication operation is terminated and the access structure identification failure message is returned. Otherwise, the group tag authentication phase is executed;
[0152] Group label authentication phase: all key components and decryption subkeys are used as input data, and the decryption algorithm of the KP-ABE mechanism is used to decrypt the feature component ciphertext. If the decryption fails, the authentication operation is terminated and a decryption failure message is returned. Otherwise, the entity feature data set stored in the root node of the access subtree is extracted and the threshold parameter verification algorithm is executed to verify the authenticity of all decrypted feature components. If some feature components are false data, it indicates that the authentication has failed and a group label authentication failure message is returned. Otherwise, it indicates that the authentication has passed and a group label authentication success message is returned.
[0153] In one embodiment provided by the present invention, the process of generating the characteristic component specifically includes:
[0154] Construct a polynomial function for the group labels:
[0155]
[0156] Among them, n represents the total number of single tags in the group, value t represents the entity feature data corresponding to the tth single label, x i is assigned to the i-th single label, which is a finite field Z p A randomly selected integer within the range generates a feature component (x) for the i-th single label using a polynomial function. i ,f(x i )), the feature component set is composed of all single-label feature components {(x i ,f(x i ))}.
[0157] Furthermore, the process of verifying the authenticity of feature components using the entity feature data set specifically includes:
[0158] Extract the entity feature dataset stored on the root node of the access subtree {value t}, reconstruct the polynomial function:
[0159]
[0160] Then, the feature component of the i-th single label (xi ,f(x i ))Substitute the polynomial function into the equation to determine whether it holds. If so, it means that the feature component of the i-th single label is true data, otherwise it is false data.
[0161] The above entity feature data can be expressed as the entity identity code. In order to facilitate the execution of polynomial operations, the coded value is replaced by the converted decimal number. In addition, the entity feature data set saved on the root node of the access subtree is not unique, and multiple data sets may exist at the same time. For example, in the access subtree T x2 There are two leaf node combinations {leaf6, leaf9, leaf10, leaf11} and (leaf7, leaf9, leaf10, leaf11} in the dataset, so there must be two entity feature data sets {value6, value9, value 10 , value11} and {value7, value9, value 10 、value 11}, but in the feature component verification phase, it is not necessary for all datasets to participate in the verification process at the same time, because the specific entity feature datasets have been identified in the access subtree identification phase.
[0162] In the above embodiment, the entity feature dataset {value t}Construct a polynomial function with threshold constraint characteristics, and use the threshold parameter generation algorithm to divide the data set into the same number of public key components, that is, use each entity feature data as the coefficient of each item, and use the set random number x i Generate a feature component (x i ,f(x i )), so that each eigenvalue (x i ,f(x i )) are all associated with a unique dataset {value t} Binding. Outside the authentication system, due to the randomness of the feature components, even if the ciphertext is cracked, the real entity identity information will not be exposed, which improves the privacy protection strength of the entity object. Inside the authentication system, the saved feature set can verify the labels one by one, making it easier to identify false labels from the group.
[0163] Applicable to the above embodiment, the present invention provides another tag status tracing method:
[0164] In the access structure identification phase, if the read attribute identifier is not associated with any leaf node in the access tree, the single label corresponding to the current attribute identifier is determined to be in a fault state;
[0165] In the group tag authentication phase, if the group tag cannot satisfy the identified access subtree, each single tag key component is extracted one by one, and the decryption algorithm of the KP-ABE mechanism is executed together with the preset sample set. If it still does not satisfy the identified access subtree, the current single tag is determined to be in a fault state. Otherwise, the entity feature data set stored in the root node of the access subtree is extracted and the threshold parameter verification algorithm is executed to verify the authenticity of the feature component obtained by decryption. If the feature component is true data, the current single tag is determined to be in a normal state. If the feature component is false data, it is determined to be in a fault state.
[0166] In the group tag authentication phase, if the group tag satisfies the identified access subtree, the ciphertext of each single tag and the entity feature data set stored in the root node of the access subtree are extracted one by one, and the threshold parameter verification algorithm is executed to verify the authenticity of the decrypted feature component. If the feature component is true data, the current single tag is judged to be in a normal state. If the feature component is false data, it is judged to be in a fault state.
[0167] The sample set is the key components pre-stored on the remaining leaf nodes in the access subtree except the leaf node associated with the current single label attribute.
[0168] Applicable to the above embodiment, the present invention also provides another RFID group tag authentication system based on Internet of Things applications, such as Figure 5 As shown, the system includes: an authentication server, an authentication client, a reader and a single tag, wherein the authentication server includes: an access tree construction module, an attribute allocation module, a feature component generation module, a secret parameter generation module, a decryption key generation module and an access structure identification module;
[0169] Access tree construction module: constructs an access subtree for each independent combination of group labels, including root nodes, intermediate nodes and leaf nodes. The root node of each access subtree represents the group label, each leaf node is associated with a unique attribute, and the intermediate node connects the root node with the leaf node through a set threshold value. After all access subtrees are connected together, an access tree associated with all types of group labels is formed;
[0170] Attribute assignment module: assigns authentication entities to all single tags in the group tag, and sets corresponding attributes and entity feature data for each single tag according to the type of authentication entity, generates attribute sets and entity feature data sets, assigns each attribute in the attribute set to the specified single tag, and stores the entity feature data set in the access subtree root node corresponding to the group tag;
[0171] Feature component generation module: uses a threshold parameter generation algorithm to convert the entity feature data set into a feature component set, and randomly assigns the feature components in the feature component set to each single label;
[0172] Secret parameter generation module: takes the attribute set and feature component as input data, and uses the encryption algorithm of the KP-ABE mechanism to generate the corresponding feature component ciphertext and key component for each single label;
[0173] Decryption key generation module: takes the access subtree as input data and uses the key generation algorithm of the KP-ABE mechanism to generate the corresponding decryption subkey for each leaf node;
[0174] Access structure identification module: reconstructs the access subtree corresponding to the group tag in the access tree using the attribute identifier received from the authentication client. If the reconstruction fails, the authentication operation is terminated and an access structure identification failure message is returned. Otherwise, the access subtree containing the decryption subkey is sent to the authentication client.
[0175] The authentication client comprises: a data decryption module and a feature component verification module;
[0176] Data decryption module: takes all key components and decryption subkeys as input data, uses the decryption algorithm of the KP-ABE mechanism to decrypt the feature component ciphertext, and if the decryption fails, terminates the authentication operation and returns a decryption failure message;
[0177] Feature component verification module: After the feature component is successfully decrypted, the entity feature data set stored in the root node of the access subtree is extracted and the threshold parameter verification algorithm is executed to verify the authenticity of all decrypted feature components. If some feature components are false data, it indicates that the authentication has failed and a group tag authentication failure message is returned. Otherwise, it indicates that the authentication has passed and a group tag authentication success message is returned.
[0178] Single tag: used to store and send attribute identifiers, feature component ciphertext, and key components;
[0179] Reader: broadcasts authentication request messages to group tags via wireless radio frequency, reads attribute identifiers, feature component ciphertexts and key components fed back by all single tags in the group tag, and sends them to the authentication client.
[0180] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered in all respects as exemplary and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations within the meaning and range of equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A RFID group tag authentication method based on Internet of Things applications, characterized in that: The method includes: Access structure initialization phase: construct an access subtree for each independent combination of group labels, including root nodes, intermediate nodes and leaf nodes. The root node of each access subtree represents the group label, each leaf node is associated with a unique attribute, and the intermediate node connects the root node with the leaf node through a set threshold value. After all access subtrees are connected together, an access tree associated with all types of group labels is formed; Tag initialization phase: assign authentication entities to all single tags in the group tag, and assign corresponding attributes and entity feature data to each single tag according to the type of authentication entity. Extract the attributes of each single tag in the group tag to form an attribute set. Use the attribute set and entity feature data as input data, and use the encryption algorithm of the KP-ABE mechanism to generate the corresponding entity feature data ciphertext and key component for each single tag. Store the attribute identifier, entity feature data ciphertext and key component in the single tag. Decryption key generation phase: using the access subtree as input data, the key generation algorithm of the KP-ABE mechanism is used to generate the corresponding decryption subkey for each leaf node; Access structure identification phase: read the attribute identifiers, entity feature data ciphertexts and key components of all single tags in the group tag, and use the attribute identifiers to reconstruct the access subtree corresponding to the group tag in the access tree. If the reconstruction fails, the authentication operation is terminated and the access structure identification failure message is returned. Otherwise, the group tag authentication phase is executed; Group tag authentication phase: all key components and decryption subkeys are used as input data, and the entity feature data ciphertext is decrypted using the decryption algorithm of the KP-ABE mechanism. If the decryption fails, the authentication operation is terminated and a decryption failure message is returned. Otherwise, it is further determined whether all decrypted entity feature data match the corresponding entity. If there is an inconsistent comparison result, it indicates that the authentication has failed and a group tag authentication failure message is returned. Otherwise, it indicates that the authentication has passed and a group tag authentication success message is returned.
2. The RFID group tag authentication strategy based on Internet of Things applications according to claim 1 is characterized in that: The generation process of the access tree includes: among different access subtrees, first aggregating leaf nodes with the same attributes together, then merging the access subtrees that are subordinate to each other to form an access subtree group, connecting the access subtree groups or access subtrees that are parallel to each other in parallel to the root node of the access tree, and setting the threshold of the root node of the access tree to an OR gate constraint.
3. The RFID group tag authentication strategy based on Internet of Things applications according to claim 1 is characterized in that: Also includes: A hash operation is performed on the attribute value to calculate the obtained hash value as the attribute identifier.
4. The RFID group tag authentication strategy based on Internet of Things applications according to claim 1 is characterized in that: Also includes: Sign the attribute identifier, entity feature data ciphertext and key component, store the signed data in a single tag, and determine the authenticity of the data through signature verification when reading the data.
5. The RFID group tag authentication strategy based on Internet of Things applications according to claim 1 is characterized in that: The generation process of the entity characteristic data ciphertext and key component includes: Define a security parameter λ and a bilinear map e. Select two multiplicative cyclic groups G1 and G2 of prime order p according to the security parameter λ, and the bilinear map e: G1×G1→G2. Let g represent a generator of G1. Pick a random number y∈Z p , let g1 = g y , randomly select an element g2 from group G1, and then randomly select a finite number t from group G1 i , and use the set N = {i}, 1≤i≤n+1 to represent the number t i The serial number is then used to construct the key component generation function: Among them, the Lagrange coefficient Δ i,N (x) is expressed as: Output common parameters CP = (G1, G2, e, g1, g2, {t i }) and the master private key MPK = y, the public parameter CP is made public, and the master private key MPK is kept confidential; In Z p A random number r is randomly selected to generate a shared key E″=g for the current group tag r , and then generate the corresponding key component E for each attribute v in the attribute set Γ v =T(v) r , and use the bilinear mapping e to encrypt the entity feature data m to generate the ciphertext E′=me(g1,g2) r .
6. The RFID group tag authentication strategy based on Internet of Things applications according to claim 1 is characterized in that: The generation process of the decryption subkey includes: Construct a polynomial f for visiting the root node of the subtree root (x), let the polynomial f root The order d of (x) root =k root -1, k root represents the threshold value of the root node, let f root (0) = y, and randomly select d root constants as coefficients of each order; Construct a polynomial f for visiting the nonroot nodes of the subtree nonroot (x), let the polynomial f nonroot The order d of (x) nonroot =k nonroot -1, k nonroot represents the threshold value of nonroot node, let f nonroot (0) = f parent(nonroot) (index(nonroot)), and randomly select d nonroot A constant is used as the coefficient of each order. The function parent(nonroot) means returning the parent node of the non-root node nonroot. The function index(nonroot) means returning the index of the non-root node nonroot in the parent node. Generate a key pair for accessing the leaf node of the subtree: Among them, r leaf Represents a finite field Z p The leaf node is a random number selected from the leaf node. leaf ,R leaf ) as the decryption subkey of the leaf node leaf.
7. The RFID group tag authentication strategy based on Internet of Things applications according to claim 1 is characterized in that: The decryption process of the entity feature data ciphertext includes: First, use each attribute identifier VID read to index the corresponding attribute v, and accumulate all the indexed attributes to form an attribute set Γ; Then, extract all leaf nodes in the identified access subtree, and use the judgment function JudgeNode() to generate a judgment value for each leaf node: Among them, the function att(leaf) represents the attribute associated with the leaf node leaf. Indicates the terminator and outputs a null value; After obtaining the judgment values of all leaf nodes, we visit the subtree from bottom to top to determine whether each non-leaf node meets its threshold value: Let the value F z represents the output of node z about JudgeNode(z), S u is a The set of child nodes z of non-leaf node u, if |S u |=k u , it indicates that the non-leaf node u satisfies the access subtree, otherwise it indicates that the non-leaf node u does not satisfy the access subtree, and returns ⊥; When the non-leaf node u satisfies the condition of accessing the subtree, the output value of the non-leaf node u with respect to JudgeNode(u) is further calculated: Where i = index(u), set S′ u ={index(z)}; When all non-leaf nodes satisfy the identified access subtree, the shared key SK=e(g1,g2) can be calculated at the root node of the access subtree. r , and further decrypt using the shared key SK to obtain the plaintext of the entity feature data: 。 8. The RFID group tag authentication method based on Internet of Things application according to claim 1 is characterized in that: It also includes the tag status traceability process: In the access structure identification phase, if the read attribute identifier is not associated with any leaf node in the access tree, the single label corresponding to the current attribute identifier is determined to be in a fault state; In the group tag authentication phase, if the group tag cannot satisfy the identified access subtree, each single tag key component is extracted one by one, and the decryption algorithm of the KP-ABE mechanism is executed together with the preset sample set. If it still does not satisfy the identified access subtree, the current single tag is judged to be in a fault state. Otherwise, it is further judged whether the entity feature data obtained by decryption is consistent with the corresponding entity. If it is consistent, the current single tag is judged to be in a normal state, otherwise it is judged to be in a fault state. In the group tag authentication phase, if the group tag satisfies the identified access subtree, the ciphertext of each single tag is extracted one by one, and the entity feature data obtained by decryption is further judged whether it matches the corresponding entity. If it matches, the current single tag is judged to be in a normal state, otherwise it is judged to be in a fault state; The sample set is the key components pre-stored on the remaining leaf nodes in the access subtree except the leaf node associated with the current single label attribute.
9. An RFID group tag authentication system based on Internet of Things applications, characterized in that: The system comprises: an authentication server, an authentication client, a reader and a single tag, wherein the authentication server comprises: an access tree construction module, an attribute allocation module, a secret parameter generation module, a decryption key generation module and an access structure identification module; Access tree construction module: constructs an access subtree for each independent combination of group labels, including root nodes, intermediate nodes and leaf nodes. The root node of each access subtree represents the group label, each leaf node is associated with a unique attribute, and the intermediate node connects the root node with the leaf node through a set threshold value. After all access subtrees are connected together, an access tree associated with all types of group labels is formed; Attribute assignment module: assigns authentication entities to all single tags in the group tag, and assigns corresponding attributes and entity feature data to each single tag according to the type of authentication entity; Secret parameter generation module: extract the attributes of each single label in the group label to form an attribute set, take the attribute set and entity feature data as input data, and use the encryption algorithm of the KP-ABE mechanism to generate the corresponding entity feature data ciphertext and key component for each single label; Decryption key generation module: takes the access subtree as input data and uses the key generation algorithm of the KP-ABE mechanism to generate the corresponding decryption subkey for each leaf node; Access structure identification module: reconstructs the access subtree corresponding to the group tag in the access tree using the attribute identifier received from the authentication client. If the reconstruction fails, the authentication operation is terminated and an access structure identification failure message is returned. Otherwise, the access subtree containing the decryption subkey is sent to the authentication client. The authentication client comprises: a data decryption module and a feature data matching module; Data decryption module: takes all key components and decryption subkeys as input data, and uses the decryption algorithm of the KP-ABE mechanism to decrypt the ciphertext of entity feature data. If the decryption fails, the authentication operation is terminated and a decryption failure message is returned; Feature data matching module: after the entity feature data is successfully decrypted, it is determined whether all decrypted entity feature data matches the corresponding entity. If there is an inconsistent comparison result, it indicates that the authentication has failed and a group tag authentication failure message is returned. Otherwise, it indicates that the authentication has passed and a group tag authentication success message is returned. Single tag: used to store and send attribute identifiers, entity feature data ciphertext and key components; Reader: broadcasts authentication request messages to group tags via wireless radio frequency, reads attribute identifiers, entity feature data ciphertexts and key components fed back by all single tags in the group tag, and sends them to the authentication client.
Citation Information
Cited By
Electronic component authentication method and system
CN120012809A
