A method and system for authenticating key negotiation

By using part of the private key and public key pairs generated by KGC for key negotiation in the wireless sensor network, the problems of inconvenient public key transmission and large communication volume are solved, the key confirmation step is added, and the security and safety of the key are improved. Reliability,for resource-constrained sensor networks.

CN114021165BActive Publication Date: 2024-10-18WUHAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111270544.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-10-18
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

Existing authentication key agreement methods have problems such as inconvenient public key transmission, large communication volume, and vulnerability to interference and replay attacks in low-configuration, open, and self-organized wireless sensor networks, especially in resource-constrained sensor networks. It is difficult to achieve efficient and secure key agreement.

Method used

When the key generation center KGC generates partial private keys for users, linear combinations of random numbers and KGC's private keys are used to construct partial private-public key pairs, and the validity is verified through public information between users, reducing communication volume and increasing The key confirmation link ensures the security and reliability of the session key.

Benefits of technology

It achieves efficient and secure key agreement in sensor networks, reduces communication volume, enhances the reliability and anti-interference ability of keys, maintains low computational complexity, and is suitable for key agreement in distributed networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114021165B_ABST
    Figure CN114021165B_ABST
Patent Text Reader

Abstract

The present invention discloses an authentication key negotiation method and system. In order to construct an authentication key negotiation protocol suitable for sensor networks without certificates and pair operations, the authentication key negotiation process is feasible on the basis of ensuring safety, reliability and low overhead. Based on the work of Deng Lunzhi and others, the present invention uses a clever partial public key design to reduce the size of the negotiation package, uses XOR operations and hash value calculation improvements to achieve symmetry, and adds a confirmation mechanism to improve security and reliability. While ensuring that the amount of calculation is still only the scale of 4 scalar multiplications, the communication package is improved and the amount of communication is reduced, and the achieved symmetry makes the protocol more feasible, which can be used for the Internet of Things, distributed networks, especially low-profile networks such as sensor networks, to negotiate shared session keys between nodes safely and efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of authentication key negotiation in network security, and in particular, relates to a key negotiation (or allocation, distribution, exchange) method and system based on certificateless authentication or self-authentication of a public key, which can be used for securely and efficiently negotiating shared session keys between nodes in the Internet of Things, distributed networks, especially low-configuration networks such as sensor networks. Background Art

[0002] With the continuous development of information technology, computer network research and application are gradually expanding from local area networks, wide area networks, and the Internet to next-generation networks such as mobile Internet and the Internet of Things. As an important part of the Internet of Things, sensor networks have also received the attention of many scholars in the early stage, but there is still a certain distance from application. The most critical thing is that the security issues are still to be solved. In order to achieve secure communication in open Internet networks, especially in wireless networks, it is usually necessary to use public key technology to securely build a symmetric key for a session between two users, that is, it is necessary to solve the authenticated key agreement (AKA) problem, which is particularly important in low-profile, open, and self-organized wireless sensor networks. Recently, the efficient methods in this regard are mainly studied by Sun Fajun, Deng Lunzhi and others. Both of their studies require 4 scalar multiplication operations, which are quite efficient, but the method of Deng Lunzhi and others (see Deng L, Gao R. Certificateless two-party authenticated key agreement scheme for smartgrid. Information Sciences, 2020, 543) has better security. However, Deng et al.'s method still has some problems and is not completely suitable for sensor networks. The present invention is based on the improvement and perfection of their method. The main steps of Deng et al.'s method are:

[0003] S1, installation phase: obtain the master key msk and public parameter set params generated by the key generation center KGC through system parameters. This phase is based on the predetermined security parameter k∈Z + , select an additive cyclic group G with an order of a large prime number q and determine the generator P, take a random number As the msk of KGC, according to P pus =sP calculates KGC public key P pus , and build a common parameter set: params = {F p ,E / F p ,G,k,P,P pub ,H1,H2,H3}, where H1 is the hash function H1: H2 is the hash function H2: H3 is the hash function H3:

[0004] S2, registration phase: Generate the public key and private key corresponding to the session based on the user identity information, the master key msk and the system public parameter set params. Each user generates his own partial private key x i and the public key P i =x i P, then (ID i ,P i ) is sent to KGC, and KGC confirms the user's identity based on the identity information ID i and received P i , first select a random number According to the formula i =r i +sH1(ID i ,P i ,R i )(mod q) is calculated to obtain the partial private-public key pair (s) generated by KGC i ,R i ) and sends it to the corresponding user through a secure channel.

[0005] S3, key negotiation phase: based on user identity information, public key, private key and system public parameter set params, session authentication key negotiation is performed. Session initiator A (such as Smart Meter) first selects And calculate the initiator's temporary public key T A =t A P, M A =(R A ,T A ) is sent to the session responder B (such as Service Provider); the responder also selects And calculate the responder's temporary public key T B =t B P, M B =(R B ,T B ) is sent to the initiator. The session initiator receives M B Then, calculate:

[0006] h B =H1(ID B ,P B ,R B ), h AB =H2(ID A ,ID B ,P A ,P B ,RA ,R B ,T A ,T B ), and then calculate:

[0007] K AB =(h AB t A +x A +s A )(h AB T B +P B +R B +h B P pub ),and

[0008] Shared key sk = H3(ID A ,ID B ,P A ,P B ,R A ,R B ,T A ,T B ,K AB ),

[0009] The session responder can calculate h A =H1(ID A ,P A ,R A ), h AB =H2(ID A ,ID B ,P A ,P B ,R A ,R B ,T A ,T B ), and calculate:

