Identity authentication method, authentication access controller and request device, storage medium, program, and program product
The method encrypts identity information as ciphertext using pre-shared keys and Diffie-Hellman key exchange to securely verify identities in network communication, preventing leaks and ensuring legitimate access.
Patent Information
- Application Number
- JP2023539134
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-12-26
- Filing Date
- 2021-12-21
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2041-12-21
AI Technical Summary
Current identity authentication methods in network communication, particularly in blockchain networks, fail to securely verify the identity of nodes without leaking sensitive information, leading to potential security breaches and unauthorized access.
Implement a method using pre-shared key authentication mechanisms that encrypt identity information as ciphertext, combined with Diffie-Hellman key exchange to ensure secure identity verification and resistance to quantum computing attacks.
Ensures the confidentiality of identity information during transmission, preventing unauthorized access and ensuring legitimate network access while resisting quantum computing threats.
Smart Images

Figure 0007531817000001 
Figure 0007531817000002 
Figure 0007531817000003
Abstract
Description
[Technical field]
[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application filed with the China Patent Office on December 26, 2020, bearing application number 202011569178.x and entitled "Identity authentication method and apparatus," the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of network communication security technology, and in particular to an identity authentication method, an authentication access controller and requesting device, a storage medium, a program, and a program product. [Background technology]
[0003] In a communication network, a requesting device can access the network through an authentication access controller. When security requirements are high, in order to ensure that the requesting device accessing the network belongs to a legitimate user and / or that the network accessed by the requesting device belongs to a legitimate network, the authentication access controller needs to authenticate the identity (ID) of the requesting device, and the requesting device may need to authenticate the ID of the authentication access controller. In addition, node-to-node transmission in blockchain technology also requires the establishment of trust relationships between different nodes, so node ID authentication is also very important.
[0004] At present, the requesting device and the authentication access controller can adopt the authentication mechanism of the pre-shared key to perform identity verification, but in the process, the identity information of the entity is usually not carried. That is, only verifying the pre-shared key of the other party determines whether the other party is legitimate, but in reality, it is unclear who the other party is, and in essence, the true authentication of the identity of the other party is not realized. In addition, according to some other technical solutions, the identity information is carried together with the verification of the pre-shared key of the other party, but during the transmission of the authentication message, the entity's identity information is often directly leaked, and the entity's identity information includes some private or sensitive information of the entity, such as the ID card number, home address, bank card information, etc. If such information is intercepted by an attacker and used for illegal activities, the consequences are unimaginable.
[0005] In the ID authentication process between the requesting device and the network, if the ID information of the requesting device is intercepted by an attacker for unauthorized use, or if the ID information of the network is intercepted by an attacker for unauthorized use, this may pose a serious security problem to the authentication access controller, the requesting device, and the network. Summary of the Invention [Problem to be solved by the invention]
[0006] In order to solve the above technical problems, the embodiments of the present application provide an ID authentication method, an authentication access controller and a requesting device, a storage medium, a program, and a program product, which realizes mutual ID authentication or one-sided ID authentication between an authentication access controller and a requesting device by using a pre-shared key while ensuring the confidentiality of information related to the identity of an entity, thereby ensuring that a user accessing a network is legitimate and / or that the network accessed by the user is legitimate. At the same time, a key exchange operation such as DH (Diffie-Hellman) is selectively adopted, and a clever detailed design is used to enhance the ability of the authentication process to resist quantum computing attacks or dictionary brute force attacks. [Means for solving the problem]
[0007] The embodiments of the present application disclose the following technical solutions:
[0008] In a first aspect, embodiments of the present application provide a method of identity authentication, the method comprising: a requesting device sending a first identity ciphertext message to an authentication access controller, the first identity ciphertext message including a first identity information ciphertext, the first identity information ciphertext being generated by encrypting information including an identity identifier of the requesting device using a message encryption key; the authentication access controller decrypts the first ID information ciphertext using the message encryption key to obtain an ID identifier of the requesting device, determines a pre-shared key with the requesting device based on the ID identifier of the requesting device, and calculates and generates an ID authentication key based on information including the pre-shared key and a first key; the authentication access controller sending a second ID ciphertext message to the requesting device, the second ID ciphertext message including a second ID information ciphertext and a second key exchange parameter of the authentication access controller, the second ID information ciphertext being generated by the authentication access controller encrypting information including an ID identifier of the authentication access controller using the message encryption key, and the second key exchange parameter of the authentication access controller being generated by encrypting information including a second temporary public key generated by the authentication access controller using the ID authentication key; the requesting device decrypts the second ID information ciphertext using the message encryption key to obtain an ID identifier of the authentication access controller, determines a pre-shared key with the authentication access controller based on the ID identifier of the authentication access controller, and calculates and generates the ID authentication key based on information including the pre-shared key and the first key; the requesting device sending a first authentication message to the authentication access controller, the first authentication message including second key exchange parameters of the requesting device, the second key exchange parameters of the requesting device being generated by the requesting device encrypting information including a second temporary public key generated by the requesting device using the ID authentication key; and / or, when the requesting device is a subject to be verified, the first authentication message further includes a first ID authentication code, the first ID authentication code being generated by the requesting device calculating first designation data using the ID authentication key, the first designation data including an ID identifier of the requesting device and a second key, the second key being generated by the requesting device performing a key exchange operation based on a second temporary private key corresponding to a second temporary public key of the requesting device and a second temporary public key restored by a second key exchange parameter of the authentication access controller, the authentication access controller receiving the first authentication message, verifying the first ID authentication code using the ID authentication key and the first designation data, and determining an ID authentication result of the requesting device based on the verification result; When the authentication access controller is the subject to be verified, the authentication access controller sends a second authentication message to the requesting device, wherein the second authentication message includes a second ID authentication code, and the second ID authentication code is generated by the authentication access controller calculating second designation data using the ID authentication key, the second designation data including an ID identifier of the authentication access controller and a second key, and the second key is generated by the authentication access controller performing the key exchange operation based on a second temporary private key corresponding to a second temporary public key of the authentication access controller and a second temporary public key restored by a second key exchange parameter of the requesting device, and the requesting device receives the second authentication message, verifies the second ID authentication code using the ID authentication key and the second designation data, and determines an ID authentication result of the authentication access controller based on the verification result.
[0009] In a second aspect, embodiments of the present application provide an authentication access controller, the authentication access controller comprising: a receiver configured to receive a first ID ciphertext message from a requesting device, the first ID ciphertext message including a first ID information ciphertext, the first ID information ciphertext being generated by encrypting information including an ID identifier of the requesting device using a message encryption key; a calculation unit configured to decrypt the first ID information ciphertext using the message encryption key to obtain an ID identifier of the requesting device, determine a pre-shared key with the requesting device based on the ID identifier of the requesting device, and calculate and generate an ID authentication key based on information including the pre-shared key and a first key; a transmitter configured to transmit a second ID ciphertext message to the requesting device, the second ID ciphertext message including a second ID information ciphertext and a second key exchange parameter of the authentication access controller, the second ID information ciphertext being generated by the authentication access controller encrypting information including an ID identifier of the authentication access controller using the message encryption key, and the second key exchange parameter of the authentication access controller being generated by encrypting information including a second temporary public key generated by the authentication access controller using the ID authentication key, the receiving unit is further configured to receive a first authentication message from the requesting device, the first authentication message including second key exchange parameters of the requesting device, the second key exchange parameters of the requesting device being generated by the requesting device encrypting information including a second temporary public key generated by the requesting device using the ID authentication key; When the requesting device is a subject to be verified, the first authentication message further includes a first ID authentication code, the first ID authentication code being generated by the requesting device calculating first designation data using the ID authentication key, the first designation data including an ID identifier of the requesting device and a second key, and the second key being generated by the requesting device performing a key exchange operation based on a second temporary private key corresponding to a second temporary public key of the requesting device and a second temporary public key restored by a second key exchange parameter of the authentication access controller, the authentication access controller: and / or a verification unit configured to verify a first ID authentication code in the first authentication message using the ID authentication key and the first designation data, and determine an ID authentication result of the requesting device based on a verification result. When the authentication access controller is the subject to be verified, the transmitting unit is further configured to transmit a second authentication message to the requesting device, the second authentication message including a second ID authentication code, the second ID authentication code being generated by the authentication access controller calculating second designation data using the ID authentication key, the second designation data including an ID identifier of the authentication access controller and a second key, the second key being generated by the authentication access controller performing a key exchange operation based on a second temporary private key corresponding to the second temporary public key of the authentication access controller and a second temporary public key restored by a second key exchange parameter of the requesting device.
[0010] In a third aspect, embodiments of the present application provide a requesting device, the requesting device comprising: a transmitter configured to transmit a first ID ciphertext message to an authenticated access controller, the first ID ciphertext message including a first ID information ciphertext, the first ID information ciphertext being generated by encrypting information including an ID identifier of the requesting device using a message encryption key; a receiver configured to receive a second ID ciphertext message from the authentication access controller, the second ID ciphertext message including a second ID information ciphertext and a second key exchange parameter of the authentication access controller, the second ID information ciphertext being generated by the authentication access controller encrypting information including an ID identifier of the authentication access controller using the message encryption key, and the second key exchange parameter of the authentication access controller being generated by encrypting information including a second temporary public key generated by the authentication access controller using the ID authentication key; a calculation unit configured to decrypt the second ID information ciphertext using the message encryption key to obtain an ID identifier of the authentication access controller, determine a pre-shared key with the authentication access controller based on the ID identifier of the authentication access controller, and calculate and generate the ID authentication key based on information including the pre-shared key and a first key; the sending unit is further configured to send a first authentication message to the authentication access controller, the first authentication message including second key exchange parameters of the requesting device, the second key exchange parameters of the requesting device being generated by the requesting device encrypting information including a second temporary public key generated by the requesting device using the ID authentication key; When the requesting device is a subject to be verified, the first authentication message further includes a first ID authentication code, the first ID authentication code being generated by the requesting device calculating first designation data using the ID authentication key, the first designation data including an ID identifier of the requesting device and a second key, the second key being generated by the requesting device performing a key exchange operation based on a second temporary private key corresponding to a second temporary public key of the requesting device and a second temporary public key restored by a second key exchange parameter of the authentication access controller; and / or When the authentication access server is the subject to be verified, the receiving unit is further configured to receive a second authentication message sent by the authentication access controller, the second authentication message including a second ID authentication code, the second ID authentication code being generated by the authentication access controller calculating second designation data using the ID authentication key, the second designation data including an ID identifier of the authentication access controller and a second key, the second key being generated by the authentication access controller performing the key exchange operation based on a second temporary private key corresponding to a second temporary public key of the authentication access controller and a second temporary public key restored by a second key exchange parameter of the requesting device, and the requesting device: The authentication unit further includes a verifying unit configured to verify a second ID authentication code in the second authentication message by using the ID authentication key and the second designation data, and determine an ID authentication result of the authentication access controller based on a verification result.
[0011] In a fourth aspect, an embodiment of the present application further provides an authentication access controller, the authentication access controller comprising: A first processor; a first memory configured to store executable instructions for a first processor; The first processor is configured to invoke instructions stored in the first memory to perform the execution steps of the authentication access controller according to the first aspect.
[0012] In a fifth aspect, embodiments of the present application further provide a requesting device, the requesting device comprising: A second processor; and a second memory configured to store executable instructions for a second processor; The second processor is configured to invoke instructions stored in the second memory to perform the requester execution steps of the first aspect.
[0013] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, performing the execution steps of an authentication access controller or a requesting device in the ID authentication method described in the first aspect.
[0014] In a seventh aspect, an embodiment of the present application further provides a computer program comprising computer readable code, which, when executed on a computing device, causes a processor of the computing device to execute the execution steps of the authentication access controller or requesting device in the ID authentication method described in the first aspect.
[0015] In an eighth aspect, an embodiment of the present application further provides a computer program product including computer program instructions, the computer program instructions causing a computer to execute an authentication access controller or requesting device execution step in the ID authentication method described in the first aspect.
[0016] As can be seen from the above technical solution, when the requesting device and the authentication access controller adopt the authentication mechanism of a pre-shared key to perform identity verification, the ID information of the requesting device and the authentication access controller are transmitted in the form of ciphertext during message transmission, and when the verifier adopts the authentication mechanism of a pre-shared key to perform identity verification, the ID information of the other party can be obtained by decrypting the ciphertext of the ID information of the other party, thereby realizing true identity authentication for the verifier. The ID information transmitted between the requesting device and the authentication access controller exists in the form of ciphertext, which prevents the ID information of the verifier from being leaked during transmission and ensures that the attacker cannot intercept the private or sensitive information and use it for unauthorized purposes. While ensuring the confidentiality of information related to the identity of an entity, the pre-shared key is used to realize mutual ID authentication or one-sided ID authentication between the authentication access controller and the requesting device, thereby laying a foundation for ensuring that the user accessing the network is legitimate and / or the network accessed by the user is legitimate.
[0017] In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings used in the description of the embodiments or the prior art. Obviously, the drawings below are only some embodiments of the present application, and those skilled in the art can also obtain other related drawings based on these drawings without creative efforts. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is a schematic diagram of an ID authentication method according to an embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of a method for negotiating a message encryption key between a requesting device REQ and an authentication access controller AAC according to an embodiment of the present application; [Diagram 3] 1 is a schematic diagram of a mutual identity authentication method according to an embodiment of the present application, where "*" represents an optional field or optional operation. [Figure 4] 1 is a schematic diagram of an ID authentication method for one-sided authentication of a REQ according to an embodiment of the present application, where "*" represents an optional field or optional action. [Diagram 5] 1 is a schematic diagram of an ID authentication method for one-sided authentication of AAC according to an embodiment of the present application, where "*" represents an optional field or optional operation. [Figure 6] FIG. 2 is a block diagram showing a configuration of an authentication access controller AAC according to an embodiment of the present application. [Figure 7] FIG. 2 is a block diagram showing a configuration of a request device REQ according to an embodiment of the present application. [Figure 8] 2 is a block diagram showing a hardware configuration of an authentication access controller AAC according to an embodiment of the present application. FIG. [Figure 9] FIG. 2 is a block diagram showing a hardware configuration of a request device REQ according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] In a communication network, a requesting device can access the network via an authentication access controller, and mutual or one-sided identity authentication is usually required between the authentication access controller and the requesting device to ensure that the requesting device accessing the network belongs to a legitimate user and / or that the network to which the user is requesting access is a legitimate network.
[0020] For example, in a scene where a requesting device accesses a wireless network through an authentication access controller, the requesting device may be a terminal device such as a mobile phone, a PDA (Personal Digital Assistant), a tablet, etc., and the authentication access controller may be a wireless access point. In a scene where a requesting device accesses a wired network through an authentication access controller, the requesting device may be a terminal device such as a desktop, a notebook computer, etc., and the authentication access controller may be a switch or a router, etc. In a scene where a requesting device accesses a 4th / 5th Generation mobile communication technology (4G / 5G) network through an authentication access controller, the requesting device may be a mobile phone, and the authentication access controller may be a base station. Of course, the present application is similarly applicable to other data communication scenes such as wired networks and short-range communication networks.
[0021] In the process of performing ID authentication for the requesting device, the requesting device needs to provide its own ID information so that the authentication access controller can perform ID authentication for the requesting device, and in the process of performing ID authentication for the authentication access controller, the authentication access controller also needs to provide its own ID information so that the requesting device can perform ID authentication for the authentication access controller. For example, the entity's ID information may include personal information such as an ID card number, a home address, bank card information, a geographic location, and information on an affiliated institution. If an attacker intercepts the ID information of the requesting device or the authentication access controller and uses it for unauthorized purposes, this may pose a significant security risk to the authentication access controller, the requesting device, and even the network.
[0022] In order to solve the above technical problems, in an ID authentication method provided by an embodiment of the present application, the requesting device sends a first ID ciphertext message to an authentication access controller, the first ID ciphertext message includes a first ID information ciphertext, and the first ID information ciphertext is generated by encrypting information including an ID identifier of the requesting device using a message encryption key, the authentication access controller decrypts the first ID information ciphertext using the message encryption key to obtain the ID identifier of the requesting device, determines a pre-shared key with the requesting device based on the ID identifier of the requesting device, and calculates and generates an ID authentication key based on information including the pre-shared key and a first key, and the first key is generated by negotiation between the requesting device and the authentication access controller, the authentication access controller sends a second ID ciphertext message to the requesting device, and the second ID ciphertext message includes the second ID information ciphertext and a second key exchange parameter of the authentication access controller, and the second ID information ciphertext is generated by the authentication access controller encrypting information including an ID identifier of the authentication access controller using the message encryption key. the second key exchange parameters of the authentication access controller are generated by encrypting information including a second temporary public key generated by the authentication access controller using the ID authentication key; the requesting device decrypts the second ID information ciphertext using the message encryption key to obtain an ID identifier of the authentication access controller, determines a pre-shared key with the authentication access controller based on the ID identifier of the authentication access controller, and calculates and generates an ID authentication key based on information including the pre-shared key and the first key; the requesting device transmits a first authentication message to the authentication access controller, the first authentication message includes the second key exchange parameters of the requesting device, and the second key exchange parameters of the requesting device are generated by the requesting device encrypting information including the second temporary public key generated by the requesting device using the ID authentication key; when the requesting device is a subject to be verified, the first authentication message further includes a first ID authentication code, and the first ID authentication code is generated by calculating the ID authentication key on first specified data including the ID identifier of the requesting device and the second key,The ID authentication code is generated by performing a key exchange operation (a key exchange algorithm such as DH (Diffie-Hellman)) based on a second temporary private key corresponding to the second temporary public key of the requesting device and the second temporary public key restored by the second key exchange parameter of the authentication access controller. The authentication access controller receives the first authentication message, verifies the first ID authentication code using the ID authentication key and the first specified data, and determines the ID authentication result of the requesting device based on the verification result. When the authentication access controller is the subject to be verified, the authentication access controller sends a second authentication message to the requesting device, and includes a second ID authentication code, the second ID authentication code being generated by performing a calculation using an ID authentication key on second designation data including an ID identifier of the authentication access controller and a second key, the second key being generated by performing a key exchange calculation based on a second ephemeral private key corresponding to the second ephemeral public key of the authentication access controller and the second ephemeral public key restored by a second key exchange parameter of the requesting device, the requesting device receiving the second authentication message, verifying the second ID authentication code using the ID authentication key and the second designation data, and determining an ID authentication result of the authentication access controller based on the verification result.
[0023] In this way, when the requesting device and the authentication access controller employ the authentication mechanism of the pre-shared key to perform ID verification, the ID information of the requesting device and the authentication access controller are transmitted in the form of ciphertext during message transmission, and when the verifier employs the authentication mechanism of the pre-shared key to perform ID verification, the verifier can obtain the ID information of the other party by decrypting the ciphertext of the ID information of the other party, thereby realizing true ID authentication of the person to be verified. Since the ID information transmitted between the requesting device and the authentication access controller exists in the form of ciphertext, it is possible to prevent the ID information of the person to be verified from leaking during transmission and ensure that an attacker cannot intercept private or sensitive information and use it for unauthorized purposes. While ensuring the confidentiality of information related to the identity of an entity, it is possible to realize mutual ID authentication or one-sided ID authentication between the authentication access controller and the requesting device using a pre-shared key, thereby establishing a foundation for ensuring that a user accessing a network is legitimate and / or that the network accessed by the user is legitimate.
[0024] In addition, the ID authentication method provided by the embodiments of the present application can not only realize mutual ID authentication (MIA: Mutual Identity Authentication) between the authentication access controller and the requesting device, but also realize one-sided ID authentication of the authentication access controller to the requesting device (RAUA: REQ Authentication with an Unauthenticated AAC) and one-sided ID authentication of the requesting device to the authentication access controller (AAUR: AAC Authentication with an Unauthenticated REQ).
[0025] For convenience of explanation, in the embodiments of the present application, a requester (REQ) and an authentication access controller (AAC) are taken as examples to explain the ID authentication method provided by the embodiments of the present application.
[0026] Here, REQ is one of the endpoints involved in the ID authentication process, and establishes a connection with AAC to access the service provided by AAC, and AAC is the other endpoint involved in the ID authentication process, and establishes a connection with REQ to provide the service. Before realizing mutual ID authentication or one-sided ID authentication between REQ and AAC using a pre-shared key, there is a valid pre-shared key (PSK) between REQ and AAC, and PSK is the same key that REQ and AAC have set or distributed in advance, and REQ and AAC have IDs that can authenticate their own identities.
[0027] In the ID authentication method provided by the embodiment of the present application, either AAC or REQ is set as a person to be verified, and the other is set as a corresponding verifier, and the verifier can perform ID authentication for the person to be verified.
[0028] In one embodiment, REQ can be the verifier, AAC can be the corresponding verifier, and AAC can be the verifier, REQ can be the corresponding verifier. AAC can verify the ID authenticity of REQ, and REQ can verify the ID authenticity of AAC, that is, REQ and AAC mutual ID authentication MIA can be realized.
[0029] In another embodiment, the REQ can be the verifier and the AAC can be the corresponding verifier. The AAC verifies the validity of the ID of the REQ, and realizes one-sided ID authentication RAUA for the REQ.
[0030] In yet another embodiment, the AAC can be the verifier and the REQ can be the corresponding verifier. The REQ verifies the identity validity of the AAC, and realizes one-sided identity authentication AAUR for the AAC.
[0031] The following describes an ID authentication method provided by an embodiment of the present application with reference to Figure 1. Referring to Figure 1, the method includes the following steps:
[0032] In step S101, the REQ sends a first ID ciphertext message REQInit to the AAC.
[0033] The REQInit includes a first ID information ciphertext. The first ID information ciphertext is generated by encrypting the ID identifier ID of the REQ using a message encryption key. REQ For example, the REQ is generated by encrypting information including the ID using a message encryption key and a symmetric encryption algorithm. REQ The information including the ID information is encrypted to generate the first ID information ciphertext EncData. REQ Here, the message encryption key may be obtained by negotiation between REQ and AAC, or may be pre-shared between REQ and AAC. A method for negotiating the message encryption key between REQ and AAC will be described in the following embodiment.
[0034] In step S102, the AAC uses the message encryption key to decrypt the first ID information ciphertext to obtain the ID identifier of the REQ, determines a pre-shared key with the REQ based on the ID identifier of the REQ, and calculates and generates an ID authentication key based on information including the pre-shared key and the first key. The first ID information ciphertext is generated by the REQ using the message encryption key and a symmetric encryption algorithm to obtain the ID identifier of the REQ. REQ Therefore, when AAC receives REQInit from REQ, AAC uses a message encryption key pre-shared or negotiated between itself and REQ to encrypt the first ID information ciphertext EncData in REQInit using a symmetric encryption algorithm. REQ Decrypt the REQ ID ID REQ can be obtained.
[0035] AAC is EncData REQ Decrypt it to get the ID REQ After getting ID REQBased on the above, the AAC determines a pre-shared key PSK with the REQ, and then the AAC uses the PSK to combine a first key K1 and other information (the other information adopted by the AAC and the REQ is the same and selectable, for example, a specific character string) and calculates and generates an identity authentication key IAK (Identity Authentication Key) using a key derivation algorithm.
[0036] It should be noted that the first key K1 is generated by pre-setting or negotiation between REQ and AAC. A recommended embodiment in which REQ and AAC negotiate the first key K1 will be described in detail in the following examples.
[0037] In step S103, the AAC sends a second ID ciphertext message AACAuth to the REQ.
[0038] The AACAuth includes a second ID information ciphertext and a second key exchange parameter KeyInfo of AAC. AAC_second Here, the second ID information ciphertext is generated by the AAC using the message encryption key, and the AAC’s ID identifier ID AAC For example, AAC uses a message encryption key to encrypt information including ID, AAC The information including the ID information is encrypted to generate the second ID information ciphertext EncData AAC Generate.
[0039] KeyInfo AAC_second is generated by AAC encrypting information including the second temporary public key generated by AAC using the ID authentication key IAK, and is simply KeyInfo AAC_second is the result of XORing the hash value of the IAK with information containing the second temporary public key generated by the AAC, or KeyInfo AAC_secondis the result of XORing the extended ID authentication key EIAK with information including the second temporary public key generated by the AAC, where EIAK is generated by the AAC using a key derivation algorithm based on the IAK and other information (the other information employed by the AAC and REQ is the same and selectable, e.g., a specific string).
[0040] In step S104, REQ decrypts the second ID information ciphertext using the message encryption key to obtain the ID identifier of AAC, determines a pre-shared key with AAC based on the ID identifier of AAC, and calculates and generates an ID authentication key based on information including the pre-shared key and the first key.
[0041] The second ID information ciphertext is generated by AAC using a message encryption key and adopting a symmetric encryption algorithm to generate the ID information. AAC Therefore, when the REQ receives AACAuth from the AAC, the REQ uses a message encryption key pre-shared or negotiated between the REQ and the AAC to encrypt the second ID information EncData in the AACAuth by employing a symmetric encryption algorithm. AAC Decode it to get the AAC ID ID AAC can be obtained.
[0042] REQ is EncData AAC Decrypt it to get the ID AAC After getting ID AAC Based on the above, the REQ determines a pre-shared key PSK with the AAC, and then the REQ uses the PSK to combine a first key K1 and other information (the other information adopted by the REQ and the AAC is the same and selectable, for example, a specific character string) to calculate and generate an ID authentication key IAK using a key derivation algorithm.
[0043] In step S105, the REQ sends a first authentication message REQAuth to the AAC.
[0044] In the REQAuth, the second key exchange parameter KeyInfoREQ_second Contains KeyInfo. REQ_second is generated by REQ encrypting information including the second temporary public key generated by REQ using the ID authentication key IAK, and is simply KeyInfo REQ_second is the result of XORing the hash value of the IAK with information containing the second temporary public key generated by REQ, or KeyInfo REQ_second is the result of XORing the extended identity authentication key EIAK with information including the second ephemeral public key generated by REQ, where EIAK is generated by REQ calculating it using a key derivation algorithm based on IAK and other information (AAC and other information employed by REQ are the same and selectable, e.g., a specific string).
[0045] In step S106, if the REQ is the subject to be verified, the REQAuth further includes a first ID authentication code, and after receiving the REQAuth, the AAC verifies the first ID authentication code using the ID authentication key and the first specified data, and determines the ID authentication result of the REQ based on the verification result.
[0046] Here, the first ID authentication code is generated by REQ using an ID authentication key IAK to perform a calculation on the first designated data, and the first designated data is an ID REQ and a second key K2, the second key K2 being included in the REQ REQ_second (i.e., a second ephemeral private key corresponding to the second ephemeral public key of REQ), and KeyInfo AAC_second and the second temporary public key restored by performing a key exchange operation. REQ_second A second temporary private key corresponding to the KeyInfo AAC_second Based on the second temporary public key restored by the above, a key exchange operation is performed to generate a second key K2, and an integrity check algorithm is adopted to verify the ID authentication key IAK. REQ and K2 to calculate the first ID authentication code MIC REQ Generate.
[0047] After receiving REQAuth, AAC sends KeyInfo AAC_second A second temporary private key corresponding to the second temporary public key of AAC (i.e., a second temporary private key corresponding to the second temporary public key of AAC), and KeyInfo REQ_second Based on the second temporary public key restored by the above, a key exchange operation is performed to generate a second key K2, and the ID authentication key IAK calculated and generated in step S102 and the ID authentication key IAK decrypted in step S102 are generated. REQ , and the second key K2, the first ID authentication code MIC in REQAuth is obtained. REQ and determines the ID authentication result of REQ based on the verification result. For example, if the verification is passed, the AAC determines that the ID authentication result of REQ is valid, and if the verification is not passed, the AAC can perform processing such as discarding REQAuth or determining that the ID authentication result of REQ is invalid according to a local policy.
[0048] In step S107, if the AAC is to be verified, the AAC sends a second authentication message AACResp to the REQ.
[0049] The AACResp includes a second ID authentication code. The second ID authentication code is generated by the AAC using an ID authentication key IAK to perform a calculation on the second designated data. The second designated data is an ID AAC and a second key K2, the second key K2 being KeyInfo AAC_second A second temporary private key corresponding to the KeyInfo REQ_second The AAC is generated by performing a key exchange operation based on the second temporary public key restored by the KeyInfo. AAC_second A second temporary private key corresponding to the KeyInfo REQ_second Based on the second temporary public key restored by the above, a key exchange operation is performed to generate a second key K2, and the ID authentication key IAK calculated and generated in step S102 is used to perform a message integrity check algorithm to verify the ID. AACand K2 to calculate the second ID authentication code MIC AAC Generate.
[0050] In step S108, the REQ receives the AACResp, verifies the second ID authentication code using the ID authentication key and the second designation data, and determines the ID authentication result of the AAC based on the verification result.
[0051] After receiving the AACResp, the REQ sends KeyInfo REQ_second The second temporary secret key corresponding to the AACAuthKeyInfo AAC_second Based on the second temporary public key restored by the above, a key exchange operation is performed to generate a second key K2, and the ID authentication key IAK calculated and generated in step S104 and the ID authentication key IAK decrypted in step S105 are generated. AAC , and the second key K2, etc., to generate the second ID authentication code MIC in the AACResp. AAC and determine the ID authentication result of AAC based on the verification result. For example, if the verification is passed, the REQ determines that the ID authentication result of AAC is valid, and if the verification is not passed, the REQ can perform processing such as discarding the AACResp or determining that the ID authentication result of AAC is invalid according to a local policy.
[0052] It should be noted that after executing steps S101 to S105, if mutual ID authentication between REQ and AAC is required, it is necessary to continue executing the above steps S106, S107, and S108; if only one-sided ID authentication of AAC for REQ is required, it is not necessary to execute steps S107 and S108 and it is sufficient to continue executing up to the above step S106; if only one-sided ID authentication of REQ for AAC is required, it is not necessary to execute the above step S106 and it is sufficient to continue executing the above steps S107 and S108.
[0053] Optionally, in an application scene of mutual ID authentication between REQ and AAC, when REQ is the subject to be verified and AAC is the corresponding verifier, and when AAC is the subject to be verified and REQ is the corresponding verifier, when REQ and AAC verify the validity of each other's ID, REQ and AAC can update the pre-shared key PSK for the next ID authentication.
[0054] For example, the REQ can combine the second key K2 generated by its own calculation with the ID authentication key IAK calculated and generated in step S104, and use a key derivation algorithm to calculate a pre-shared key PSK to be used during the next ID authentication; similarly, the AAC can combine the second key K2 generated by its own calculation with the ID authentication key IAK calculated and generated in step S102, and use a key derivation algorithm to calculate a pre-shared key PSK to be used during the next ID authentication.
[0055] Optionally, in a situation where mutual identity authentication is performed between REQ and AAC, or where AAC performs one-sided identity authentication to REQ, or where REQ performs one-sided identity authentication to AAC, if the verifier verifies that the identity of the person to be verified is valid, REQ and AAC can also calculate a session key to ensure secret communication between REQ and AAC.
[0056] For example, when calculating the session key, the REQ uses the second key K2 generated by itself and the ID identifier ID REQ , AAC ID Identifier ID AAC , and other information (the REQ and other information employed by the AAC is the same and selectable, e.g., a specific string) to use a key derivation algorithm to calculate a session key to be used for secret communication with the AAC, which may include a data encryption key and / or a data integrity check key.
[0057] Similarly, when calculating a session key, the AAC uses the second key K2 that it has generated by itself and the ID identifier ID REQ , AAC ID Identifier IDAAC , and other information (the other information employed by AAC and REQ is the same and selectable, e.g., a specific string) to calculate a session key for ensuring private communication with REQ using a key derivation algorithm, which may include a data encryption key and / or a data integrity check key.
[0058] Here, REQ can use the key derivation algorithm in the above-mentioned manner to calculate a string of key data, which can be used as a data encryption key and / or a data integrity check key, or can use a part of the key data as a data encryption key and another part as a data integrity check key. AAC can use the key derivation algorithm in the above-mentioned manner to calculate a string of key data, which can be used as a data encryption key and / or a data integrity check key, or can use a part of the key data as a data encryption key and another part as a data integrity check key.
[0059] As can be seen from the above technical solution, when the requesting device and the authentication access controller perform identity authentication based on the authentication mechanism of the pre-shared key, the identity information of the requesting device and the authentication access controller are transmitted in the form of ciphertext during message transmission, and when the verifier performs identity authentication based on the authentication mechanism of the pre-shared key, the identity information of the other party can be obtained by decrypting the ciphertext of the identity information of the other party, thereby realizing true identity authentication for the verifier. The identity information transmitted between the requesting device and the authentication access controller exists in the form of ciphertext, which prevents the identity information of the verifier from being directly leaked during transmission and ensures that the attacker cannot eavesdrop on private or sensitive information. While ensuring the confidentiality of information related to the identity of an entity, the pre-shared key is used to realize mutual identity authentication or one-sided identity authentication between the authentication access controller and the requesting device, thereby establishing a foundation for ensuring that the user accessing the network is legitimate and / or the network accessed by the user is legitimate.
[0060] The message encryption key in the above embodiment is obtained by negotiation between REQ and AAC, and the following describes how REQ and AAC negotiate the message encryption key with reference to Figure 2. The method includes the following steps:
[0061] In step S201, the AAC sends a key negotiation request message AACInit to the REQ.
[0062] In the AACInit, the first key exchange parameter KeyInfo of AAC AAC Contains KeyInfo. AAC includes a first temporary public key generated by the AAC, where the key exchange refers to a key exchange algorithm such as DH (Diffie-Hellman). AAC may further be included.
[0063] The AACInit includes a Security capabilities parameter information that indicates the security capabilities supported by the AAC. AAC may further include a security policy that the AAC supports, such as an identity authentication suite (identity authentication suite includes one or more identity authentication methods), a symmetric encryption algorithm, an integrity check algorithm, a hash (HASH) algorithm, a key exchange algorithm, and / or a key derivation algorithm, so that the REQ selects a particular security policy to be used. Thus, the REQ may include a security capabilities AAC The specific security policy that REQ uses based on the Security capabilities REQ You can select the security capabilities. REQ represents the ID authentication method, symmetric encryption algorithm, integrity check algorithm, hash (HASH) algorithm, key exchange algorithm, and / or key derivation algorithm determined by REQ.
[0064] In step S202, the REQ is REQ The first temporary private key corresponding to the KeyInfo AAC and a first temporary public key included in the first key exchange operation to generate the first key, and calculate a message encryption key using a key derivation algorithm based on information including the first key.
[0065] Here, KeyInfo REQ contains the first temporary public key generated by REQ, and KeyInfo REQ The first ephemeral private key corresponding to REQ is a first ephemeral private key corresponding to the first ephemeral public key of REQ.
[0066] In step S201, the AAC-generated nonce is AAC If it further contains KeyInfo, the REQ REQ The first temporary private key, KeyInfo, AAC The first temporary public key contained in the Nonce AAC and the second random number Nonce generated by REQ REQ The negotiated or pre-configured key derivation algorithm may be used to calculate and generate the message encryption key based on information including the following: AAC Illustratively, the REQ may include a key derivation algorithm selected based on KeyInfo. REQ The first temporary private key corresponding to the KeyInfo AAC Then, a key exchange operation is performed based on the first temporary public key included in AAC , Nonce REQ Based on the REQ and other information (the other information employed by the AAC is the same and can be selected, e.g. a specific string), a key derivation algorithm is used to calculate a message encryption key.
[0067] In step S203, the REQ sends a first ID ciphertext message REQInit to the AAC.
[0068] AAC is KeyInfo AAC The first temporary private key corresponding to the KeyInfo REQ and a first temporary public key included in the REQInit, so as to obtain a message encryption key by calculating the message encryption key based on information including the first key exchange parameter KeyInfo REQ where KeyInfo AAC The first temporary private key corresponding to the first temporary public key of the AAC is a first temporary private key corresponding to the first temporary public key of the AAC.
[0069] AACInit, Security capabilities AAC If REQInit also contains the Security capabilities REQ Further included are:
[0070] AAC uses KeyInfo AAC The first temporary private key, KeyInfo, REQ The first temporary public key contained in the Nonce AAC and Nonce REQ The REQInit receives the Nonce generated by the REQ so as to calculate the message encryption key based on information including REQ may further be included.
[0071] The REQInit contains a Nonce AAC may further include a Nonce in REQInit before calculating the message encryption key. AAC and the nonce generated by AAC AAC If they match, the AAC calculates the message encryption key.
[0072] In step S204, the AAC AAC The first temporary private key corresponding to the KeyInfo REQand a first temporary public key included in the first key exchange operation to generate the first key, and calculate a message encryption key using a key derivation algorithm based on information including the first key.
[0073] Nonce in REQInit REQ If it also contains KeyInfo, AAC AAC The first temporary private key, KeyInfo, REQ The first temporary public key contained in the Nonce AAC and Nonce REQ The negotiated key derivation algorithm is determined based on the information received from the AAC in accordance with the Security capabilities from the REQ. REQ Illustratively, AAC may be a key derivation algorithm selected based on KeyInfo AAC The first temporary private key corresponding to the KeyInfo REQ Then, a key exchange operation is performed based on the first temporary public key included in AAC , Nonce REQ and other information (the other information employed by AAC and REQ is the same and selectable, e.g., a specific string), a key derivation algorithm is used to calculate a message encryption key.
[0074] In the embodiment of Fig. 2, REQ and AAC can also calculate a message integrity check key. The embodiment in which REQ and AAC generate a message integrity check key is the same as the embodiment in which REQ and AAC generate a message encryption key shown in the embodiment of Fig. 2. For example, AAC derives a character string of key data using a key derivation algorithm according to the method of the embodiment of Fig. 2, and the key data may be the message encryption key or the message integrity check key, or a part of the key data may be the message encryption key and the other part may be the message integrity check key, or AAC may sequentially derive two character strings of the same or different key data using a key derivation algorithm according to the method of the embodiment of Fig. 2, and one character string is the message encryption key and the other character string is the message integrity check key. REQ may use a key derivation algorithm in the manner of the embodiment of Figure 2 to derive a string of key data, which may be a message encryption key or a message integrity check key, or part of the key data may be the message encryption key and the other part may be the message integrity check key; or REQ may use a key derivation algorithm in the manner of the embodiment of Figure 2 to sequentially derive two strings of the same or different key data, one of which is the message encryption key and the other is the message integrity check key.
[0075] Referring to FIG. 1, in order to ensure the reliability of the authentication result, the AAC can generate a message integrity check code. For example, in step S103, the AACAuth can generate a first message integrity check code MacTag AAC may further include MacTag AAC AAC uses the message integrity check key it generates to check the MacTag of AACAuth. AAC If the MAC tag is generated by calculating the MAC tag for all fields except the MAC tag, then after receiving the AACAuth, the REQ first calculates the MAC tag using the message integrity check key that it generated. AACIf the verification is successful, the subsequent processing is performed. If the verification is not successful, the AACAuth is discarded. AAC When verifying, the MacTag of AACAuth is verified using the message integrity check key. AAC MacTag by calculating locally on the other fields except AAC Generate and locally compute MacTag AAC and the MacTag in the received AACAuth AAC If they match, the verification passes, and if they do not match, REQ discards AACAuth.
[0076] Correspondingly, the REQ may generate a message integrity check code. For example, the REQAuth in step S105 may include a second message integrity check code MacTag REQ may further include MacTag REQ However, REQ uses the message integrity check key it generated to check the MacTag of REQAuth. REQ If the MAC tag is generated by calculating the MAC tag for all fields except the MAC tag, after receiving REQAuth, the AAC first calculates the MAC tag using the message integrity check key it generated. REQ If the verification is successful, the subsequent processing is performed. If the verification is not successful, the REQAuth is discarded. REQ When verifying, the message integrity check key is used to check the MacTag of REQAuth. REQ Generate MacTagREQ by locally computing the other fields except for MacTagREQ, and use the locally computed MacTag REQ and the MacTag in the received REQAuth REQ If they match, the verification passes, and if they do not match, AAC discards REQAuth.
[0077] In some implementations, the AACAuth in step S103 includes a nonceAAC and / or Nonce REQ If the REQ further contains a Nonce, after receiving the AACAuth, the REQ first AAC and the Nonce in the AACInit sent by AAC to the REQ AAC and / or verify the consistency of the Nonce REQ and the Nonce generated by REQ REQ If the verification passes, REQ continues to execute the subsequent steps, and if the verification does not pass, REQ discards AACAuth.
[0078] In some implementations, the REQAuth in step S105 includes a Nonce AAC and / or Nonce REQ If REQAuth is also included, AAC first checks the Nonce in it after receiving REQAuth. AAC and the nonce generated by AAC AAC and / or verify the consistency of the Nonce REQ and the Nonce in the REQInit sent by the REQ to the AAC. REQ If the verification passes, the AAC continues to execute the subsequent steps, and if the verification does not pass, the AAC discards the REQAuth.
[0079] In some implementations, the AACResp in step S107 includes a Nonce AAC and / or Nonce REQ If the REQ further contains a Nonce, after receiving the AACResp, the REQ first reads the Nonce AAC and the Nonce in the AACInit sent by AAC to the REQ AAC and / or verify the consistency of the Nonce REQ and the Nonce generated by REQ REQ If the verification passes, REQ continues to execute the subsequent steps, and if the verification does not pass, REQ discards the AACResp.
[0080] Based on the above-mentioned embodiment, the following describes the ID authentication method provided by the embodiment of the present application in two situations, namely, mutual ID authentication and unilateral ID authentication, with reference to specific application scenarios.
[0081] Referring to FIG. 3, FIG. 3 is a mutual identity authentication method according to an embodiment of the present application, which includes the following steps:
[0082] In step S301, the AAC AAC and KeyInfo AAC and security capabilities as required. AAC Generate.
[0083] In step S302, the AAC sends a key negotiation request message AACInit to REQ.
[0084] In the above AACInit, Nonce AAC ,Security capabilities AAC , and KeyInfo AAC where Security capabilities AAC is an optional field that represents security capability parameter information supported by AAC, including ID authentication suites, symmetric encryption algorithms, integrity check algorithms, hash (HASH) algorithms, key exchange algorithms and / or key derivation algorithms supported by AAC.
[0085] In step S303, the REQ is REQ and KeyInfo REQ and security capabilities as required. REQ Generate and KeyInfo REQ The first temporary private key corresponding to the KeyInfo AAC and a first temporary public key included in the key exchange operation to obtain a first key K1, and AAC , NonceREQ , and other information (the other information adopted by REQ and AAC is the same and can be selected, for example, a specific character string), and calculate a message encryption key and a message integrity check key using a key derivation algorithm, and use the message encryption key to derive a first ID information ciphertext EncData REQ Calculate.
[0086] Here, the generation of a message integrity check key by REQ is an optional operation.
[0087] In step S304, the REQ sends a first ID ciphertext message REQInit to the AAC.
[0088] In the REQInit, a Nonce AAC , Nonce REQ ,Security capabilities REQ , KeyInfo REQ , and EncData REQ Here, Nonce AAC must be equal to the corresponding field in AACInit, and Security capabilities REQ is an optional field and is used by AACInit to determine the Security capabilites AAC Security capabilites only if present REQ Security capabilities exist. REQ Security capabilities AAC The REQ determines the identity authentication method, symmetric encryption algorithm, integrity check algorithm, hash algorithm, key exchange algorithm, and / or key derivation algorithm, etc. EncData REQ The data to be encrypted is ID REQ In the embodiment of the present application, the object to be encrypted is called data to be encrypted.
[0089] In step S305, after receiving the REQInit, the AAC executes the following operations (unless otherwise specified or due to a logical relationship, the operations numbered (1), (2) ... below do not necessarily have a priority according to the numbers. This is the same for the entire text):
[0090] (1) Nonce in REQInit AAC and the nonce generated by AAC AAC Check whether they are the same, and if they are not, discard REQInit.
[0091] (2) KeyInfo AAC The first temporary private key corresponding to the KeyInfo REQ and a first temporary public key included in the key exchange operation to obtain a first key K1, and AAC , Nonce REQ , and other information (the other information employed by AAC and REQ is the same and selectable, e.g., a specific string) to calculate a message encryption key and a message integrity check key using a key derivation algorithm, where the generation of the message integrity check key by AAC is an optional operation.
[0092] (3) EncData using the message encryption key. REQ Decrypt it to get the ID REQ Get the.
[0093] (4) The message encryption key is used to encrypt the second ID information using a symmetric encryption algorithm. AAC Calculate.
[0094] (5) The decrypted ID REQ Based on this, determine a pre-shared key PSK with REQ, and use PSK to combine K1 and other information (the other information adopted by AAC and REQ is the same and selectable, for example, a specific string), and adopt a key derivation algorithm to calculate an identity authentication key IAK.
[0095] (6) Calculate EIAK by employing a key derivation algorithm based on IAK and other information (the other information employed by AAC and REQ is the same and can be selected, e.g., a specific character string).
[0096] (7) Second key exchange parameter KeyInfo AAC_second Generate.
[0097] (8) If necessary, the first message integrity check code MacTag AAC Calculate and generate
[0098] In step S306, the AAC sends the second ID ciphertext message AACAuth to the REQ.
[0099] In the AACAuth, a Nonce REQ , Nonce AAC , EncData AAC , KeyInfo AAC_second , and MacTag AAC Here, Nonce REQ , Nonce AAC , and MacTag AAC is an optional field, REQ , Nonce AAC respectively, the Nonce in REQInit REQ , the nonce generated by AAC AAC must be equal to EncData AAC The data to be encrypted is ID AAC Contains KeyInfo AAC_second is the result of XORing the information containing the second temporary public key generated by the AAC with the EIAK, and AAC The calculation process of is to use the message integrity check key and the integrity check algorithm to calculate the MacTag of AACAuth. AAC MacTag by calculating other fields except AAC Generate.
[0100] In step S307, after receiving the AACAuth, REQ performs the following operations.
[0101] (1) Nonce in AACAuth REQ and / or Nonce AAC If a Nonce is carried, REQ However, the Nonce generated by REQ REQ and / or Nonce AAC However, the Nonce in AACInit AAC Check whether it is the same as
[0102] (2) AACAuth to MacTag AAC If carried, MacTag AAC Verify the following: The verification process uses the message integrity check key and the integrity check algorithm to verify the MacTag of AACAuth. AAC MacTag by calculating locally on the other fields except AAC (The calculation method is based on MacTag AAC (This is the same as the method for calculating the MacTag in the received AACAuth.) AAC The point is to compare it with
[0103] (3) If any of the above checks and verifications are not passed, discard AACAuth immediately. If all of the above checks and verifications are passed, use the message encryption key to adopt a symmetric encryption algorithm to EncData AAC Decrypt it to get the ID AAC get.
[0104] (4) The decrypted ID AAC Based on this, determine a pre-shared key PSK with the AAC, combine the PSK with K1 calculated in step S303 and other information (REQ and other information adopted by the AAC are the same and selectable, for example a specific character string), and adopt a key derivation algorithm to calculate an ID authentication key IAK.
[0105] (5) Calculate EIAK by employing a key derivation algorithm based on IAK and other information (the other information employed by AAC and REQ is the same and can be selected, e.g., a specific string).
[0106] (6) Second key exchange parameter KeyInfo REQ_second Generate.
[0107] (7) First ID authentication code MIC REQ Calculate and generate
[0108] (8) A second message integrity check code, MacTag, if necessary REQ Calculate and generate
[0109] In step S308, the REQ sends a first authentication message REQAuth to the AAC.
[0110] In the REQAuth, REQ , Nonce AAC , KeyInfo REQ_second , M.I.C. REQ , and MacTag REQ Here, Nonce REQ , Nonce AAC , and MacTag REQ is an optional field, REQ , Nonce AAC Each of these is the Nonce generated by REQ. REQ , Nonce in AACInit AAC It must be equal to MIC. REQ is obtained by using the IAK calculated by the REQ in step S307 to employ an integrity check algorithm to calculate the first designated data, and the first designated data is ID REQ , Nonce REQ , and a second key K2 generated by REQ, where K2 is a REQ_second A second temporary private key corresponding to the KeyInfo AAC_secondThe second temporary public key is obtained by performing a key exchange operation based on the second temporary public key restored by the KeyInfo. REQ_second is the result of XORing the information containing the second temporary public key generated by REQ with EIAK, and MacTag REQ The calculation process of is to use the message integrity check key and the integrity check algorithm to calculate the MacTag of REQAuth. REQ MacTag by calculating other fields except REQ Generate.
[0111] In step S309, after receiving the REQAuth, the AAC performs the following operations.
[0112] (1) Nonce in REQAuth REQ and / or Nonce AAC If present, the Nonce REQ However, the Nonce in REQInit REQ and / or Nonce AAC However, the Nonce generated by AAC AAC Check whether it is the same as
[0113] (2) MacTag in REQAuth REQ If present, MacTag REQ Verify the following: The verification process uses the message integrity check key and the integrity check algorithm to check the MacTag of REQAuth. REQ MacTag by calculating locally on the other fields except REQ (This calculation method is for REQ MacTag REQ (which is the same as the method for calculating MacTag REQ and the MacTag in the received REQAuth REQ The point is to compare it with
[0114] (3) After passing the above checks and verifications, MIC REQIf any of the above checks and validation steps fail, immediately discard the REQAuth.
[0115] For example, the AAC uses the IAK calculated in step S305 to locally calculate the MIC on the first specified data by employing an integrity check algorithm. REQ where the first specified data is ID REQ , Nonce REQ , and a second key K2 generated by AAC, where K2 is a key that AAC has created using KeyInfo AAC_second A second temporary private key corresponding to the KeyInfo REQ_second The AAC is obtained by performing a key exchange operation based on the second temporary public key recovered by REQ and the MIC in the received REQAuth REQ If they match, it is determined that the ID of the REQ is valid, and if they do not match, it is determined that the ID of the REQ is invalid according to a local policy, or an operation is performed to terminate the current authentication process.
[0116] (4) Second ID authentication code MIC AAC Calculate.
[0117] (5) Calculate the session key and update the PSK if necessary.
[0118] For example, the AAC uses a second key K2 that it calculates and a nonce AAC , Nonce REQ , ID AAC , ID REQ, and other information (other information employed by AAC and REQ is the same and selectable, e.g., a specific character string), and uses a key derivation algorithm to calculate a session key (including a data encryption key and / or a data integrity check key) to be used for subsequent private communication with REQ. Optionally, AAC uses a key derivation algorithm to calculate a PSK to be used during the next identity authentication by combining K2 calculated by itself with IAK.
[0119] In step S310, the AAC sends a second authentication message AACResp to the REQ.
[0120] In the AACResp, Nonce REQ , Nonce AAC , and MIC AAC Here, Nonce REQ and Nonce AAC is an optional field, REQ , Nonce AAC respectively, the Nonce in REQInit REQ , the nonce generated by AAC AAC It must be equal to MIC. AAC is obtained by AAC using the IAK calculated in step S305 to adopt an integrity check algorithm to calculate the second designated data, and the second designated data is ID AAC , Nonce AAC , and a second key K2 generated by AAC.
[0121] In step S311, after receiving the AACResp, REQ performs the following operations:
[0122] (1) AACResp, Nonce REQ and / or Nonce AAC If present, the Nonce REQ However, the Nonce generated by REQ REQ and / or Nonce AAC However, the Nonce in AACInitAAC Check whether it is the same as AACResp, and if it is different, discard AACResp.
[0123] (2) MIC AAC Verify.
[0124] For example, the REQ uses the IAK calculated in step S307 to locally calculate the MIC against the second specified data using an integrity check algorithm. AAC where the second specification data is ID AAC , Nonce AAC , and REQ contains the generated second key K2, where REQ contains the locally computed MIC AAC and the MIC in the received AACResp AAC If they match, it is determined that the AAC ID is valid, and if they do not match, it is determined that the AAC ID is invalid according to a local policy, or an operation is performed to terminate the current authentication process.
[0125] (3) Calculate the session key and update the PSK if necessary.
[0126] Illustratively, REQ uses a second key K2 that it computes and a nonce AAC , Nonce REQ , ID AAC , ID REQ and other information (other information employed by REQ and AAC is the same and selectable, e.g., a specific character string) is combined and calculated using a key derivation algorithm to generate a session key (including a data encryption key and / or a data integrity check key) to be used for subsequent private communication with AAC. Optionally, REQ combines K2 calculated by itself with IAK to calculate a PSK to be used for the next identity authentication using a key derivation algorithm.
[0127] Therefore, in steps S309 and S311, ID authentication is realized for REQ and AAC, respectively, that is, mutual ID authentication between REQ and AAC is realized.
[0128] Referring to FIG. 4, FIG. 4 is an ID authentication method for one-sided authentication of a REQ according to an embodiment of the present application, which includes the following steps:
[0129] In step S401, the AAC AAC and KeyInfo AAC and security capabilities as required. AAC Generate.
[0130] In step S402, the AAC sends a key negotiation request message AACInit to REQ.
[0131] In the above AACInit, Nonce AAC ,Security capabilities AAC , and KeyInfo AAC where Security capabilities AAC is an optional field.
[0132] In step S403, the REQ is REQ and KeyInfo REQ and security capabilities as required. REQ Generate and KeyInfo REQ The first temporary private key corresponding to the KeyInfo AAC and a first temporary public key included in the key exchange operation to obtain a first key K1, and AAC , Nonce REQ , and other information (the other information adopted by REQ and AAC is the same and can be selected, for example, a specific character string), and calculate a message encryption key and a message integrity check key using a key derivation algorithm, and use the message encryption key to derive a first ID information ciphertext EncData REQ Calculate.
[0133] Here, the step of REQ generating a message integrity check key can be performed if there is a need to subsequently use the message integrity check key.
[0134] In step S404, the REQ sends a first ID ciphertext message REQInit to the AAC.
[0135] In the REQInit, a Nonce AAC , Nonce REQ ,Security capabilities REQ , KeyInfo REQ , and EncData REQ Here, Nonce AAC must be equal to the corresponding field in AACInit, and Security capabilities REQ is an optional field and is supported by AACInit for security capabilities. AAC Security capabilites only if present REQ exists and EncData REQ The data to be encrypted is ID REQ Includes.
[0136] In step S405, after receiving the REQInit, the AAC performs the following operations.
[0137] (1) Nonce in REQInit AAC and the nonce generated by AAC AAC Check whether they are the same, and if they are not, discard REQInit.
[0138] (2) KeyInfo AAC The first temporary private key corresponding to the KeyInfo AAC Then, a key exchange operation is performed based on the first temporary public key included in AAC , Nonce REQ, and other information (the other information employed by the AAC and the REQ is the same and selectable, e.g., a specific string) to calculate a message encryption key and a message integrity check key using a key derivation algorithm, where the step of the AAC generating the message integrity check key can be performed whenever the message integrity check key needs to be used thereafter.
[0139] (3) EncData using the message encryption key. REQ Decrypt it to get the ID REQ Get the.
[0140] (4) The message encryption key is used to encrypt the second ID information using a symmetric encryption algorithm. AAC Calculate.
[0141] (5) The decrypted ID REQ Based on this, determine a pre-shared key PSK with REQ, and use PSK to combine K1 and other information (the other information adopted by AAC and REQ is the same and selectable, for example, a specific string), and adopt a key derivation algorithm to calculate an identity authentication key IAK.
[0142] (6) Calculate EIAK by employing a key derivation algorithm based on IAK and other information (the other information employed by AAC and REQ is the same and can be selected, e.g., a specific character string).
[0143] (7) Second key exchange parameter KeyInfo AAC_second Generate.
[0144] (8) First message integrity check code MacTag AAC Calculate and generate
[0145] In step S406, the AAC sends the second ID ciphertext message AACAuth to the REQ.
[0146] In the AACAuth, a Nonce REQ , Nonce AAC , EncData AAC , KeyInfo AAC_second , and MacTag AAC Here, Nonce REQ , Nonce AAC is an optional field, REQ , Nonce AAC respectively, the Nonce in REQInit REQ , the nonce generated by AAC AAC must be equal to EncData AAC The data to be encrypted is ID AAC Contains KeyInfo AAC_second is the result of XORing the information containing the second temporary public key generated by the AAC with the EIAK, and AAC The calculation process of is to use the message integrity check key and the integrity check algorithm to calculate the MacTag of AACAuth. AAC MacTag by calculating other fields except AAC Generate.
[0147] In step S407, after receiving the AACAuth, REQ performs the following operations:
[0148] (1) Nonce in AACAuth REQ and / or Nonce AAC If a Nonce is carried, REQ However, the Nonce generated by REQ REQ and / or Nonce AAC However, the Nonce in AACInit AAC Check whether it is the same as
[0149] (2) MacTag AAC Verify the following: The verification process uses the message integrity check key and the integrity check algorithm to verify the MacTag of AACAuth. AACMacTag by calculating locally on the other fields except AAC Generate and receive the MacTag in the AACAuth AAC The point is to compare it with
[0150] (3) If any of the above checks and verifications are not passed, discard AACAuth immediately. If all of the above checks and verifications are passed, use the message encryption key to adopt a symmetric encryption algorithm to EncData AAC Decrypt it to get the ID AAC get.
[0151] (4) The decrypted ID AAC Based on this, determine a pre-shared key PSK with the AAC, combine the PSK with K1 calculated in step S403 and other information (REQ and other information adopted by the AAC are the same and selectable, for example a specific character string), and adopt a key derivation algorithm to calculate an ID authentication key IAK.
[0152] (5) Calculate EIAK by employing a key derivation algorithm based on IAK and other information (the other information employed by AAC and REQ is the same and can be selected, e.g., a specific string).
[0153] (6) Second key exchange parameter KeyInfo REQ_second Generate.
[0154] (7) First ID authentication code MIC REQ Calculate and generate
[0155] (8) A second message integrity check code, MacTag, if necessary REQ Calculate and generate
[0156] (9) Calculate the session key.
[0157] Illustratively, REQ uses a second key K2 that it computes and a nonce AAC , NonceREQ , ID AAC , ID REQ , and other information (the other information employed by the REQ and the AAC is the same and selectable, e.g., a specific character string) is combined and calculated using a key derivation algorithm to generate a session key (including a data encryption key and / or a data integrity check key) to be used for subsequent private communication with the AAC. Here, K2 is calculated based on the KeyInfo REQ_second A second temporary private key corresponding to the KeyInfo AAC_second The second temporary public key is obtained by performing a key exchange operation based on the second temporary public key restored by the above.
[0158] In step S408, the REQ sends a first authentication message REQAuth to the AAC.
[0159] In the REQAuth, REQ , Nonce AAC , KeyInfo REQ_second , M.I.C. REQ , and MacTag REQ Here, Nonce REQ , Nonce AAC , and MacTag REQ is an optional field, REQ , Nonce AAC Each of these is the Nonce generated by REQ. REQ , Nonce in AACInit AAC It must be equal to MIC. REQ is obtained by using the IAK calculated by the REQ in step S407 to employ an integrity check algorithm to calculate the first designated data, and the first designated data is ID REQ , Nonce REQ , ID AAC , Nonce AAC , and REQ generates a second key K2, REQ_second is the result of XORing the information containing the second temporary public key generated by REQ with EIAK. REQThe calculation process of is to use the message integrity check key and the integrity check algorithm to calculate the MacTag of REQAuth. REQ MacTag by calculating other fields except REQ Generate.
[0160] In step S409, after receiving the REQAuth, the AAC performs the following operations.
[0161] (1) Nonce in REQAuth REQ and / or Nonce AAC If present, the Nonce REQ However, the Nonce in REQInit REQ and / or Nonce AAC However, the Nonce generated by AAC AAC Check whether it is the same as
[0162] (2) MacTag in REQAuth REQ If present, MacTag REQ Verify the following: The verification process uses the message integrity check key and the integrity check algorithm to check the MacTag of REQAuth. REQ MacTag by calculating locally on the other fields except REQ Generate and calculate MacTag REQ and the MacTag in the received REQAuth REQ The point is to compare it with
[0163] (3) If any of the above checks and verifications fail, discard REQAuth immediately. If all of the above checks and verifications pass, REQ Verify.
[0164] For example, the AAC uses the IAK calculated in step S405 to locally calculate the MIC by employing an integrity check algorithm on the first specified data. REQwhere the first specified data is ID REQ , Nonce REQ , ID AAC , Nonce AAC , and a second key K2 generated by AAC, where K2 is a key that AAC has created using KeyInfo AAC_second A second temporary private key corresponding to the KeyInfo REQ_second The AAC is obtained by performing a key exchange operation based on the second temporary public key recovered by REQ and the MIC in the received REQAuth REQ If they match, it is determined that the ID of the REQ is valid, and if they do not match, it is determined that the ID of the REQ is invalid according to a local policy, or an operation is performed to terminate the current authentication process.
[0165] (4) Calculate the session key.
[0166] For example, the AAC uses a second key K2 that it calculates and a nonce AAC , Nonce REQ , ID AAC , ID REQ , and other information (the other information employed by the AAC and the REQ is the same and selectable, e.g., a specific string) is combined and calculated using a key derivation algorithm to generate a session key (including a data encryption key and / or a data integrity check key) to be used for subsequent secret communications with the REQ.
[0167] Therefore, in step S409, ID authentication for REQ, that is, one-sided ID authentication of AAC for REQ is realized.
[0168] Referring to FIG. 5, FIG. 5 is an ID authentication method for one-sided authentication of AAC according to an embodiment of the present application, which includes the following steps:
[0169] In step S501, the AAC AAC and KeyInfo AACand security capabilities as required. AAC Generate.
[0170] In step S502, the AAC sends a key negotiation request message AACInit to REQ.
[0171] In the above AACInit, Nonce AAC ,Security capabilities AAC , and KeyInfo AAC where Security capabilities AAC is an optional field.
[0172] In step S503, the REQ is REQ and KeyInfo REQ and security capabilities as required. REQ Generate and KeyInfo REQ The first temporary private key corresponding to the KeyInfo AAC and a first temporary public key included in the key exchange operation to obtain a first key K1, and AAC , Nonce REQ , and other information (the other information adopted by REQ and AAC is the same and can be selected, for example, a specific character string), and calculate a message encryption key and a message integrity check key using a key derivation algorithm, and use the message encryption key to derive a first ID information ciphertext EncData REQ Calculate.
[0173] Here, the step of REQ generating a message integrity check key can be performed if there is a need to subsequently use the message integrity check key.
[0174] In step S504, the REQ sends a first ID ciphertext message REQInit to the AAC.
[0175] In the REQInit, a Nonce AAC , Nonce REQ ,Security capabilities REQ , KeyInfo REQ , and EncData REQ Here, Nonce AAC must be equal to the corresponding field in AACInit, and Security capabilities REQ is an optional field and is supported by AACInit for security capabilities. AAC Security capabilites only if present REQ exists and EncData REQ The data to be encrypted is ID REQ Includes.
[0176] In step S505, after receiving the REQInit, the AAC performs the following operations.
[0177] (1) Nonce in REQInit AAC and the nonce generated by AAC AAC Check whether they are the same, and if they are not, discard REQInit.
[0178] (2) KeyInfo AAC The first temporary private key corresponding to the KeyInfo AAC and a first temporary public key included in the key exchange operation to obtain a first key K1, and AAC , Nonce REQ , and other information (the other information employed by the AAC and the REQ is the same and selectable, e.g., a specific string) to calculate a message encryption key and a message integrity check key using a key derivation algorithm, where the step of the AAC generating the message integrity check key can be performed whenever the message integrity check key needs to be used thereafter.
[0179] (3) EncData using the message encryption key. REQ Decrypt it to get the ID REQ Get the.
[0180] (4) The message encryption key is used to encrypt the second ID information using a symmetric encryption algorithm. AAC Calculate.
[0181] (5) The decrypted ID REQ Based on this, determine a pre-shared key PSK with REQ, and use PSK to combine K1 and other information (the other information adopted by AAC and REQ is the same and selectable, for example, a specific string), and adopt a key derivation algorithm to calculate an identity authentication key IAK.
[0182] (6) Calculate EIAK by employing a key derivation algorithm based on IAK and other information (the other information employed by AAC and REQ is the same and can be selected, e.g., a specific character string).
[0183] (7) Second key exchange parameter KeyInfo AAC_second Generate.
[0184] (8) If necessary, the first message integrity check code MacTag AAC Calculate and generate
[0185] In step S506, the AAC sends the second ID ciphertext message AACAuth to the REQ.
[0186] In the AACAuth, a Nonce REQ , Nonce AAC , EncData AAC , KeyInfo AAC_second , and MacTag AAC Here, Nonce REQ , Nonce AAC , and MacTag AAC is an optional field, REQ, Nonce AAC respectively, the Nonce in REQInit REQ , the nonce generated by AAC AAC must be equal to EncData AAC The data to be encrypted includes IDAAC and KeyInfo. AAC_second is the result of XORing the information containing the second temporary public key generated by the AAC with the EIAK, and AAC The calculation process of is to use the message integrity check key and the integrity check algorithm to calculate the MacTag of AACAuth. AAC MacTag by calculating other fields except AAC Generate.
[0187] In step S507, after receiving the AACAuth, REQ performs the following operations.
[0188] (1) Nonce in AACAuth REQ and / or Nonce AAC If a Nonce is carried, REQ However, the Nonce generated by REQ REQ and / or Nonce AAC However, the Nonce in AACInit AAC Check whether it is the same as
[0189] (2) AACAuth to MacTag AAC If carried, MacTag AAC Verify the following: The verification process uses the message integrity check key and the integrity check algorithm to verify the MacTag of AACAuth. AAC MacTag by calculating locally on the other fields except AAC Generate and receive the MacTag in the AACAuth AAC The point is to compare it with
[0190] (3) If any of the above checks and verifications are not passed, discard AACAuth immediately. If all of the above checks and verifications are passed, use the message encryption key to adopt a symmetric encryption algorithm to EncData AAC Decrypt it to get the ID AAC get.
[0191] (4) The decrypted ID AAC Based on this, determine a pre-shared key PSK with the AAC, combine the PSK with K1 calculated in step S503 and other information (the other information adopted by the REQ and the AAC is the same and selectable, for example a specific character string), and adopt a key derivation algorithm to calculate an ID authentication key IAK.
[0192] (5) Calculate EIAK by employing a key derivation algorithm based on IAK and other information (the other information employed by AAC and REQ is the same and can be selected, e.g., a specific string).
[0193] (6) Second key exchange parameter KeyInfo REQ_second Generate.
[0194] (7) Second message integrity check code MacTag REQ Calculate and generate
[0195] In step S508, the REQ sends a first authentication message REQAuth to the AAC.
[0196] In the REQAuth, REQ , Nonce AAC , KeyInfo REQ_second , and MacTag REQ Here, Nonce REQ , Nonce AAC is an optional field, REQ , Nonce AAC Each of these is the Nonce generated by REQ. REQ , Nonce in AACInitAAC must be equal to the KeyInfo REQ_second is the result of XORing the information containing the second temporary public key generated by REQ with EIAK. REQ The verification process uses the message integrity check key and the integrity check algorithm to check the MacTag of REQAuth. REQ MacTag by calculating other fields except REQ The aim is to generate
[0197] In step S509, after receiving the REQAuth, the AAC performs the following operations.
[0198] (1) Nonce in REQAuth REQ and / or Nonce AAC If present, the Nonce REQ However, the Nonce in REQInit REQ and / or Nonce AAC However, the Nonce generated by AAC AAC Check whether it is the same as
[0199] (2) MacTag REQ Verify the following: The verification process uses the message integrity check key and the integrity check algorithm to check the MacTag of REQAuth. REQ MacTag by calculating locally on the other fields except REQ Generate and calculate MacTag REQ and the MacTag in the received REQAuth REQ The point is to compare it with
[0200] (3) After passing the above checks and verifications, the second ID authentication code MIC AAC If any of the above checks and validation steps fail, immediately discard the REQAuth.
[0201] (4) Calculate the session key.
[0202] For example, the AAC uses a second key K2 that it calculates and a nonce AAC , Nonce REQ , ID AAC , ID REQ , and other information (the other information employed by AAC and REQ is the same and selectable, e.g., a specific character string) is combined and calculated using a key derivation algorithm to generate a session key (including a data encryption key and / or a data integrity check key) to be used for subsequent private communication with REQ. Here, K2 is calculated based on the KeyInfo AAC_second A second temporary private key corresponding to the KeyInfo REQ_second The second temporary public key is obtained by performing a key exchange operation based on the second temporary public key restored by the above.
[0203] In step S510, the AAC sends a second authentication message AACResp to the REQ.
[0204] In the AACResp, Nonce REQ , Nonce AAC , and MIC AAC Here, Nonce REQ and Nonce AAC is an optional field, REQ , Nonce AAC respectively, the Nonce in REQInit REQ , the nonce generated by AAC AAC It must be equal to MIC. AAC is obtained by AAC using the IAK calculated in step S505 to adopt an integrity check algorithm to calculate the second designated data, and the second designated data is ID AAC , Nonce AAC , ID REQ , Nonce REQ , and a second key K2 generated by AAC.
[0205] In step S511, after receiving the AACResp, REQ performs the following operations.
[0206] (1) Nonce in AACResp REQ and / or Nonce AAC If present, the Nonce REQ However, the Nonce generated by REQ REQ and / or Nonce AAC However, the Nonce in AACInit AAC Check whether it is the same as AACResp, and if it is different, discard AACResp.
[0207] (2) MIC AAC Verify.
[0208] For example, the REQ uses the IAK calculated in step S507 to locally calculate the MIC against the second specified data using an integrity check algorithm. AAC where the second specification data is ID AAC , Nonce AAC , ID REQ , Nonce REQ , and a second key K2 generated by REQ, where K2 is a REQ_second A second temporary private key corresponding to the KeyInfo AAC_second and the second temporary public key recovered by AAC and the MIC in the received AACResp AAC If they match, the AAC ID is determined to be valid, and if they do not match, the AAC ID is determined to be invalid according to local policy, or the current authentication process is terminated.
[0209] (3) Calculate the session key.
[0210] Illustratively, REQ uses a second key K2 that it computes and a nonce AAC , NonceREQ , ID AAC , ID REQ , and other information (the REQ and other information employed by the AAC is the same and selectable, e.g., a specific string) and calculated using a key derivation algorithm to generate a session key (including a data encryption key and / or a data integrity check key) to be used for subsequent secret communication with the AAC.
[0211] Therefore, in step S511, ID authentication for AAC, that is, one-sided ID authentication of REQ for AAC is realized.
[0212] In each of the above embodiments, each message is represented by a hash value HASH. X It can also carry the hash value HASH X is calculated by the sender entity X of the message using a hash algorithm to calculate the most recent preceding message received from the other entity Y, and is used by the other entity Y to verify that entity X has received a complete most recent preceding message. Here, if X represents REQ, then the corresponding Y represents AAC, and if X represents AAC, then the corresponding Y represents REQ, and HASH REQ represents the hash value calculated by REQ on the most recent preceding message from the received AAC, and HASH AAC represents the hash value calculated by AAC for the most recent preceding message from the received REQ. If the message currently sent by the sending entity X is the first message in an interaction between entity X and entity Y, it means that entity X has not received any preceding message from the other entity Y, in which case the HASH of that message is X may not exist or may be meaningless.
[0213] In response to this, after the other entity Y receives a message from entity X, it applies a HASH XIf entity Y has not sent a previous message to entity X, then entity Y is in the HASH X If entity Y has sent a previous message to entity X, entity Y uses a hash algorithm to locally calculate the hash value of the most recent previous message it previously sent to entity X, and returns the hash value HASH X If it matches, execute the subsequent steps, otherwise discard or terminate the current authentication process.
[0214] In the present invention, for an entity X, the previous message sent by the other entity Y to the entity X refers to the message sent by the other entity Y to the entity X that is received before the entity X sends a message M to the other entity Y, and the latest previous message sent by the other entity Y to the entity X refers to the latest message sent by the other entity Y to the entity X that is received before the entity X sends a message M to the other entity Y. If the message M sent by the entity X to the other entity Y is the first message in the interaction between the entity X and the entity Y, there is no previous message sent by the other entity Y to the entity X before the entity X sends the message M to the other entity Y.
[0215] 3, 4, and 5 correspond to the optional fields and optional operations in the embodiments, and are indicated by "*" in the specification drawings of Fig. 3, 4, and 5. The order of each content included in the message in all the above embodiments is not limited, and unless otherwise specified, the order of operations of related messages after the message receiver receives the message and the order of processing the content included in the message are not limited.
[0216] Based on the method embodiment corresponding to Fig. 1-Fig. 5, the embodiment of the present application further provides an authentication access controller, which can be a verifier, a verifier, or can have the functions of both verifier and verifier at the same time. Referring to Fig. 6, the authentication access controller 600 includes: a receiver 601 configured to receive a first ID ciphertext message from a requesting device, the first ID ciphertext message including a first ID information ciphertext, the first ID information ciphertext being generated by encrypting information including an ID identifier of the requesting device using a message encryption key; a calculation unit 602 configured to decrypt the first ID information ciphertext using the message encryption key to obtain an ID identifier of the requesting device, determine a pre-shared key with the requesting device based on the ID identifier of the requesting device, and calculate and generate an ID authentication key based on information including the pre-shared key and a first key; a sending unit 603 configured to send a second ID ciphertext message to the requesting device, the second ID ciphertext message including a second ID information ciphertext and a second key exchange parameter of the authentication access controller, the second ID information ciphertext being generated by the authentication access controller encrypting information including an ID identifier of the authentication access controller using the message encryption key, and the second key exchange parameter of the authentication access controller being generated by encrypting information including a second temporary public key generated by the authentication access controller using the ID authentication key; the receiving unit 601 is further configured to receive a first authentication message from the requesting device, the first authentication message including a second key exchange parameter of the requesting device, the second key exchange parameter of the requesting device being generated by the requesting device encrypting information including a second temporary public key generated by the requesting device using the ID authentication key; When the requesting device is the subject to be verified, the first authentication message further includes a first ID authentication code, and the first ID authentication code is generated by the requesting device encrypting first designation data using the ID authentication key, and the first designation data includes an ID identifier of the requesting device and a second key, and the second key is generated by the requesting device performing a key exchange operation based on a second temporary private key corresponding to a second temporary public key of the requesting device and a second temporary public key restored by a second key exchange parameter of the authentication access controller, and the authentication access controller: and / or a verification unit 604 configured to verify a first ID authentication code in the first authentication message using the ID authentication key and the first designation data, and determine an ID authentication result of the requesting device based on the verification result; When the authentication access controller is the subject to be verified, the sending unit 603 is further configured to send a second authentication message to the requesting device, the second authentication message including a second ID authentication code, the second ID authentication code being generated by the authentication access controller calculating second designation data using the ID authentication key, the second designation data including an ID identifier of the authentication access controller and a second key, the second key being generated by the authentication access controller performing a key exchange operation based on a second temporary private key corresponding to the second temporary public key of the authentication access controller and a second temporary public key restored by a second key exchange parameter of the requesting device.
[0217] Optionally, the sending unit 603 is further configured to send a key negotiation request message to the requesting device, wherein the key negotiation request message includes first key exchange parameters generated by the authentication access controller, and the first key exchange parameters of the authentication access controller include a first temporary public key generated by the authentication access controller; Correspondingly, the first ID ciphertext message further includes first key exchange parameters of the requesting device, the first key exchange parameters of the requesting device including a first temporary public key generated by the requesting device; The calculation unit 602 is further configured to perform the key exchange operation based on a first ephemeral private key corresponding to the first ephemeral public key of the authentication access controller and a first ephemeral public key of the requesting device to obtain the first key.
[0218] Optionally, the calculation unit 602 is further configured to calculate said message encryption key using a key derivation algorithm based on computation information including said first key.
[0219] Optionally, if the key negotiation request message further includes a first random number generated by the authentication access controller, and correspondingly, if the first ID ciphertext message further includes a second random number generated by the requesting device, The calculation information used by the calculation unit 602 to calculate the message encryption key further includes the first random number and the second random number.
[0220] Optionally, if the first ID ciphertext message further includes the first random number, before the calculation unit 602 calculates a message encryption key, the verification unit 604 is further configured to perform consistency verification between the first random number in the first authentication message and the first random number generated by the authentication access controller.
[0221] Optionally, if the first authentication message further includes the first random number and / or the second random number, the verification unit 604 is further configured to perform consistency verification between the first random number in the first authentication message and the first random number generated by the authentication access controller, and / or perform consistency verification between the second random number in the first authentication message and the second random number in the first ID ciphertext message, and if the verification is successful, the authentication access controller obtains a second key exchange parameter of the requesting device.
[0222] Optionally, when calculating the message encryption key using a key derivation algorithm, the calculation unit 602 also derives a message integrity check key; The second ID ciphertext message transmitted by the transmitting unit 603 further includes a first message integrity check code, and the first message integrity check code is generated by a calculation unit 602 using the message integrity check key to calculate other fields in the second ID ciphertext message except for the first message integrity check code by adopting an integrity check algorithm; And / or, if the first authentication message received by the receiving unit 601 further includes a second message integrity check code, the verification unit 604 is further configured to perform verification on the second message integrity check code using the message integrity check key, and after the verification is passed, if the requesting device is to be verified, the verification unit 604 verifies the first ID authentication code.
[0223] Optionally, the calculation unit 602 is further configured to calculate a session key using a key derivation algorithm based on information including said second key, an ID identifier of said requesting device, and an ID identifier of said authentication access controller.
[0224] Optionally, when the requesting device is a verifier and the authentication access controller is a corresponding verifier, and when the authentication access controller is a verifier and the requesting device is a corresponding verifier, the requesting device and the authentication access controller verify the validity of each other's ID, The calculation unit 602 is further configured to calculate, based on information including the second key and the ID authentication key, a pre-shared key to be used during next ID authentication using a key derivation algorithm.
[0225] Optionally, the message sent by said authentication access controller to said requesting device further comprises a hash value calculated by said authentication access controller over the most recent preceding message received from said requesting device.
[0226] An embodiment of the present application further provides a requesting device, which may be a verifier, a verifier, or may have both verifier and verifier functions at the same time. Referring to FIG. 7, a requesting device 700 includes: a sending unit 701 configured to send a first ID ciphertext message to an authentication access controller, the first ID ciphertext message including a first ID information ciphertext, the first ID information ciphertext being generated by encrypting information including an ID identifier of the requesting device using a message encryption key; a receiver 702 configured to receive a second ID ciphertext message from the authentication access controller, the second ID ciphertext message including a second ID information ciphertext and a second key exchange parameter of the authentication access controller, the second ID information ciphertext being generated by the authentication access controller encrypting information including an ID identifier of the authentication access controller using the message encryption key, and the second key exchange parameter of the authentication access controller being generated by encrypting information including a second temporary public key generated by the authentication access controller using the ID authentication key; a calculation unit 703 configured to decrypt the second ID information ciphertext using the message encryption key to obtain an ID identifier of the authentication access controller, determine a pre-shared key with the authentication access controller based on the ID identifier of the authentication access controller, and calculate and generate the ID authentication key based on information including the pre-shared key and a first key; The sending unit 701 is further configured to send a first authentication message to the authentication access controller, the first authentication message including a second key exchange parameter of the requesting device, the second key exchange parameter of the requesting device being generated by the requesting device encrypting information including a second temporary public key generated by the requesting device using the ID authentication key; When the requesting device is a subject to be verified, the first authentication message further includes a first ID authentication code, the first ID authentication code being generated by the requesting device calculating first designation data using the ID authentication key, the first designation data including an ID identifier of the requesting device and a second key, the second key being generated by the requesting device performing a key exchange operation based on a second temporary private key corresponding to a second temporary public key of the requesting device and a second temporary public key restored by a second key exchange parameter of the authentication access controller; and / or When the authentication access server is the subject to be verified, the receiving unit 702 is further configured to receive a second authentication message sent by the authentication access controller, the second authentication message including a second ID authentication code, the second ID authentication code being generated by the authentication access controller encrypting second designation data using the ID authentication key, the second designation data including an ID identifier of the authentication access controller and a second key, the second key being generated by the authentication access controller performing the key exchange operation based on a second temporary private key corresponding to a second temporary public key of the authentication access controller and a second temporary public key restored by a second key exchange parameter of the requesting device, and the requesting device: The authentication access controller further includes a verifying unit 704 configured to verify a second ID authentication code in the second authentication message using the ID authentication key and the second designation data, and determine an ID authentication result of the authentication access controller according to a verification result.
[0227] Optionally, the receiving unit 702 is further configured to receive a key negotiation request message sent by the authentication access controller, the key negotiation request message including first key exchange parameters generated by the authentication access controller, the first key exchange parameters of the authentication access controller including a first temporary public key generated by the authentication access controller; The calculation unit 703 is further configured to perform a key exchange operation based on a first temporary private key corresponding to the first temporary public key of the requesting device and a first temporary public key of the authentication access controller to generate the first key, and when the first key exchange parameters of the requesting device include the first temporary public key generated by the requesting device, The first ID ciphertext message transmitted by transmission unit 701 further includes a first key exchange parameter of the requesting device.
[0228] Optionally, the calculation unit 703 is further configured to calculate said message encryption key using a key derivation algorithm based on computation information including said first key.
[0229] Optionally, when the key negotiation request message further includes a first random number generated by the authentication access controller, the calculation information used by the calculation unit 703 to calculate the message encryption key further includes the first random number and a second random number generated by the requesting device, and correspondingly, the first ID ciphertext message sent by the sending unit 701 further includes the second random number.
[0230] Optionally, the first ID ciphertext message sent by the sending unit 701 further includes the first random number.
[0231] Optionally, when the second ID ciphertext message further includes the first random number and / or the second random number, the verification unit 704 further performs a consistency verification between the first random number in the second ID ciphertext message and the first random number in the key negotiation request message, and / or performs a consistency verification between the second random number in the second ID ciphertext message and the second random number generated by the requesting device, and if the verification is successful, the calculation unit 703 verifies the second ID information ciphertext to obtain an ID identifier of the authentication access controller; And / or, if the second authentication message includes the first random number and / or the second random number, the verification unit 704 further performs consistency verification between the first random number in the second authentication message and the first random number in the key negotiation request message and / or performs consistency verification between the second random number in the second authentication message and the second random number generated by the requesting device, and if the verification is successful, the verification unit 704 verifies the second ID authentication code.
[0232] Optionally, the key negotiation request message further includes security capability parameter information supported by the authentication access controller, and the requesting device: a determination unit configured to determine a particular security policy for the requesting device to use based on the security capability parameter information; In this case, the first ID ciphertext message transmitted by the transmitting unit 701 further includes the specific security policy.
[0233] Optionally, the calculation unit 703 also derives a message integrity check key when calculating the message encryption key using a key derivation algorithm; If the second ID ciphertext message further includes a first message integrity check code, the verification unit 704 is further configured to use the message integrity check key to verify the first message integrity check code; after the verification is passed, the calculation unit 703 uses the message encryption key to decrypt the second ID information ciphertext to obtain an ID identifier of the authentication access controller; And / or, the first authentication message sent by the sending unit 701 further includes a second message integrity check code, and the second message integrity check code is generated by the calculation unit 703 using the message integrity check key and adopting an integrity check algorithm to calculate other fields of the first authentication message except for the second message integrity check code.
[0234] Optionally, the calculation unit 703 is further configured to calculate a session key using a key derivation algorithm based on information including said second key, an ID identifier of said requesting device, and an ID identifier of said authentication access controller.
[0235] Optionally, when the requesting device is a subject to be verified, the authentication access controller is a corresponding verifier, and when the authentication access controller is a subject to be verified, the requesting device is a corresponding verifier, and the requesting device and the authentication access controller verify the validity of each other's ID, the calculation unit 703 further calculates a pre-shared key to be used during the next ID authentication using a key derivation algorithm based on information including the second key and the ID authentication key.
[0236] Optionally, the message sent by said requesting device to said authentication access controller includes a hash value calculated by said requesting device over the most recent preceding message received from said authentication access controller.
[0237] In this and other embodiments, a "part" may be a partial circuit, a partial processor, a partial program or software, and of course may be a unit, or may be modular or non-modular.
[0238] 8, the authentication access controller AAC provided by the embodiment of the present application includes a first processor 801 and a first memory 802. Here, the first processor 801 calls and executes a computer program from the first memory 802 to realize the steps performed by the AAC in the above embodiment.
[0239] Here, the first memory 802 may be a separate device independent of the first processor 801 or may be integrated into the first processor 801.
[0240] It should be noted that the authentication access controller can implement the corresponding flows implemented by the AAC in various ways in the embodiments of the present application, which will not be described repeatedly here for the sake of brevity.
[0241] 9, the embodiment of the present application further provides a requesting device REQ, which includes a second processor 901 and a second memory 902. Here, the second processor 901 calls and executes a computer program from the second memory 902, thereby realizing the step of executing REQ in the above embodiment.
[0242] Here, the second memory 902 may be a separate device independent of the second processor 901 or may be integrated into the second processor 901.
[0243] It should be noted that the request device may implement the corresponding flows implemented by REQ in various ways in the embodiments of the present application, which will not be repeated here for the sake of brevity.
[0244] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, executes the execution step of the authentication access controller AAC or the requesting device REQ in the above-mentioned ID authentication method, where the storage medium may be a volatile or non-volatile computer-readable storage medium.
[0245] An embodiment of the present application further provides a computer program including computer-readable code, which, when executed in an electronic device, causes a processor of the electronic device to execute an execution step of the authentication access controller AAC or the requesting device REQ in the above-mentioned ID authentication method.
[0246] An embodiment of the present application further provides a computer program product including computer program instructions, which perform an execution step of an authentication access controller AAC or a requesting device REQ in the above ID authentication method, and details may refer to the embodiments of the above method, and will not be repeated here.
[0247] When the above-mentioned requesting device and the authentication access controller perform ID verification based on the authentication mechanism of a pre-shared key, the ID information of the requesting device and the authentication access controller are transmitted in the form of ciphertext during message transmission, and when the verifier employs the authentication mechanism of a pre-shared key to perform ID verification, the verifier can obtain the ID information of the other party by decrypting the ciphertext of the ID information of the other party, thereby realizing true ID authentication of the person to be verified. Since the ID information transmitted between the requesting device and the authentication access controller exists in the form of ciphertext, it prevents the ID information of the person to be verified from leaking during transmission and ensures that an attacker cannot intercept private or sensitive information. While ensuring the confidentiality of information related to the entity's ID, it realizes mutual ID authentication or one-sided ID authentication between the authentication access controller and the requesting device using a pre-shared key, thereby establishing a foundation for ensuring that a user accessing a network is legitimate and / or that the network accessed by the user is legitimate.
[0248] Those skilled in the art can understand that all or some of the steps of the above-mentioned method embodiments can be completed by hardware associated with program instructions, and the program can be stored in a computer-readable storage medium, and when the program is executed, it performs the steps of the above-mentioned method embodiments, and the storage medium can be at least one of media that can store program code, such as a read-only memory (ROM), a RAM, a disk, or a CD-ROM.
[0249] It should be noted that each embodiment in this specification is described step by step, and the same or similar parts between each embodiment can be referred to each other, and each embodiment focuses on the difference with other embodiments. In particular, the device and system embodiments are consistent and corresponding to the method embodiments, so that they can be described relatively simply, and the relevant parts can be referred to the description of the method embodiments. The above-described device and system embodiments are merely illustrative, and the parts described as separate members may or may not be physically separated, and the members displayed as parts may or may not be physical parts, and may be located in one place or distributed in multiple network sections. According to actual needs, some or all of the parts therein can be selected to achieve the purpose of the technical solution in this embodiment. Those skilled in the art can understand and implement it without any creative effort.
[0250] The above content is only a specific embodiment of the present application, and the protection scope of the present application is not limited thereto. Any modifications or replacements that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. [Industrial Applicability]
[0251] The embodiment of the present application provides an ID authentication method, in which when a requesting device and an authentication access controller perform ID verification based on a pre-shared key authentication mechanism, the ID information of the person to be verified is transmitted in the form of a ciphertext, thereby preventing the ID information of the person to be verified from being directly leaked during transmission, ensuring that an attacker cannot obtain private or sensitive information, and ensuring the confidentiality of information related to the identity of an entity, while realizing mutual ID authentication or one-sided ID authentication between the authentication access controller and the requesting device, thereby laying a foundation for ensuring that a user accessing a network is legitimate and / or that the network accessed by the user is legitimate. At the same time, the combination of key exchange operations and ingenious detailed design enhance the ability of the authentication process to resist dictionary brute force attacks or quantum computing attacks. The embodiment of the present application further discloses an authentication access controller and a requesting device, a storage medium, a program, and a program product.
Claims
1. An identity (ID) authentication method, The requesting device transmits a first ID ciphertext message to the authentication access controller, wherein the first ID ciphertext message includes a first ID information ciphertext, and the first ID information ciphertext is generated by encrypting information including the ID identifier of the requesting device using a message encryption key. The authentication access controller decrypts the first ID information ciphertext using the message encryption key to obtain the ID identifier of the requesting device, determines a pre-shared key with the requesting device based on the ID identifier of the requesting device, and calculates and generates an ID authentication key based on the information including the pre-shared key and the first key. The authentication access controller transmits a second ID ciphertext message to the requesting device, wherein the second ID ciphertext message includes a second ID information ciphertext and a second key exchange parameter of the authentication access controller, the second ID information ciphertext is generated by the authentication access controller encrypting information including the ID identifier of the authentication access controller using the message encryption key, and the second key exchange parameter of the authentication access controller is generated by encrypting information including a second temporary public key generated by the authentication access controller using the ID authentication key. The requesting device decrypts the second ID information ciphertext using the message encryption key to obtain the ID identifier of the authentication access controller, determines a pre-shared key with the authentication access controller based on the ID identifier of the authentication access controller, and calculates and generates the ID authentication key based on the information including the pre-shared key and the first key. The requesting device transmits a first authentication message to the authentication access controller, wherein the first authentication message includes a second key exchange parameter of the requesting device, and the second key exchange parameter of the requesting device is generated by the requesting device using the ID authentication key to encrypt information including a second temporary public key generated by the requesting device. When the requesting device is the device to be verified, the first authentication message further includes a first ID authentication code, the first ID authentication code is generated when the requesting device calculates first designation data using the ID authentication key, the first designation data includes the ID identifier and second key of the requesting device, the second key is generated when the requesting device performs a key exchange operation based on a second temporary private key corresponding to the second temporary public key of the requesting device and a second temporary public key restored by the second key exchange parameter of the authentication access controller, the authentication access controller receives the first authentication message, verifies the first ID authentication code using the ID authentication key and the first designation data, and determines the ID authentication result of the requesting device based on the verification result, and / or An ID authentication method comprising: when the authentication access controller is the subject of verification, the authentication access controller transmits a second authentication message to the requesting device, wherein the second authentication message includes a second ID authentication code, the second ID authentication code is generated by the authentication access controller calculating second designation data using the ID authentication key, the second designation data includes the ID identifier and second key of the authentication access controller, the second key is generated by the authentication access controller performing the key exchange operation based on a second temporary private key corresponding to the second temporary public key of the authentication access controller and a second temporary public key restored by the second key exchange parameter of the requesting device, and the requesting device receives the second authentication message, verifies the second ID authentication code using the ID authentication key and the second designation data, and determines the ID authentication result of the authentication access controller based on the verification result.
2. The requesting device and the authentication access controller negotiate the first key in the following manner, namely, The authentication access controller transmits a key negotiation request message to the requesting device, the key negotiation request message includes a first key exchange parameter generated by the authentication access controller, and the first key exchange parameter of the authentication access controller includes a first temporary public key generated by the authentication access controller. The requesting device performs the key exchange operation to obtain the first key based on the first temporary private key corresponding to the first temporary public key of the requesting device and the first temporary public key of the authentication access controller. The first ID ciphertext message further includes the first key exchange parameter of the requesting device, the first key exchange parameter of the requesting device includes the first temporary public key generated by the requesting device. The authentication access controller obtains the first key by performing the key exchange operation based on the first temporary private key corresponding to the first temporary public key of the authentication access controller and the first temporary public key of the requesting device. The ID authentication method according to claim 1.
3. The requesting device and the authentication access controller negotiate and generate the message encryption key in the following manner, namely, The requesting device calculates the message encryption key using a key derivation algorithm based on the computation information including the first key. In response to this, the authentication access controller calculates the message encryption key using the key derivation algorithm based on the computation information including the first key. The ID authentication method according to claim 2.
4. If the key negotiation request message further includes a first random number generated by the authentication access controller, The computational information used by the requesting device to calculate the message encryption key further includes the first random number and the second random number generated by the requesting device. In response to this, if the first ID ciphertext message further contains the second random number, The computational information used by the authentication access controller to calculate the message encryption key further includes the first random number and the second random number. The ID authentication method according to claim 3.
5. Before the authentication access controller calculates the message encryption key, the ID authentication method, The authentication access controller performs consistency verification between the first random number in the first ID ciphertext message and the first random number generated by the authentication access controller. If the verification is successful, the process further includes calculating the message encryption key, The ID authentication method according to claim 4.
6. If the second ID ciphertext message further contains the first random number and / or the second random number, when the requesting device receives the second ID ciphertext message, it verifies the consistency between the first random number in the second ID ciphertext message and the first random number in the key negotiation request message, and / or verifies the consistency between the second random number in the second ID ciphertext message and the second random number generated by the requesting device. If the verification is successful, the requesting device decrypts the second ID information ciphertext to obtain the ID identifier of the authentication access controller. And / or, if the first authentication message includes the first random number and / or the second random number, when the authentication access controller receives the first authentication message, it verifies the consistency between the first random number in the first authentication message and the first random number generated by the authentication access controller, and / or verifies the consistency between the second random number in the first authentication message and the second random number in the first ID ciphertext message, and if the verification is successful, the authentication access controller obtains the second key exchange parameter of the requesting device. And / or, if the second authentication message includes the first random number and / or the second random number, when the requesting device receives the second authentication message, it verifies the consistency between the first random number in the second authentication message and the first random number in the key negotiation request message, and / or verifies the consistency between the second random number in the second authentication message and the second random number generated by the requesting device. If the verification is successful, the requesting device verifies the second ID authentication code. The ID authentication method according to claim 4.
7. The key negotiation request message further includes security capability parameter information supported by the authentication access controller, and the ID authentication method is The requesting device further includes determining a specific security policy to be used by the requesting device based on the security capability parameter information. In this case, the first ID ciphertext message of the requesting device further includes the specific security policy. The ID authentication method according to claim 2.
8. When calculating the message encryption key using the key derivation algorithm, the message integrity check key is also derived, and the ID authentication method is If the second ID ciphertext message further includes a first message integrity check code, and the first message integrity check code is generated by the authentication access controller using the message integrity check key to calculate the other fields in the second ID ciphertext message, excluding the first message integrity check code, by employing an integrity check algorithm, When the requesting device receives the second ID ciphertext message, it first uses the message integrity check key to verify the first message integrity check code, and after passing the verification, it uses the message encryption key to decrypt the second ID information ciphertext to obtain the ID identifier of the authentication access controller. and / or, the first authentication message further includes a second message integrity check code, the second message integrity check code being generated by the requesting device using the message integrity check key to calculate the other fields in the first authentication message, excluding the second message integrity check code, by employing an integrity check algorithm. When the authentication access controller receives the first authentication message, it first uses the message integrity check key to verify the second message integrity check code, and if the verification is successful, it further verifies the first ID authentication code if the requesting device is the one being verified. The ID authentication method according to claim 3.
9. The aforementioned ID authentication method is: The requesting device calculates a session key using a key derivation algorithm based on information including the second key, the ID identifier of the requesting device, and the ID identifier of the authentication access controller. The authentication access controller further comprises calculating a session key using a key derivation algorithm based on information including the second key, the ID identifier of the requesting device, and the ID identifier of the authentication access controller. The ID authentication method according to claim 1.
10. When the requesting device is the person being verified and the authentication access controller is the corresponding verifier, and when the authentication access controller is the person being verified and the requesting device is the corresponding verifier, and the requesting device and the authentication access controller verify the validity of each other's IDs, the ID authentication method is: The requesting device calculates a pre-shared key to be used during the next ID authentication using a key derivation algorithm based on information including the second key and the ID authentication key. The authentication access controller further includes calculating a pre-shared key to be used during the next ID authentication using a key derivation algorithm based on information including the second key and the ID authentication key. The ID authentication method according to any one of claims 1 to 9.
11. If the message sent by the requesting device to the authentication access controller further includes a hash value calculated by the requesting device for the most recent preceding message received from the authentication access controller, When the authentication access controller receives a message from the requesting device, it first verifies the hash value in the received message, and if the verification is successful, it executes the subsequent operation. If the message sent by the authentication access controller to the requesting device further includes a hash value calculated by the authentication access controller for the most recent preceding message received from the requesting device, When the requesting device receives a message from the authentication access controller, it first verifies the hash in the received message, and if the verification is successful, it performs the subsequent operation. The ID authentication method according to any one of claims 1 to 9.
12. Authentication access controller, A receiving unit configured to receive a first ID ciphertext message from a requesting device, wherein the first ID ciphertext message includes a first ID information ciphertext, and the first ID information ciphertext is generated by encrypting information including the ID identifier of the requesting device using a message encryption key, A calculation unit is configured to decrypt the first ID information ciphertext using the message encryption key to obtain the ID identifier of the requesting device, determine a pre-shared key with the requesting device based on the ID identifier of the requesting device, and calculate and generate an ID authentication key based on information including the pre-shared key and the first key. A transmitting unit configured to transmit a second ID ciphertext message to the requesting device, wherein the second ID ciphertext message includes a second ID information ciphertext and a second key exchange parameter of the authentication access controller, the second ID information ciphertext is generated by the authentication access controller using the message encryption key to encrypt information including the ID identifier of the authentication access controller, and the second key exchange parameter of the authentication access controller is generated by using the ID authentication key to encrypt information including a second temporary public key generated by the authentication access controller, the transmitting unit comprises The receiving unit is further configured to receive a first authentication message from the requesting device, the first authentication message including a second key exchange parameter of the requesting device, the second key exchange parameter of the requesting device being generated by the requesting device encrypting information including a second temporary public key generated by the requesting device using the ID authentication key. If the requesting device is the device to be verified, the first authentication message further includes a first ID authentication code, the first ID authentication code is generated by the requesting device calculating first designation data using the ID authentication key, the first designation data includes the ID identifier and second key of the requesting device, and the second key is generated by the requesting device performing a key exchange operation based on a second temporary private key corresponding to the requesting device's second temporary public key and a second temporary public key restored by the second key exchange parameter of the authentication access controller, then the authentication access controller, The system further comprises a verification unit configured to verify the first ID authentication code in the first authentication message using the aforementioned ID authentication key and the first designated data, and to determine the ID authentication result of the requesting device based on the verification result, and / or When the authentication access controller is the subject of verification, the transmission unit is further configured to transmit a second authentication message to the requesting device, the second authentication message includes a second ID authentication code, the second ID authentication code is generated by the authentication access controller calculating second designation data using the ID authentication key, the second designation data includes the ID identifier and second key of the authentication access controller, the second key is generated by the authentication access controller performing a key exchange operation based on a second temporary private key corresponding to the second temporary public key of the authentication access controller and a second temporary public key restored by the second key exchange parameter of the requesting device, the authentication access controller.
13. Required equipment, A transmitting unit configured to transmit a first ID ciphertext message to an authentication access controller, wherein the first ID ciphertext message includes a first ID information ciphertext, and the first ID information ciphertext is generated by encrypting information including the ID identifier of the requesting device using a message encryption key; A receiving unit configured to receive a second ID ciphertext message from the authentication access controller, wherein the second ID ciphertext message includes a second ID information ciphertext and a second key exchange parameter of the authentication access controller, the second ID information ciphertext is generated by the authentication access controller using the message encryption key to encrypt information including the ID identifier of the authentication access controller, and the second key exchange parameter of the authentication access controller is generated by using the ID authentication key to encrypt information including a second temporary public key generated by the authentication access controller, the receiving unit The system includes a calculation unit configured to decrypt the second ID information ciphertext using the message encryption key to obtain the ID identifier of the authentication access controller, determine a pre-shared key with the authentication access controller based on the ID identifier of the authentication access controller, and calculate and generate the ID authentication key based on information including the pre-shared key and the first key. The transmission unit is further configured to transmit a first authentication message to the authentication access controller, the first authentication message includes a second key exchange parameter of the requesting device, the second key exchange parameter of the requesting device is generated when the requesting device uses the ID authentication key to encrypt information including a second temporary public key generated by the requesting device. When the requesting device is the one being verified, the first authentication message further includes a first ID authentication code, the first ID authentication code is generated when the requesting device calculates first designation data using the ID authentication key, the first designation data includes the ID identifier and second key of the requesting device, the second key is generated when the requesting device performs a key exchange operation based on a second temporary private key corresponding to the second temporary public key of the requesting device and a second temporary public key restored by the second key exchange parameter of the authentication access controller, and / or When the authentication access server is the subject of verification, the receiving unit is further configured to receive a second authentication message transmitted by the authentication access controller, the second authentication message includes a second ID authentication code, the second ID authentication code is generated by the authentication access controller calculating second designation data using the ID authentication key, the second designation data includes the ID identifier and second key of the authentication access controller, the second key is generated by the authentication access controller performing the key exchange operation based on a second temporary private key corresponding to the second temporary public key of the authentication access controller and a second temporary public key restored by the second key exchange parameter of the requesting device, the requesting device further, A requesting device comprising a verification unit configured to verify the second ID authentication code in the second authentication message using the aforementioned ID authentication key and the second specified data, and to determine the ID authentication result of the authentication access controller based on the verification result.
14. The receiving unit is further configured to receive a key negotiation request message transmitted by the authentication access controller, the key negotiation request message includes a first key exchange parameter generated by the authentication access controller, and the first key exchange parameter of the authentication access controller includes a first temporary public key generated by the authentication access controller. The calculation unit is further configured to generate the first key by performing a key exchange operation based on the first temporary private key corresponding to the first temporary public key of the requesting device and the first temporary public key of the authentication access controller, and the first key exchange parameter of the requesting device includes the first temporary public key generated by the requesting device, The first ID ciphertext message transmitted by the transmitting unit further includes the first key exchange parameter of the requesting device. The required device according to claim 13.
15. The calculation unit is further configured to calculate the message encryption key using a key derivation algorithm based on the calculation information including the first key. The required device according to claim 14.
16. If the key negotiation request message further includes a first random number generated by the authentication access controller, The calculation information used by the calculation unit to calculate the message encryption key further includes the first random number and the second random number generated by the requesting device, In response to this, the first ID ciphertext message transmitted by the transmitting unit further includes the second random number. The first ID ciphertext message transmitted by the transmitting unit further includes the first random number, If the second ID ciphertext message further includes the first random number and / or the second random number, the verification unit is configured to further verify the consistency between the first random number in the second ID ciphertext message and the first random number in the key negotiation request message, and / or verify the consistency between the second random number in the second ID ciphertext message and the second random number generated by the requesting device. If the verification is successful, the calculation unit decrypts the second ID information ciphertext to obtain the ID identifier of the authentication access controller. And / or, if the second authentication message further includes the first random number and / or the second random number, the verification unit is configured to further verify the consistency between the first random number in the second authentication message and the first random number in the key negotiation request message, and / or to verify the consistency between the second random number in the second authentication message and the second random number generated by the requesting device, and if the verification is successful, the verification unit verifies the second ID authentication code. The required device according to claim 15.
17. When the calculation unit calculates the message encryption key using the key derivation algorithm, it also derives a message integrity check key. If the second ID ciphertext message further includes a first message integrity check code, the verification unit is configured to further verify the first message integrity check code using the message integrity check key, and after passing the verification, the calculation unit decrypts the second ID information ciphertext using the message encryption key to obtain the ID identifier of the authentication access controller. and / or, the first authentication message transmitted by the transmitting unit further includes a second message integrity check code, the second message integrity check code being generated by the calculation unit using the message integrity check key and applying an integrity check algorithm to the fields in the first authentication message excluding the second message integrity check code. The required device according to claim 15.
18. The calculation unit is further configured to calculate a session key using a key derivation algorithm based on information including the second key, the ID identifier of the requesting device, and the ID identifier of the authentication access controller. The required device according to claim 13.
19. When the requesting device is the person being verified and the authentication access controller is the corresponding verifier, and when the authentication access controller is the person being verified and the requesting device is the corresponding verifier, and the requesting device and the authentication access controller verify the validity of each other's IDs, The calculation unit is further configured to calculate a pre-shared key to be used during the next ID authentication using a key derivation algorithm based on information including the second key and the ID authentication key. The required device according to any one of claims 13 to 18.
20. The message transmitted by the requesting device to the authentication access controller further includes a hash value calculated by the requesting device for the most recent preceding message received from the authentication access controller, The required device according to any one of claims 13 to 18.
Citation Information
Patent Citations
Network security access control method and system based on pre-shared keys
JP2013503510A
Entity authentication method and apparatus
JP2017517915A
Entity authentication method and apparatus based on pre-shared keys
JP2017529807A
