IDENTITY AUTHENTICATION METHOD, APPARATUS, DEVICE, CHIP, STORAGE MEDIUM, AND PROGRAM
The identity authentication method using an authentication server with encrypted identity information and digital signatures addresses security risks in two-way authentication, ensuring confidentiality and integrity of sensitive data, thereby securing network communications.
Patent Information
- Application Number
- JP2023539136
- 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-15
- Estimated Expiration
- 2041-12-21
AI Technical Summary
In communication networks, the two-way identity authentication process between requesting devices and authenticating access controllers is vulnerable to security risks due to interception and misuse of sensitive identity information, such as identification card numbers and geographic location data, which can compromise the security of both the requesting device and the network.
An identity authentication method involving an authentication server that encrypts identity information using public keys, generates and verifies digital signatures, and employs protected random numbers to ensure confidentiality and integrity of identity-related information during authentication, preventing unauthorized access.
The method effectively protects sensitive information from attackers by encrypting and verifying identity information, ensuring only legitimate users can communicate with legitimate networks, thus enhancing network security and authenticity.
Smart Images

Figure 0007534757000071 
Figure 0007534757000072 
Figure 0007534757000063
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 202011569219.5 and entitled "Identity authentication method and apparatus", the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the technical field of network communication security, and in particular to an identity authentication method, an apparatus, a chip, a storage medium and a program. [Background technology]
[0003] In a communication network, a requesting device can access the network through an authentication access controller. If high security requirements are required, the authentication access controller needs to authenticate the identity of the requesting device, and the requesting device also needs to authenticate the identity of the authentication access controller, thereby ensuring that the requesting device accessing the network belongs to a legitimate user and that the network accessed by the requesting device belongs to a legitimate network. In addition, point-to-point transmission in blockchain technology requires trust relationships to be established between different nodes, so identity authentication for nodes is also very important.
[0004] In the two-way identity authentication process between the requesting device and the authenticating access controller, both need to provide their own identity information for identity authentication. However, such identity information usually includes private and confidential information, such as ID number, home address, bank card information, geographic location information, belonging organization information, etc. And in the practical application process, such identity information is usually included in the digital certificate of the entity, and the digital certificate is used as the identity credential of the entity.
[0005] In the two-way identity authentication process between the requesting device and the authenticating access controller, if the identity information of the requesting device or the authenticating access controller is intercepted and misused by an attacker, it will bring serious security risks to the authenticating access controller, the requesting device and the network. Summary of the Invention [Problem to be solved by the invention]
[0006] The present application provides an identity authentication method, device, equipment, chip, storage medium and program, and by introducing an authentication server, it provides a foundation for realizing two-way identity authentication between a requesting device and an authentication access controller while ensuring the confidentiality of an entity's identity-related information, thereby allowing only legitimate users to communicate with a legitimate network. [Means for solving the problem]
[0007] According to a first aspect, an embodiment of the present invention provides an identity authentication method, the method comprising: an authentication access controller obtaining an identity ciphertext message sent from a requesting device, the identity ciphertext message including an identity information ciphertext of the requesting device, the identity information ciphertext of the requesting device being generated by encrypting data to be encrypted, the data including a digital certificate of the requesting device and a first protected random number, using a public key of an encryption certificate; the authentication access controller sends a first authentication request message to a first authentication server trusted by the authentication access controller, the first authentication request message including an identity information ciphertext of the requesting device and an identity information ciphertext of the authentication access controller, the identity information ciphertext of the authentication access controller being generated by encrypting data to be encrypted, the data including the digital certificate of the authentication access controller and a second protected random number, using a public key of an encryption certificate; the authentication access controller receives a first authentication response message transmitted from the first authentication server, the first authentication response message including a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, where the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information includes a first verification result against a digital certificate of the authentication access controller, the first digital signature is a digital signature generated by a second authentication server trusted by the requesting device by performing a calculation on signature target data including the first authentication result information ciphertext, the second authentication result information ciphertext is generated by encrypting information including the second authentication result information using the first protected random number, the second authentication result information includes a second verification result against a digital certificate of the requesting device, and the second digital signature is a digital signature generated by the first authentication server by performing a calculation on signature target data including the second authentication result information ciphertext; the authentication access controller verifies the second digital signature using a public key of the first authentication server, and after the second digital signature passes verification, the authentication access controller sends a third authentication response message to the requesting device, where the third authentication response message includes an authentication result information ciphertext, and the authentication result information ciphertext is generated by encrypting encryption target data, including the first authentication result information ciphertext, the first digital signature, and the second protected random number, using a message encryption key; the requesting device decrypts the authentication result information ciphertext using the message encryption key to obtain the first authentication result information ciphertext, the first digital signature, and the second protected random number; The requesting device verifies the first digital signature using a public key of the second authentication server, and if the verification is passed, the requesting device decrypts the first authentication result information ciphertext using the second protected random number to obtain the first authentication result information, and determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information, and if the requesting device determines that the identity authentication result of the authentication access controller is valid, sends a fourth authentication response message to the authentication access controller; or The requesting device verifies the first digital signature by using the public key of the second authentication server, and if the verification is passed, the requesting device sends a fourth authentication response message to the authentication access controller, and uses the second protected random number to decrypt the first authentication result information ciphertext to obtain the first authentication result information, and determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; or the requesting device verifies the first digital signature by using a public key of the second authentication server, and if the first digital signature passes the verification, the requesting device decrypts the first authentication result information ciphertext by using the second protected random number to obtain the first authentication result information, and determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information, and the requesting device sends a fourth authentication response message to the authentication access controller; wherein the fourth authentication response message includes a first protected random number ciphertext, and the first protected random number ciphertext is obtained by encrypting information including the first protected random number using the message encryption key; After the authentication access controller receives the fourth authentication response message, using the message encryption key to decrypt the first protected random number ciphertext to obtain the first protected random number, using the first protected random number to decrypt the second authentication result information ciphertext to obtain the second authentication result information, and determining an identity authentication result of the requesting device according to a second verification result in the second authentication result information.
[0008] According to a second aspect, embodiments of the present application provide an authentication access controller, the authentication access controller comprising: an acquisition unit configured to acquire an identity ciphertext message sent from a requesting device, the identity ciphertext message including an identity information ciphertext of the requesting device, the identity information ciphertext of the requesting device being generated by encrypting data to be encrypted, the data including a digital certificate of the requesting device and a first protected random number, using a public key of an encryption certificate; a first transmission unit configured to transmit a first authentication request message to a first authentication server trusted by the authentication access controller, the first authentication request message including an identity information ciphertext of the requesting device and an identity information ciphertext of the authentication access controller, the identity information ciphertext of the authentication access controller being generated by encrypting data to be encrypted, the data including a digital certificate of the authentication access controller and a second protected random number, using a public key of an encryption certificate; a first receiving unit configured to receive a first authentication response message transmitted from the first authentication server, the first authentication response message including a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, where the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information including a first verification result against a digital certificate of the authentication access controller, the first digital signature is generated by the second authentication server performing a calculation on data to be signed including the first authentication result information ciphertext, the second authentication result information ciphertext is generated by encrypting information including the second authentication result information using the first protected random number, the second authentication result information including a second verification result against a digital certificate of the requesting device, and the second digital signature is generated by the first authentication server performing a calculation on data to be signed including the second authentication result information ciphertext; a first verification unit configured to verify the second digital signature using a public key of the first authentication server; a second transmission unit configured to transmit a third authentication response message to the requesting device after the second digital signature passes verification, the third authentication response message including an authentication result information ciphertext, and the authentication result information ciphertext is generated by encrypting encryption target data including the first authentication result information ciphertext, the first digital signature, and the second protected random number using a message encryption key; and a second receiving unit configured to receive a fourth authentication response message sent from the requesting device, the fourth authentication response message including a first protected random number ciphertext, the first protected random number ciphertext being obtained by encrypting information including the first protected random number using the message encryption key; and a decryption unit configured to decrypt the first protected random number ciphertext using the message encryption key to obtain the first protected random number, and to decrypt the second authentication result information ciphertext using the first protected random number to obtain the second authentication result information; and a first determination unit configured to determine an identity authentication result of the requesting device according to a second verification result in the second authentication result information.
[0009] According to a third aspect, embodiments of the present application provide a requesting device, the requesting device comprising: a first transmission unit configured to transmit an identity ciphertext message to an authentication access controller, the identity ciphertext message including an identity information ciphertext of the requesting device, the identity information ciphertext of the requesting device being generated by encrypting data to be encrypted, the data including the digital certificate of the requesting device and a first protected random number, using a public key of an encryption certificate; a first receiving unit configured to receive a third authentication response message transmitted from the authentication access controller, the third authentication response message including an authentication result information ciphertext, the authentication result information ciphertext being generated by encrypting encryption target data including a first authentication result information ciphertext, a first digital signature, and a second protected random number using a message encryption key, where the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information including a first verification result against a digital certificate of the authentication access controller, and the first digital signature is a digital signature generated by a second authentication server trusted by the requesting device by performing a calculation on signature target data including the first authentication result information ciphertext; a first decryption unit configured to decrypt the authentication result information ciphertext using the message encryption key to obtain the first authentication result information ciphertext, the first digital signature, and the second protected random number; A first verification unit, configured to verify the first digital signature using a public key of the second authentication server, and if the verification is passed, the first decryption unit uses the second protected random number to decrypt the first authentication result information ciphertext to obtain the first authentication result information; a first determination unit determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; and if the first determination unit determines that the identity authentication result of the authentication access controller is valid, a second transmission unit sends a fourth authentication response message to the authentication access controller; or configured to verify the first digital signature using a public key of the second authentication server, and if the verification is passed, a second sending unit sends a fourth authentication response message to the authentication access controller; the first decrypting unit decrypts the first authentication result information ciphertext using the second protected random number to obtain the first authentication result information; and a first determining unit determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; or configured to verify the first digital signature using a public key of the second authentication server, and if the first digital signature passes verification, the first decryption unit decrypts the first authentication result information ciphertext using the second protected random number to obtain the first authentication result information; a first determination unit determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; and a second transmission unit sends a fourth authentication response message to the authentication access controller; Here, the fourth authentication response message includes a first protected random number ciphertext, and the first protected random number ciphertext is obtained by encrypting information including the first protected random number using the message encryption key.
[0010] According to a fourth aspect, an embodiment of the present invention provides a first authentication server, the first authentication server being an authentication server trusted by an authentication access controller, the first authentication server comprising: a first receiving unit configured to receive a first authentication request message transmitted from an authentication access controller, the first authentication request message including a requesting device's identity information ciphertext and the authentication access controller's identity information ciphertext, the authentication access controller's identity information ciphertext being generated by encrypting data to be encrypted, the data including the authentication access controller's digital certificate and a second protected random number, with a public key of an encryption certificate, and the requesting device's identity information ciphertext being generated by encrypting data to be encrypted, the data including the requesting device's digital certificate and a first protected random number, with a public key of an encryption certificate; and a first transmitting unit configured to transmit a first authentication response message to the authentication access controller, the first authentication response message including a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, where the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information includes a first verification result against a digital certificate of the authentication access controller, the first digital signature is a digital signature generated by a second authentication server trusted by the requesting device by performing a calculation on signature target data including the first authentication result information ciphertext, the second authentication result information ciphertext is generated by encrypting information including the second authentication result information using the first protected random number, the second authentication result information includes a second verification result against the digital certificate of the requesting device, and the second digital signature is a digital signature generated by the first authentication server by performing a calculation on signature target data including the second authentication result information ciphertext.
[0011] According to a fifth aspect, an embodiment of the present invention provides a second authentication server, the second authentication server being an authentication server trusted by a requesting device, the first authentication server trusted by an authentication access controller and the second authentication server trusted by the requesting device being two different authentication servers, and the second authentication server is: a receiving unit configured to receive a second authentication request message sent from a first authentication server, the second authentication request message including a first authentication result information ciphertext, an identity information ciphertext of the requesting device, and a third digital signature, the third digital signature being a digital signature generated by the first authentication server by performing a calculation on signature target data including the first authentication result information ciphertext and the identity information ciphertext of the requesting device; a first verification unit configured to verify the third digital signature using a public key of the first authentication server; a decryption unit configured to decrypt the identity information ciphertext of the requesting device using a private key corresponding to an encryption certificate if the third digital signature passes verification, to obtain a digital certificate of the requesting device and a first protected random number; a second verification unit configured to perform validity verification on the digital certificate of the requesting device to obtain a second verification result; a generation unit configured to generate second authentication result information based on information including the second verification result, encrypt information including the second authentication result information using the first protected random number to generate a second authentication result information ciphertext, perform calculations on data to be signed including the first authentication result information ciphertext to generate a first digital signature, and perform calculations on data to be signed including the second authentication result information ciphertext to generate a fourth digital signature; a transmitting unit configured to transmit a second authentication response message to the first authentication server, the second authentication response message including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext and the fourth digital signature.
[0012] According to a sixth aspect, an embodiment of the present application provides an authentication access controller comprising a memory configured to store a computer program, and a processor configured to call and execute the computer program stored in the memory to perform the steps performed by the authentication access controller in the identity authentication method described in the first aspect.
[0013] According to a seventh aspect, an embodiment of the present application provides a requesting device comprising a memory configured to store a computer program, and a processor configured to call and execute the computer program stored in the memory to perform the steps performed by the requesting device in the identity authentication method described in the first aspect.
[0014] According to an eighth aspect, an embodiment of the present application provides a first authentication server that is an authentication server trusted by an authentication access controller, the first authentication server comprising a memory configured to store a computer program, and a processor configured to call and execute the computer program stored in the memory to perform the steps performed by the first authentication server in the identity authentication method described in the first aspect.
[0015] According to a ninth aspect, an embodiment of the present application provides a second authentication server which is an authentication server trusted by a requesting device, and when the first authentication server trusted by an authentication access controller and the second authentication server trusted by the requesting device are two different authentication servers, the second authentication server comprises a memory configured to store a computer program, and a processor configured to call and execute the computer program stored in the memory to perform the steps performed by the second authentication server in the identity authentication method described in the first aspect.
[0016] According to a tenth aspect, the present embodiment provides a chip including a processor, the processor calling and executing a computer program from a memory to cause an authentication access controller mounted on the chip to perform the steps performed by the authentication access controller in the identity authentication method according to the first aspect; or causing a requesting device equipped with the chip to carry out the steps carried out by the requesting device in the identity authentication method according to the first aspect; or causing a first authentication server equipped with the chip to execute the steps executed by the first authentication server in the identity authentication method according to the first aspect; or The chip is configured to cause a second authentication server equipped with the chip to perform the steps performed by the second authentication server in the identity authentication method according to the first aspect.
[0017] According to an eleventh aspect, the present embodiment provides a computer storage medium having stored thereon a computer program, the computer program causing an authentication access controller to perform the steps performed by the authentication access controller in the identity authentication method according to the first aspect, or The computer program causes a requesting device to perform the steps performed by the requesting device in the identity authentication method according to the first aspect; or The computer program causes a first authentication server to execute the steps executed by the first authentication server in the identity authentication method according to the first aspect, or The computer program causes a second authentication server to perform the steps performed by the second authentication server in the identity authentication method described in the first aspect.
[0018] According to a twelfth aspect, the present embodiment provides a computer program, the computer program causing an authentication access controller to perform the steps performed by the authentication access controller in the identity authentication method according to the first aspect, or The computer program causes a requesting device to perform the steps performed by the requesting device in the identity authentication method according to the first aspect; or The computer program causes a first authentication server to execute the steps executed by the first authentication server in the identity authentication method according to the first aspect, or The computer program causes a second authentication server to perform the steps performed by the second authentication server in the identity authentication method described in the first aspect. Effect of the Invention
[0019] As can be seen from the above technical solution, the identity information of the requesting device and the authentication access controller can be prevented from being exposed during transmission by performing confidential processing on both the identity information of the requesting device and the authentication access controller, and when transmitting the first verification result of the digital certificate of the authentication access controller and the second verification result of the digital certificate of the requesting device between the first authentication server and the authentication access controller and between the authentication access controller and the requesting device, the first verification result and the second verification result can be prevented from being exposed during transmission by performing confidential processing on the first verification result and the second verification result. This prevents an attacker from obtaining private confidential information in the process of the requesting device accessing the network through the authentication access controller, and the introduction of an authentication server realizes two-way real-time identity authentication between the requesting device and the authentication access controller while ensuring the confidentiality of the entity's identity-related information, providing a foundation for only legitimate users to communicate with the legitimate network.
[0020] In order to make the above objectives, special effects and advantages of the present invention clearer and easier to understand, preferred embodiments are described in detail below with reference to the drawings. [Brief description of the drawings]
[0021] [Figure 1] 1 is a schematic diagram of an identity authentication method according to an embodiment of the present invention; [Diagram 2] 2 is a schematic diagram of a method for negotiating a message encryption key between a requesting device (REQ) and an authenticated access controller (AAC) according to an embodiment of the present invention. [Diagram 3] FIG. 2 is a schematic diagram of an identity authentication method in a non-roaming case according to an embodiment of the present application; [Figure 4] FIG. 2 is a schematic diagram of another identity authentication method in a non-roaming case according to an embodiment of the present application; [Diagram 5] 2 is a schematic diagram of an identity authentication method in a roaming case according to an embodiment of the present application; [Figure 6] FIG. 2 is a schematic diagram of another identity authentication method in a roaming case according to an embodiment of the present application; [Figure 7] FIG. 2 is a schematic diagram of yet another identity authentication method in a non-roaming case according to an embodiment of the present application, where "*" indicates an optional field or an optional action; [Figure 8] FIG. 2 is a schematic diagram of yet another identity authentication method in a non-roaming case according to an embodiment of the present application, where "*" indicates an optional field or an optional action; [Figure 9] FIG. 1 is a schematic diagram of yet another identity authentication method in a roaming case according to an embodiment of the present application, where "*" indicates an optional field or an optional action; [Figure 10] FIG. 2 is a schematic diagram of yet another identity authentication method in a roaming case according to an embodiment of the present application, where "*" indicates an optional field or an optional action. [Figure 11] FIG. 2 is a block diagram of an authentication access controller (AAC) structure according to an embodiment of the present invention. [Figure 12] FIG. 2 is a block diagram of a requester (REQ) structure according to an embodiment of the present invention. [Figure 13] FIG. 2 is a block diagram of the structure of a first authentication server (AS-AAC) according to an embodiment of the present invention. [Figure 14] FIG. 2 is a block diagram of the structure of a second authentication server (AS-REQ) according to an embodiment of the present invention; [Figure 15] 1 is an exemplary structural diagram of an electronic device according to an embodiment of the present application; [Figure 16] 1 is an exemplary structural diagram of a chip according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] In order to more clearly describe the technical solutions in the embodiments of the present application or related technologies, the drawings used in the description of the embodiments or related technologies are briefly introduced above. Obviously, the drawings described above are only some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.
[0023] Hereinafter, the technical solutions in the embodiments of the present invention will be described with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall be included in the protection scope of the present invention.
[0024] The technical solutions described in the embodiments of the present application can be arbitrarily combined without being conflicting with each other.
[0025] In a communication network, a requesting device can access a network through an authentication access controller, and the authentication access controller needs to authenticate the identity of the requesting device to ensure that the requesting device accessing the network belongs to a legitimate user. Similarly, the requesting device also needs to authenticate the identity of the authentication access controller to ensure that the network that the requesting device accesses is a legitimate network.
[0026] Taking current wireless communication and mobile communication scenarios as an example, in a scenario 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 personal digital assistant (PDA), or a tablet computer, and the authentication access controller may be a network side device such as a wireless access point or a wireless router. In a scenario 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 computer or a notebook computer, and the authentication access controller may be a network side device such as a switch or a router. In a scenario 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 terminal device such as a mobile phone or a tablet computer, and the authentication access controller may be a network side device such as a base station. Of course, the present application is also applicable to various data communication scenarios such as other wired networks and short-range communication networks.
[0027] However, the identity information of the requesting device and the authenticating access controller is usually included in the digital certificates of the entities, which usually contain private and confidential information. In the two-way identity authentication process between the requesting device and the authenticating access controller, if the identity information of the requesting device or the authenticating access controller is intercepted and misused by an attacker, it will bring a serious security risk to the authenticating access controller, the requesting device and the network.
[0028] In order to solve the above technical problems, the present embodiment provides an identity authentication method, in which an authentication access controller obtains an identity ciphertext message sent from a requesting device, the identity ciphertext message includes an identity information ciphertext of the requesting device, and the identity information ciphertext of the requesting device is generated by encrypting data to be encrypted, including a digital certificate of the requesting device and a first protected random number, with a public key of an encryption certificate, thereby ensuring the security of the identity information of the requesting device transmitted between the requesting device and the authentication access controller. Then, the authentication access controller sends a first authentication request message to a first authentication server that it trusts, the first authentication request message includes an identity information ciphertext of the requesting device and an identity information ciphertext of the authentication access controller, and the identity information ciphertext of the authentication access controller is generated by encrypting data to be encrypted, including a digital certificate of the authentication access controller and a second protected random number, with a public key of an encryption certificate, thereby ensuring the security of the identity information of the requesting device and the identity information of the authentication access controller transmitted between the authentication access controller and the first authentication server.The authentication access controller receives a first authentication response message sent from the first authentication server, and the first authentication response message includes a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, where the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using a second protected random number, the first authentication result information includes a first verification result against the digital certificate of the authentication access controller, and the first digital signature is generated by a second authentication server trusted by the requesting device, for the signature target data including the first authentication result information ciphertext. the second authentication result information ciphertext is generated by encrypting information including the second authentication result information using a first protected random number, the second authentication result information including a second verification result for the digital certificate of the requesting device, and the second digital signature is a digital signature generated by the first authentication server by performing a calculation on data to be signed including the second authentication result information ciphertext, thereby ensuring the security of the verification results of the digital certificates of the authentication access controller and the requesting device, which are transmitted between the first authentication server and the authentication access controller.After receiving the first authentication response message, the authentication access controller verifies the second digital signature using the public key of the first authentication server, and after the verification is passed, sends a third authentication response message to the requesting device, where the third authentication response message includes an authentication result information ciphertext, and the authentication result information ciphertext is generated by encrypting data to be encrypted, including the first authentication result information ciphertext, the first digital signature, and the second protected random number, using a message encryption key, the requesting device decrypts the authentication result information ciphertext to obtain the first authentication result information ciphertext, the first digital signature, and the second protected random number, and uses the public key of the second authentication server to verify the first digital signature, and after the verification is passed, sends a third authentication response message to the requesting device, where the third authentication response message includes an authentication result information ciphertext, and the authentication result information ciphertext is generated by encrypting data to be encrypted, including the first authentication result information ciphertext, the first digital signature, and the second protected random number, the requesting device sends a fourth authentication response message to the authentication access controller, the fourth authentication response message including a first protected random number ciphertext, the first protected random number ciphertext being obtained by encrypting information including the first protected random number using a message encryption key, the authentication access controller decrypts the first protected random number ciphertext using the message encryption key to obtain the first protected random number, decrypts the second authentication result information ciphertext using the first protected random number to obtain second authentication result information, and determines the identity authentication result of the requesting device according to the second verification result in the second authentication result information.
[0029] The first authentication result information referred to in the embodiment of the present application is obtained by a first authentication server trusted by the authentication access controller performing validity verification on the digital certificate of the authentication access controller, and the second authentication result information is obtained by a second authentication server trusted by the requesting device performing validity verification on the digital certificate of the requesting device, and the above first authentication server and second authentication server may be two independent servers used for identity authentication, or may be the same server used for identity authentication. The above are merely examples of the requesting device, the authentication access controller, and the authentication server, and should not be construed as limitations on the requesting device, the authentication access controller, and the authentication server, and in other possible embodiments of the embodiment of the present application, the requesting device, the authentication access controller, and the authentication server may be other devices.
[0030] The identity authentication method according to the embodiment of the present application is to realize mutual identity authentication (MIA) between a requesting device and an authentication access controller.
[0031] For convenience of explanation, in the embodiment of the present application, a requester (REQ), an authentication access controller (AAC), and an authentication server (AS) are taken as examples to introduce the identity authentication method of the present application.
[0032] Here, the AS trusted by AAC is called the first authentication server (AS-AAC), and the AS trusted by REQ is called the second authentication server (AS-REQ). AS-AAC has the ability to verify the validity of AAC digital certificate, and AS-AAC has a digital certificate conforming to ISO / IEC 9594-8 / ITU X.509 or other standards or other technical systems and a private key corresponding to the digital certificate. AS-REQ has the ability to verify the validity of REQ digital certificate, and AS-REQ also has a digital certificate conforming to ISO / IEC 9594-8 / ITU X.509 or other standards or other technical systems and a private key corresponding to the digital certificate. AS-AAC and AS-REQ have the ability to transfer digital certificates to other ASs for verification, and also have the ability to transfer verification result information of digital certificates to other ASs. When AS-AAC and AS-REQ are different, AS-AAC and AS-REQ trust each other and know each other's digital certificates or public keys in the digital certificates. The CS-DEC (Certificate Server-Decrypt) has an encryption certificate and a private key corresponding to the encryption certificate that conforms to ISO / IEC 9594-8 / ITU X.509 or other standards or other technical systems, and the encryption certificate may be one or more, and the CS-DEC may be an independent server or may reside within the AS-AAC and / or AS-REQ.
[0033] The REQ may be one endpoint participating in the identity authentication process, which establishes a connection with the AAC, accesses the services provided by the AAC, and accesses the AS through the AAC. The REQ has a digital certificate conforming to ISO / IEC 9594-8 / ITU X.509 or other standards or other technical systems and a private key corresponding to the digital certificate, knows the public key in the digital certificate or digital certificate of the AS-REQ, and knows the public key in the encryption certificate or encryption certificate of the CS-DEC. The AAC may be another endpoint participating in the identity authentication process, which establishes a connection with the REQ, provides services, communicates with the REQ, and can directly access the AS-AAC. The AAC has a digital certificate conforming to ISO / IEC 9594-8 / ITU X.509 or other standards or other technical systems and a private key corresponding to the digital certificate, knows the public key in the digital certificate or digital certificate of the AS-AAC, and knows the public key in the encryption certificate or encryption certificate of the CS-DEC.
[0034] In the following, with reference to FIG. 1, a method for identity authentication according to an embodiment of the present application is described, which includes the following steps:
[0035] In step S101, the AAC obtains the identity ciphertext message REQInit sent from the REQ. The REQInit encrypts the identity information of the REQ. AS_REQ where EncPub AS_REQ REQ encrypts REQ's digital certificate Cert using the public key of the certificate. REQand the first protected random number. In this way, in the process of transmitting identity information between REQ and AAC, confidential processing is performed on the identity information of REQ, thereby preventing the identity information of REQ from being exposed in the process of accessing the network. In this application, the subject to encryption is called data to be encrypted.
[0036] In step S102, the AAC sends a first authentication request message AACVeri to an AS-AAC that it trusts. The AACVeri is EncPub AS_REQ and AAC identity information ciphertext EncPub AS_AAC Includes .EncPub AS_AAC AAC uses the public key of the encryption certificate to create the digital certificate of AAC, Cert AAC and the second protected random number by encrypting the encryption target data including the second protected random number. In this way, in the process of transmitting identity information between the AAC and the AS-AAC, confidential processing is performed on the identity information of each of the REQ and the AAC, thereby preventing the identity information of each of the REQ and the AAC from being exposed during transmission.
[0037] It should be noted that if the AS-REQ trusted by REQ and the AS-AAC trusted by AAC are the same authentication server, that is, both REQ and AAC trust the same authentication server, the authentication server jointly trusted by REQ and AAC can be represented by AS-AAC (which can also be represented by AS-REQ). In this case, the AS-AAC (which can also be represented by AS-REQ) can be used to access the EncPub AS_REQ and EncPub AS_AAC The certificate is sent to a certificate decryption server (CS-DEC) that has a dialogue and trust relationship with the certificate decryption server, and the decrypted Cert REQ , 1st protection random number, Cert AACand a second protected random number, or the CS-DEC resides in the AS-AAC (which may also be represented as an AS-REQ) and, by the AS-AAC (which may also be represented as an AS-REQ), performs an EncPub AS_REQ and EncPub AS_AAC Decrypt each one and create Cert REQ , 1st protection random number, Cert AAC and a second protection random number. AS-AAC (also called AS-REQ) is AAC Verify the authenticity of the Cert REQ to obtain a second verification result, generate first authentication result information based on information including the first verification result, generate second authentication result information based on information including the second verification result, encrypt the information including the first authentication result information using a second protected random number to generate a first authentication result information ciphertext, encrypt the information including the second authentication result information using the first protected random number to generate a second authentication result information ciphertext, and perform a calculation on data to be signed including the first authentication result information ciphertext to generate a first digital signature Sig. AS_AAC1 (Sig AS_REQ1 and performing a calculation on the data to be signed including the second authentication result information ciphertext to generate a second digital signature Sig AS_AAC2 (Sig AS_REQ2 and generating a first authentication result information ciphertext and a first digital signature Sig AS_AAC1 (Sig AS_REQ1 (can also be expressed as "second authentication result information ciphertext"), and the second digital signature Sig AS_AAC2 (Sig AS_REQ2 The first authentication response message ASVeri is generated based on information including the authentication request (which may also be expressed as
[0038] If AS-REQ, which REQ trusts, and AS-AAC, which AAC trusts, are two different authentication servers, AS-AAC AS_AAC The Cert AACand obtain a second protected random number, or the AS-AAC first performs EncPub using a private key corresponding to the encryption certificate of the CS-DEC residing in the AS-AAC. AS_AAC Decrypt the Cert AAC and the second protected random number can be obtained, and AS-AAC uses the Cert AAC to obtain a first verification result, generate first authentication result information according to information including the first verification result, and encrypt the information including the first authentication result information using a second protected random number to generate a first authentication result information ciphertext; and the AS-AAC sends a second authentication request message AS-AACVeri to the AS-REQ, and the AS-AACVeri sends the first authentication result information ciphertext, EncPub AS_REQ and the third digital signature, Sig AS_AAC3 Includes Sig AS_AAC3 In the case where AS-AAC is used, the first authentication result information ciphertext and EncPub AS_REQ After receiving the AS-AACVeri, the AS-REQ uses the public key of the AS-AAC to generate the signature target data including the Sig AS_AAC3 After passing the verification, the AS-REQ is AS_REQ The Cert REQ and obtain a first protected random number, or the AS-REQ performs EncPub using a private key corresponding to an encryption certificate of the CS-DEC residing in the AS-REQ. AS_REQ Decrypt the Cert REQ and obtain the first protected random number, and the AS-REQ is REQ to obtain a second verification result, generate second authentication result information based on information including the second verification result, encrypt the information including the second authentication result information using the first protected random number to generate a second authentication result information ciphertext, and perform a calculation on the data to be signed including the second authentication result information ciphertext to generate a fourth digital signature Sig. AS_REQ4 and performing a calculation on the data to be signed including the first authentication result information ciphertext to generate a first digital signature Sig AS_REQ1The AS-REQ sends a second authentication response message AS-REQVeri to the AS-AAC, and the AS-REQVeri generates a first authentication result information ciphertext, a first digital signature Sig AS_REQ1 , the second authentication result information ciphertext and the fourth digital signature Sig AS_REQ4 The AS-AAC uses the public key of the AS-REQ to AS_REQ4 After the verification is passed, a calculation is performed on the data to be signed, including the second authentication result information ciphertext, to generate a second digital signature Sig AS_AAC2 and generate a first authentication result information ciphertext and a first digital signature Sig AS_REQ1 , the second authentication result information ciphertext and the second digital signature Sig AS_AAC2 A first authentication response message ASVeri is generated based on information including:
[0039] In step S103, the AAC receives the first authentication response message ASVeri sent from the AS-AAC. The ASVeri includes a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext and a second digital signature.
[0040] In step S104, the AAC verifies the second digital signature using the public key of the AS-AAC. If the verification passes, the subsequent action is performed.
[0041] In step S105, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is an authentication result information encrypted text EncData AAC where EncData AACis generated by AAC using a message encryption key to encrypt data to be encrypted, including the first authentication result information ciphertext, the first digital signature, and the second protected random number, by adopting a symmetric encryption algorithm. The message encryption key may be obtained through negotiation between REQ and AAC, or may be shared in advance by REQ and AAC. An embodiment in which REQ and AAC negotiate the message encryption key will be introduced later.
[0042] In step S106, REQ encrypts the authentication result information using the message encryption key. AAC to obtain the first authentication result information ciphertext, the first digital signature, and the second protected random number. EncData AAC is obtained by calculating the AAC using a symmetric encryption algorithm with a message encryption key, and thus, REQ is AAC After receiving the message, a symmetric encryption algorithm is adopted using the message encryption key to obtain EncData AAC can be decrypted to obtain the first authentication result information ciphertext, the first digital signature, and the second protected random number.
[0043] In step S107, REQ verifies the first digital signature using the public key of AS-REQ.
[0044] In step S108, REQ uses the second protected random number to decrypt the first authentication result information ciphertext to obtain the first authentication result information, and determines the identity authentication result of AAC according to the first verification result in the first authentication result information.
[0045] In step S109, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth includes a first protected random number ciphertext, which is obtained by encrypting information including a first protected random number by the REQ using a message encryption key.
[0046] It should be noted that the execution order of S107 to S109 does not affect the realization of the present application, and the execution order of S107 to S109 can be set according to the needs of practical application. Preferably, S107 is executed first, and if the first digital signature fails to pass the verification by REQ, AACAuth is discarded, and if the first digital signature passes the verification by REQ, S108 is executed, and if REQ determines that AAC is valid, S109 is executed, and if REQ determines that AAC is invalid, REQ determines whether to execute S109 according to a local policy, and in consideration of efficiency, according to a preferred technical solution, S109 is not executed and the authentication process is terminated.
[0047] In step S110, the AAC decrypts the first protected random number ciphertext using the message encryption key to obtain a first protected random number, and decrypts the second authentication result information ciphertext using the first protected random number to obtain second authentication result information.
[0048] In step S111, the AAC determines the identity authentication result of the REQ according to the second verification result in the second authentication result information.
[0049] As can be seen from the above technical solution, when transmitting identity information between the requesting device and the authentication access controller, and between the authentication access controller and the authentication server, confidential processing is performed on both the identity information of the requesting device and the authentication access controller, thereby preventing the identity information of each of the requesting device and the authentication access controller from being exposed during transmission; when transmitting a first verification result of the digital certificate of the authentication access controller and a second verification result of the digital certificate of the requesting device between the authentication server and the authentication access controller, and between the authentication access controller and the requesting device, confidential processing is performed on the first verification result and the second verification result, thereby preventing the first verification result and the second verification result from being exposed during transmission. This prevents an attacker from obtaining private confidential information in the process of the requesting device accessing the network; and by introducing an authentication server, bidirectional real-time identity authentication between the requesting device and the authentication access controller is realized while ensuring the confidentiality of the entity's identity-related information, providing a foundation for only legitimate users to communicate with the legitimate network.
[0050] In some embodiments, REQInit in S101 includes a digital signature Sig of REQ. REQ and Sig REQ The data to be signed is the Sig REQ Then, before S111, AAC includes the other fields before Sig REQ It is necessary to determine whether Sig passes the verification, and S111 can be executed only if the verification is passed. It should be noted that if the AS-REQ and the AS-AAC are the same authentication server, the Sig REQ may be verified by AS-AAC (which can also be represented as AS-REQ) or by AAC. If AS-REQ and AS-AAC are two different authentication servers, the Sig REQmay be verified by the AS-REQ or by the AAC, where Sig REQ Determining whether passes validation includes the following schemes.
[0051] Sig by the authentication server REQ As an example of verifying this, when AS-REQ and AS-AAC are the same authentication server (i.e., non-roaming), AS-AAC (which can also be represented as AS-REQ) sends Sig REQ When verifying Sig REQ can be carried in the AAC Veri of S102 and forwarded to the AS-AAC (also represented as AS-REQ), and the AS-AAC (also represented as AS-REQ) can be transferred to the EncPub AS_REQ Cert obtained by decrypting REQ Using the above Sig REQ If the verification is successful, the subsequent operations are performed to generate and transmit the first authentication response message, and if the verification is unsuccessful, the subsequent operations are not performed, and the steps of generating and transmitting the first authentication response message are not performed. Therefore, the AAC can determine whether the Sig REQ If the AAC can receive the first authentication response message ASVeri, the AAC can determine whether the Sig REQ It may be determined that the verification has been passed.
[0052] The authentication server uses Sig REQ As another example of verifying Sig., if AS-REQ and AS-AAC are two different authentication servers (i.e., roaming), REQ When verifying Sig REQ The AS-REQ may be transferred to the AS-REQ by being carried in the AACVeri of S102 and the AS-AACVeri sent by the AS-AAC to the AS-REQ, and the AS-REQ may be transferred to the AS-REQ by being carried in the AACVeri of S102 and the AS-AACVeri sent by the AS-AAC to the AS-REQ. AS_REQ Cert obtained by decrypting REQ Using the above Sig REQIf the verification is successful, the subsequent operations are performed, such as generating and sending a second authentication response message and a subsequent first authentication response message, and if the verification is unsuccessful, the subsequent operations are not performed, such as generating and sending a second authentication response message and a subsequent first authentication response message. Thus, the AAC can determine whether the Sig REQ If the AAC can receive the first authentication response message ASVeri, the AAC can determine whether the Sig REQ It may be determined that the verification has been passed.
[0053] AAC is Sig REQ As an example to verify this, AAC uses Sig REQ When verifying the Cert REQ Then, after the AAC receives REQAuth in S109, the Cert in the second authentication result information obtained by decrypting the second authentication result information ciphertext is REQ Using the above Sig REQ , and therefore, Sig REQ It can be determined whether or not the verification passes.
[0054] In some other embodiments, the REQAuth in S109 is a digital signature Sig of the REQ. REQ and Sig REQ The data to be signed is the Sig REQ In this case, the second authentication result information generated by the authentication server is stored in the Cert REQ Then, before S111, the AAC further includes: REQ Using the above Sig REQ According to the verification result, Sig REQ It is possible to determine whether the verification passes or not, and execute S111 only if the verification passes.
[0055] In some embodiments, the AAC Veri of S102 is a digital signature Sig of AAC. AAC and Sig AAC The data to be signed is Sig AAC Then, before S108, REQ further includes Sig AAC It is necessary to determine whether REQ passes the verification, and S108 can be executed only if the verification is passed. AAC Determining whether or not the verification is passed includes the following methods: AAC trusts AS-AAC and EncPub in AACVeri is verified. AS_AAC Cert obtained by decrypting AAC Using the above Sig AAC , and executes the subsequent process only after the verification is passed. Therefore, if REQ can receive AACAuth of S105, REQ can receive Sig AAC determines that the verification has been passed.
[0056] In some other embodiments, the AACAuth in S105 is a digital signature Sig of the AAC. AAC and Sig AAC The data to be signed is Sig in AACAuth. AAC The first authentication result information generated by the authentication server includes other fields before Cert AAC Then, before the REQ determines the identity authentication result of the AAC in S108, the REQ further includes Sig AAC It is necessary to determine whether REQ passes the verification, and only if the verification passes, the identity authentication result of AAC can be determined according to the first verification result. Here, REQ is Sig AAC Determining whether REQ passes the verification includes the following manner: AAC Using the above Sig AAC Verify and use Sig according to the verification result. AACDetermine whether or not the verification passes.
[0057] Referring to FIG. 1, the messages transferred between the REQ, AAC, and authentication server may further include parameter information such as random numbers generated by the AAC and / or REQ, and respective identity identifiers. In normal cases, in the identity authentication process, these random numbers and / or identity identifiers should not be changed in the process of being transmitted through each message, but when network jitter, attacks, etc. occur, parameter information such as the random numbers and / or identity identifiers in the messages may be lost or tampered with. Therefore, when performing identity authentication, the consistency of the identity identifiers and / or random numbers in the messages may be further verified to ensure the reliability and freshness of the authentication results.
[0058] For example, in REQInit of S101, EncPub AS_REQ The data to be encrypted is the identity identifier ID of the REQ REQ and the third protection random number Nonce REQID Nonce REQID ID REQ Correspondingly, the ASVeri of S103 may further include an identity identifier ciphertext of the REQ, for example, the identity identifier ciphertext of the REQ may be used to encrypt the ID REQ and Nonce REQID The result of the XOR operation of
number
[0059] Similarly, in AAC Veri of S102, EncPub AS_AAC The data to be encrypted is the AAC identity identifier ID AAC and the fourth protection random number Nonce AACID Nonce AACID ID AAC Correspondingly, the ASVeri of S103 may further include an identity identifier ciphertext of the AAC, for example, the identity identifier ciphertext of the AAC may be used to encrypt the ID AAC and Nonce AACID The result of the XOR operation of
number
[0060] In some embodiments, the REQInit in S101 is a second random number Nonce generated by the REQ REQ The AACVeri in S102 is a first random number Nonce generated by the AAC. AAC and the Nonce REQ Correspondingly, the ASVeri of S103 includes the Nonce REQ and the Nonce AAC In AACAuth of S105, EncData AAC The data to be encrypted is the Nonce REQ Then, after receiving the ASVeri of S103, the AAC further includes the nonce in the ASVeri. AAC and the nonce generated by AAC AAC (That is, the nonce sent by AAC via AACVeri AACIf the verification is successful, the AAC executes the step of determining the identity authentication result of the REQ in S111. Then, after receiving the AACAuth in S105, the REQ further executes the step of determining the identity authentication result of the EncData AAC The Nonce obtained by decrypting REQ and the nonce generated by REQ REQ (That is, the nonce that REQ sent via REQInit REQ ) and if the verification is successful, REQ performs a step of determining the identity authentication result of AAC in S108.
[0061] In some embodiments, in order to ensure the reliability of the authentication result, the AAC can generate a message integrity check code. For example, the AACAuth in S105 generates a first message integrity check code MacTag AAC It may further include MacTag. AAC AAC uses the message integrity check key to check the MacTag of AACAuth. AAC The REQ is generated by computing the MACTag field. AAC After the verification is passed, the step of determining the identity authentication result of the AAC is performed in S108. AAC When verifying the message integrity check key, the MacTag of AACAuth is AAC By calculating against other fields other than MacTag AAC should be generated, and the computed MacTag AAC and the MacTag in the received AACAuth AAC If they match, it is determined that the verification has passed, and if they do not match, it is determined that the verification has failed.
[0062] Similarly, the REQ may further generate a message integrity check code. For example, the REQAuth in S109 may generate a second message integrity check code MacTag REQ It may further include MacTag. REQ REQ uses the message integrity check key to check the MacTag of REQAuth. REQ The AAC algorithm is generated by calculating the other fields except for MacTag. REQ After the verification is passed, the step of determining the identity authentication result of the REQ is performed in S111. REQ When verifying the message integrity check key, the MacTag of REQAuth is REQ By calculating against other fields other than MacTag REQ should be generated, and the computed MacTag REQ and the MacTag in the received REQAuth REQ If they match, it is determined that the verification has been passed, and if they do not match, it is determined that the verification has not been passed. Here, the method by which REQ and AAC generate a message integrity check key will be introduced in the next embodiment.
[0063] The message encryption key in the above embodiment can be obtained by negotiation between REQ and AAC, therefore, this embodiment further provides a method for negotiating a message encryption key between REQ and AAC, and referring to FIG. 2, the method includes the following steps:
[0064] In step S201, the AAC sends a key request message AACInit to the REQ. The AACInit is a key exchange parameter KeyInfo of AAC. AAC Contains KeyInfo AACcontains the temporary public key of the AAC. Here, the key exchange refers to a key exchange algorithm such as Diffie-Hellman (abbreviated as DH). The AACInit is the first random number Nonce generated by the AAC. AAC It may further include: AACInit is a company that provides security capabilities AAC Security capabilities AAC indicates the security capability parameter information supported by the AAC, including the identity authentication suite (identity authentication suite includes one or more identity authentication methods), symmetric encryption algorithm, integrity check algorithm and / or key derivation algorithm supported by the AAC, so that the REQ selects a specific security strategy to be used by itself, in this case, the REQ is Security capabilities AAC The specific security policy used by REQ according to the Security capabilities REQ You can select the security capabilities. REQ indicates the identity authentication method, symmetric encryption algorithm, integrity check algorithm and / or key derivation algorithm, etc., that has been determined to be used by the REQ.
[0065] In step S202, the REQ is REQ A temporary private key corresponding to KeyInfo AAC based on the temporary public key included in the message encryption key, perform a key exchange calculation to generate a first key, and calculate a message encryption key using a key derivation algorithm based on information including the first key.
[0066] AACInit in S201 is the nonce generated by AAC AAC If the REQ further contains KeyInfo REQ A temporary private key corresponding to KeyInfoAAC Based on the temporary public key contained in AAC and the second random number Nonce generated by REQ REQ The message encryption key can be calculated using a negotiated or pre-configured key derivation algorithm in combination with the information including the Security capabilities sent by the AAC in the REQ. AAC where KeyInfo may be a key derivation algorithm selected according to REQ is the key exchange parameters generated by REQ, including REQ's ephemeral public key. REQ The temporary private key corresponding to REQ is a temporary private key corresponding to the temporary public key of REQ generated by REQ, that is, the temporary public key and the temporary private key are a pair of temporary public key and private key.
[0067] In step S203, REQ sends an identity ciphertext message REQInit to the AAC. The REQInit includes KeyInfo REQ This allows AAC to use KeyInfo AAC The temporary private key and KeyInfo corresponding to REQ The message encryption key can be obtained by performing calculations according to the information including the temporary public key contained in KeyInfo. AAC The temporary private key corresponding to AAC is a temporary private key generated by AAC and corresponding to the temporary public key of AAC, that is, the temporary public key and the temporary private key are a pair of temporary public key and private key. The REQInit command specifies the Security capabilities REQ The REQInit may further include a Nonce REQ Thus, the AAC can further include the KeyInfo AAC A temporary private key corresponding to the KeyInfo REQ The temporary public key contained in the Nonce AACand the Nonce REQ The message encryption key can be obtained by performing calculations according to information including:
[0068] The REQInit is the Nonce AAC and the AAC may further include a Nonce in REQInit before calculating the message encryption key. AAC and the nonce generated by AAC AAC This makes it possible to ensure that the REQInit received by the AAC is a response message to the AACInit.
[0069] In step S204, the AAC AAC A temporary private key corresponding to KeyInfo REQ a first key, and calculates a message encryption key using the key derivation algorithm based on information including the first key.
[0070] The REQInit is the Nonce REQ If the AAC further includes the KeyInfo AAC and a temporary private key corresponding to the KeyInfo REQ and performing a key exchange calculation to generate the first key K1 based on a temporary public key contained in AAC and the Nonce REQ The negotiated key derivation algorithm may be calculated using a negotiated or pre-configured key derivation algorithm in combination with the information including the Security capabilities sent by the AAC in the REQ. REQ The key derivation algorithm may be selected according to
[0071] It should be noted that in the embodiment of FIG. 2, REQ and AAC can also generate a message integrity check key. The embodiment in which REQ and AAC each generate a message integrity check key is the same as the embodiment in which REQ and AAC each generate a message encryption key in the embodiment of FIG. 2. For example, AAC can use a key derivation algorithm in the manner of the embodiment of FIG. 2 to derive one string of key data, which may be used as both the message encryption key and the message integrity check key, or a part of the key data in the key data can be used as the message encryption key and the other part of the key data can be used as the message integrity check key. AAC can also use a key derivation algorithm in the manner of the embodiment of FIG. 2 to separately derive two identical or different strings of key data, which are key data, and use one of the strings as the message encryption key and the other string as the message integrity check key. REQ can use a key derivation algorithm to derive one string of key data in the manner of the embodiment of Figure 2, and the key data can be used as both the message encryption key and the message integrity check key, or can use a part of the key data in the key data as the message encryption key and another part of the key data as the message integrity check key. REQ can also use a key derivation algorithm to derive two identical or different strings of key data separately in the manner of the embodiment of Figure 2, and use one of the strings as the message encryption key and the other string as the message integrity check key.
[0072] The present embodiment further provides a method for determining the first authentication server and / or the second authentication server to be used in the current authentication process through information exchange between the AAC and the REQ.
[0073] Referring to FIG. 2, the AAC receives an identity identifier ID of at least one authentication server that the AAC trusts. AS_AAC When you add this to the AACInit of S201, REQ will beAS_AAC The identity identifier ID of at least one authentication server that the REQ itself trusts according to AS_REQ In the implementation, the REQ determines the ID AS_AAC , select the identity identifier of at least one authentication server that the REQ itself trusts, and AS_REQ If the selection fails, the REQ uses the identity identifier of at least one authentication server that it trusts as the ID AS_REQ (where successful selection corresponds to the non-roaming case, and unsuccessful selection corresponds to the roaming case), and AS_REQ The AAC adds the ID to the REQInit of S203 and sends it to the AAC. AS_AAC and ID AS_REQ For example, the AAC can determine the first authentication server according to ID AS_REQ and ID AS_AAC The REQ and the AAC may determine whether the REQ and the AAC have at least one identity identifier of the same authentication server. If so, it is a non-roaming case, and the AAC determines a first authentication server to participate in identity authentication from the identity identifier of at least one authentication server jointly trusted by the REQ and the AAC. If not, it is a roaming case, and the AAC may determine a first authentication server to participate in identity authentication from the identity identifier of at least one authentication server jointly trusted by the REQ and the AAC. AS_AAC According to the above, a first authentication server AS-AAC that will participate in the identity authentication is determined, and the ID AS_REQ must be sent to the AS-AAC, which then receives the ID AS_REQ The second authentication server AS-REQ can be determined according to the following.
[0074] In another embodiment, the AAC may include an ID in the REQ. AS_AAC Instead, the REQ requires the sending of an identity identifier ID of at least one authentication server that the REQ itself trusts. AS_REQ can be added to REQInit of S203. ID AS_REQ and the identity identifier ID of the authentication server that AAC itself trusts AS_AACAccording to the above, determining the first authentication server and / or the second authentication server to participate in the identity authentication process is the same as the above embodiment.
[0075] For ease of explanation, in the following examples, Cert AAC The first verification result obtained by verifying the validity of Res AAC and the first authentication result information is Pub AAC and Cert REQ The second verification result obtained by verifying the validity of Res REQ and the second authentication result information is Pub REQ This is expressed as:
[0076] Since the authentication servers trusted by REQ and AAC may be the same or different, when the authentication servers trusted by REQ and AAC are the same, it is a non-roaming case, and when the authentication servers trusted by REQ and AAC are different, it is a roaming case.
[0077] In the non-roaming case, the authentication server jointly trusted by REQ and AAC can be represented as AS-AAC (or AS-REQ), and the identity authentication process uses the digital signature Sig of REQ. REQ and AAC Digital Signature Sig AAC For example, Sig can be verified by AS-AAC (which can also be represented as AS-REQ). REQ and Sig AAC or Sig by AAC. REQ Validate and send Sig by REQ AAC may be verified.
[0078] Referring to FIG. 3, in the non-roaming case, Sig REQ Validate and send Sig by REQ AACAn embodiment of an identity authentication method for verifying the above is shown, and before performing the embodiment, both REQ and AAC have a message encryption key, which may be a message encryption key that REQ and AAC have shared in advance or that has been negotiated by the method shown in FIG. 2, and the identity authentication method includes the following steps:
[0079] In step S301, the AAC obtains the identity ciphertext message REQInit sent from the REQ. The REQInit encrypts the identity information of the REQ. AS_REQ and the digital signature of the REQ, Sig REQ Includes.
[0080] In step S302, the AAC sends a first authentication request message AACVeri to the AS-AAC. The AACVeri is EncPub AS_REQ and AAC identity information ciphertext EncPub AS_AAC Includes.
[0081] In step S303, the AS-AAC performs EncPub AS_REQ and EncPub AS_AAC Decrypt the Cert REQ , the first protection random number Nonce REQPub , Cert AAC and the second protection random number Nonce AACPub Get the Cert AAC and Cert REQ Perform correctness verification for each of Res AAC and Res REQ Get the Cert AAC and Res AAC Based on information including Pub AAC Generate and Cert REQ and Res REQ Based on information including Pub REQ Generate a Nonce AACPubUsing Pub AAC to generate a first authentication result information ciphertext, and REQPub Using Pub REQ to generate a second authentication result information ciphertext, and to generate a first digital signature Sig by performing a calculation on the data to be signed including the first authentication result information ciphertext. AS_AAC1 and performing a calculation on the data to be signed including the second authentication result information ciphertext to generate a second digital signature Sig AS_AAC2 Generate.
[0082] In step S304, the AAC receives the first authentication response message ASVeri sent from the AS-AAC. The ASVeri converts the first authentication result information ciphertext, Sig AS_AAC1 , the second authentication result information ciphertext and Sig AS_AAC2 Includes.
[0083] In step S305, the AAC uses the public key of the AS-AAC to generate a Sig AS_AAC2 If the verification is successful, the first authentication result information ciphertext, Sig AS_AAC1 and Nonce AACPub The encryption target data including the authentication result information is encrypted as ciphertext EncData AAC Generate EncData AAC Calculate the data to be signed, including Sig AAC Generate.
[0084] In step S306, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is the EncData AAC and the Sig AAC Includes.
[0085] In step S307, the REQ is converted into EncData using the message encryption key. AAC Decrypt the first authentication result information ciphertext, Sig AS_AAC1 and Nonce AACPubGet the.
[0086] In step S308, the REQ is AACPub Using the above, the first authentication result information ciphertext is decrypted to obtain Pub AAC Get the.
[0087] In step S309, the REQ is AAC Cert in AAC Using Sig AAC and then uses the AS-AAC public key to verify Sig AS_AAC1 Verify. If all the verifications pass, execute S310.
[0088] In step S310, the REQ is AAC Res in AAC According to the above, the identity authentication result of the AAC is determined. If the REQ determines that the AAC is valid, execute S311, and if the REQ determines that the AAC is not valid, end the current authentication process.
[0089] In step S311, the REQ uses the message encryption key to generate a first protection random number Nonce REQPub The information is encrypted to obtain a first protected random number ciphertext EncData REQ Get the.
[0090] In step S312, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth is REQ Includes.
[0091] In step S313, the AAC uses the message encryption key to generate EncData REQ Decrypt the Nonce REQPub Get the Nonce REQPub Decrypt the second authentication result information ciphertext using Pub REQ Get the.
[0092] In step S314, AAC REQ Cert in REQ Using the above Sig REQ Verify. If the verification is passed, execute S315.
[0093] In step S315, AAC REQ Res in REQ According to the above, the identity authentication result of REQ is determined.
[0094] It should be noted that S301 REQInit has Sig REQ Instead of including Sig in REQAuth of S312, REQ That is, in S312, REQ first adds EncData in REQAuth. REQ Calculate the data to be signed, including Sig REQ In this case, the Sig verified by AAC in S314 is generated. REQ is the Sig in REQAuth of S312 REQ It is.
[0095] Referring to FIG. 4, in the non-roaming case, Sig REQ and Sig AAC Another embodiment of an identity authentication method for verifying an identity of a REQ and an AAC is shown, in which before performing the embodiment, the REQ and the AAC both have a message encryption key, and the message encryption key may be one that the REQ and the AAC have shared in advance or one that has been negotiated by the method shown in FIG. 2, and the identity authentication method includes the following steps:
[0096] In step S401, the AAC obtains the identity ciphertext message REQInit sent from the REQ. The REQInit encrypts the identity information of the REQ. AS_REQ and the digital signature of the REQ, SigREQ Includes.
[0097] In step S402, the AAC sends a first authentication request message AACVeri to the AS-AAC. The AACVeri includes REQInit, AAC identity information ciphertext EncPub AS_AAC and AAC Digital Signature Sig AAC The Sig AAC AAC is a Sig in the AACVeri AAC It is generated by calculating it over other fields before
[0098] In step S403, the AS-AAC uses a private key corresponding to the encryption certificate to perform EncPub AS_REQ and EncPub AS_AAC Decrypt the Cert REQ , the first protection random number Nonce REQPub , Cert AAC and the second protection random number Nonce AACPub Get the Cert REQ Using the above Sig REQ Verify the Cert AAC Using the above Sig AAC Verify. If all the checks pass, execute S404.
[0099] In step S404, the AS-AAC AAC and Cert REQ Verify the validity of Res AAC and Res REQ Get Res AAC Based on information including Pub AAC Generate Res REQ Based on information including Pub REQ Generate a Nonce AACPub Using Pub AAC to generate a first authentication result information ciphertext, and REQPub Using Pub REQto generate a second authentication result information ciphertext, and to generate a first digital signature Sig by performing a calculation on the data to be signed including the first authentication result information ciphertext. AS_AAC1 and performing a calculation on the data to be signed including the second authentication result information ciphertext to generate a second digital signature Sig AS_AAC2 Generate.
[0100] In step S405, the AAC receives the first authentication response message ASVeri sent from the AS-AAC. The ASVeri converts the first authentication result information ciphertext, Sig AS_AAC1 , the second authentication result information ciphertext and Sig AS_AAC2 Includes.
[0101] In step S406, the AAC uses the public key of the AS-AAC to generate a Sig AS_AAC2 If the verification is successful, the first authentication result information ciphertext, Sig AS_AAC1 and Nonce AACPub The encryption target data including the authentication result information is encrypted as ciphertext EncData AAC Generate.
[0102] In step S407, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is the EncData AAC Includes.
[0103] In step S408, the REQ is converted into EncData using the message encryption key. AAC Decrypt the first authentication result information ciphertext, Sig AS_AAC1 and Nonce AACPub Get the.
[0104] In step S409, the REQ is Sig using the public key of the AS-AAC. AS_AAC1 Verify. If the verification is successful, execute S410.
[0105] In step S410, the REQ is AACPub Using the above, the first authentication result information ciphertext is decrypted to obtain Pub AAC Get the.
[0106] In step S411, the REQ is AAC Res in AAC According to the above, the identity authentication result of the AAC is determined. If the REQ determines that the AAC is valid, execute S412, and if the REQ determines that the AAC is not valid, end the current authentication process.
[0107] In step S412, the REQ uses the message encryption key to generate a first protection random number Nonce REQPub The information is encrypted to obtain a first protected random number ciphertext EncData REQ Get the.
[0108] In step S413, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth is REQ Includes.
[0109] In step S414, the AAC uses the message encryption key to generate EncData REQ Decrypt the Nonce REQPub Get the Nonce REQPub Decrypt the second authentication result information ciphertext using Pub REQ Get the.
[0110] In step S415, AAC REQ Res in REQ According to the above, the identity authentication result of REQ is determined.
[0111] In the case of roaming, the AS-AAC and the AS-REQ trust each other and know each other's digital certificate or public key in the digital certificate. Also, in the identity authentication process, the digital signature Sig of the REQ is used.REQ and AAC Digital Signature Sig AAC For example, the Sig REQ Validate and use AS-AAC to generate Sig AAC or Sig by AAC. REQ Validate and send Sig by REQ AAC may be verified.
[0112] Referring to FIG. 5, in the case of roaming, Sig REQ Validate and send Sig by REQ AAC An embodiment of an identity authentication method for verifying the above is shown, and before performing the embodiment, both REQ and AAC have a message encryption key, which may be a message encryption key that REQ and AAC have shared in advance or that has been negotiated by the method shown in FIG. 2, and the identity authentication method includes the following steps:
[0113] In step S501, the AAC obtains the identity ciphertext message REQInit sent from the REQ. The REQInit encrypts the identity information of the REQ. AS_REQ , the identity identifier ID of at least one authentication server that the REQ trusts AS_REQ and the digital signature of the REQ, Sig REQ Includes.
[0114] In step S502, the AAC sends a first authentication request message AACVeri to the AS-AAC. The AACVeri is EncPub AS_REQ , ID AS_REQ and AAC identity information ciphertext EncPub AS_AAC Includes.
[0115] In step S503, the AS-AAC AS_AAC Decrypt the Cert AACand the second protection random number Nonce AACPub Get the.
[0116] In step S504, the AS-AAC AAC Verify the validity of Res AAC Get the Cert AAC and Res AAC Based on information including Pub AAC Generate a Nonce AACPub Using Pub AAC to generate a first authentication result information ciphertext, and AS_REQ A third digital signature Sig is obtained by performing a calculation on the data to be signed, including AS_AAC3 Generate.
[0117] In step S505, the AS-AAC sends a second authentication request message AS-AACVeri to the AS-REQ. AS-AAC is the ID AS_REQ According to the above, the second authentication server (AS-REQ) to be used in the current authentication process can be determined, and the AS-AACVeri can be sent to the AS-REQ. The AS-AACVeri can be a first authentication result information ciphertext, EncPub AS_REQ and Sig AS_AAC3 Includes.
[0118] In step S506, the AS-REQ is Sig using the public key of the AS-AAC. AS_AAC3 Verify. If the verification is passed, S507 is executed.
[0119] In step S507, the AS-REQ is AS_REQ Decrypt the Cert REQ and the first protection random number Nonce REQPub Get the.
[0120] In step S508, the AS-REQ is REQ Verify the validity of Res REQ Get the CertREQ and Res REQ According to information including Pub REQ Generate a Nonce REQPub Using Pub REQ and generating a second authentication result information ciphertext by encrypting information including the first authentication result information ciphertext, and performing a calculation on the data to be signed including the first authentication result information ciphertext to generate a first digital signature Sig. AS_REQ1 and performing a calculation on the data to be signed including the second authentication result information ciphertext to generate a fourth digital signature Sig AS_REQ4 Generate.
[0121] In step S509, the AS-REQ sends a second authentication response message AS-REQVeri to the AS-AAC. The AS-REQVeri is a first authentication result information ciphertext, Sig AS_REQ1 , the second authentication result information ciphertext and Sig AS_REQ4 Includes.
[0122] In step S510, the AS-AAC uses the public key of the AS-REQ to generate a Sig AS_REQ4 Verify. If the verification is passed, execute S511.
[0123] In step S511, the AS-AAC performs calculations on the data to be signed, including the second authentication result information ciphertext, to generate a second digital signature Sig AS_AAC2 and generate the first authentication result information ciphertext, Sig AS_REQ1 , the second authentication result information ciphertext and Sig AS_AAC2 A first authentication response message ASVeri is generated based on information including:
[0124] In step S512, the AS-AAC sends a first authentication response message ASVeri to the AAC.
[0125] In step S513, the AAC uses the public key of the AS-AAC to generate a Sig AS_AAC2 If the verification is successful, the first authentication result information ciphertext, SigAS_REQ1 and Nonce AACPub The encryption target data including the authentication result information is encrypted as ciphertext EncData AAC Generate EncData AAC Calculate the data to be signed, including Sig AAC Generate.
[0126] In step S514, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is the EncData AAC and the Sig AAC Includes.
[0127] In step S515, the REQ is converted into EncData using the message encryption key. AAC Decrypt the first authentication result information ciphertext, Sig AS_REQ1 and Nonce AACPub Get the.
[0128] In step S516, the REQ is AACPub Using the above, the first authentication result information ciphertext is decrypted to obtain Pub AAC Get the.
[0129] In step S517, the REQ is AAC Cert in AAC Using Sig AAC Verify the AS-REQ public key and send the Sig AS_REQ1 Verify. If all the verifications pass, execute S518.
[0130] In step S518, the REQ is AAC Res in AAC According to the above, the identity authentication result of the AAC is determined. If the REQ determines that the AAC is valid, execute S519, and if the REQ determines that the AAC is not valid, end the current authentication process.
[0131] In step S519, the REQ uses the message encryption key to generate a first protection random number Nonce REQPub The information is encrypted to obtain a first protected random number ciphertext EncData REQ Get the.
[0132] In step S520, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth is REQ Includes.
[0133] In step S521, the AAC uses the message encryption key to generate EncData REQ Decrypt the Nonce REQPub Get the Nonce REQPub Decrypt the second authentication result information ciphertext using Pub REQ Get the.
[0134] In step S522, AAC REQ Cert in REQ Using the above Sig REQ Verify. If the verification is successful, execute S523.
[0135] In step S523, AAC REQ Res in REQ According to the above, the identity authentication result of REQ is determined.
[0136] It should be noted that Sig REQ Instead of including Sig in REQAuth of S520, REQ That is, in S520, REQ first adds EncData in REQAuth. REQ Calculate the data to be signed, including Sig REQ In this case, the Sig verified by AAC in S522 is generated. REQ is Sig in REQAuth of S520 REQIt is.
[0137] Referring to FIG. 6, in the case of roaming, Sig AAC Validate the Sig by AS-REQ. REQ Another embodiment of an identity authentication method for verifying the above is shown, and before performing the embodiment, both REQ and AAC have a message encryption key, which may be one that REQ and AAC have shared in advance or one that has been negotiated by the method shown in FIG. 2, and the identity authentication method includes the following steps:
[0138] In step S601, the AAC obtains the identity ciphertext message REQInit sent from the REQ. The REQInit encrypts the identity information of the REQ. AS_REQ , the identity identifier ID of at least one authentication server that the REQ trusts AS_REQ and the digital signature of the REQ, Sig REQ Includes.
[0139] In step S602, the AAC sends a first authentication request message AACVeri to the AS-AAC. The AACVeri includes REQInit, AAC identity information ciphertext EncPub AS_AAC and AAC Digital Signature Sig AAC The Sig AAC AAC is a Sig in the AACVeri AAC It is generated by calculating it over other fields before
[0140] In step S603, the AS-AAC AS_AAC Decrypt the Cert AAC and the second protection random number Nonce AACPub Get the Cert AAC Using the above Sig AAC Verify. If the verification is successful, execute S604.
[0141] In step S604, the AS-AAC AAC Verify the validity of Res AAC Get Res AAC Based on information including Pub AAC Generate a Nonce AACPub Using Pub AAC and performing calculations on the first authentication result information ciphertext and the data to be signed including REQInit to generate a third digital signature Sig AS_AAC3 Generate.
[0142] In step S605, the AS-AAC sends a second authentication request message AS-AACVeri to the AS-REQ. AS-AAC is the ID AS_REQ According to the above, the second authentication server (AS-REQ) to be used in the current authentication process can be determined, and the AS-AACVeri can be sent to the AS-REQ. The AS-AACVeri includes the REQInit, the first authentication result information ciphertext, and the Sig AS_AAC3 Includes.
[0143] In step S606, the AS-REQ is Sig using the public key of the AS-AAC. AS_AAC3 Verify. If the verification is passed, execute S607.
[0144] In step S607, the AS-REQ sends the EncPub AS_REQ Decrypt the Cert REQ and the first protection random number Nonce REQPub Get the Cert REQ Using Sig in REQInit REQ Verify. If the verification is successful, execute S608.
[0145] In step S608, the AS-REQ isREQ Verify the validity of Res REQ Get Res REQ Based on information including Pub REQ Generate a Nonce REQPub Using Pub REQ and generating a second authentication result information ciphertext by encrypting information including the first authentication result information ciphertext, and performing a calculation on the data to be signed including the first authentication result information ciphertext to generate a first digital signature Sig. AS_REQ1 and performing a calculation on the data to be signed including the second authentication result information ciphertext to generate a fourth digital signature Sig AS_REQ4 Generate.
[0146] In step S609, the AS-REQ sends a second authentication response message AS-REQVeri to the AS-AAC. The AS-REQVeri is a first authentication result information ciphertext, Sig AS_REQ1 , the second authentication result information ciphertext and Sig AS_REQ4 Includes.
[0147] In step S610, the AS-AAC uses the public key of the AS-REQ to generate a Sig AS_REQ4 Verify. If the verification is successful, execute S611.
[0148] In step S611, the AS-AAC performs calculations on the data to be signed, including the second authentication result information ciphertext, to generate a second digital signature Sig AS_AAC2 and generate the first authentication result information ciphertext, Sig AS_REQ1 , the second authentication result information ciphertext and Sig AS_AAC2 A first authentication response message ASVeri is generated based on the information including:
[0149] In step S612, the AS-AAC sends a first authentication response message ASVeri to the AAC.
[0150] In step S613, the AAC uses the public key of the AS-AAC to generate a Sig AS_AAC2If the verification is successful, the first authentication result information ciphertext, Sig AS_REQ1 and Nonce AACPub The encryption target data including the authentication result information is encrypted as ciphertext EncData AAC Generate.
[0151] In step S614, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is the EncData AAC Includes.
[0152] In step S615, the REQ is converted into EncData using the message encryption key. AAC Decrypt the first authentication result information ciphertext, Sig AS_REQ1 and Nonce AACPub Get the.
[0153] In step S616, the AS-REQ uses the public key of the AS-REQ to generate a Sig AS_REQ1 Verify. If the verification is passed, execute S617.
[0154] In step S617, the REQ is AACPub Using the above, the first authentication result information ciphertext is decrypted to obtain Pub AAC Get the.
[0155] In step S618, the REQ is AAC Res in AAC According to the above, the identity authentication result of the AAC is determined. If the REQ determines that the AAC is valid, execute S619, and if the REQ determines that the AAC is not valid, end the current authentication process.
[0156] In step S619, the REQ uses the message encryption key to generate a first protection random number Nonce REQPub The information is encrypted to obtain a first protected random number ciphertext EncData REQGet the.
[0157] In step S620, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth is REQ Includes.
[0158] In step S621, the AAC uses the message encryption key to generate EncData REQ Decrypt the Nonce REQPub Get the Nonce REQPub Decrypt the second authentication result information ciphertext using Pub REQ Get the.
[0159] In step S622, AAC REQ Res in REQ According to the above, the identity authentication result of REQ is determined.
[0160] Referring to FIG. 7, yet another embodiment of the identity authentication method in the non-roaming case is shown, where AS-AAC (also represented as AS-REQ) can indicate an authentication server jointly trusted by REQ and AAC. In this embodiment, the message encryption key negotiation process between REQ and AAC is merged in parallel with the identity authentication process, which makes the process easier to implement. Here, Sig REQ is verified by AAC and Sig AAC is verified by REQ, and the method includes the following steps:
[0161] In step S701, the AAC AAC and KeyInfo AAC and security capabilities as required. AAC Generate.
[0162] In step S702, the AAC sends a key request message AACInit to the REQ. The AACInit is a Nonce AAC , KeyInfo AAC and Security capabilities AAC where Security capabilities AAC is an optional field that indicates the security capability parameter information supported by the AAC, including the identity authentication suite, symmetric encryption algorithm, integrity check algorithm and / or key derivation algorithm supported by the AAC (same as in the full text).
[0163] In step S703, the REQ is REQ , KeyInfo REQ , Nonce REQID and Nonce REQPub and security capabilities as required. REQ Generate and KeyInfo REQ The temporary private key and KeyInfo corresponding to AAC , and performs a key exchange calculation based on the temporary public key contained in AAC , Nonce REQ and other information (the other information employed by the REQ and the AAC may be the same and optional, e.g., a specific character string, etc.) to calculate a message encryption key and a message integrity check key using a negotiated or pre-configured key derivation algorithm; of course, this step may be performed after the situation arises where the REQ requires a message encryption key and / or a message integrity check key; and the public key of the encryption certificate is used to cipher the identity information EncPub of the REQ. AS_REQ Calculate Sig REQ Calculate.
[0164] Here, Security capabilities REQ is an optional field that specifies the Security capabilities AACindicates the particular security policy selected according to, i.e., the identity authentication method, symmetric encryption algorithm, integrity check algorithm and / or key derivation algorithm that the REQ has decided to use (similar to the full text), and indicates that the REQ specifies Security capabilities REQ Whether or not to generate the Security capabilities AAC is determined by whether it is included or not.
[0165] In step S704, REQ sends an identity ciphertext message REQInit to the AAC. The REQInit is a Nonce AAC , Nonce REQ ,Security capabilities REQ , KeyInfo REQ , EncPub AS_REQ and Sig REQ Here, Nonce AAC and Security capabilities REQ is an optional field, Nonce AAC should be equal to the corresponding field in AACInit. AS_REQ The data to be encrypted is ID REQ , Cert REQ , Nonce REQID and Nonce REQPub Includes Sig REQ The data to be signed is the Sig REQ For example, REQInit includes other fields before Nonce. AAC , Nonce REQ ,Security capabilities REQ , KeyInfo REQ , EncPub AS_REQ and Sig REQ If sequentially included, Sig REQ The data to be signed is the Nonce AAC , Nonce REQ,Security capabilities REQ , KeyInfo REQ and EncPub AS_REQ In addition, REQInit includes Nonce AAC If the field is not included, Sig REQ The data to be signed is the nonce in AACInit. AAC In this application, what is to be signed is called "signature target data."
[0166] In step S705, after receiving the REQInit, AAC performs the following operations (unless otherwise specified or logically related, the operations numbered (1), (2) ... in this specification do not imply a precedence-reverse order corresponding to the numbers (this is the same throughout the text)).
[0167] (1) Nonce in REQInit AAC If present, the nonce AAC is the nonce generated by AAC. AAC If they are different, REQInit is discarded. (2) KeyInfo AAC The temporary private key and KeyInfo corresponding to REQ Based on the temporary public key contained in AAC , Nonce REQ and other information (the other information employed by the AAC and the REQ may be the same and optional, e.g., a specific string, etc.) to calculate a message encryption key and a message integrity check key using a negotiated or pre-configured key derivation algorithm; of course, this step may be performed after the AAC reaches a situation where it needs a message encryption key and / or a message integrity check key. (3) Nonce AACID and Nonce AACPub Generate. (4) Using the public key of the encryption certificate, EncPub AS_AAC Calculate.
[0168] In step S706, the AAC sends a first authentication request message AACVeri to the AS-AAC. The AACVeri is EncPub AS_REQ , Nonce REQ , EncPub AS_AAC and Nonce AAC Includes .EncPub AS_AAC The data to be encrypted is ID AAC , Cert AAC , Nonce AACID and Nonce AACPub Includes EncPub AS_REQ and Nonce REQ Each should be equal to the corresponding field in REQInit.
[0169] In step S707, after receiving the AACVeri, the AS-AAC performs the following operations. (1) Using the private key corresponding to the encryption certificate, AS_REQ and EncPub AS_AAC Decrypt each one to get ID REQ , Cert REQ , Nonce REQID , Nonce REQPub , ID AAC , Cert AAC , Nonce AACID and Nonce AACPub Get the. (2) Cert AAC and Cert REQ Verify the validity of each and Res AAC and Res REQ Get the Cert AAC and Res AAC Based on information including Pub AAC Generate and Cert REQ and Res REQ Based on information including Pub REQ Generate and ID REQand Nonce REQID Perform an XOR operation on
number
number
number
number
[0170] In step S708, the AS-AAC sends a first authentication response message ASVeri to the AAC. The ASVeri is
number
number
[0171] In step S709, after receiving the ASVeri, the AAC performs the following operations. (1) Nonce AACID and
number
[0172] In step S710, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is a Nonce REQ , Nonce AAC , EncData AAC , SigAAC and MacTag AAC Here, Nonce REQ , Nonce AAC and MacTag AAC may be an optional field, and Nonce REQ , Nonce AAC are the nonce in REQInit, respectively. REQ , the nonce generated by AAC AAC should be equal to EncData AAC The data to be encrypted is
number
[0173] In step S711, after receiving the AACAuth, REQ performs the following operations. (1) Nonce in AACAuth REQ and / or Nonce AAC If the Nonce exists, REQ However, the Nonce generated by REQ REQ and / or check whether the Nonce is equal to AAC is the Nonce in the received AACInit. AAC Check whether it is the same as (2) AACAuth to MacTag AAC If present, MacTag AAC Verify. The verification process is as follows: Using the message integrity check key, the integrity check algorithm is adopted to verify the MacTag in AACAuth. AAC Calculate the information locally including other fields except MacTag AAC (This calculation method is similar to AAC MacTag.) AAC (The same method is used to calculate MacTag.) AAC The MacTag in the received AACAuth AAC Compare with. (3) using a message encryption key to perform a symmetric encryption algorithm to obtain the EncData AAC Decrypt the
number
number
number
[0174] In step S712, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth is a Nonce REQ , Nonce AAC , EncData REQ and MacTag REQ Here, Nonce REQ and Nonce AAC are optional fields, each of which is a nonce generated by REQ REQ And Nonce in AACInit AAC should be equal to EncData REQ The data to be encrypted is the Nonce REQPub Includes: MacTag REQ The calculation process of is to use the message integrity check key and the integrity check algorithm to calculate the MacTag in REQAuth. REQ Perform calculations on information that includes other fields besides MacTag REQ The aim is to generate
[0175] In step S713, after receiving the REQAuth, the AAC performs the following operations. (1) Nonce in REQAuth REQ and / or Nonce AAC If the Nonce exists, REQHowever, the Nonce in the received REQInit REQ and / or check whether the Nonce is equal to AAC is the nonce generated by AAC. AAC Check whether it is the same as (2) MacTag REQ Verify. The verification process is as follows: Using the message integrity check key, the integrity check algorithm is adopted to verify the MacTag in REQAuth. REQ Calculate the information locally including other fields except MacTag REQ (This calculation method is for REQ being MacTag REQ (The same method is used to calculate MacTag.) REQ The MacTag in the received REQAuth REQ Compare with. (3) ,EncData ,using a symmetric encryption algorithm with the message encryption key. REQ Decrypt the Nonce REQPub Get the. (4) Nonce REQPub and
number
[0176] It should be noted that Sig is not included in REQInit of S704. REQInstead of including Sig in REQAuth of S712, REQ That is, in S712, REQ first adds the Nonce in REQAuth REQ , Nonce AAC and EncData REQ Calculate the data to be signed, including Sig REQ In this case, Sig is generated, which is verified by AAC in S713. REQ is Sig in REQAuth of S712 REQ It is.
[0177] Referring to Figure 8, there is yet another embodiment of an identity authentication method in a non-roaming case, where AS-AAC (also represented as AS-REQ) can indicate an authentication server jointly trusted by REQ and AAC. In this embodiment, the message encryption key negotiation process between REQ and AAC is integrated in parallel with the identity authentication process, which makes the process easier to implement. Here, Sig REQ and Sig AAC is verified by AS-AAC, and the method includes the following steps:
[0178] In step S801, the AAC AAC and KeyInfo AAC and security capabilities as required. AAC Generate.
[0179] In step S802, the AAC sends a key request message AACInit to the REQ. The AACInit is a Nonce AAC , KeyInfo AAC and Security capabilities AAC where Security capabilities AAC is an optional field.
[0180] In step S803, the REQ is REQ , KeyInfo REQ , Nonce REQID and Nonce REQPub and security capabilities as required. REQ Generate and KeyInfo REQ The temporary private key and KeyInfo corresponding to AAC , and performs a key exchange calculation based on the temporary public key contained in AAC , Nonce REQ and other information (the other information employed by the REQ and the AAC may be the same and optional, e.g., a specific character string, etc.) to calculate a message encryption key and a message integrity check key using a negotiated or pre-configured key derivation algorithm; of course, this step may be performed after the situation arises where the REQ requires a message encryption key and / or a message integrity check key; and the public key of the encryption certificate is used to cipher the identity information EncPub of the REQ. AS_REQ Calculate Sig REQ Calculate.
[0181] In step S804, REQ sends an identity ciphertext message REQInit to the AAC. The REQInit is a Nonce AAC , Nonce REQ ,Security capabilities REQ , KeyInfo REQ , EncPub AS_REQ and Sig REQ where Security capabilities REQ is an optional field, Nonce AAC should be equal to the corresponding field in AACInit. AS_REQ The data to be encrypted is ID REQ , Cert REQ , NonceREQID and Nonce REQPub Includes Sig REQ The data to be signed is the Sig REQ Includes other fields before.
[0182] In step S805, after receiving the REQInit, the AAC performs the following operations. (1) Nonce in REQInit AAC is the nonce generated by AAC. AAC If they are different, REQInit is discarded. (2) KeyInfo AAC The temporary private key and KeyInfo corresponding to REQ Based on the temporary public key contained in AAC , Nonce REQ and other information (the other information employed by the AAC and the REQ can be the same and optional, e.g., a specific string, etc.) to calculate a message encryption key and a message integrity check key using a negotiated or pre-configured key derivation algorithm; of course, this step may be performed after the AAC reaches a situation where it needs a message encryption key and / or a message integrity check key. (3) Nonce AACID and Nonce AACPub Generate. (4) EncPub using the public key of the encryption certificate AS_AAC Calculate. (5) Sig AAC Calculate.
[0183] In step S806, the AAC sends a first authentication request message AACVeri to the AS-AAC. The AACVeri includes REQInit, EncPub AS_AAC and Sig AAC where EncPub AS_AACThe data to be encrypted is ID AAC , Cert AAC , Nonce AACID and Nonce AACPub Includes Sig AAC The data to be signed is Sig AAC Includes other fields before.
[0184] In step S807, after receiving the AACVeri, the AS-AAC performs the following operations. (1) Using the private key corresponding to the encryption certificate, AS_AAC and EncPub in REQInit AS_REQ Decrypt each one to get ID AAC , Cert AAC , Nonce AACID , Nonce AACPub , ID REQ , Cert REQ , Nonce REQID and Nonce REQPub Get the. (2) Cert REQ Using Sig in REQInit REQ Verify the Cert AAC Using Sig AAC Verify. (3) If all validations pass, the Cert AAC and Cert REQ Verify the validity of each and Res AAC and Res REQ Get Res AAC Based on information including Pub AAC Generate Res REQ Based on information including Pub REQ Generate and ID REQ and Nonce REQID Perform an XOR operation on
number
number
number
number
[0185] In step S808, the AS-AAC sends a first authentication response message ASVeri to the AAC. The ASVeri is
number
number
[0186] In step S809, after receiving the ASVeri, the AAC performs the following operations. (1) Nonce AACID and
number
[0187] In step S810, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is a Nonce REQ , Nonce AAC , EncData AAC and MacTag AAC Here, Nonce REQ and Nonce AAC are optional fields, respectively, REQ and the nonce generated by AAC AAC should be equal to EncData AAC The data to be encrypted is
number
[0188] In step S811, after receiving the AACAuth, REQ performs the following operations. (1) Nonce in AACAuth REQ and / or Nonce AAC If the Nonce exists, REQ However, the Nonce generated by REQ REQ and / or check whether the Nonce is equal to AAC is the Nonce in the received AACInit. AAC Check whether it is the same as (2) MacTag AAC The verification process is as described in the embodiment of FIG. (3) using a message encryption key to perform a symmetric encryption algorithm to obtain the EncData AAC Decrypt the
number
number
number
[0189] In step S812, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth is a Nonce AAC , Nonce REQ , EncData REQ and MacTag REQ Here, Nonce REQ and Nonce AAC are optional fields, each of which is a nonce generated by REQ REQ And Nonce in AACInit AAC should be equal to EncData REQ The data to be encrypted is the Nonce REQPub Includes: MacTag REQ The calculation process is as described in the embodiment of FIG.
[0190] In step S813, after receiving the REQAuth, the AAC performs the following operations. (1) Nonce in REQAuth REQ and / or Nonce AAC If the Nonce exists, REQ However, the Nonce in the received REQInit REQ and / or check whether the Nonce is equal to AAC is the nonce generated by AAC. AAC Check whether it is the same as (2) MacTag REQ The verification process is as described in the embodiment of FIG. (3) After the above checks and verifications are all passed, the message encryption key is used to adopt a symmetric encryption algorithm to encrypt the EncData REQ Decrypt the Nonce REQPub If any of the above checks and validations fail, discard REQAuth immediately. (4) Nonce REQPub and
number
[0191] Referring to Figure 9, another embodiment of the identity authentication method in the case of roaming. In this embodiment, the message encryption key negotiation process between REQ and AAC is integrated into the identity authentication process in parallel, which makes the process easier to implement. REQ is verified by AAC and Sig AAC is verified by REQ, and the method includes the following steps:
[0192] In step S901, the AAC AACand KeyInfo AAC and security capabilities as required. AAC Generate.
[0193] In step S902, the AAC sends a key request message AACInit to the REQ. The AACInit is a Nonce AAC , KeyInfo AAC , ID AS_AAC and Security capabilities AAC where Security capabilities AAC is an optional field, ID AS_AAC is an optional field that indicates the identity identifier of at least one authentication server that the AAC trusts, and the REQ AS_AAC is used to determine whether there is a jointly trusted authentication server based on (same as in the full text).
[0194] In step S903, the REQ is REQ , KeyInfo REQ , Nonce REQID and Nonce REQPub Generate and optionally ID AS_REQ and Security capabilities REQ Generate and KeyInfo REQ The temporary private key and KeyInfo corresponding to AAC , and performs a key exchange calculation based on the temporary public key contained in AAC , Nonce REQand other information (the other information employed by the REQ and the AAC can be the same and optional, e.g., a specific character string, etc.), calculate a message encryption key and a message integrity check key using a negotiated or pre-configured key derivation algorithm; of course, this step may be performed after the situation arises in which the REQ requires a message encryption key and / or a message integrity check key; and use the public key of the encryption certificate to ciphertext the identity information of the REQ, EncPub, AS_REQ Calculate Sig REQ Calculate.
[0195] Here, the ID AS_REQ and Security capabilities REQ is an optional field. ID AS_REQ indicates the identity identifier of at least one authentication server that the REQ trusts, and provides the ID to AACInit. AS_AAC If present, the REQ will request the ID from an authentication server it trusts, if possible. AS_AAC Select at least one authentication server that is the same as the ID AS_REQ If the selection fails, it will use at least one authentication server that it trusts as the identity AS_REQ Use it as ID in AACInit AS_AAC If no ID exists, REQ must identify at least one authentication server that it trusts. AS_REQ and so on.
[0196] In step S904, REQ sends an identity ciphertext message REQInit to the AAC. The REQInit is a Nonce AAC , Nonce REQ , ID AS_REQ ,Security capabilities REQ , KeyInfo REQ , EncPub AS_REQ and Sig REQ Here, NonceAAC , ID AS_REQ and Security capabilities REQ is an optional field and Nonce AAC should be equal to the corresponding field in AACInit. AS_REQ The data to be encrypted is ID REQ , Cert REQ , Nonce REQID and Nonce REQPub Includes Sig REQ The data to be signed is the Sig REQ REQInit includes other fields before the Nonce AAC If the field is not included, Sig REQ The data to be signed is the nonce in AACInit. AAC It also contains fields.
[0197] In step S905, after receiving the REQInit, the AAC performs the following operations. (1) Nonce in REQInit AAC If present, the nonce AAC is the nonce generated by AAC. AAC If they are different, REQInit is discarded. (2) KeyInfo AAC The temporary private key and KeyInfo corresponding to REQ Based on the temporary public key contained in AAC , Nonce REQ and other information (the other information employed by the AAC and the REQ may be the same and optional, e.g., a specific string, etc.) to calculate a message encryption key and a message integrity check key using a negotiated or pre-configured key derivation algorithm; of course, this step may be performed after the AAC reaches a situation where it needs a message encryption key and / or a message integrity check key. (3) Nonce AACID and Nonce AACPub Generate. (4) Using the public key of the encryption certificate, EncPub AS_AAC Calculate. (5) ID in REQInit AS_REQ Contains ID in AACInit AS_AAC If it contains, AAC will AS_REQ and ID AS_AAC determine whether the REQ and the AAC have at least one identity identifier of the same authentication server; if so, it is a non-roaming case, and the AAC determines a first authentication server to participate in identity authentication from the identity identifiers of at least one authentication server jointly trusted by the REQ and the AAC; if not, it is a roaming case, and the AAC determines the first authentication server to participate in identity authentication from the identity identifiers of at least one authentication server jointly trusted by the REQ and the AAC; AS_AAC According to the above, a first authentication server (AS-AAC) participating in identity authentication is determined, and the ID AS_REQ must be sent to the AS-AAC, which then receives the ID AS_REQ or determining the second authentication server AS-REQ according to REQInit with ID AS_REQ is included, but AACInit does not have ID AS_AAC If it does not contain, AAC will AS_REQ and determine whether there is at least one identity identifier of the same authentication server in the authentication servers trusted by the AAC. If there is, it is a non-roaming case, and the AAC determines a first authentication server to participate in identity authentication from the identity identifier of at least one authentication server jointly trusted by the above REQ and the AAC. If there is no identity identifier, it is a roaming case, and the AAC determines a first authentication server (AS-AAC) to participate in identity authentication based on the authentication servers it trusts, and determines the first authentication server (AS-AAC) to participate in identity authentication based on the identity identifier of the authentication server jointly trusted by the above REQ and the AAC. AS_REQ must be sent to the AS-AAC, which then receives the ID AS_REQ The second authentication server AS-REQ can be determined according to the following. It should be noted that the outcome determined in this example is the roaming case.
[0198] In step S906, the AAC sends a first authentication request message AACVeri to the AS-AAC. The AACVeri is EncPub AS_REQ , Nonce REQ , EncPub AS_AAC , Nonce AAC and ID AS_REQ where ID AS_REQ is an optional field and can be used with EncPub AS_REQ , Nonce REQ and ID AS_REQ Each should be equal to the corresponding field in REQInit. AS_AAC The data to be encrypted is ID AAC , Cert AAC , Nonce AACID and Nonce AACPub Includes. In step S907, after receiving the AACVeri, the AS-AAC sends a first decryption request message AS-AACReq to a Certificate Server-Decrypt (CS-DEC). The AS-AACReq is EncPub AS_AAC Includes.
[0199] In step S908, after receiving the AS-AACReq, the CS-DEC AS_AAC Decrypt the ID AAC , Cert AAC , Nonce AACID , Nonce AACPub Get the.
[0200] In step S909, the CS-DEC sends a first decoding response message CS-DECRep to the AS-AAC. The CS-DECRep is the ID obtained by decryption. AAC , Cert AAC , NonceAACID and Nonce AACPub Includes.
[0201] In step S910, after receiving the CS-DECRep, the AS-AAC performs the following operations. (1) Cert AAC Verify the validity of Res AAC Get the Cert AAC and Res AAC Based on information including Pub AAC Generate. (2) Nonce AACPub and Pub AAC Perform an XOR operation using
number
number
[0202] In step S911, the AS-AAC sends a second authentication request message AS-AACVeri to the AS-REQ. The AS-AACVeri is EncPub AS_REQ , Nonce REQ , Nonce AAC ,
number
[0203] In step S912, after receiving the AS-AACVeri, the AS-REQ uses the public key of the AS-AAC to generate the Sig AS_AAC3 Verify. If the verification is passed, execute S913.
[0204] In step S913, AS-REQ sends a second decoding request message AS-REQReq to CS-DEC. The AS-REQReq is EncPub AS_REQ Including the EncPub AS_REQ should be equal to the corresponding field in AS-AACVeri.
[0205] In step S914, the CS-DEC AS_REQ Decrypt the Cert REQ , ID REQ , Nonce REQID and Nonce REQPub Get the.
[0206] In step S915, the CS-DEC sends a second decoding response message CS-DECRep to the AS-REQ. The CS-DECRep is the Cert obtained by decryption. REQ , IDREQ , Nonce REQID and Nonce REQPub Includes.
[0207] In step S916, after receiving the CS-DECRep, the AS-REQ performs the following operations: (1) Cert REQ Verify the validity of Res REQ Get the Cert REQ and Res REQ Based on information including Pub REQ Generate. (2) Pub REQ and Nonce REQPub Perform an XOR operation on
number
number
[0208] In step S917, the AS-REQ sends a second authentication response message AS-REQVeri to the AS-AAC. The AS-REQVeri is
number
number
number
number
[0209] In step S918, after receiving the AS-REQVeri, the AS-AAC performs the following operations. (1) Using the public key of AS-REQ, Sig AS_REQ4 If the verification fails, the AS-REQVeri is discarded. (2) Second digital signature Sig AS_AAC2 Calculate.
[0210] In step S919, the AS-AAC sends a first authentication response message ASVeri to the AAC. The ASVeri is
number
number
number
[0211] In step S920, after receiving the ASVeri, the AAC performs the following operations. (1) Nonce AACID and
number
[0212] In step S921, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is a Nonce REQ , Nonce AAC , EncData AAC , Sig AAC and MacTagAAC Here, Nonce REQ , Nonce AAC and MacTag AAC may be an optional field, and Nonce REQ , Nonce AAC are the nonce in REQInit, respectively. REQ and the nonce generated by AAC AAC should be equal to EncData AAC The data to be encrypted is
number
number
[0213] In step S922, after receiving the AACAuth, REQ performs the following operations. (1) Nonce in AACAuth REQ and / or Nonce AAC If the Nonce exists, REQ However, the Nonce generated by REQ REQ and / or check whether the Nonce is equal to AAC is the Nonce in the received AACInit. AAC Check whether it is the same as (2) AACAuth to MacTag AAC If present, MacTag AAC The verification process is as described in the embodiment of FIG. (3) using a message encryption key to perform a symmetric encryption algorithm to obtain the EncData AAC Decrypt the
number
number
number
[0214] In step S923, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth is a Nonce AAC , Nonce REQ , EncData REQ and MacTag REQ Here, Nonce REQ and Nonce AAC are optional fields, each of which is a nonce generated by REQ REQ And Nonce in AACInit AAC should be equal to EncData REQ The data to be encrypted is the Nonce REQPub Includes: MacTag REQ The calculation process is as described in the embodiment of FIG.
[0215] In step S924, after receiving the REQAuth, the AAC performs the following operations. (1) Nonce in REQAuth REQ and / or Nonce AAC If the Nonce exists, REQ However, the Nonce in the received REQInit REQ and / or check whether the Nonce is equal to AAC is the nonce generated by AAC. AAC Check whether it is the same as (2) MacTag REQ The verification process is as described in the embodiment of FIG. (3) Using the message encryption key, a symmetric encryption algorithm is applied to the EncData REQ Decrypt the Nonce REQPub Get the. (4) Nonce REQPub and
number
[0216] It should be noted that Sig is not included in REQInit of S904. REQ Instead of including Sig in REQAuth of S923, REQ That is, in S923, REQ first includes the Nonce in REQAuth. AAC , Nonce REQ and EncData REQ Calculate the data to be signed, including Sig REQ In this case, the Sig that is verified by AAC in S924 is generated. REQ is Sig in REQAuth of S923 REQ It is.
[0217] Referring to Figure 10, another embodiment of the identity authentication method in the case of roaming is shown. In this embodiment, the message encryption key negotiation process between REQ and AAC is integrated into the identity authentication process in parallel, which makes the process easier to implement. REQ is verified by AS-REQ and Sig AAC is verified by AS-AAC, and the method includes the following steps:
[0218] In step S1001, the AAC AAC and KeyInfo AAC and security capabilities as required. AAC Generate.
[0219] In step S1002, the AAC sends a key request message AACInit to the REQ. The AACInit is a Nonce AAC , KeyInfo AAC , ID AS_AAC and Security capabilities AAC where Security capabilities AAC and ID AS_AAC is an optional field.
[0220] In step S1003, the REQ is REQ , KeyInfo REQ , Nonce REQID and Nonce REQPub Generate and optionally ID AS_REQ and Security capabilities REQ Generate and KeyInfo REQ The temporary private key and KeyInfo corresponding to AAC , and performs a key exchange calculation based on the temporary public key contained in AAC , Nonce REQ and other information (the other information employed by the REQ and the AAC may be the same and selectable, e.g., a specific character string, etc.) to calculate a message encryption key and a message integrity check key using a negotiated or pre-configured key derivation algorithm; of course, this step may be performed after the situation arises in which the REQ requires a message encryption key and / or a message integrity check key; and the public key of the encryption certificate is used to cipher the identity information EncPub of the REQ. AS_REQ Calculate SigREQ Calculate.
[0221] In step S1004, REQ sends an identity ciphertext message REQInit to the AAC. The REQInit is a Nonce AAC , Nonce REQ , ID AS_REQ ,Security capabilities REQ , KeyInfo REQ , EncPub AS_REQ and Sig REQ where ID AS_REQ and Security capabilities REQ is an optional field, Nonce AAC should be equal to the corresponding field in AACInit, and EncPub AS_REQ The data to be encrypted is ID REQ , Cert REQ , Nonce REQID and Nonce REQPub Includes Sig REQ The data to be signed is the Sig REQ Includes other fields before.
[0222] In step S1005, after receiving the REQInit, the AAC performs the following operations. (1) Nonce in REQInit AAC is the nonce generated by AAC. AAC If they are different, REQInit is discarded. (2) KeyInfo AAC The temporary private key and KeyInfo corresponding to REQ Based on the temporary public key contained in AAC , Nonce REQand other information (the other information employed by the AAC and the REQ may be the same and optional, e.g., a specific string, etc.) to calculate a message encryption key and a message integrity check key using a negotiated or pre-configured key derivation algorithm; of course, this step may be performed after the AAC reaches a situation where it needs a message encryption key and / or a message integrity check key. (3) Nonce AACID and Nonce AACPub Generate. (4) Using the public key of the encryption certificate, EncPub AS_AAC Calculate. (5) The method for determining AAC as AS-AAC is as described in the example of Figure 9. (6) Sig AAC Calculate.
[0223] In step S1006, the AAC sends a first authentication request message AACVeri to the AS-AAC. The AACVeri includes REQInit, EncPub AS_AAC and Sig AAC where EncPub AS_AAC The data to be encrypted is ID AAC , Cert AAC , Nonce AACID and Nonce AACPub Includes 。 Sig AAC The data to be signed is Sig AAC Includes other fields before.
[0224] In step S1007, after receiving the AACVeri, the AS-AAC sends a first decoding request message AS-AACReq to the CS-DEC. The AS-AACReq is EncPub AS_AAC Including the EncPub AS_AAC should be equal to the corresponding field in AACVeri.
[0225] In step S1008, after receiving the AS-AACReq, the CS-DEC AS_AAC Decrypt the ID AAC , Cert AAC , Nonce AACID , Nonce AACPub Get the.
[0226] In step S1009, the CS-DEC sends a first decoding response message CS-DECRep to the AS-AAC. The CS-DECRep is the ID obtained by decryption. AAC , Cert AAC , Nonce AACID and Nonce AACPub Includes.
[0227] In step S1010, after receiving the CS-DECRep, the AS-AAC performs the following operations. (1) Cert AAC Using the above Sig AAC If the verification fails, the CS-DECRep is discarded. (2) Cert AAC Verify the validity of Res AAC Get Res AAC Based on information including Pub AAC Generate. (3) Nonce AACPub and Pub AAC Perform an XOR operation using
number
number
[0228] In step S1011, the AS-AAC sends a second authentication request message AS-AACVeri to the AS-REQ. The AS-AACVeri includes a REQInit,
number
[0229] In step S1012, after receiving the AS-AACVeri, the AS-REQ uses the public key of the AS-AAC to generate the Sig AS_AAC3 Verify. If the verification is passed, S1013 is executed.
[0230] In step S1013, AS-REQ sends a second decoding request message AS-REQReq to CS-DEC. The AS-REQReq is EncPub AS_REQ Including the EncPub AS_REQ should be equal to the corresponding field in AS-AACVeri.
[0231] In step S1014, the CS-DEC AS_REQ Decrypt the Cert REQ , ID REQ, Nonce REQID and Nonce REQPub Get the.
[0232] In step S1015, the CS-DEC sends a second decoding response message CS-DECRep to the AS-REQ. The CS-DECRep is the Cert obtained by decryption. REQ , ID REQ , Nonce REQID and Nonce REQPub Includes.
[0233] In step S1016, after receiving the CS-DECRep, the AS-REQ performs the following operations: (1) Cert REQ Using Sig in REQInit REQ If the verification fails, the CS-DECRep is discarded. (2) Cert REQ Verify the validity of Res REQ Get Res REQ Based on information including Pub REQ Generate. (3) Nonce REQPub and Pub REQ Perform an XOR operation using
number
number
[0234] In step S1017, the AS-REQ sends a second authentication response message AS-REQVeri to the AS-AAC. The AS-REQVeri is
number
number
number
number
[0235] In step S1018, after receiving the AS-REQVeri, the AS-AAC performs the following operations. (1) Using the public key of AS-REQ, Sig AS_REQ4 If the verification fails, the AS-REQVeri is discarded. (2) Second digital signature Sig AS_AAC2 Calculate.
[0236] In step S1019, the AS-AAC sends a first authentication response message ASVeri to the AAC. The ASVeri is
number
number
[0237] In step S1020, after receiving the ASVeri, the AAC performs the following operations. (1) Nonce AACID and
number
[0238] In step S1021, the AAC sends a third authentication response message AACAuth to the REQ. The AACAuth is a Nonce REQ , Nonce AAC, EncData AAC and MacTag AAC Here, Nonce REQ and Nonce AAC are optional fields, respectively, REQ and the nonce generated by AAC AAC should be equal to EncData AAC The data to be encrypted is
number
[0239] In step S1022, after receiving the AACAuth, REQ performs the following operations. (1) Nonce in AACAuth REQ and / or Nonce AAC If the Nonce exists, REQ However, the Nonce generated by REQ REQ and / or check whether the Nonce is equal to AAC is the Nonce in the received AACInit. AAC Check whether it is the same as (2) MacTag AAC The verification process is as described in the embodiment of FIG. (3) using a message encryption key to perform a symmetric encryption algorithm to obtain the EncData AAC Decrypt the
number
number
number
[0240] In step S1023, REQ sends a fourth authentication response message REQAuth to the AAC. The REQAuth is a Nonce AAC , Nonce REQ , EncData REQ and MacTag REQ Here, Nonce REQ and Nonce AACare optional fields, each of which is a nonce generated by REQ REQ And Nonce in AACInit AAC should be equal to EncData REQ The data to be encrypted is the Nonce REQPub Includes: MacTag REQ The calculation process is as described in the embodiment of FIG.
[0241] In step S1024, after receiving the REQAuth, the AAC performs the following operations. (1) Nonce in REQAuth REQ and / or Nonce AAC If the Nonce exists, REQ However, the Nonce in the received REQInit REQ and / or check whether the Nonce is equal to AAC is the nonce generated by AAC. AAC Check whether it is the same as (2) MacTag REQ The verification process is as described in the embodiment of FIG. (3) using a message encryption key to perform a symmetric encryption algorithm to obtain the EncData REQ Decrypt the Nonce REQPub Get the. (4) Nonce REQPub and
number
[0242] In each of the above embodiments, each message further includes a hash value HASH. X_Y The hash value HASH may include X_Y is obtained by the sender of the message, entity X, performing a calculation on the most recent preceding message received from the other entity Y using a hash algorithm, and is used by the other entity Y to verify whether entity X has received a complete most recent preceding message. Here, HASH REQ_AAC indicates the hash value that REQ calculated over the most recent preceding message received from AAC, and HASH AAC_REQ denotes the hash value calculated by AAC over the most recent preceding message received from REQ, and HASH AAC_AS-AAC denotes the hash value calculated by AAC on the most recent preceding message received from AS-AAC, and HASH AS-AAC_AAC denotes the hash value calculated by AS-AAC on the most recent preceding message received from AAC, and HASH AS-AAC_AS-REQ denotes the hash value calculated by AS-AAC over the most recent preceding message received from AS-REQ, and HASH AS-REQ_AS-AAC indicates the hash value calculated by AS-REQ for the most recent preceding message received from AS-AAC. If the message currently sent by sending entity X is the first message exchanged between entity X and entity Y, this means that entity X has never received the preceding message sent by the other entity Y, in which case the HASH value for that message is X_Y may be absent or meaningless.
[0243] Correspondingly, after the other entity Y receives the message sent by entity X, it applies the HASH X_Y If entity Y has never sent a predecessor message to entity X, then entity Y is X_YIf 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 sent to entity X, and the hash value HASH included in the received message is X_Y If it matches, the subsequent steps are executed, otherwise the current authentication process is discarded or terminated.
[0244] In the present invention, for an entity X, a previous message sent by the other entity Y to the entity X refers to a 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 its other entity Y is the first message exchanged 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 a message M to its other entity Y.
[0245] Optional fields and optional operations in the embodiments corresponding to Figures 7, 8, 9, and 10 above are indicated by "*" in Figures 7, 8, 9, and 10. The order of each content included in the message in all the above embodiments is not limited, and unless otherwise specified, the order in which the message receiver operates on the related message after receiving the message and the order in which the content included in the message is processed are not limited.
[0246] Based on the method embodiment corresponding to FIG. 1 to FIG. 10, referring to FIG. 11, the present embodiment provides an authentication access controller (AAC), the AAC comprising: an acquiring unit 1101 configured to acquire an identity ciphertext message sent from a requesting device, the identity ciphertext message including an identity information ciphertext of the requesting device, the identity information ciphertext of the requesting device being generated by encrypting data to be encrypted, the data including a digital certificate of the requesting device and a first protected random number, using a public key of an encryption certificate; a first sending unit 1102 configured to send a first authentication request message to a first authentication server trusted by the authentication access controller, the first authentication request message including an identity information ciphertext of the requesting device and an identity information ciphertext of the authentication access controller, the identity information ciphertext of the authentication access controller being generated by encrypting data to be encrypted, the data including a digital certificate of the authentication access controller and a second protected random number, using a public key of an encryption certificate; a first receiving unit 1103 configured to receive a first authentication response message transmitted from the first authentication server, the first authentication response message including a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, where the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information including a first verification result against a digital certificate of the authentication access controller, the first digital signature is generated by the second authentication server performing a calculation on data to be signed including the first authentication result information ciphertext, the second authentication result information ciphertext is generated by encrypting information including the second authentication result information using the first protected random number, the second authentication result information including a second verification result against a digital certificate of the requesting device, and the second digital signature is generated by the first authentication server performing a calculation on data to be signed including the second authentication result information ciphertext; a first verification unit 1104 configured to verify the second digital signature using a public key of the first authentication server; a second sending unit 1105 configured to send a third authentication response message to the requesting device after the second digital signature passes verification, the third authentication response message including an authentication result information ciphertext, and the authentication result information ciphertext is generated by encrypting data to be encrypted, including the first authentication result information ciphertext, the first digital signature, and the second protected random number, using a message encryption key; a second receiving unit 1106 configured to receive a fourth authentication response message sent from the requesting device, the fourth authentication response message including a first protected random number ciphertext, the first protected random number ciphertext being obtained by encrypting information including the first protected random number using the message encryption key; and a decryption unit 1107 configured to decrypt the first protected random number ciphertext using the message encryption key to obtain the first protected random number, and to decrypt the second authentication result information ciphertext using the first protected random number to obtain the second authentication result information; a first determination unit (1108) configured to determine an identity authentication result of the requesting device according to a second verification result in the second authentication result information.
[0247] In some embodiments, the authentication access controller further comprises: a third transmission unit configured to transmit a key request message to the requesting device, the key request message including a key exchange parameter of the authentication access controller, and the identity ciphertext message acquired by the acquiring unit 1101 further including a key exchange parameter of the requesting device; a calculation unit configured to perform a key exchange calculation to generate a first key based on a temporary private key corresponding to a key exchange parameter of the authentication access controller and a temporary public key included in the key exchange parameter of the requesting device, and to calculate the message encryption key using a key derivation algorithm based on information including the first key.
[0248] In some embodiments, the key request message sent by the third sending unit further includes a first random number generated by the authentication access controller, and correspondingly, the identity ciphertext message acquired by the acquiring unit 1101 further includes a second random number generated by the requesting device; The calculation unit is further configured to calculate the message encryption key based on information including the first key, the first random number, and the second random number.
[0249] In some embodiments, the identity ciphertext message acquired by the acquiring unit 1101 further includes the first random number, and the authentication access controller further includes: and a second verification unit configured to verify the consistency of a first random number in the identity ciphertext message and a first random number generated by the authenticated access controller.
[0250] In some embodiments, the key request message sent from the third transmitting unit further includes security capability parameter information supported by the authentication access controller, and the identity ciphertext message acquired by the acquiring unit 1101 further includes a specific security policy, and the specific security policy is determined by the requesting device based on the security capability parameter information.
[0251] In some embodiments, the key request message sent from the third sending unit further includes an identity identifier of at least one authentication server trusted by the authentication access controller, the identity ciphertext message acquired by the acquiring unit 1101 further includes an identity identifier of at least one authentication server trusted by the requesting device, and the authentication access controller further includes: and a second determination unit configured to determine the first authentication server based on an identity identifier of at least one authentication server trusted by the requesting device in the identity ciphertext message and an identity identifier of at least one authentication server trusted by the authentication access controller in the key request message.
[0252] In some embodiments, the identity ciphertext message acquired by the acquiring unit 1101 further includes an identity identifier of at least one authentication server trusted by the requesting device, and the authentication access controller further comprises: and a third determination unit configured to determine the first authentication server based on an identity identifier of at least one authentication server trusted by the requesting device and an identity identifier of an authentication server trusted by the authentication access controller.
[0253] In some embodiments, the data to be encrypted in the identity information ciphertext of the authentication access controller further includes an identity identifier of the authentication access controller and a fourth protection random number; Correspondingly, the first authentication response message received by the first receiving unit 1103 further includes an identity identifier ciphertext of the authentication access controller, and the identity identifier ciphertext of the authentication access controller is generated by encrypting information including the identity identifier of the authentication access controller using the fourth protected random number; The authentication access controller further comprises: and a third verification unit configured to verify the identity identifier cryptogram of the authentication access controller based on the identity identifier of the authentication access controller itself and the fourth protection random number, and after the verification is passed, the first decision unit 1108 subsequently executes related steps.
[0254] In some embodiments, the identity ciphertext message acquired by the acquisition unit 1101 further includes a digital signature of the requesting device, and before the first determination unit 1108 determines the identity authentication result of the requesting device, the first determination unit 1108 is further configured to determine whether the digital signature of the requesting device passes verification, and if it determines that the digital signature of the requesting device passes verification, determine the identity authentication result of the requesting device according to the second verification result.
[0255] In some embodiments, the first determination unit 1108 further comprises: If the second authentication result information obtained by the decryption unit decrypting the second authentication result information ciphertext using the first protected random number further includes a digital certificate of the requesting device, verifying the digital signature of the requesting device using the digital certificate of the requesting device, and determining whether the digital signature of the requesting device passes verification according to a verification result; or The second authentication server is configured to verify the digital signature of the requesting device using the digital certificate of the requesting device obtained by decrypting the identity information ciphertext of the requesting device, and determine that the digital signature of the requesting device has passed verification when the authentication access controller receives the first authentication response message. In some embodiments, the fourth authentication response message received by the second receiving unit 1106 further includes a digital signature of the requesting device, and the second authentication result information obtained by the decryption unit 1107 decrypting the second authentication result information ciphertext using the first protected random number further includes a digital certificate of the requesting device, and the first determination unit 1108 is further configured to verify the digital signature of the requesting device using the digital certificate of the requesting device in the second authentication result information before determining the identity authentication result of the requesting device, and if it determines that the digital signature of the requesting device passes the verification, determine the identity authentication result of the requesting device according to the second verification result.
[0256] In some embodiments, the fourth authentication response message received by the second receiving unit 1106 further includes a second message integrity check code, and the second message integrity check code is generated by the requesting device using a message integrity check key to calculate other fields in the fourth authentication response message other than the second message integrity check code, and the authentication access controller further comprises: A fourth verifying unit configured to verify the second message integrity check code, and if the verification is passed, a first determining unit 1108 executes the step of determining an identity authentication result of the requesting device.
[0257] In some embodiments, the message sent by the authentication access controller to the requesting device further includes a hash value calculated by the authentication access controller over the most recent preceding message received from the requesting device, and the message sent by the authentication access controller to the first authentication server further includes a hash value calculated by the authentication access controller over the most recent preceding message received from the first authentication server.
[0258] Referring to FIG. 12, the present embodiment further provides a request device (REQ), the REQ comprising: a first sending unit 1201 configured to send an identity ciphertext message to an authentication access controller, the identity ciphertext message including an identity information ciphertext of the requesting device, the identity information ciphertext of the requesting device being generated by encrypting data to be encrypted, the data including a digital certificate of the requesting device and a first protected random number, using a public key of an encryption certificate; a first receiving unit 1202 configured to receive a third authentication response message transmitted from the authentication access controller, the third authentication response message including an authentication result information ciphertext, the authentication result information ciphertext being generated by encrypting encryption target data including a first authentication result information ciphertext, a first digital signature, and a second protected random number using a message encryption key, where the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information including a first verification result against a digital certificate of the authentication access controller, and the first digital signature is a digital signature generated by a second authentication server trusted by the requesting device by performing a calculation on signature target data including the first authentication result information ciphertext; a first decryption unit 1203 configured to decrypt the authentication result information ciphertext using the message encryption key to obtain the first authentication result information ciphertext, the first digital signature, and the second protected random number; A first verification unit 1204, The first verification unit 1204 is configured to verify the first digital signature by using a public key of the second authentication server, and if the verification is passed, the first decryption unit 1203 decrypts the first authentication result information ciphertext by using the second protected random number to obtain the first authentication result information; the first determination unit 1205 determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; and if the first determination unit 1205 determines that the identity authentication result of the authentication access controller is valid, the second sending unit 1206 sends a fourth authentication response message to the authentication access controller; or The first verification unit 1204 is configured to verify the first digital signature by using a public key of the second authentication server, and if the verification is passed, the second sending unit 1206 sends a fourth authentication response message to the authentication access controller; the first decryption unit 1203 decrypts the first authentication result information ciphertext by using the second protected random number to obtain the first authentication result information; and the first determination unit 1205 determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; or the first verification unit 1204 is configured to verify the first digital signature by using a public key of the second authentication server; if the first digital signature passes the verification, the first decryption unit 1203 decrypts the first authentication result information ciphertext by using the second protected random number to obtain the first authentication result information; the first determination unit 1205 determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; the second sending unit 1206 sends a fourth authentication response message to the authentication access controller; Here, the fourth authentication response message includes a first protected random number ciphertext, and the first protected random number ciphertext is obtained by encrypting information including the first protected random number using the message encryption key.
[0259] In some embodiments, the requesting device further comprises: a second receiver configured to receive a key request message sent from the authentication access controller, the key request message including key exchange parameters of the authentication access controller; a first calculation unit configured to perform a key exchange calculation to generate a first key based on a temporary private key corresponding to a key exchange parameter of the requesting device and a temporary public key included in a key exchange parameter of the authentication access controller, and to calculate the message encryption key using a key derivation algorithm based on information including the first key; The identity ciphertext message transmitted from first transmitting unit 1201 further includes the key exchange parameters of the requesting device.
[0260] In some embodiments, the key request message received by the second receiver further includes a first random number generated by the authentication access controller; the first calculation unit is further configured to calculate the message encryption key based on information including the first key, the first random number, and a second random number generated by the requesting device; The identity ciphertext message sent from the first sending unit 1201 further includes the second random number.
[0261] In some embodiments, the identity ciphertext message sent from the first sending unit 1201 further includes the first random number.
[0262] In some embodiments, the key request message received by the second receiving unit further includes security capability parameter information supported by the authentication access controller, and the requesting device further includes: a second determination unit configured to determine a particular security policy to be used by the requesting device based on the security capability parameter information; The identity ciphertext message sent from the first sending unit 1201 further includes the specific security policy.
[0263] In some embodiments, the key request message received by the second receiving unit further includes an identity identifier of at least one authentication server trusted by the authentication access controller, and the requesting device further includes: a third determination unit configured to determine an identity identifier of at least one authentication server trusted by the requesting device based on an identity identifier of at least one authentication server trusted by the authentication access controller; The identity ciphertext message sent from the first sending unit 1201 further includes an identity identifier of at least one authentication server trusted by the requesting device.
[0264] In some embodiments, the identity ciphertext message sent from the first sending unit 1201 further includes an identity identifier of at least one authentication server trusted by the requesting device.
[0265] In some embodiments, the data to be encrypted in the identity information ciphertext of the requesting device further includes an identity identifier of the requesting device and a third protected random number; Correspondingly, the first authentication response message further includes an identity identifier ciphertext of the requesting device, the identity identifier ciphertext of the requesting device being generated by encrypting information including the identity identifier of the requesting device with the third protected random number; data to be encrypted in the authentication result information ciphertext in the third authentication response message further includes an identity identifier ciphertext of the requesting device; A first decryption unit 1203 decrypts the authentication result information ciphertext to further obtain an identity identifier ciphertext of the requesting device, and the requesting device further and a second verification unit configured to verify the identity identifier ciphertext of the requesting device based on the identity identifier of the requesting device itself and the third protected random number, and after the verification is passed, a first determination unit 1205 executes a step of determining an identity authentication result of the authentication access controller.
[0266] In some embodiments, before the first determination unit 1205 determines the identity authentication result of the authentication access controller, the first determination unit 1205 is further configured to determine whether a digital signature of the authentication access controller passes verification, and if it determines that the digital signature of the authentication access controller passes verification, determines the identity authentication result of the authentication access controller according to the first verification result. In some embodiments, the first determination unit 1205 further comprises: When the first authentication request message sent by the authentication access controller to a first authentication server trusted by the authentication access controller further includes a digital signature of the authentication access controller, the first authentication server verifies the digital signature of the authentication access controller using the digital certificate of the authentication access controller obtained by decrypting the identity information ciphertext of the authentication access controller, and when the first receiving unit 1202 receives the third authentication response message, determines that the digital signature of the authentication access controller has passed the verification; or If the third authentication response message received by the first receiving unit 1202 further includes a digital signature of the authentication access controller, the first authentication result information obtained by the first decryption unit 1203 decrypting the first authentication result information ciphertext further includes a digital certificate of the authentication access controller, and the first determination unit 1205 is configured to verify the digital signature of the authentication access controller using the digital certificate of the authentication access controller, and determine whether the digital signature of the authentication access controller passes verification according to the verification result.
[0267] In some embodiments, the third authentication response message received by the first receiving unit 1202 further includes a first message integrity check code, and the first message integrity check code is generated by the authentication access controller using a message integrity check key to calculate other fields in the third authentication response message other than the first message integrity check code, and the requesting device further comprises: and a third verification unit configured to verify the first message integrity check code, and if the verification is passed, a first determination unit 1205 executes a step of determining an identity authentication result of the authentication access controller.
[0268] In some embodiments, the message sent by the requesting device to the authentication access controller further includes a hash value calculated by the requesting device over the most recent preceding message received from the authentication access controller.
[0269] Referring to FIG. 13, the present embodiment further provides a first authentication server (AS-AAC), which is an authentication server trusted by the authentication access controller, and the AS-AAC includes: a first receiving unit 1301 configured to receive a first authentication request message sent from an authentication access controller, the first authentication request message including a requesting device's identity information ciphertext and the authentication access controller's identity information ciphertext, the authentication access controller's identity information ciphertext being generated by encrypting data to be encrypted, the data including the authentication access controller's digital certificate and a second protected random number, with a public key of an encryption certificate, and the requesting device's identity information ciphertext being generated by encrypting data to be encrypted, the data including the requesting device's digital certificate and a first protected random number, with a public key of an encryption certificate; and a first sending unit 1302 configured to send a first authentication response message to the authentication access controller, the first authentication response message including a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, where the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information includes a first verification result against a digital certificate of the authentication access controller, the first digital signature is a digital signature generated by a second authentication server trusted by the requesting device by performing a calculation on signature target data including the first authentication result information ciphertext, the second authentication result information ciphertext is generated by encrypting information including the second authentication result information using the first protected random number, the second authentication result information includes a second verification result against a digital certificate of the requesting device, and the second digital signature is a digital signature generated by the first authentication server by performing a calculation on signature target data including the second authentication result information ciphertext.
[0270] In some embodiments, if the first authentication request message received by the first receiving unit 1301 further includes a digital signature of the authentication access controller, the first authentication server further comprises: The authentication access controller further includes a first verification unit configured to verify a digital signature of the authentication access controller using a digital certificate of the authentication access controller obtained by decrypting an identity information ciphertext of the authentication access controller.
[0271] In some embodiments, the first authentication server trusted by the authentication access controller is the same authentication server as the second authentication server trusted by the requesting device, and the first authentication server further comprises: a first acquisition unit configured to acquire a digital certificate of the requesting device, the first protected random number, a digital certificate of the authentication access controller, and the second protected random number obtained by decrypting the identity information ciphertext of the requesting device and the identity information ciphertext of the authentication access controller using private keys corresponding to encrypted certificates; a second verification unit configured to perform validity verification on a digital certificate of the authentication access controller to obtain a first verification result, and to perform validity verification on a digital certificate of the requesting device to obtain a second verification result; and a first generation unit configured to generate first authentication result information based on information including the first verification result, generate second authentication result information based on information including the second verification result, encrypt information including the first authentication result information using the second protected random number to generate a first authentication result information ciphertext, encrypt information including the second authentication result information using the first protected random number to generate a second authentication result information ciphertext, perform a calculation on data to be signed including the first authentication result information ciphertext to generate a first digital signature, perform a calculation on data to be signed including the second authentication result information ciphertext to generate a second digital signature, and generate a first authentication response message based on information including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext, and the second digital signature.
[0272] In some embodiments, the first authentication server trusted by the authentication access controller and the second authentication server trusted by the requesting device are two different authentication servers, and the first authentication server further comprises: a second acquisition unit configured to acquire a digital certificate of the authentication access controller and the second protected random number obtained by decrypting the identity information ciphertext of the authentication access controller using a private key corresponding to the encrypted certificate; A third verification unit configured to perform validity verification on the digital certificate of the authentication access controller to obtain a first verification result; a second generation unit configured to generate first authentication result information based on information including the first verification result, encrypt information including the first authentication result information using the second protected random number to generate a first authentication result information ciphertext, and perform calculation on signature target data including the first authentication result information ciphertext and the requesting device identity information ciphertext to generate a third digital signature; a second transmission unit configured to transmit a second authentication request message to the second authentication server, the second authentication request message including the first authentication result information ciphertext, the requester device's identity information ciphertext, and the third digital signature; a second receiving unit configured to receive a second authentication response message transmitted from the second authentication server, the second authentication response message including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext, and a fourth digital signature, the fourth digital signature being a digital signature generated by the second authentication server by performing a calculation on signature target data including the second authentication result information ciphertext; a fourth verification unit configured to verify the fourth digital signature using a public key of the second authentication server; and a third generation unit configured to, if the fourth digital signature passes verification, perform calculations on signature target data including the second authentication result information ciphertext to generate a second digital signature, and to generate a first authentication response message based on information including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext, and the second digital signature.
[0273] In some embodiments, the message sent by the first authentication server to the authentication access controller further includes a hash value calculated by the first authentication server over the most recent preceding message received from the authentication access controller, and the message sent by the first authentication server to the second authentication server further includes a hash value calculated by the first authentication server over the most recent preceding message received from the second authentication server.
[0274] Referring to FIG. 14, the present embodiment further provides a second authentication server (AS-REQ), the second authentication server being an authentication server trusted by the requesting device. When the first authentication server trusted by the authentication access controller and the second authentication server trusted by the requesting device are two different authentication servers, the second authentication server: a receiving unit 1401 configured to receive a second authentication request message sent from a first authentication server, the second authentication request message including a first authentication result information ciphertext, an identity information ciphertext of the requesting device, and a third digital signature, the third digital signature being a digital signature generated by the first authentication server by performing a calculation on signature target data including the first authentication result information ciphertext and the identity information ciphertext of the requesting device; a first verification unit 1402 configured to verify the third digital signature using a public key of the first authentication server; an acquiring unit 1403 configured to acquire a digital certificate of the requesting device and a first protected random number obtained by decrypting the identity information ciphertext of the requesting device using a private key corresponding to an encryption certificate when the third digital signature passes verification; A second verification unit 1404 configured to perform validity verification on the digital certificate of the requesting device to obtain a second verification result; a generation unit 1405 configured to generate second authentication result information based on information including the second verification result, encrypt information including the second authentication result information using the first protected random number to generate a second authentication result information ciphertext, perform calculations on data to be signed including the first authentication result information ciphertext to generate a first digital signature, and perform calculations on data to be signed including the second authentication result information ciphertext to generate a fourth digital signature; and a sending unit 1406 configured to send a second authentication response message to the first authentication server, the second authentication response message including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext and the fourth digital signature.
[0275] In some embodiments, the message sent by the second authentication server to the first authentication server further includes a hash value calculated by the second authentication server over the most recent preceding message received from the first authentication server.
[0276] 15 is an exemplary structural diagram of an electronic device according to an embodiment of the present application. As shown in FIG. 15, the electronic device 1500 may be an authentication access controller, a requesting device, a first authentication server, or a second authentication server, as described below. The electronic device 1500 includes a memory 1502 configured to store a computer program, and a processor 1501 configured to call and execute the computer program stored in the memory 1502 to execute the steps executed by the authentication access controller, the requesting device, the first authentication server, or the second authentication server in any of the above embodiments. Here, the processor 1501 and the memory 1502 of the electronic device 1500 may be the processor 1501 and the memory 1502 of the authentication access controller, the requesting device, the first authentication server, or the second authentication server, as described below, respectively.
[0277] In the following, the authentication access controller, the requesting device, the first authentication server, and the second authentication server will be described as examples with reference to FIG.
[0278] An embodiment of the present application further provides an authentication access controller (AAC), comprising: a memory configured to store a computer program; and a processor configured to call and execute the computer program stored in the memory to perform the steps performed by the AAC in any of the above embodiments.
[0279] It should be understood that the authentication access controller can implement the corresponding processes implemented by the AAC in each method of the present embodiment, and for the sake of brevity, they will not be repeated here.
[0280] An embodiment of the present application further provides a requesting device (REQ), the REQ comprising a memory configured to store a computer program, and a processor configured to call and execute the computer program stored in the memory to perform the steps performed by the REQ in any of the above embodiments.
[0281] It should be understood that the request device can implement the corresponding processes implemented by REQ in each method of the present embodiment, which will not be repeated here for the sake of brevity.
[0282] The present embodiment further provides a first authentication server (AS-AAC), which is an authentication server trusted by an authentication access controller (AAC), comprising a memory configured to store a computer program, and a processor configured to call and execute the computer program stored in the memory to perform the steps performed by the AS-AAC in any of the above embodiments.
[0283] It should be understood that the first authentication server can implement the corresponding processes implemented by AS-AAC in each method of the present embodiment, and will not be described again here for brevity.
[0284] The present embodiment further provides a second authentication server (AS-REQ) which is an authentication server trusted by the requesting device (REQ), and when the first authentication server trusted by the AAC and the second authentication server trusted by the REQ are two different authentication servers, the second authentication server comprises a memory configured to store a computer program, and a processor configured to call and execute the computer program stored in the memory to perform the steps performed by the AS-REQ in any of the above embodiments.
[0285] It should be understood that the second authentication server can implement the corresponding process implemented by AS-REQ in each method of the present embodiment, and will not be described again here for brevity.
[0286] It should be noted that the processor in the authentication access controller, the requesting device, the first authentication server or the second authentication server in the present embodiment may also perform methods in other embodiments, such as other methods in the above method embodiments, and the present embodiment is not limited thereto.
[0287] FIG. 16 is an exemplary structural diagram of a chip according to an embodiment of the present application. As shown in FIG. 16, a chip 1600 includes a processor 1601 and a memory 1602. The processor 1601 calls and executes a computer program from the memory 1602, thereby causing an authentication access controller mounted on the chip 1600 to perform the steps performed by the authentication access controller in any of the above embodiments; or causing a requester equipped with said chip 1600 to perform the steps performed by said requester in any of the above embodiments; or or causing a first authentication server equipped with the chip 1600 to perform the steps performed by the first authentication server in any of the above embodiments; or The chip 1600 causes a second authentication server equipped with the chip 1600 to perform the steps performed by the second authentication server in any of the above embodiments.
[0288] The memory 1602 may be located within the chip 1600 or may be located external to the chip 1600 .
[0289] The present embodiment further provides a computer storage medium having a computer program stored thereon, the computer program causing an authentication access controller to perform the steps performed by the authentication access controller in any of the above embodiments, or The computer program causes a requester device to carry out the steps performed by the requester device in any of the above embodiments; or The computer program causes a first authentication server to perform the steps performed by the first authentication server in any of the above embodiments, or The computer program causes a second authentication server to perform the steps performed by the second authentication server in any of the above embodiments.
[0290] The present embodiment further provides a computer program, the computer program causing an authentication access controller to perform the steps performed by the authentication access controller in any of the above embodiments, or The computer program causes a requester device to carry out the steps performed by the requester device in any of the above embodiments; or The computer program causes a first authentication server to perform the steps performed by the first authentication server in any of the above embodiments, or The computer program causes a second authentication server to perform the steps performed by the second authentication server in any of the above embodiments.
[0291] As can be understood by those skilled in the art, all or some of the steps of the above-mentioned method embodiments can be completed by hardware associated with program instructions, the program can be stored in a computer storage medium, and when the program is executed, it performs the steps of the above-mentioned method embodiments, and the aforementioned computer storage medium may be at least one of a medium capable of storing program code, such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0292] Each part, chip or processor of the present embodiment may be an integrated circuit chip having a signal processing capability. In the implementation process, each step of the above method embodiment may be completed by an instruction in the form of software or a hardware integrated logic circuit in a processor. Each part, chip or processor may include an integration of at least one of the following: a general-purpose processor, an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), a controller, a microcontroller, a microprocessor, a programmable logic device, a discrete gate or transistor logic device, and a discrete hardware device.
[0293] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between each embodiment can be referred to each other, and each embodiment is described focusing on the difference with other embodiments. In particular, the device and system embodiments are described briefly because they are consistent and corresponding to the method embodiments, and the relevant parts can be referred to the description of the corresponding parts of the method embodiments. The device and system embodiments described above are merely illustrative, and the parts described as separate parts may or may not be physically separated, and the parts shown in part may or may not be physical parts, that is, they may be located in one place or distributed to multiple network parts. According to actual needs, some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment. Those skilled in the art can understand and implement it without creative efforts.
[0294] The above are merely exemplary embodiments of the present application, and the scope of protection of the present application is not limited thereto. Any modifications or replacements that a person skilled in the art can easily conceive within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims. [Industrial Applicability]
[0295] The embodiments of the present disclosure disclose an identity authentication method, an apparatus, a device, a chip, a storage medium, and a program, which perform secret processing on the identity information of both the requesting device and the authentication access controller to prevent the identity information of the requesting device and the authentication access controller from being exposed during transmission, and perform secret processing on the first and second verification results when transmitting a first verification result of the digital certificate of the authentication access controller and a second verification result of the digital certificate of the requesting device between a first authentication server and the authentication access controller and between the authentication access controller and the requesting device to prevent the first and second verification results from being exposed during transmission. This prevents an attacker from obtaining private confidential information in the process of the requesting device accessing a network via the authentication access controller, and also provides a foundation for realizing two-way real-time identity authentication between the requesting device and the authentication access controller while ensuring the confidentiality of the entity's identity-related information by introducing an authentication server, thereby allowing only legitimate users to communicate with a legitimate network.
Claims
1. 1. A method for identity authentication, comprising: an authentication access controller obtaining an identity ciphertext message sent from a requesting device, the identity ciphertext message including an identity information ciphertext of the requesting device, the identity information ciphertext of the requesting device being generated by encrypting data to be encrypted, the data including a digital certificate of the requesting device and a first protected random number, using a public key of an encryption certificate; The authentication access controller sends a first authentication request message to a first authentication server trusted by the authentication access controller, the first authentication request message including an identity information ciphertext of the requesting device and an identity information ciphertext of the authentication access controller, and the identity information ciphertext of the authentication access controller is generated by encrypting data to be encrypted, the data including the digital certificate of the authentication access controller and a second protected random number, using a public key of an encryption certificate; the authentication access controller receives a first authentication response message transmitted from the first authentication server, the first authentication response message including a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information includes a first verification result against a digital certificate of the authentication access controller, the first digital signature is a digital signature generated by a second authentication server trusted by the requesting device by performing a calculation on signature target data including the first authentication result information ciphertext, the second authentication result information ciphertext is generated by encrypting information including the second authentication result information using the first protected random number, the second authentication result information includes a second verification result against a digital certificate of the requesting device, and the second digital signature is a digital signature generated by the first authentication server by performing a calculation on signature target data including the second authentication result information ciphertext; the authentication access controller verifies the second digital signature using a public key of the first authentication server, and after the second digital signature passes verification, the authentication access controller sends a third authentication response message to the requesting device, the third authentication response message including an authentication result information ciphertext, and the authentication result information ciphertext is generated by encrypting encryption target data including the first authentication result information ciphertext, the first digital signature, and the second protected random number using a message encryption key; the requesting device decrypts the authentication result information ciphertext using the message encryption key to obtain the first authentication result information ciphertext, the first digital signature, and the second protected random number; The requesting device verifies the first digital signature using a public key of the second authentication server, and if the verification is passed, the requesting device decrypts the first authentication result information ciphertext using the second protected random number to obtain the first authentication result information, and determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information, and if the requesting device determines that the identity authentication result of the authentication access controller is valid, sends a fourth authentication response message to the authentication access controller; or The requesting device verifies the first digital signature using the public key of the second authentication server, and if the verification is successful, the requesting device sends a fourth authentication response message to the authentication access controller, and uses the second protected random number to decrypt the first authentication result information ciphertext to obtain the first authentication result information, and determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; or the requesting device verifies the first digital signature using a public key of the second authentication server, and if the first digital signature passes the verification, the requesting device decrypts the first authentication result information ciphertext using the second protected random number to obtain the first authentication result information, and determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information, and the requesting device sends a fourth authentication response message to the authentication access controller; the fourth authentication response message includes a first protected random number ciphertext, and the first protected random number ciphertext is obtained by encrypting information including the first protected random number using the message encryption key; and after receiving the fourth authentication response message, the authentication access controller decrypts the first protected random number ciphertext using the message encryption key to obtain the first protected random number, decrypts the second authentication result information ciphertext using the first protected random number to obtain the second authentication result information, and determines an identity authentication result of the requesting device according to a second verification result in the second authentication result information.
2. Before the authentication access controller obtains an identity ciphertext message sent from a requesting device, the identity authentication method includes: the authentication access controller sending a key request message to the requesting device, the key request message including key exchange parameters of the authentication access controller; the requesting device performs a key exchange calculation to generate a first key based on a temporary private key corresponding to a key exchange parameter of the requesting device and a temporary public key included in a key exchange parameter of the authentication access controller, and calculates the message encryption key using a key derivation algorithm based on information including the first key; Correspondingly, the identity ciphertext message further includes key exchange parameters of the requesting device; and The authentication access controller performs a key exchange calculation to generate the first key based on a temporary private key corresponding to a key exchange parameter of the authentication access controller and a temporary public key included in a key exchange parameter of the requesting device, and calculates the message encryption key using the key derivation algorithm based on information including the first key. The method of claim 1 .
3. the key request message further includes a first random number generated by the authentication access controller; The requesting device calculating the message encryption key comprises: the requesting device calculating the message encryption key based on information including the first key, the first random number, and a second random number generated by the requesting device; Correspondingly, the identity ciphertext message further includes the second random number; The authentication access controller calculating the message encryption key comprises: the authentication access controller calculating the message encryption key based on information including the first key, the first random number, and the second random number. The method of identity authentication according to claim 2.
4. the identity ciphertext message further includes the first random number; Before the authentication access controller calculates the message encryption key, the identity authentication method includes: The authentication access controller further includes verifying a match between a first random number in the identity ciphertext message and a first random number generated by the authentication access controller; If the verification is successful, the authentication access controller calculates the message encryption key. The method of identity authentication according to claim 3.
5. The key request message further includes security capability parameter information supported by the authentication access controller, and the identity authentication method includes: The method further includes determining, based on the security capability parameter information, a particular security policy to be used by the requesting device; the identity ciphertext message further includes the particular security policy. A method for identity authentication according to any one of claims 2 to 4.
6. The key request message further includes an identity identifier of at least one authentication server trusted by the authentication access controller, and the identity authentication method includes: The requesting device further includes determining an identity identifier of at least one authentication server trusted by the requesting device based on an identity identifier of at least one authentication server trusted by the authentication access controller; The identity ciphertext message further includes an identity identifier of at least one authentication server trusted by the requesting device, and the identity authentication method includes: and determining, by the authentication access controller, the first authentication server based on an identity identifier of at least one authentication server trusted by the requesting device in the identity cryptogram message and an identity identifier of at least one authentication server trusted by the authentication access controller in the key request message. A method for identity authentication according to any one of claims 2 to 5.
7. The identity ciphertext message further includes an identity identifier of at least one authentication server trusted by the requesting device, and the identity authentication method includes: and determining the first authentication server based on an identity identifier of at least one authentication server trusted by the requesting device and an identity identifier of an authentication server trusted by the authentication access controller. A method for identity authentication according to any one of claims 1 to 6.
8. The encryption target data of the identity information ciphertext of the requesting device further includes an identity identifier of the requesting device and a third protected random number; The encryption target data of the identity information ciphertext of the authentication access controller further includes an identity identifier of the authentication access controller and a fourth protection random number; Correspondingly, the first authentication response message further includes a requesting device identity identifier ciphertext and an authentication access controller identity identifier ciphertext, where the requesting device identity identifier ciphertext is generated by encrypting information including the requesting device identity identifier with the third protected random number, and the authentication access controller identity identifier ciphertext is generated by encrypting information including the authentication access controller identity identifier with the fourth protected random number; data to be encrypted in the authentication result information ciphertext in the third authentication response message further includes an identity identifier ciphertext of the requesting device; Before the requesting device determines the identity authentication result of the authentication access controller, the identity authentication method includes: The method further includes the requesting device decrypting the authentication result information ciphertext using the message encryption key to obtain an identity identifier ciphertext of the requesting device, and verifying the identity identifier ciphertext of the requesting device according to its own identity identifier and the third protected random number, and determining an identity authentication result of the authentication access controller after the verification is passed; Before the authentication access controller determines an identity authentication result of the requesting device, the identity authentication method includes: The authentication access controller further includes verifying an identity identifier cryptogram of the authentication access controller according to its own identity identifier and the fourth protection random number, and determining an identity authentication result of the requesting device after the verification is passed. A method for identity authentication according to any one of claims 1 to 7.
9. The identity authentication method includes: The third authentication response message further includes a first message integrity check code, and the first message integrity check code is generated by the authentication access controller using a message integrity check key to calculate other fields in the third authentication response message other than the first message integrity check code, and a generation method of the message integrity check key of the authentication access controller and a generation method of the message encryption key of the authentication access controller are the same; the requesting device performs a step of verifying the first message integrity check code, and if the verification is successful, the requesting device performs a step of determining an identity authentication result of the authentication access controller; and / or the fourth authentication response message further includes a second message integrity check code, the second message integrity check code being generated by the requesting device using a message integrity check key to calculate other fields in the fourth authentication response message than the second message integrity check code, and a generation method of the message integrity check key of the requesting device and a generation method of the message encryption key of the requesting device are the same; The authentication access controller further includes the step of verifying the second message integrity check code, and if the verification is successful, the authentication access controller performs a step of determining an identity authentication result of the requesting device. A method for identity authentication according to any one of claims 2 to 6.
10. The identity ciphertext message further includes a digital signature of the requesting device, and before the authentication access controller determines an identity authentication result of the requesting device, the identity authentication method includes: The authentication access controller further includes: determining whether the digital signature of the requesting device passes verification; and if the digital signature of the requesting device passes verification, the authentication access controller determines an identity authentication result of the requesting device according to the second verification result. A method for identity authentication according to any one of the preceding claims.
11. The authentication access controller determining whether a digital signature of the requesting device passes verification comprises: When the second authentication result information obtained by the authentication access controller using the first protected random number to decrypt the second authentication result information ciphertext further includes the digital certificate of the requesting device, the authentication access controller verifies the digital signature of the requesting device using the digital certificate of the requesting device, and determines whether the digital signature of the requesting device passes verification according to the verification result; or The second authentication server verifies a digital signature of the requesting device using a digital certificate of the requesting device obtained by decrypting the identity information ciphertext of the requesting device, and when the authentication access controller receives the first authentication response message, determines that the digital signature of the requesting device has passed the verification. The method of identity authentication according to claim 10.
12. the fourth authentication response message further includes a digital signature of the requesting device, and second authentication result information obtained by the authentication access controller decrypting the second authentication result information ciphertext using the first protected random number further includes a digital certificate of the requesting device, and before the authentication access controller determines an identity authentication result of the requesting device, the identity authentication method includes the steps of: The authentication access controller further includes verifying a digital signature of the requesting device using a digital certificate of the requesting device in the second authentication result information, and if it determines that the digital signature of the requesting device passes the verification, the authentication access controller determines an identity authentication result of the requesting device according to the second verification result. A method for identity authentication according to any one of claims 1 to 11.
13. Before the requesting device determines the identity authentication result of the authentication access controller, the identity authentication method includes: The requesting device further includes determining whether a digital signature of the authentication access controller passes verification, and if the requesting device determines that the digital signature of the authentication access controller passes verification, the requesting device determines an identity authentication result of the authentication access controller according to the first verification result; A method for identity authentication according to any one of claims 1 to 12.
14. The requesting device determining whether a digital signature of the authentication access controller passes verification comprises: When the first authentication request message further includes a digital signature of the authentication access controller, the first authentication server verifies the digital signature of the authentication access controller using a digital certificate of the authentication access controller obtained by decrypting the identity information ciphertext of the authentication access controller, and when the requesting device receives the third authentication response message, the requesting device determines that the digital signature of the authentication access controller passes verification; or When the third authentication response message further includes a digital signature of the authentication access controller, first authentication result information obtained by the requesting device decrypting the first authentication result information ciphertext further includes a digital certificate of the authentication access controller, and the requesting device verifies the digital signature of the authentication access controller using the digital certificate of the authentication access controller in the first authentication result information, and determines whether the digital signature of the authentication access controller passes verification according to a verification result. The method of identity authentication according to claim 13.
15. The first authentication server trusted by the authentication access controller is the same authentication server as the second authentication server trusted by the requesting device, and before the first authentication server sends a first authentication response message, the identity authentication method includes: the first authentication server decrypts the identity information ciphertext of the requesting device and the identity information ciphertext of the authentication access controller using a private key corresponding to the encrypted certificate to obtain the digital certificate of the requesting device, the first protected random number, the digital certificate of the authentication access controller, and the second protected random number; the first authentication server performs validity verification on the digital certificate of the authentication access controller to obtain a first verification result, performs validity verification on the digital certificate of the requesting device to obtain a second verification result, generates first authentication result information based on information including the first verification result, encrypts information including the first authentication result information using the second protected random number to generate a first authentication result information ciphertext, generates second authentication result information based on information including the second verification result, encrypts information including the second authentication result information using the first protected random number to generate a second authentication result information ciphertext, performs calculation on signature target data including the first authentication result information ciphertext to generate a first digital signature, performs calculation on signature target data including the second authentication result information ciphertext to generate a second digital signature, and generates a first authentication response message based on information including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext, and the second digital signature. A method for identity authentication according to any one of claims 1 to 14.
16. The first authentication server trusted by the authentication access controller and the second authentication server trusted by the requesting device are two different authentication servers, and before the first authentication server sends a first authentication response message, the identity authentication method includes: the first authentication server obtains a digital certificate of the authentication access controller and the second protected random number obtained by decrypting the identity information ciphertext of the authentication access controller using a private key corresponding to the encrypted certificate, performs validity verification on the digital certificate of the authentication access controller to obtain a first verification result, generates first authentication result information based on information including the first verification result, encrypts information including the first authentication result information using the second protected random number to generate a first authentication result information ciphertext, and performs calculation on signature target data including the first authentication result information ciphertext and the identity information ciphertext of the requesting device to generate a third digital signature; the first authentication server transmits a second authentication request message to a second authentication server, the second authentication request message including the first authentication result information ciphertext, the requesting device's identity information ciphertext and the third digital signature, the second authentication server verifies the third digital signature using a public key of the first authentication server, and after the verification is passed, performs validity verification on the requesting device's digital certificate obtained by decrypting the requesting device's identity information ciphertext using a private key corresponding to the encrypted certificate to obtain a second verification result, generates second authentication result information based on information including the second verification result, encrypts information including the second authentication result information using the first protected random number obtained by decrypting the requesting device's identity information ciphertext to generate a second authentication result information ciphertext, performs calculation on signature target data including the first authentication result information ciphertext to generate a first digital signature, and performs calculation on signature target data including the second authentication result information ciphertext to generate a fourth digital signature; the first authentication server receives a second authentication response message sent from the second authentication server, the second authentication response message including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext, and the fourth digital signature; the first authentication server verifies the fourth digital signature by using a public key of the second authentication server, and if the verification is successful, the first authentication server performs a calculation on data to be signed including the second authentication result information ciphertext to generate a second digital signature, and generates a first authentication response message based on information including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext, and the second digital signature. A method for identity authentication according to any one of claims 1 to 14.
17. if the message sent by the requesting device to the authentication access controller further includes a hash value calculated by the requesting device over the most recent preceding message received from the authentication access controller; When the authentication access controller receives the message sent from the requesting device, the authentication access controller first verifies a hash value in the received message, and performs a subsequent operation after the verification is passed; if the message sent by the authentication access controller to the requesting device further includes a hash value calculated by the authentication access controller over the most recent preceding message received from the requesting device; When the requesting device receives the message sent from the authentication access controller, the requesting device first verifies the hash value in the received message, and performs a subsequent operation after the verification is passed; if the message sent by the authentication access controller to the first authentication server further includes a hash value calculated by the authentication access controller on the most recent preceding message received from the first authentication server, When the first authentication server receives the message sent by the authentication access controller, the first authentication server first verifies the hash value in the received message, and performs subsequent operations after the verification is passed; if the message sent by the first authentication server to the authentication access controller further includes a hash value calculated by the first authentication server on the most recent preceding message received from the authentication access controller, When the authentication access controller receives a message sent from the first authentication server, the authentication access controller first verifies a hash value in the received message, and performs a subsequent operation after the verification is passed; if the message sent by the first authentication server to the second authentication server further includes a hash value calculated by the first authentication server on the most recent preceding message received from the second authentication server, When the second authentication server receives the message sent from the first authentication server, the second authentication server first verifies the hash value in the received message, and performs a subsequent operation after the verification is passed; If the message sent by the second authentication server to the first authentication server further includes a hash value calculated by the second authentication server on the most recent preceding message received from the first authentication server, When the first authentication server receives the message sent from the second authentication server, the first authentication server first verifies the hash value in the received message, and performs a subsequent operation after the verification is passed. A method for identity authentication according to any one of claims 1 to 16.
18. An authentication access controller, an acquisition unit configured to acquire an identity ciphertext message sent from a requesting device, the identity ciphertext message including an identity information ciphertext of the requesting device, the identity information ciphertext of the requesting device being generated by encrypting data to be encrypted, the data including a digital certificate of the requesting device and a first protected random number, using a public key of an encryption certificate; a first sending unit configured to send a first authentication request message to a first authentication server trusted by the authentication access controller, the first authentication request message including an identity information ciphertext of the requesting device and an identity information ciphertext of the authentication access controller, the identity information ciphertext of the authentication access controller being generated by encrypting data to be encrypted, the data including a digital certificate of the authentication access controller and a second protected random number, using a public key of an encryption certificate; a first receiving unit configured to receive a first authentication response message transmitted from the first authentication server, the first authentication response message including a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, the first authentication result information ciphertext is generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information includes a first verification result against a digital certificate of the authentication access controller, the first digital signature is generated by a second authentication server performing a calculation on signature target data including the first authentication result information ciphertext, the second authentication result information ciphertext is generated by encrypting information including the second authentication result information using the first protected random number, the second authentication result information includes a second verification result against a digital certificate of the requesting device, and the second digital signature is generated by the first authentication server performing a calculation on signature target data including the second authentication result information ciphertext; a first verification unit configured to verify the second digital signature using a public key of the first authentication server; a second transmission unit configured to transmit a third authentication response message to the requesting device after the second digital signature passes verification, the third authentication response message including an authentication result information ciphertext, and the authentication result information ciphertext is generated by encrypting data to be encrypted, the data including the first authentication result information ciphertext, the first digital signature, and the second protected random number, using a message encryption key; and a second receiving unit configured to receive a fourth authentication response message transmitted from the requesting device, the fourth authentication response message including a first protected random number ciphertext, the first protected random number ciphertext being obtained by encrypting information including the first protected random number using the message encryption key; and a decryption unit configured to decrypt the first protected random number ciphertext using the message encryption key to obtain the first protected random number, and to decrypt the second authentication result information ciphertext using the first protected random number to obtain the second authentication result information; a first determination unit configured to determine an identity authentication result of the requesting device according to a second verification result in the second authentication result information.
19. A request device, a first transmission unit configured to transmit an identity ciphertext message to an authentication access controller, the identity ciphertext message including an identity information ciphertext of the requesting device, the identity information ciphertext of the requesting device being generated by encrypting data to be encrypted, the data including the digital certificate of the requesting device and a first protected random number, using a public key of an encryption certificate; a first receiving unit configured to receive a third authentication response message transmitted from the authentication access controller, the third authentication response message including an authentication result information ciphertext, the authentication result information ciphertext being generated by encrypting encryption target data including a first authentication result information ciphertext, a first digital signature, and a second protected random number using a message encryption key, the first authentication result information ciphertext being generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information including a first verification result for a digital certificate of the authentication access controller, and the first digital signature being a digital signature generated by a second authentication server trusted by the requesting device by performing a calculation on signature target data including the first authentication result information ciphertext; a first decryption unit configured to decrypt the authentication result information ciphertext using the message encryption key to obtain the first authentication result information ciphertext, the first digital signature, and the second protected random number; A first verification unit, configured to verify the first digital signature using a public key of the second authentication server, and if the verification is passed, the first decryption unit uses the second protected random number to decrypt the first authentication result information ciphertext to obtain the first authentication result information; a first determination unit determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; and if the first determination unit determines that the identity authentication result of the authentication access controller is valid, a second transmission unit sends a fourth authentication response message to the authentication access controller; or configured to verify the first digital signature using a public key of the second authentication server, and if the verification is passed, a second sending unit sends a fourth authentication response message to the authentication access controller; the first decrypting unit decrypts the first authentication result information ciphertext using the second protected random number to obtain the first authentication result information; and a first determining unit determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; or configured to verify the first digital signature using a public key of the second authentication server, and if the first digital signature passes the verification, the first decryption unit decrypts the first authentication result information ciphertext using the second protected random number to obtain the first authentication result information; a first determination unit determines an identity authentication result of the authentication access controller according to a first verification result in the first authentication result information; and a second transmission unit sends a fourth authentication response message to the authentication access controller; The fourth authentication response message includes a first protected random number ciphertext, and the first protected random number ciphertext is obtained by encrypting information including the first protected random number using the message encryption key.
20. a first authentication server that is an authentication server trusted by the authentication access controller; a first receiving unit configured to receive a first authentication request message transmitted from an authentication access controller, the first authentication request message including a requesting device identity information ciphertext and the authentication access controller identity information ciphertext, the authentication access controller identity information ciphertext being generated by encrypting data to be encrypted including the authentication access controller digital certificate and a second protected random number using a public key of an encryption certificate, and the requesting device identity information ciphertext being generated by encrypting data to be encrypted including the requesting device digital certificate and the first protected random number using the public key of an encryption certificate; a first transmitting unit configured to transmit a first authentication response message to the authentication access controller, the first authentication response message including a first authentication result information ciphertext, a first digital signature, a second authentication result information ciphertext, and a second digital signature, the first authentication result information ciphertext being generated by encrypting information including the first authentication result information using the second protected random number, the first authentication result information including a first verification result against a digital certificate of the authentication access controller, the first digital signature being a digital signature generated by a second authentication server trusted by the requesting device by performing a calculation on signature-target data including the first authentication result information ciphertext, the second authentication result information ciphertext being generated by encrypting information including the second authentication result information using the first protected random number, the second authentication result information including a second verification result against the digital certificate of the requesting device, and the second digital signature being a digital signature generated by the first authentication server by performing a calculation on signature-target data including the second authentication result information ciphertext.
21. A second authentication server is an authentication server trusted by the requesting device, and the first authentication server trusted by the authentication access controller and the second authentication server trusted by the requesting device are two different authentication servers, and the second authentication server is: a receiving unit configured to receive a second authentication request message transmitted from a first authentication server, the second authentication request message including a first authentication result information ciphertext, an identity information ciphertext of the requesting device, and a third digital signature, the third digital signature being a digital signature generated by the first authentication server by performing a calculation on signature target data including the first authentication result information ciphertext and the identity information ciphertext of the requesting device; a first verification unit configured to verify the third digital signature using a public key of the first authentication server; an acquisition unit configured to acquire a digital certificate of the requesting device and a first protected random number obtained by decrypting the identity information ciphertext of the requesting device using a private key corresponding to an encryption certificate if the third digital signature passes verification; a second verification unit configured to perform validity verification on the digital certificate of the requesting device to obtain a second verification result; a generation unit configured to generate second authentication result information based on information including the second verification result, encrypt information including the second authentication result information using the first protected random number to generate a second authentication result information ciphertext, perform calculations on data to be signed including the first authentication result information ciphertext to generate a first digital signature, and perform calculations on data to be signed including the second authentication result information ciphertext to generate a fourth digital signature; a transmitting unit configured to transmit a second authentication response message to the first authentication server, the second authentication response message including the first authentication result information ciphertext, the first digital signature, the second authentication result information ciphertext, and the fourth digital signature.
Citation Information
Patent Citations
Identity authentication method based on public key certificate and system thereof
CN101631114A
Authentication system, authentication information transfer method for same system, and security device
JP2006350905A
Anonymous Entity Authentication Method and Apparatus This application claims priority based on the Chinese patent application filed with the Chinese National Patent Office on November 12, 2010, with application number 201010546339.3, with the title "Anonymous Entity Authentication Method and System," and incorporates all of its disclosures herein.
JP2013544052A
Method and apparatus for verifying the validity of entity identities involving multi-TTP
JP2018530269A
Protection of the UE Identity During 802.1x Carrier Hotspot and Wi-Fi Calling Authentication
US20180124597A1