[0010] K BA =(h AB t B +x B +s B )(h AB T A +P A +R A +h A P pub ),and

[0011] Shared key sk = H3(ID A ,ID B ,P A ,P B ,R A ,R B ,TA ,T B ,K BA ).

[0012] Finally, the consistency of the negotiated key between the two parties can be verified by the following equation:

[0013] K AB =(h AB t A +x A +s A )(h AB T B +P B +R B +h B P pub )=(h AB t A +x A +s A )(h AB t B +x B +s B )

[0014] =(h AB t B +x B +s B )(h AB t A +x A +s A )P=(h AB t B +x B +s B )(h AB T A +P A +R A +h A P pub )

[0015] =K BA

[0016] Thus, user A and user B share the session key sk.

[0017] However, the agreement still has the following problems:

[0018] 1) The public key is not transmitted during message sending;

[0019] In the Internet with sufficient resources, the public key is published on the electronic bulletin board or some authenticated public areas. During key negotiation, users can send request messages to these areas to obtain it. However, for sensor networks with limited resources, it may not be feasible to obtain the public key through the Internet before key negotiation. First, the communication energy consumption of requesting to obtain the public key separately is relatively large. Second, some sensor networks may not be connected to the Internet. In this case, this method may not be realistic. Therefore, it is believed that the transmission of the public key should be added to the message. However, for sensor networks that need to meet standards such as IEEE802.15.4, due to physical layer limitations, only a maximum of 118B of valid data can be transmitted. In addition, sending three elliptic curve points cannot be accommodated in one frame (at least 120B is required to reach 80-bit security level, not including user ID), and when the data packet is transmitted in multiple frames, it is vulnerable to jamming attacks by attackers.

[0020] 2) It is not symmetrical and is inconvenient to implement;

[0021] For distributed networks, the identities of users are equivalent, and usually any party can be both an initiator and a responder. However, if both parties act as initiators at the same time, the above negotiation method will waste energy due to repeated negotiations, and it will also easily lead to participants being unable to determine whether they are initiators or responders, which is not conducive to correctly arranging the order of calculating session key parameters (because the methods of calculating the final shared key by the initiator and responder are slightly different). Of course, Deng et al.'s solution can solve this problem by judging the size of the ID, that is, no matter who is the initiator, when calculating h AB When calculating sk, the smaller ID can be arranged first and the larger ID can be arranged last, and the other points can be arranged in this order, so that the same shared key can be calculated on both sides. However, another symmetric method is adopted in the present invention to solve this problem.

[0022] 3) There is no key confirmation link, which is vulnerable to attacks such as jamming and replay;

[0023] The attacker can generate and send random M A To make the attacked B perform the negotiation process, or copy other people's negotiation packets to perform replay attacks, so that the attacked B will generate a series of unnecessary calculations, which is fatal to wireless communication users powered by batteries, etc. In the absence of a confirmation link, it will be difficult to detect such attacks, or at least cause detection delays. Summary of the invention

[0024] In order to solve the above technical problems, the present invention first provides a method for constructing a partial private public key pair. When a key generation center KGC generates a partial private / public key pair for a user, the partial private key is composed of a random number r iThe linear combination of the private key s of the key generation center KGC is constructed. At least one of the combination coefficients contains the hash value of the partial public key and the user identity corresponding to the public key, and the partial public key is composed of the user public key and the hash value of the r i It is generated by linear combination of public keys generated by generators, and each combination coefficient is a non-zero number; after the user receives the partial private / public key pair generated by the key generation center KGC, he can use public information and private key to verify its validity; the r i The public key generated by the generator is r when using ECC primitives i P, while using the RSA primitive is Among them, P and g are the generators of the corresponding public key system.

[0025] The present invention also provides an authentication key negotiation method consisting of three stages: initialization, user registration, and key negotiation:

[0026] Phase 1 (S1): Initialization.

[0027] First, select the public key primitive (such as ECC, RSA, etc.) according to the needs of the application scenario, and equip the corresponding public key primitive with security parameters, such as determining the value of the security key length λ, selecting the curve and related parameters used (including curve parameters, large prime numbers, etc.), and selecting related security algorithms, hash functions, etc.

[0028] Then generate the private key s and public key P of KGC pub , build the system public parameter set Params (including at least the public key P of KGC) pub ) and distribute it to each communication user in the network or publish it in a certain announcement area.

[0029] Stage 2 (S2): User registration.

[0030] Each user generates their own partial private / public key pair x based on the received Params i / P i , the public key P i The identity information is transmitted to KGC. After KGC confirms the validity of the identity and public key, it generates a partial private / public key pair Pr configured by the KGC end. i / Pu i , where Pr i A random number r i The linear combination of the private key s and KGC is constructed, and at least one of the combination coefficients contains the hash value of the partial public key and the user identity corresponding to the public key, and the partial public key Pu i By user public key P i And with r i The public key generated by the generator (r when using ECC primitives) i P, while using the RSA primitive is ) linear combination, each combination coefficient is non-zero, and after the user receives the partial private / public key pair generated by KGC, he can use the public information and private key to verify its validity. i / Pu i The security parameters are sent to users through a secure channel (in actual applications, they can be transmitted without a secure channel as needed). Users can use public information to i / Pu i After verification, the user's own private / public key pair (x i ,Pr i ) / (P i ,Pu i ).

[0031] Phase three (S3): key negotiation.

[0032] User (identity ID i ) After completing user registration, the session key negotiation process includes the following steps:

[0033] Step 1: Generate a temporary private / public key pair i / T i , where t i and T i The relationship between them is determined by the public key primitives chosen and by at least T i Calculate t i It is not feasible due to the difficult problem Prms based on the public key mechanism, and the identity ID i , temporary public key T i , other publicly available security parameters Params i Composed a message (ID i ,T i ,Params i ) is sent to the other party participating in the negotiation. When the other party cannot obtain the public key from the public release area through the Internet, Params i At least your public key should be included;

[0034] Step 2: When each user receives the above message, they construct a session key shared with the other party as follows:

[0035] Step 2.1: Perform a linear combination of the long-term private key and the temporary private key, where at least one of the combination coefficients includes the long-term public key, the temporary public key, and the hash value of the user identity corresponding to the public key, and obtain the secret data K shared by both parties based on Prms acting on the linear combination of the other party's long-term public key and the temporary public key; at least one of the combination coefficients of the linear combination includes the long-term public key, the temporary public key, and the hash value of the user identity corresponding to the public key;

[0036] Step 2.2: Use the IDs, temporary public keys, user public keys, partial public keys, and the shared secret data K generated in the previous step of the negotiating parties to perform an operation that can be completed within polynomial time and can ensure that the operation result is equal to that of the other party, and obtain the shared key sk.

[0037] Step 3: Each user uses the symmetric key sk to confirm with the other party in the following way:

[0038] Step 3.1: The initiator generates a random number m and sends (m) sk ||m to the other party; among them, (m) sk Indicates that m is encrypted with the symmetric key sk;

[0039] Step 3.2: Record the message received by the responder as The responder then uses the shared key sk generated in step 2 to Decrypt and get m ** Then determine whether it matches the second half of the received message m * If they are equal, it can be confirmed that the other party has established the same key as oneself. If they are not equal or if the message from the other party is not received within a certain period of time, a query can be sent to the other party. If it is still not confirmed that the other party has established the same shared key as oneself after a certain number of times and a certain period of time, it can be regarded as an attack by an attacker and the shared key calculated in step 2 can be discarded.

[0040] The present invention also provides an authentication key negotiation system, which includes the following modules:

[0041] Module S1: completes the initialization function.

[0042] This system uses ECC as the public key primitive, and the selected security parameter λ=87 (a larger parameter can be selected as needed). The elliptic curve and related parameters can be determined based on the latest security curve and parameters recommended by SECG / NIST. For example, we can take the curve as E:y 2 =x 3 +ax+b(a,b are constants, 4a 3 +27b 2 ≠0), select a 192-bit large prime number p, based on E / F p Construct an additive cyclic group G of order q, and make q also a sufficiently large 192-bit prime number. From this cyclic group, a generator P can be determined; select a collision-resistant cryptographic one-way irreversible hash function: H1: H2: H3:{0,1} * ×{0,1} * ×{0,1} *×G→{0,1} 128 ; Select AES algorithm as the symmetric encryption algorithm; Select a random number for KGC As the private key of KGC, calculate the KGC public key as P pub =sP. The build system public parameter set is: After that, KGC distributes the Params to each communication user in the network or publishes it in a certain publication area.

[0043] Module S2: Complete the user registration function.

[0044] After each user in the network obtains the public parameter Params from KGC or the publication area, they randomly select a user private key based on the security parameters in the received Params. (Assume that the user identity is ID i ), and use it to calculate the corresponding user public key P i =x i P, contact KGC to send it (ID i ,P i ) to register as a user. After KGC confirms the user's identity, it first generates a Calculate R i =r i P and Q i =P i +R i , then according to the formula s i =r i +sH1(ID i ,Q i )(mod q) calculates the ID i Part of the private / public key pair s i / Q i , and send it to the user; for the sake of simplicity, the subsequent mod q and mod p operations are omitted. All point component operations require mod p, and all pre-point coefficient operations require mod q. Users can use the formula For the received private / public key pair s i / Q i After the test is passed, the user can i ,s i ) as its long-term private key, with (P i ,Q i ) as their long-term public key. In this way, users A and B can obtain their long-term private keys respectively (x A ,s A )、(x B ,s B ), all long-term public keys are (P A ,Q A )、(PB ,Q B ), and other users in the network are similar.

[0045] Module S3: Complete the key negotiation function.

[0046] Each user can be the initiator of key negotiation. For the convenience of explanation, we may as well explain the various sub-modules of key negotiation according to the above proposal with A as the initiator and B as the receiver.

[0047] Module S3.1: used by the initiator user A to obtain a random number based on the public parameter set Params as its temporary private key, and with the formula T A =t A P calculates the corresponding temporary public key with identity ID A 、Long-term public key Q A , temporary public key T A Construct negotiation message M A =(ID A ,Q A ,T A ) and sends the message to the user who wants to negotiate the key; similarly, the responding user B also takes a random number based on Params as its temporary private key, and with the formula T B =t B P calculates the corresponding temporary public key and constructs the negotiation message M with the identity, long-term public key and temporary public key. B =(ID B ,Q B ,T B ) and sends the message to the user with whom the key is to be negotiated;

[0048] Module S3.2: After receiving the above message, users A and B execute the following submodules:

[0049] Module S3.2.1: is used to perform the following calculations:

[0050] User A: h B =H1(ID B ,Q B ), h TA =H2(ID A ,Q A ,T A ), h TB =H2(ID B ,Q B ,T B ),

[0051] User B: h A =H1(ID A ,QA ), h TB =H2(ID B ,Q B ,T B ), h TA =H2(ID A ,Q A ,T A );

[0052] Module S3.2.2: Used to calculate K as follows AB , K BA :

[0053] User A: K AB =(h TA t A +x A +s A )(h TB T B +Q B +h B P pub ),

[0054] User B: K BA =(h TB t B +x B +s B )(h TA T A +Q A +h A P pub );

[0055] Among them, the hash value h A 、h B 、h TA 、h TB Generated by module S3.2.1, temporary private key t A ,t B Generated by module S3.1, x A 、s A They are user A’s private key and partial private key, x B 、s B They are user B's user private key and partial private key, P pub It is the public key of the key generation center KGC;

[0056] Module S3.2.3: used by users A and B to calculate the shared key according to the formula:

[0057] A's shared key is calculated as:

[0058] k AB =H3(ID A ⊕IDB ,Q A ⊕Q B ,T A ⊕T B ,K AB ),

[0059] Where ⊕ means to perform XOR on two binary strings. When the operation is a point on an elliptic curve, it means to first connect the x and y components of the point and then participate in the operation; K AB Generated by module S3.2.2;

[0060] B's shared key is calculated as:

[0061] k BA =H3(ID B ⊕ID A ,Q B ⊕Q A ,T B ⊕T A ,K BA ),

[0062] Where K BA Generated by module S3.2.2;

[0063] Finally, the consistency of the negotiated key between the two parties is verified by the following equation:

[0064] K AB =(h TA t A +x A +s A )(h TB T B +Q B +h B P pub )=(h TA t A +x A +s A )(h TB T B +P B +R B +h B P pub )

[0065] =(h TA t A +x A +s A )(h TB t B +x B +s B )P=(h TB t B +x B+s B )(h TA t A +x A +s A )

[0066] =(h TB t B +x B +s B )(h TA T A +P A +R A +h A P pub )=(h TB t B +x B +s B )(h TA T A +Q A +h A P pub )

[0067] =K BA

[0068] And, because: Q A ⊕Q B =Q B ⊕Q A , T A ⊕T B =T B ⊕T A , ID A ⊕ID B =ID B ⊕ID A ;

[0069] According to the characteristics of hash functions, k AB =k BA ; Therefore, if A and B are legitimate users and the message is delivered correctly, they must have established the same session key sk = k AB =k BA .

[0070] Module S3.3 is used for the initiator to confirm the session key with the other party according to the following modules; any user can act as the initiator after establishing the key:

[0071] Module S3.3.1, used by the initiator A to generate a random number m A ,send To the responder, such as B;

[0072] Module S3.3.2 is used to record the message received by responder B from initiator A as Responder B uses the shared key k generated in module S3.2 BA In the received message Decrypt it and get Then determine whether it matches the second half of the received message If they are equal, it means the initiator A

[0073] The same session key as itself has been established. Otherwise, there may be a transmission error or attack. At this time, you can send a query to the other party. If you still cannot confirm that the other party has established the same shared key as yourself after a certain number of times and a certain period of time, you can regard it as an attack by an attacker or poor network conditions and discard the previously calculated shared key. Similarly, B can also act as the initiator to perform a similar confirmation process.

[0074] Since the user public key is integrated into the partial public key, when the partial private / public key pair generation method disclosed in the present invention is applied to the key negotiation protocol, the protocol that originally needed to transmit two data, the user public key and the partial public key, only needs to transmit one data, the partial public key, thereby effectively reducing the communication volume in the key negotiation. It can be applied to many existing key negotiation methods to reduce the communication volume.

[0075] Compared with the method of Deng Lunzhi et al., the authentication key negotiation method disclosed in the present invention has the following advantages:

[0076] First, the high security of the original scheme is maintained. First, when the attacker does not know any secrets of the two users, the negotiated shared key is safe; second, when the attacker cannot obtain the user private key, partial private key and temporary private key of a negotiating party at the same time, the scheme can ensure that any negotiated session key is safe.

[0077] Second, high reliability. The present invention confirms the negotiated session key through the designed key confirmation mechanism, which can ensure a high success rate of key negotiation, thereby improving reliability. In addition, session key confirmation also improves the user's ability to resist interference attacks.

[0078] Third, the computational complexity is still low. The present key negotiation method still maintains the characteristic of low computational complexity based on the original method. In the subsequent ECC-based embodiment, the public key calculation used in the key negotiation only requires 4 scalar multiplication operations per party.

[0079] Fourth, lower communication volume. When negotiating the key, each party only needs to send one message and ensure that only necessary information (user ID, temporary public key, long-term public key) is sent. After correcting the problems of the original scheme, the communication volume is still the same as the original scheme. Other communications are required for the key confirmation link and the design also makes the overhead as low as possible.

[0080] Fifth, easy implementation. The present invention ensures the symmetry of the two communicating users in the protocol and the mutual independence of the information sent and received, so that the protocol and its implementation loaded by each user are the same. When each user calculates the shared key, it is not necessary to consider the order of message sending to arrange the order of parameters. Even if the initiator starts the negotiation process together, the correct key negotiation can be achieved, which is more conducive to application and implementation in distributed networks such as WSNs. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 This is the network model on which the authentication key negotiation method of the present invention is based.

[0082] Figure 2 It is the main flow chart of the authentication key negotiation method of the present invention.

[0083] Figure 3 It is a detailed flow chart of the authentication key negotiation method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0084] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0085] First, the professional terms involved in this embodiment are defined as follows:

[0086] User: A legitimate session entity, a participant in a session in the network, or a sender / receiver of a message in a communication. It may be a process, a computer, a mobile terminal, or a sensor node, etc.

[0087] KGC: Key Generation Center, responsible for generating system public parameters, master private / public key pairs, partial private / public key pairs of each user, and distributing public parameters and partial private / public key pairs to each user;

[0088] ECC: Elliptic Curve Cryptography, a theory for building elliptic curve cryptography;

[0089] λ: system safety parameter, which is selected by the user of the present invention according to safety requirements, and is recommended to be at least not less than 160;

[0090] p,q: two large prime numbers, selected by KGC, satisfying p≥2 λ-1 ;

[0091] F p : A finite field of order (number of elements) p;

[0092] G: q-order additive cyclic group, selected by KGC based on elliptic curve E / F p Construct and get the generator P;

[0093] The set of positive integers less than q {1,2,…,q-1};

[0094] H1: Hash functions;

[0095] H2: Hash functions;

[0096] H3:{0,1} * ×{0,1} * ×{0,1} * ×G→{0,1} λ , hash function;

[0097] mod: modulo remainder operation;

[0098] (m) K : Encrypt m with the symmetric key K;

[0099] ∈ R : belongs to and is randomly selected;

[0100] ⊕: XOR operation. When the operand is a non-scalar quantity such as a point on an elliptic curve, it means that the components are first connected sequentially and then participate in the operation;

[0101] Point component: the x or y component of a point on the elliptic curve;

[0102] K [x] , K [y] : the x or y component of K;

[0103] Scalar multiplication of points: the operation of multiplying a point on an elliptic curve;

[0104] Hash: cryptographic hash function operations, such as the SHA-2 series of functions;

[0105] MAC: message authentication code generation operation;

[0106] ECDLP: Elliptic Curve Discrete Logarithm Problem;

[0107] ECDHP: Elliptic Curve Diffie-Hellman Problem;

[0108] User private / public key: part of the private / public key generated by the user himself;

[0109] Partial private / public key: refers to the partial private / public key generated by KGC for the user;

[0110] Long-term private / public key: includes user private / public key and partial private / public key, also known as full private / public key;

[0111] Ephemeral private / public key: A private / public key generated by users when negotiating keys and used to create session keys.

[0112] The method provided by the present invention can be applied to various public key primitives, but the ECC primitive is preferred. Taking the construction of the ECC primitive-based authentication key negotiation method as an example, a specific description of the implementation of the present invention is given as follows:

[0113] In this embodiment, Prms={ECDLP, ECDHP}, that is, security is based on the fact that it is computationally infeasible to solve ECDLP or ECDHP. The system in this embodiment includes the following entities (taking two communication users as an example, the construction method for more communication users is similar):

[0114] 1) Key Generation Center KGC: responsible for initializing the system, generating partial private / public key pairs equipped by KGC for each user, and distributing partial private / public key pairs and parameters to session participants;

[0115] 2) User A: represents one party participating in the session, such as the initiating user;

[0116] 3) User B: represents the other party participating in the conversation, such as the responding user.

[0117] In addition, there are potential attackers.

[0118] The present invention aims at the deficiencies of the scheme of Deng Lunzhi et al., and provides a more reliable, secure and easy-to-implement authentication key negotiation method while ensuring low computational complexity (only 4 scalar multiplication point operations are required when using ECC).

[0119] The innovation of the authentication key negotiation method is reflected in the process of user registration, key negotiation and key confirmation. Assuming that the difficult problem (set) based on the public key mechanism adopted in key negotiation is Prms, the applicable network model is as follows: Figure 1 As shown in the figure, there are three types of entities in the network: KGC (key negotiation can work offline), legal users, and attackers. The shared key is required to be established only between any pair of legal users. Assuming that the attacker controls the entire network communication and can use the information he obtains to carry out any attack, including eavesdropping on any data packet from the network for analysis, injecting any forged and copied data packets into the network, modifying data packets transmitted between legal users, blocking data packets sent between users, etc. The attacker also has the ability to obtain the secrets of the communication users. In addition to meeting the following two assumptions:

[0120] 1) An attacker cannot obtain the user private key, partial private key and temporary private key of a negotiating party at the same time;

[0121] 2) An attacker who obtains a user's private key and part of the private key cannot impersonate the user or forge messages generated by the user using the user's private key and part of the private key to attack.

[0122] The second assumption above is to examine whether the attacker can carry out other attacks, such as cracking the previous session key, after obtaining the user private key and partial private key of a user (because this is obviously possible), in addition to impersonating the user and forging the message generated by the user with his user private key and partial private key (because this is obviously possible). In other words, whether the protocol built based on the key agreement method has perfect forward security PFS, whether it is resistant to KCI attacks, etc.

[0123] This is the attack model that the key negotiation method of the present invention can resist. The key negotiation method can remain secure (including perfect forward security, etc.) even if the attacker obtains any secret combination other than the above situations.

[0124] The present invention first discloses a method for constructing a partial private / public key pair, which specifically includes: a user creates his own public key P i After that, contact KGC and send it the public key P i and user ID i The message (ID i ,P i ) to register a user. After KGC confirms the user's identity, it first generates a Calculate R i =r i P and Q i =P i +R i , then according to the formula s i =r i +sH1(ID i ,Q i )(mod q) calculates the ID i Part of the private / public key pair s i / Q i (s is the private key of the key generation center KGC, q is the group ) and send it to the user; it should be noted that: for the sake of simplicity, the subsequent mod q and mod p operations are omitted, all point component operations require mod p, and all pre-point coefficient operations require mod q. Users can use the formula For the received private / public key pair s i / Q i Conduct inspection.

[0125] The key negotiation method disclosed in the present invention is based on a certificateless public key or a self-certified public key. The authentication key negotiation process can be divided into three stages (the main process is as follows: Figure 2 and Figure 3 shown):

[0126] Phase 1 (S1): Initialization.

[0127] This embodiment uses ECC as the public key primitive, and the selected security parameter λ=87 (a larger parameter can be selected as needed). The elliptic curve and related parameters can be determined according to the latest security curve and parameters recommended by SECG / NIST. For example, the curve in this embodiment can be E:y 2 =x 3 +ax+b(a,b are constants, 4a 3 +27b 2 ≠0), select a 192-bit large prime number p, based on E / F p Construct an additive cyclic group G of order q, and make q also a sufficiently large 192-bit prime number. From this cyclic group, a generator P can be determined; select a collision-resistant cryptographic one-way irreversible hash function: H1: H2: H3:{0,1} * ×{0,1} * ×{0,1} * ×G→{0,1} 128 ; Select AES algorithm as the symmetric encryption algorithm; Select a random number for KGC As the private key of KGC, calculate the KGC public key as P pub =sP. The build system public parameter set is: After that, KGC distributes the Params to each communication user in the network or publishes it in a certain publication area.

[0128] Stage 2 (S2): User registration.

[0129] After each user in the system obtains the public parameter Params from KGC or the publication area, they randomly select a user private key based on the security parameters in the received Params. (Assume that the user identity is ID i ), and use it to calculate the corresponding user public key P i =x i P, contact KGC to send it (ID i ,P i ) to register as a user. After KGC confirms the user's identity, it first generates a Calculate R i =r i P and Q i =P i+R i , then according to the formula s i =r i +sH1(ID i ,Q i )(mod q) calculates the ID i Part of the private / public key pair s i / Q i (s is the private key of the key generation center KGC, q is the group of order) and sends it to the user; the user can For the received private / public key pair s i / Q i After the test is passed, the user can i ,s i ) as its long-term private key, with (P i ,Q i ) as their long-term public key. In this way, users A and B can obtain their respective long-term private keys (x A ,s A )、(x B ,s B ), all long-term public keys are (P A ,Q A )、(P B ,Q B ), and other users in the system are similar.

[0130] Phase three (S3): key negotiation.

[0131] Each user can be the initiator of key negotiation. For the convenience of explanation, in this embodiment, A is used as the initiator and B is used as the receiver to illustrate the key negotiation process.

[0132] Step S3.1, A takes a random number based on the public parameter set Params as its temporary private key, and with the formula T A =t A P calculates the corresponding temporary public key and constructs the negotiation message M with the identity, long-term public key and temporary public key. A =(ID A ,Q A ,T A ), and sends the message (broadcast / unicast) to the user who wants to negotiate the key. Similarly, the responder, such as B, also takes a random number based on Params as its temporary private key, and with the formula T B =t B P calculates the corresponding temporary public key and constructs the negotiation message M with the identity, long-term public key and temporary public key. B =(IDB ,Q B ,T B ) and sends the message to the user with whom you want to negotiate a key.

[0133] Step S3.2: After A and B receive the above message,

[0134] Step S3.2.1, first perform the following calculation:

[0135] User A: h B =H1(ID B ,Q B ), h TA =H2(ID A ,Q A ,T A ), h TB =H2(ID B ,Q B ,T B ),

[0136] User B: h A =H1(ID A ,Q A ), h TB =H2(ID B ,Q B ,T B ), h TA =H2(ID A ,Q A ,T A );

[0137] Step S3.2.2 is then calculated as follows:

[0138] User A: K AB =(h TA t A +x A +s A )(h TB T B +Q B +h B P pub ),

[0139] User B: K BA =(h TB t B +x B +s B )(h TA T A +Q A +h A P pub );

[0140] Step S3.2.3, after that, A and B can calculate the shared key according to the formula:

[0141] A's shared key is calculated as:

[0142] k AB =H3(ID A ⊕ID B ,Q A ⊕Q B ,T A ⊕T B ,K AB ),

[0143] Where ⊕ means to perform XOR on two binary strings. When the operation is a point on an elliptic curve, it means to first connect the x and y components of the point and then participate in the operation.

[0144] B's shared key is calculated as:

[0145] k BA =H3(ID B ⊕ID A ,Q B ⊕Q A ,T B ⊕T A ,K BA ), where ⊕ has the same meaning as above.

[0146] Finally, the consistency of the negotiated key between the two parties can be verified by the following equation:

[0147] K AB =(h TA t A +x A +s A )(h TB T B +Q B +h B P pub )=(h TA t A +x A +s A )(h TB T B +P B +R B +h B P pub )=(h TA t A +x A +s A )(h TB t B +x B +s B )P=(h TBt B +x B +s B )(h TA t A +x A +s A )

[0148] =(h TB t B +x B +s B )(h TA T A +P A +R A +h A P pub )=(h TB t B +x B +s B )(h TA T A +Q A +h A P pub )

[0149] =K BA , and at the same time: Q A ⊕Q B =Q B ⊕Q A , T A ⊕T B =T B ⊕T A , ID A ⊕ID B =ID B ⊕ID A .

[0150] According to the characteristics of hash functions, k AB =k BA Therefore, if A and B are legitimate users and the message is delivered correctly, they must have established the same session key sk = k AB =k BA .

[0151] Step S3.3: To ensure that the received message is not a spam or replayed message sent by the attacker, and to confirm that the generated session key is correct and that the other party has also generated the same session key, it is necessary to confirm the session key with the other party according to the following steps. In this embodiment, A is taken as the initiator as an example (any user can be the initiator after establishing the key):

[0152] Step S3.3.1, the initiator generates a random number m A ,send To the responder, such as B;

[0153] Step S3.3.2, (For the convenience of explanation, this embodiment assumes that B receives the message from A as Responder B uses the shared key k generated in step 2 BA In the received message Decrypt it and get Then determine whether it matches the second half of the received message If they are equal, it means A has established the same session key as itself. Otherwise, it may be a transmission error or attack. At this time, you can send a query to the other party. If you still cannot confirm that the other party has established the same shared key as yourself after a certain number of times and a certain period of time, you can regard it as an attack by an attacker or a poor network condition and discard the previously calculated shared key. Similarly, B can also act as the initiator to perform a similar confirmation process.

[0154] This embodiment not only overcomes the complex certificate management and key escrow problems in the traditional authentication key negotiation mechanism, does not require complex pair operations, and ensures security and reliability. It is particularly suitable for wireless mobile devices and networks with limited computing power, such as Internet of Vehicles, IoT, WSN, etc. More specifically, in Internet applications, assuming that the KGC is a public security department responsible for citizen identity registration, etc., when two citizens Zhang San and Li Si want to transmit a large amount of secret / privacy data (such as a video), they can use the present invention to negotiate one or more session keys, thereby realizing secure data transmission between the two.

[0155] The specific embodiments described herein are merely examples of the spirit of the present invention, and the system disclosed in the present invention can generally be presented in the form of software or hardware. A person skilled in the art of the present invention can make various modifications or additions to the specific embodiments described or replace them in a similar manner, and can implement the disclosed system in software or hardware, but this will not deviate from the spirit of the present invention or exceed the scope defined by the attached claims.

Claims

1. An authentication key negotiation method, characterized in that: It consists of three phases: initialization, user registration, and key negotiation: The initialization includes determining security parameters, generating a key generation center KGC private / public key pair, and distributing parameters; The user registration includes the user generating part of his / her own private / public key pair, uploading part of the user's public key, and then the key generation center KGC generates another part of the private / public key pair, thus constructing the entire private / public key pair; The key negotiation comprises the following steps: Step 1: Generate a temporary private / public key pair i / T i , where t i and T i The relationship between them is determined by the public key primitives chosen and by at least T i Calculate t i It is not feasible due to the difficult problem Prms based on the public key mechanism, and the identity ID i , temporary public key T i , other publicly available security parameters Params i Composed a message (ID i ,T i ,Params i ) is sent to the other party participating in the negotiation. When the other party cannot obtain the public key from the public release area through the Internet, Params i At least your public key should be included; Step 2: When each user receives the above message, they construct a session key shared with the other party as follows: Step 2.1: Perform a linear combination of the long-term private key and the temporary private key, where at least one of the combination coefficients includes the long-term public key, the temporary public key, and the hash value of the user identity corresponding to the public key, and obtain the secret data K shared by both parties based on Prms acting on the linear combination of the other party's long-term public key and the temporary public key; at least one of the combination coefficients of the linear combination includes the long-term public key, the temporary public key, and the hash value of the user identity corresponding to the public key; Step 2.2: Use the IDs, temporary public keys, user public keys, partial public keys, and the shared secret data K generated in the previous step of the negotiating parties to perform a calculation that can be completed in polynomial time and can ensure that the calculation result is equal to that of the other party, and obtain the shared key sk; Among them, the key negotiation process is based on self-certification or certificateless authentication technology. All private / public key pairs constructed for users during the user registration phase are self-certified or certificateless, and some private / public key pairs are constructed by the key generation center KGC using the following method: When the key generation center KGC generates a partial private / public key pair for a user, the partial private key is composed of a random number r i The linear combination of the private key s of the key generation center KGC is constructed. At least one of the combination coefficients contains the hash value of the partial public key and the user identity corresponding to the public key, and the partial public key is composed of the user public key and the hash value of the r i The public key linear combination generated by the generator is used to generate, and each combination coefficient is a non-zero number. After the user receives the partial private / public key pair generated by the key generation center KGC, he can use the public information and the private key to verify its validity. i The public key generated by the generator is r when using ECC primitives i P, while using the RSA primitive is Among them, P and g are the generators of the corresponding public key system.

2. The authentication key negotiation method according to claim 1, characterized in that: The key negotiation phase also includes the following steps: Step 3: Each user uses the symmetric key sk to confirm with the other party in the following way: Step 3.1: The initiator generates a random number m and sends (m) sk ||m to the other party; among them, (m) sk Indicates that m is encrypted with the symmetric key sk; Step 3.2: Record the message received by the responder as The responder then uses the shared key sk generated in step 2 to Decrypt and get m ** Then determine whether it matches the second half of the received message m * If they are equal, it can be confirmed that the other party has established the same key as oneself. If they are not equal or if the message from the other party is not received within a certain period of time, a query can be sent to the other party. If it is still not confirmed that the other party has established the same shared key as oneself after a certain number of times and a certain period of time, it can be regarded as an attack by an attacker and the shared key calculated in step 2 can be discarded.

3. An authentication key agreement system, used to implement the method of claim 1 or 2; characterized in that: It includes a key negotiation module, which includes the following submodules: Module 3.1: Used by the initiator user A to obtain a random number based on the public parameter set Params as its temporary private key, and with the formula T A =t A P calculates the corresponding temporary public key with identity ID A 、Long-term public key Q A , temporary public key T A Construct negotiation message M A =(ID A ,Q A ,T A ) and sends the message to the user who wants to negotiate the key; similarly, the responding user B also takes a random number based on Params as its temporary private key, and with the formula T B =t B P calculates the corresponding temporary public key and constructs the negotiation message M with the identity, long-term public key and temporary public key. B =(ID B ,Q B ,T B ) and sends the message to the user with whom the key is to be negotiated; Module 3.2: After receiving the above message, users A and B execute the following submodules: Module 3.2.1: Used to perform the following calculations: User A: h B =H1(ID B ,Q B ), h TA =H2(ID A ,Q A ,T A ), h TB =H2(ID B ,Q B ,T B ), User B: h A =H1(ID A ,Q A ), h TB =H2(ID B ,Q B ,T B ), h TA =H2(ID A ,Q A ,T A ); Module 3.2.2: Used to calculate according to the following formula: User A: K AB =(h TA t A +x A +s A )(h TB T B +Q B +h B P pub ), User B: K BA =(h TB t B +x B +s B )(h TA T A +Q A +h A P pub ); Among them, the hash value h A 、h B 、h TA 、h TB Generated by module 3.2.1, temporary private key t A ,t B From module 3.1 Generate, x A 、s A They are user A’s private key and partial private key, x B 、s B They are user B's user private key and partial private key, P pub It is the public key of the key generation center KGC; Module 3.2.3: Used by users A and B to calculate the shared key according to the formula: A's shared key is calculated as: k AB =H3(ID A ⊕ID B ,Q A ⊕Q B ,T A ⊕T B ,K AB ), Where ⊕ means to perform XOR on two binary strings. When the operation is a point on an elliptic curve, it means to first connect the x and y components of the point and then participate in the operation. AB Generated by module 3.2.2; B's shared key is calculated as: k BA =H3(ID B ⊕ID A ,Q B ⊕Q A ,T B ⊕T A ,K BA ), K BA Generated by module 3.2.2; Finally, the consistency of the negotiated key between the two parties is verified by the following equation: K AB =(h TA t A +x A +s A )(h TB T B +Q B +h B P pub )=(h TA t A +x A +s A )(h TB T B +P B +R B +h B P pub ) =(h TA t A +x A +s A )(h TB t B +x B +s B )P=(h TB t B +x B +s B )(h TA t A +x A +s A )P =(h TB t B +x B +s B )(h TA T A +P A +R A +h A P pub )=(h TB t B +x B +s B )(h TA T A +Q A +h A P pub ) =K BA , And, because: Q A ⊕Q B =Q B ⊕Q A , T A ⊕T B =T B ⊕T A , ID A ⊕ID B =ID B ⊕ID A ; According to the characteristics of hash functions, k AB =k BA ; Therefore, if A and B are legitimate users and the message is delivered correctly, they must have established the same session key sk = k AB =k BA .

4. The authentication key agreement system according to claim 3, characterized in that: It includes three modules: initialization, user registration, and key negotiation. It adopts ECC primitives and uses certificateless authentication, without bilinear pairing operations.

5. The authenticated key agreement system according to claim 4, characterized in that: In the initialization module, the key generation center KGC first generates a pair of private / public keys (s, P pub =sP), select AES as the symmetric encryption algorithm, and the key generation center KGC will include its public key P pub Parameters Distribute to each communication user in the network or publish in a certain publication area, where F p represents a finite field of order p; p,q are two large prime numbers, selected by KGC, satisfying p≥2 λ-1 ; represents the set of positive integers less than q {1,2,…,q-1}; G is an additive cyclic group of order q, and KGC selects the elliptic curve E and then based on E / F p Construct and get the generator P; λ is the system security parameter; hash function Hash Functions Hash function H3:{0,1} * ×{0,1} * ×{0,1} * ×G→{0,1} λ .

6. The authenticated key agreement system according to claim 4, characterized in that: In the user registration module, the user generates a partial private / public key pair x i / P i =x i P, the part of the private / public key pair generated by the key generation center KGC is s i / Q i , where s i =r i +sH1(ID i ,Q i )(modq), Q i =R i +P i , R i =r i P, s is the private key of the key generation center KGC, q is the group The user passes the For the received private / public key pair s i / Q i After the verification is passed, the user confirms that the final long-term private / public key pair is (x i ,s i ) / (P i ,Q i ).

7. The authenticated key agreement system according to any one of claims 3 to 6, characterized in that: The key agreement module also includes the following submodules: Module 3.3 is used for the initiator to confirm the session key with the other party according to the following modules; any user can act as the initiator after establishing the key: Module 3.3.1, used by initiator A to generate a random number To the responder, such as B; Module 3.3.2 is used to record the message received by responder B from initiator A as Responder B uses the shared key k generated in module 3.2 BA In the received message Decrypt it and get Then determine whether it matches the second half of the received message If they are equal, it means that the initiator A has established the same session key as itself. Otherwise, it may be a transmission error or attack. At this time, you can send a query to the other party. If you still cannot confirm that the other party has established the same shared key as yourself after a certain number of times and a certain period of time, you can regard it as an attack by an attacker or poor network conditions and discard the previously calculated shared key. Similarly, B can also perform a similar confirmation process as the initiator.

Citation Information

Patent Citations

  • Authentication key negotiation method based on cross interlocking mechanism and implementation device thereof

    CN110971401A

  • Certificateless two-party authenticated key agreement method, device, and data storage medium

    WO2017202161A1