Self-adaptive commercial password authentication method and device, related equipment and storage medium
By transmitting status parameters and generating authentication quintuple vectors in the GBA protocol, and adaptively selecting cryptographic algorithms, the problem of incompatibility between the GBA protocol and commercial cryptography is solved, and the interconnection and network security of the GBA protocol are realized.
Patent Information
- Application Number
- CN202310956560.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2024-10-22
AI Technical Summary
The existing GBA protocol uses international encryption algorithms in mobile communication networks and is incompatible with commercial encryption, resulting in incompatibility with commercial encryption and affecting interconnection.
By transmitting status parameters between the network and the terminal, the authentication quintuple vector (AV) is adaptively generated. According to whether the terminal supports commercial cryptographic algorithms, the appropriate cryptographic algorithm is selected for authentication and key generation to ensure that the protocol is compatible with commercial secrets and International cryptographic algorithm.
It realizes the interconnection and interoperability of GBA protocol between different terminals and network equipment, ensures the data security of the network information system, is compatible with commercial secrets and international cryptographic algorithms, and improves network security.
Smart Images

Figure CN118828486A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to an authentication method, apparatus, related equipment and storage medium for an adaptive commercial password. Background Art
[0002] With the rapid development of Internet technology, the network security risks of information systems continue to increase, and the threat challenges are becoming increasingly severe. Cryptographic security is an important foundation for information security and can be used to effectively protect the data security of network information systems. my country's commercial encryption (hereinafter referred to as commercial encryption) is the core technology and important means to protect network information systems.
[0003] Generic Bootstrapping Architecture (GBA) is a general authentication and session key provision method based on mobile communication networks and user cards defined by the 3rd Generation Partner Project (3GPP). It can provide complete security authentication and application layer session channel encryption services for application layer services.
[0004] In the related technologies, the GBA protocol uses an international cryptographic algorithm, which is incompatible with commercial cryptography. Relevant technologies need to be used to make commercial cryptography and international algorithms compatible, so that GBA complies with commercial cryptography requirements and meets the needs of interoperability. Summary of the invention
[0005] In order to solve the related technical problems, the embodiments of the present application provide an authentication method, apparatus, related equipment and storage medium for an adaptive commercial password.
[0006] The technical solution of the embodiment of the present application is implemented as follows:
[0007] The embodiment of the present application provides an authentication method for an adaptive commercial password, which is applied to a first network device, including:
[0008] receiving a first request message of the GBA sent by a terminal; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial cryptographic algorithm;
[0009] Sending the state parameter to the second network device; the state parameter is used by the second network device to generate an authentication quintuple vector (Authentication Vector, AV);
[0010] receiving the AV sent by the second network device; generating authentication information corresponding to the first request information based on the state parameter and the AV;
[0011] The authentication information is sent to the terminal; the authentication information is used by the terminal to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or, when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm, to verify the authentication information using an international cryptographic algorithm.
[0012] In the above scheme, the state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the Universal Subscriber Identity Module (USIM) in the terminal supports the commercial cryptographic algorithm; the method also includes:
[0013] Acquire a third state parameter of the first network device; the third state parameter indicates whether the first network device supports a commercial cryptographic algorithm;
[0014] In the case where the third state parameter indicates that the first network device supports a commercial cryptographic algorithm, saving the first state parameter and the second state parameter; and sending the second state parameter to the second network device, so that the second network device generates the AV based on the second state parameter;
[0015] Receive the AV sent by the second network device; and generate the authentication information based on the first state parameter, the third state parameter and the AV.
[0016] In the above solution, the authentication information includes first authentication information or second authentication information; and generating the authentication information based on the first state parameter, the third state parameter and the AV includes:
[0017] In a case where the first state parameter indicates that the terminal itself supports the commercial cryptographic algorithm, generating the first authentication information using the commercial cryptographic algorithm, the third state parameter and the AV;
[0018] In the case where the first state parameter of the commercial cryptographic algorithm indicates that the terminal itself does not support the commercial cryptographic algorithm, the second authentication information is generated using the international cryptographic algorithm, the third state parameter and the AV.
[0019] In the above solution, the sending the authentication information to the terminal includes:
[0020] Sending the first authentication information to the terminal; the first authentication information is used by the terminal to verify the first authentication information using the algorithm corresponding to the third state parameter in the first authentication information when the first state parameter indicates that the terminal supports a commercial cryptographic algorithm;
[0021] or,
[0022] The second authentication information is sent to the terminal; the second authentication information is used by the terminal to verify the second authentication information using the commercial cryptographic algorithm when the second state parameter of the commercial cryptographic algorithm indicates that the USIM supports the commercial cryptographic algorithm.
[0023] In the above scheme, the method further comprises:
[0024] receiving first response information sent by the terminal based on the authentication information;
[0025] Verify the first response information by using the AV to obtain a verification result; if the verification result indicates that the first response information is verified, generate the root key of the GBA based on the AV; and generate the second response information based on the root key;
[0026] The second response information is sent to the terminal; the second response information is used by the terminal to determine the service key of the third network device based on the root key.
[0027] In the above scheme, the method further comprises:
[0028] Receiving second request information of a key of a target service sent by the third network device;
[0029] Acquire a third state parameter of the first network device; the third state parameter indicates whether the first network device supports a commercial cryptographic algorithm;
[0030] In a case where the third state parameter indicates that the first network device supports a commercial cryptographic algorithm, determining a service key corresponding to the second request information by using the commercial cryptographic algorithm;
[0031] In a case where the third state parameter indicates that the first network device does not support a commercial cryptographic algorithm, determining a service key corresponding to the second request information by using an international cryptographic algorithm;
[0032] The service key is sent to the third network device; the service key is used for the third network device to perform service interaction with the terminal.
[0033] The embodiment of the present application also provides an adaptive commercial password authentication method, which is applied to a terminal and includes:
[0034] Sending a first request message of GBA to a first network device; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial encryption algorithm; the first request message is used by the first network device to send the state parameter to the second network device, so that the second network device generates an AV;
[0035] Receiving authentication information sent by the first network device; the authentication information is generated based on the AV;
[0036] When the status parameter indicates that the terminal supports a commercial cryptographic algorithm, the authentication information is verified using the commercial cryptographic algorithm; or, when the status parameter indicates that the terminal does not support a commercial cryptographic algorithm, the authentication information is verified using an international cryptographic algorithm.
[0037] In the above scheme, the method further comprises:
[0038] Sending second request information corresponding to the target service to the third network device; the second request information is used by the third network device to determine the authentication method of the target service;
[0039] Receiving the authentication method sent by the third network device;
[0040] The first request information is sent to the first network device based on the authentication method.
[0041] In the above scheme, the state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the USIM in the terminal supports the commercial cryptographic algorithm; the authentication information includes the first authentication information or the second authentication information; the receiving of the authentication information sent by the first network device includes:
[0042] Receiving first authentication information sent by the first network device;
[0043] When the first state parameter indicates that the terminal supports a commercial cryptographic algorithm, verifying the first authentication information using the algorithm corresponding to the third state parameter in the first authentication information;
[0044] or,
[0045] Receiving second authentication information sent by the first network device;
[0046] In a case where the second state parameter of the commercial cryptographic algorithm represents that the USIM supports the commercial cryptographic algorithm, the second authentication information is verified using the commercial cryptographic algorithm.
[0047] In the above scheme, the method further comprises:
[0048] Sending first response information corresponding to the authentication information to the first network device; the first response information is used by the first network device to verify the first response information using the AV verification to obtain a verification result; if the verification result shows that the first response information is verified, generating the root key of the GBA based on the AV; generating second response information based on the root key;
[0049] receiving the second response information sent by the first network device;
[0050] A service key of a third network device is determined based on the root key.
[0051] The embodiment of the present application also provides an adaptive commercial password authentication method, which is applied to a second network device, including:
[0052] Receiving a state parameter sent by the first network device; the state parameter indicates whether the terminal supports a state corresponding to a commercial cryptographic algorithm;
[0053] generating an AV based on the state parameters;
[0054] The AV is sent to the first network device; the AV is used by the first network device to generate authentication information based on the state parameter and the AV, so that the terminal authenticates the authentication information according to the state parameter.
[0055] In the above scheme, the method further comprises:
[0056] The state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the USIM in the terminal supports the commercial cryptographic algorithm; the method further includes:
[0057] Receiving the second state parameter sent by the first network device;
[0058] generating the AV based on the second state parameter;
[0059] The AV is sent to the first network device; the AV is used to generate the authentication information based on the first state parameter and the AV.
[0060] The embodiment of the present application also provides an authentication method for an adaptive commercial password, which is applied to a third network device, including:
[0061] receiving second request information corresponding to the target service sent by the terminal;
[0062] Determining an authentication method for the target service based on the second request information;
[0063] The authentication method is sent to the terminal.
[0064] In the above scheme, the method further comprises:
[0065] Receiving a service key sent by the first network device; the service key is determined based on the second request information;
[0066] Perform service interaction with the terminal based on the service key.
[0067] The embodiment of the present application also provides an authentication device for an adaptive commercial password, which is arranged on a first network device and includes:
[0068] A first receiving unit, configured to receive a first request message of the GBA sent by a terminal; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial cryptographic algorithm;
[0069] A first sending unit, configured to send the state parameter to a second network device; the state parameter is used by the second network device to generate an AV;
[0070] The first receiving unit is further configured to receive the AV sent by the second network device;
[0071] A first generating unit, configured to generate authentication information corresponding to the first request information based on the state parameter and the AV;
[0072] The first sending unit is also used to send the authentication information to the terminal; the authentication information is used by the terminal to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or to verify the authentication information using an international cryptographic algorithm when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm.
[0073] The embodiment of the present application also provides an authentication device for an adaptive commercial password, which is arranged on a terminal and includes:
[0074] The second sending unit is used to send a first request message of GBA to the first network device; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial encryption algorithm; the first request message is used by the first network device to send the state parameter to the second network device, so that the second network device generates an AV;
[0075] A second receiving unit, configured to receive authentication information sent by the first network device; the authentication information is generated based on the AV;
[0076] A verification unit is used to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or to verify the authentication information using the international cryptographic algorithm when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm.
[0077] The embodiment of the present application also provides an authentication device for an adaptive commercial password, which is arranged on a second network device and includes:
[0078] A third receiving unit is used to receive a state parameter sent by the first network device; the state parameter represents whether the terminal supports a state corresponding to the commercial cryptographic algorithm;
[0079] A second generating unit, configured to generate an AV based on the state parameter;
[0080] The third sending unit is used to send the AV to the first network device; the AV is used by the first network device to generate authentication information based on the state parameter and the AV, so that the terminal authenticates the authentication information according to the state parameter.
[0081] The embodiment of the present application further provides an authentication device for an adaptive commercial password, which is arranged on a third network device and includes:
[0082] A fourth receiving unit, configured to receive second request information corresponding to the target service sent by the terminal;
[0083] A determining unit, configured to determine an authentication method for the target service based on the second request information;
[0084] A fourth sending unit is used to send the authentication method to the terminal.
[0085] The embodiment of the present application further provides a first network device, comprising: a first processor and a first memory for storing a computer program that can be run on the processor,
[0086] Wherein, when the first processor is used to run the computer program, it executes the steps of any one of the above-mentioned methods on the first network device side.
[0087] The embodiment of the present application further provides a terminal, comprising: a second processor and a second memory for storing a computer program that can be run on the processor,
[0088] Wherein, the second processor is used to execute the steps of any of the above-mentioned terminal-side methods when running the computer program.
[0089] The embodiment of the present application further provides a second network device, comprising: a third processor and a third memory for storing a computer program that can be run on the processor,
[0090] Wherein, the third processor is used to execute the steps of any one of the above-mentioned methods on the second network device side when running the computer program.
[0091] The embodiment of the present application further provides a third network device, comprising: a fourth processor and a fourth memory for storing a computer program that can be run on the processor,
[0092] The fourth processor is used to execute the steps of any one of the above-mentioned methods on the third network device side when running the computer program.
[0093] An embodiment of the present application also provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any method on the first network device side, or implements the steps of any method on the terminal side, or implements the steps of any method on the second network device side, or implements the steps of any method on the third network device side.
[0094] The authentication method, apparatus, related equipment and storage medium of adaptive commercial encryption provided by the embodiment of the present application, the first network device receives the first request information of GBA sent by the terminal; the first request information carries a state parameter; the state parameter indicates whether the terminal supports the commercial encryption algorithm; sends the state parameter to the second network device; the state parameter is used by the second network device to generate an AV; receives the AV sent by the second network device; generates authentication information corresponding to the first request information based on the state parameter and the AV; sends the authentication information to the terminal; the authentication information is used by the terminal to verify the authentication information using the commercial encryption algorithm when the state parameter indicates that the terminal supports the commercial encryption algorithm; or, when the state parameter indicates that the terminal does not support the commercial encryption algorithm, verify the authentication information using the international encryption algorithm. According to the embodiment of the present application, by introducing the state parameter to indicate whether the terminal supports the state corresponding to the commercial encryption algorithm, each network device can adaptively adopt the corresponding encryption algorithm according to the commercial encryption support state of the terminal, so that the protocol can be compatible with commercial encryption and international encryption algorithms. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] Figure 1 A schematic diagram of a method flow for authenticating an adaptive commercial password according to an embodiment of the present application;
[0096] Figure 2 A flowchart of another method for authenticating an adaptive commercial password according to an embodiment of the present application;
[0097] Figure 3 A flowchart of another method for authenticating an adaptive commercial password according to an embodiment of the present application;
[0098] Figure 4 A flowchart of another method for authenticating an adaptive commercial password according to an embodiment of the present application;
[0099] Figure 5 A schematic diagram of the process of GBA authentication of the adaptive commercial encryption algorithm according to the embodiment of the present application;
[0100] Figure 6 This is a schematic diagram of the structure of an authentication device for an adaptive commercial password according to an embodiment of the present application;
[0101] Figure 7 This is a schematic diagram of the structure of another adaptive commercial password authentication device according to an embodiment of the present application;
[0102] Figure 8 This is a schematic diagram of the structure of another adaptive commercial password authentication device according to an embodiment of the present application;
[0103] Fig. 9 This is a schematic diagram of the structure of another adaptive commercial password authentication device according to an embodiment of the present application;
[0104] Fig.10 This is a schematic diagram of the structure of the first network device in an embodiment of the present application;
[0105] Fig.11 This is a schematic diagram of the structure of the terminal in the embodiment of the present application;
[0106] Fig.12 This is a schematic diagram of the structure of the second network device in an embodiment of the present application;
[0107] Fig.13 This is a schematic diagram of the structure of the third network device in the embodiment of the present application;
[0108] Fig.14 This is a schematic diagram of the structure of the authentication system for adaptive commercial passwords according to an embodiment of the present application. DETAILED DESCRIPTION
[0109] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0110] For easier understanding, some terms are explained here.
[0111] USIM: stores the user's core key K, identifier and other data.
[0112] Mobile Equipment (ME): cooperates with USIM to complete network authentication.
[0113] User Equipment (UE): a general term for ME and USIM.
[0114] Bootstrapping Server Function (BSF): The core network element of GBA, generally in the same home network as the UE, used for UE authentication and key distribution.
[0115] Network Access Function (NAF): an application server that provides business services to UE and authenticates UE through BSF.
[0116] Home Subscriber Server (HSS) / Home Location Register (HLR): stores user subscription information, authentication data K, etc.
[0117] With the rapid development of Internet technology, the network security risks of information systems continue to increase, and the threat challenges are becoming increasingly severe. Cryptographic security is an important foundation for information security and can be used to effectively protect the data security of network information systems. my country's commercial encryption (hereinafter referred to as commercial encryption) is the core technology and important means to protect network information systems.
[0118] GBA is a general authentication and session key provision method based on mobile communication networks and user cards defined by 3GPP, which can provide complete security authentication and application layer session channel encryption services for application layer services.
[0119] The GBA protocol currently defined by 3GPP uses international cryptographic algorithms, which are incompatible with commercial cryptography. Relevant technologies need to be adopted to make commercial cryptography and international algorithms compatible so that GBA complies with commercial cryptography requirements and meets the needs of interoperability.
[0120] The existing technical solutions mainly adopt the following methods, which have the following disadvantages:
[0121] 1) The GBA protocol currently defined by 3GPP uses an international cryptographic algorithm that is not compatible with commercial cryptography.
[0122] 2) If the international algorithm is directly replaced with the commercial algorithm, all devices including USIM, ME, BSF and NAF are replaced and can operate normally. However, there are interoperability issues, such as terminals supporting commercial encryption accessing NAFs that do not support commercial encryption, and network authentication and key distribution cannot be completed due to algorithm incompatibility.
[0123] Based on this, in various embodiments of the present application, through the status of the network and the terminal, adaptive compatibility with commercial and international cryptographic algorithms is achieved to meet the needs of interconnection and interoperability.
[0124] The present application embodiment provides an adaptive commercial password authentication method, which is applied to a first network device, such as Figure 1 As shown, Figure 1 The present invention provides a flow chart of a method for authenticating an adaptive commercial password according to an embodiment of the present invention, including:
[0125] Step 101: receiving a first request message of GBA sent by a terminal; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial cryptographic algorithm;
[0126] Step 102: Send the state parameter to the second network device; the state parameter is used by the second network device to generate an AV;
[0127] Step 103: receiving the AV sent by the second network device; generating authentication information corresponding to the first request information based on the state parameter and the AV;
[0128] Step 104: Send the authentication information to the terminal; the authentication information is used by the terminal to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or, when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm, verify the authentication information using the international cryptographic algorithm.
[0129] It should be noted that the first network device and the second network device can be determined according to actual conditions and are not limited here. As an example, the first network device can be a network element, such as BSF; the second network device can be a server, such as HSS.
[0130] The terminal may also be determined according to actual conditions, which is not limited here. As an example, the terminal may be a user terminal, a user equipment, such as a UE; the UE may include an ME and a USIM.
[0131] In step 101, the first request information carries a state parameter; wherein the state parameter can be determined according to the specific situation, and is not limited here. As an example, the state parameter may include a first state parameter corresponding to the ME's own support for the relevant algorithm and / or a second state parameter corresponding to the USIM's own support for the relevant algorithm; the first state parameter may be recorded as ME_AS; the second state parameter may be recorded as USIM_AS. The state parameter characterizing whether the terminal supports the commercial cryptographic algorithm can be understood as the state parameter characterizing the state corresponding to whether the ME supports or does not support the commercial cryptographic algorithm; and / or the state corresponding to whether the USIM supports or does not support the commercial cryptographic algorithm.
[0132] The first request information of GBA sent by the receiving terminal; wherein, the first request information can be understood as authentication request information, and the authentication request information can include identity information; as an example, the first request information of GBA sent by the receiving terminal can be the authentication request information sent by ME in the BSF receiving terminal.
[0133] In actual applications, the ME sends an authentication request to the BSF, including identity information such as IMSI, etc. When the authentication process is started, the ME that supports commercial encryption generates the UE algorithm support status parameters ME_AS and USIM_AS according to the algorithm support of the device, otherwise the parameters may not be supported.
[0134] ME_AS contains the status of related algorithms supported by the ME device itself, which can be all the encryption algorithms supported, a list of hash algorithms, or the status of whether commercial encryption algorithms are supported.
[0135] USIM_AS contains the status of related algorithms supported by the USIM card itself, which can be all supported encryption algorithms, a list of hash algorithms, or the status of whether commercial encryption algorithms are supported.
[0136] ME sends ME_AS and USIM_AS to BSF via an initialization request. ME_AS and USIM_AS can be used as new parameters of the initialization request, or extended fields in the initialization request can be used. If USIM_AS does not support the commercial encryption algorithm, the registration request may not include this field. If ME does not support the commercial encryption algorithm, the communication message does not include ME_AS and USIM_AS.
[0137] In step 102, the state parameters are used to generate AV by the second network device; wherein, the AV includes RAND, AUTN, XRES, CK, and IK; wherein, RAND is a random number, CK is a subsequent session encryption key, IK is a subsequent session integrity key, AUTN is an authentication token, and XRES is an expected response; in actual applications, AV=RAND, AUTN, XRES, CK, IK, which can be recorded as AV (RAND, AUTN, XRES, CK, IK).
[0138] As an example, sending the status parameter to the second network device may be BSF sending ME_AS and / or USIM_AS to HSS. An HSS that does not support commercial cryptography uses an international algorithm to calculate AV. An HSS that supports commercial cryptography queries the commercial cryptography algorithm support status of the USIM corresponding to the IMSI based on the contract data of the USIM, compares it with the USIM_AS, returns an error if they are inconsistent, and generates USIM_AS based on the contract status of the USIM. Specifically, if the USIM_AS supports the commercial cryptography algorithm: the commercial cryptography algorithm should be used to calculate the AV; if the USIM_AS does not support the commercial cryptography algorithm, the international cryptographic algorithm should be used to calculate the AV.
[0139] In step 103, the authentication information corresponding to the first request information is generated based on the state parameter and the AV. The authentication information can be generated by using the commercial cryptographic algorithm and the AV when the state parameter indicates that the ME supports the commercial cryptographic algorithm; or, the authentication information corresponding to the first request information is generated by using an international cryptographic algorithm and the AV when the state parameter indicates that the ME does not support the commercial cryptographic algorithm.
[0140] As an example, BSF saves (CK, IK, XRES), and sends RAND and AUTN to ME via HTTP Digest 401 message, requiring ME to perform authentication.
[0141] BSF that does not support commercial encryption uses the international encryption algorithm to generate HTTP Digest's 401 message and includes the specific algorithm in the message. BSF that supports commercial encryption performs the following processing:
[0142] 1) If ME_AS supports a commercially encrypted algorithm: the commercially encrypted algorithm should be used to generate a 401 HTTP Digest message, and the specific algorithm should be included in the message.
[0143] 2) If ME_AS does not support commercial encryption algorithms: it should use the international encryption algorithm to generate the HTTP Digest 401 message and include the specific algorithm in the message.
[0144] In step 104, the authentication information is used by the terminal to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm. It can be understood that the ME that supports the commercial cryptographic algorithm obtains the support status of the first network device for the commercial cryptographic algorithm according to the algorithm carried in the authentication information when the status parameter indicates that the terminal supports the commercial cryptographic algorithm, and then verifies the authentication information using the commercial cryptographic algorithm; the authentication information is used by the terminal to verify the authentication information using the international cryptographic algorithm when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm. It can be understood that the ME that does not support the commercial cryptographic algorithm uses the international cryptographic algorithm to verify the authentication information.
[0145] As an example, ME verifies the HTTP Digest message, and ME sends (RAND, AUTN) to USIM. USIM verifies AUTN through AKA's authentication algorithm, confirms that this message comes from the authorized network, and calculates CK, IK, RES, and returns them to ME. In this way, the session keys IK and CK are shared between BSF and UE.
[0146] MEs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify HTTP Digest messages. MEs that support commercial cryptographic algorithms should obtain the BSF support status BSF_AS for commercial cryptographic algorithms based on the algorithms carried in the HTTP Digest message, and verify the HTTP Digest message with the corresponding algorithms.
[0147] USIMs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify AUTN and calculate CK, IK, and RES. USIMs that support commercial cryptographic algorithms use commercial cryptographic algorithms to verify AUTN and calculate CK, IK, and RES.
[0148] In the embodiment of the present application, based on the original GBA protocol, it is possible to adaptively and compatibly use commercial and international cryptographic algorithms according to the status of the network and the terminal to meet the needs of interconnection and interoperability.
[0149] In one embodiment, the state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the global user identity card USIM in the terminal supports the commercial cryptographic algorithm; the method further includes:
[0150] Acquire a third state parameter of the first network device; the third state parameter indicates whether the first network device supports a commercial cryptographic algorithm;
[0151] In the case where the third state parameter indicates that the first network device supports a commercial cryptographic algorithm, saving the first state parameter and the second state parameter; and sending the second state parameter to the second network device, so that the second network device generates the AV based on the second state parameter;
[0152] Receive the AV sent by the second network device; and generate the authentication information based on the first state parameter, the third state parameter and the AV.
[0153] In the embodiment of the present application, the state parameter includes a first state parameter and a second state parameter; wherein, the first state parameter and the second state parameter can be determined according to the specific situation, and are not limited here. As an example, the first state parameter can be ME_AS; the second state parameter can be recorded as USIM_AS. The first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm, which can be understood as ME supporting or not supporting the commercial cryptographic algorithm. The second state parameter represents whether the USIM in the terminal supports the commercial cryptographic algorithm, which can be understood as USIM supporting or not supporting the commercial cryptographic algorithm.
[0154] The third state parameter representing whether the first network device supports the commercial encryption algorithm can be understood as the third state parameter representing the state corresponding to whether the first network device supports or does not support the commercial encryption algorithm; the third state parameter can be determined based on actual conditions and is not limited here. As an example, the third state parameter can be recorded as BSF_AS.
[0155] As an example, when the third status parameter represents that the first network device supports commercial encryption algorithms, saving the first status parameter and the second status parameter may be saving ME_AS and USIM_AS when BSF_AS represents that BSF supports the state corresponding to the commercial encryption algorithm; sending the second status parameter to the second network device may be sending USIM_AS to HSS.
[0156] Receiving the AV sent by the second network device may be receiving the AV sent by the HSS; generating the authentication information based on the first state parameter, the third state parameter and the AV may be generating the authentication information based on ME_AS, USIM_AS and the AV.
[0157] In actual applications, the BSF that supports commercial cryptography saves ME_AS and USIM_AS, and sends USIM_AS to HSS through the Zh interface, otherwise this parameter can be ignored. The HSS that does not support commercial cryptography uses the international algorithm to calculate AV. The HSS that supports commercial cryptography queries the commercial cryptography algorithm support status of the USIM corresponding to the IMSI based on the contract data of the USIM, compares it with the USIM_AS, and returns an error if they are inconsistent, and generates USIM_AS based on the contract status of the USIM. The BSF retrieves the user's security configuration information GUSS and authentication vector AV (AV = RAND, AUTN, XRES, CK, IK) from the HSS through the Zh interface. In a multi-HSS environment, the BSF obtains the HSS address that stores user information by querying the SLF.
[0158] BSF saves (CK, IK, XRES), and sends RAND and AUTN to ME via HTTP Digest 401 message, requiring ME to perform authentication.
[0159] In one embodiment, the authentication information includes first authentication information or second authentication information; and generating the authentication information based on the first state parameter, the third state parameter and the AV includes:
[0160] In a case where the first state parameter indicates that the terminal itself supports the commercial cryptographic algorithm, generating the first authentication information using the commercial cryptographic algorithm, the third state parameter and the AV;
[0161] In the case where the first state parameter of the commercial cryptographic algorithm indicates that the terminal itself does not support the commercial cryptographic algorithm, the second authentication information is generated using the international cryptographic algorithm, the third state parameter and the AV.
[0162] In this embodiment, the authentication information includes first authentication information or second authentication information; wherein, the first authentication information and the second authentication information can be determined according to actual conditions and are not limited here. As an example, the first authentication information and the second authentication information can be HTTP Digest.
[0163] When the first state parameter represents that the terminal itself supports the commercial cryptographic algorithm, generating the first authentication information using the commercial cryptographic algorithm, the third state parameter and the AV can be understood as generating the first authentication information using the commercial cryptographic algorithm, the third state parameter and the AV when ME_AS represents that ME supports the commercial cryptographic algorithm.
[0164] When the first state parameter of the commercial cryptographic algorithm represents that the terminal itself does not support the commercial cryptographic algorithm, generating the second authentication information by using the international cryptographic algorithm, the third state parameter and the AV can be understood as generating the first authentication information by using the international cryptographic algorithm, the third state parameter and the AV when ME_AS represents that ME does not support the commercial cryptographic algorithm.
[0165] In actual applications, BSF that does not support commercial encryption uses the international encryption algorithm to generate HTTP Digest's 401 message and includes the specific algorithm in the message. BSF that supports commercial encryption performs the following processing:
[0166] 1) If ME_AS supports a commercially encrypted algorithm: the commercially encrypted algorithm should be used to generate a 401 HTTP Digest message, and the specific algorithm should be included in the message.
[0167] 2) If ME_AS does not support commercial encryption algorithms, it should use the international encryption algorithm to generate the HTTP Digest 401 message and include the specific algorithm in the message.
[0168] In one embodiment, the sending the authentication information to the terminal includes:
[0169] Sending the first authentication information to the terminal; the first authentication information is used by the terminal to verify the first authentication information using the algorithm corresponding to the third state parameter in the first authentication information when the first state parameter indicates that the terminal supports a commercial cryptographic algorithm;
[0170] or,
[0171] The second authentication information is sent to the terminal; the second authentication information is used by the terminal to verify the second authentication information using the commercial cryptographic algorithm when the second state parameter of the commercial cryptographic algorithm indicates that the USIM supports the commercial cryptographic algorithm.
[0172] In actual applications, ME verifies the HTTP Digest message and sends (RAND, AUTN) to USIM. USIM verifies the Authentication Token for Network (AUTN) through the authentication algorithm of Authentication and Key Agreement (AKA), confirms that this message comes from the authorized network, and calculates CK, IK, RES and returns them to ME. In this way, the session keys IK and CK are shared between BSF and UE.
[0173] MEs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify HTTP Digest messages. MEs that support commercial cryptographic algorithms should obtain the BSF support status BSF_AS for commercial cryptographic algorithms based on the algorithms carried in the HTTP Digest message, and verify the HTTP Digest message with the corresponding algorithms.
[0174] USIMs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify AUTN and calculate CK, IK, and RES. USIMs that support commercial cryptographic algorithms use commercial cryptographic algorithms to verify AUTN and calculate CK, IK, and RES.
[0175] In one embodiment, the method further comprises:
[0176] receiving first response information sent by the terminal based on the authentication information;
[0177] Verify the first response information by using the AV to obtain a verification result; if the verification result indicates that the first response information is verified, generate the root key of the GBA based on the AV; and generate the second response information based on the root key;
[0178] The second response information is sent to the terminal; the second response information is used by the terminal to determine the service key of the third network device based on the root key.
[0179] In this embodiment, the first response information sent by the terminal based on the authentication information is received; wherein the first response information can be determined according to actual conditions and is not limited here. As an example, the first response information can be Digest AKAresponse.
[0180] Using the AV to verify the first response information and obtaining a verification result may be using the AV to verify the first response information and obtaining a verification result indicating whether the first response information has passed or failed verification.
[0181] Generating the root key of the GBA based on the AV may be to string together CK and IK in the AV to generate the root key of the GBA; wherein the root key may be denoted as Ks; that is, Ks=CK||IK.
[0182] Send the second response information to the terminal; wherein the second response information can be determined according to actual conditions and is not limited here. As an example, the second response information can be a 200OK response message.
[0183] The second response information is used by the terminal to determine the service key of the third network device based on the root key; wherein the third network device can be determined according to actual conditions, which is not limited here. As an example, the third network device can be NAF. The service key can also be determined according to actual conditions, which is not limited here. As an example, the service key can be recorded as Ks_NAF.
[0184] In actual applications, ME uses RES to calculate the Digest AKA response and sends the response to BSF through HTTP request.
[0185] MEs that do not support commercial cryptographic algorithms use international cryptographic algorithms to calculate Digest AKA response and include the specific algorithm in the message. MEs that support commercial cryptographic algorithms use commercial cryptographic algorithms or international cryptographic algorithms to calculate DigestAKA response based on BSF_AS judgment and include the specific algorithm in the message.
[0186] BSF verifies the correctness of Digest AKA response through the saved (CK, IK, XRES). If the verification is correct, the root key Ks=CK||IK is calculated, and the value of B-TID is generated at the same time, whose format is base64encode(RAND)@BSF_servers_domain_name; where RAND is a random number, generally in binary; base64encode(RAND) can be understood as converting a binary random number into characters; domain_name is the domain name; @BSF_servers_domain_name can be understood as the domain name to which each user belongs.
[0187] The BSF that does not support the commercial cryptographic algorithm uses the international cryptographic algorithm to verify the correctness of the Digest AKA response. The BSF that supports the commercial cryptographic algorithm updates the ME_AS according to the specific algorithm carried in the Digest AKA response message, and determines whether to use the commercial cryptographic algorithm or the international cryptographic algorithm to verify the correctness of the Digest AKA response based on the ME_AS.
[0188] The BSF sends a 200OK response message containing the B-TID to the ME to indicate that the authentication is successful. At the same time, the 200OKresponse message includes the lifetime of Ks.
[0189] The BSF that does not support the commercial encryption algorithm uses the international encryption algorithm to calculate the 200OK response message. The BSF that supports the commercial encryption algorithm uses the commercial encryption algorithm or the international encryption algorithm to calculate the 200OK response message according to the ME_AS.
[0190] After receiving the 200OK response message, the ME also calculates Ks=CK||IK, where Ks is the GBA root key and is used to derive the service key Ks_NAF of the application platform NAF.
[0191] The ME that does not support the commercial encryption algorithm uses the international encryption algorithm to verify the 200OK response message. The ME that supports the commercial encryption algorithm uses the corresponding algorithm to verify the 200OK response message according to the specific algorithm carried in the 200OK response message.
[0192] In one embodiment, the method further comprises:
[0193] Receiving second request information of a key of a target service sent by the third network device;
[0194] Acquire a third state parameter of the first network device; the third state parameter indicates whether the first network device supports a commercial cryptographic algorithm;
[0195] In a case where the third state parameter indicates that the first network device supports a commercial cryptographic algorithm, determining a service key corresponding to the second request information by using the commercial cryptographic algorithm;
[0196] In a case where the third state parameter indicates that the first network device does not support a commercial cryptographic algorithm, determining a service key corresponding to the second request information by using an international cryptographic algorithm;
[0197] The service key is sent to the third network device; the service key is used for the third network device to perform service interaction with the terminal.
[0198] In this embodiment, a second request information of a key of a target service sent by the third network device is received; wherein the target service can be determined according to actual conditions, which is not limited here. As an example, the target service can be understood as a service application; the second request information can also be determined according to actual conditions, which is not limited here. As an example, the second request information can be service request information.
[0199] The third state parameter characterizing whether the first network device supports the commercial encryption algorithm can be understood as the third state parameter characterizing whether the first network device supports or does not support the state corresponding to the commercial encryption algorithm. The third state parameter of the first network device is obtained; wherein the third state parameter can be recorded as BSF_AS.
[0200] Sending the service key to the third network device may be understood as sending the service key to the HSS.
[0201] In actual applications, UE and BSF have shared Ks, so they can generate a session key Ks_NAF for the service application NAF. When UE accesses the service application NAF, NAF can obtain the Ks_NAF from BSF through a secure channel (such as TLS, etc.), so as to perform identity authentication, channel security encryption, and subsequent service interaction. According to the different entities that generate and use Ks_NAF on the terminal, GBA can be divided into GBA_ME and GBA_U. GBA_ME: Ks_NAF is generated and used in ME. GBA_U: Ks_NAF is generated and used in USIM.
[0202] In this embodiment, based on the original functions of the MEC platform, three functional modules are added, namely "service provisioning proxy module SRPM", "campus identity management module PUIMM" and "5G traffic scheduling module 5G-TCM", and IF1, IF2, IF3, IF4, IF5, IF6, IF7 interfaces are added between the three modules and between the external systems to realize centralized management and control of campus / enterprise user data, synchronization of campus user data, and legal association between campus user identity and operator access terminal identity, so as to achieve functions such as dynamic authorization of user identity, traffic scheduling and diversion based on campus user identity, etc.
[0203] Accordingly, the present application also provides an authentication method for an adaptive commercial password, such as Figure 2 As shown, Figure 2 This is a flow chart of another method for authenticating an adaptive commercial password according to an embodiment of the present application, which is applied to a terminal and includes:
[0204] Step 201: Sending a first request message of GBA to a first network device; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial encryption algorithm; the first request message is used by the first network device to send the state parameter to the second network device, so that the second network device generates an AV;
[0205] Step 202: receiving authentication information sent by the first network device; the authentication information is generated based on the AV;
[0206] Step 203: When the state parameter indicates that the terminal supports a commercial cryptographic algorithm, verify the authentication information using the commercial cryptographic algorithm; or, when the state parameter indicates that the terminal does not support a commercial cryptographic algorithm, verify the authentication information using an international cryptographic algorithm.
[0207] It should be noted that the terminal may also be determined according to actual conditions, which is not limited here. As an example, the terminal may be a user terminal, a user equipment, such as a UE; the UE may include an ME and a USIM.
[0208] The first network device and the second network device can be determined according to actual conditions and are not limited here. As an example, the first network device can be a network element, such as a BSF; the second network device can be a server, such as an HSS.
[0209] In step 201, the first request information carries a state parameter; wherein the state parameter can be determined according to the specific situation, and is not limited here. As an example, the state parameter may include a first state parameter corresponding to the ME's own support for the relevant algorithm and / or a second state parameter corresponding to the USIM's own support for the relevant algorithm; the first state parameter may be recorded as ME_AS; the second state parameter may be recorded as USIM_AS. The state parameter characterizing whether the terminal supports the commercial cryptographic algorithm can be understood as the state parameter characterizing the state corresponding to whether the ME supports or does not support the commercial cryptographic algorithm; and / or the state corresponding to whether the USIM supports or does not support the commercial cryptographic algorithm.
[0210] Sending a first request message of GBA to the first network device; wherein, the first request message can be understood as authentication request message, and the authentication request message can include identity information; as an example, sending the first request message of GBA to the first network device can be that the ME in the terminal sends the authentication request message to the BSF.
[0211] As an example, the first request information used by the first network device to send the status parameter to the second network device can be the first request information used by the BSF to send ME_AS and / or USIM_AS to the HSS. The HSS that does not support commercial cryptography uses the international algorithm to calculate AV. The HSS that supports commercial cryptography queries the commercial cryptography algorithm support status of the USIM corresponding to the IMSI based on the contract data of the USIM, compares it with the USIM_AS, returns an error if they are inconsistent, and generates the USIM_AS based on the contract status of the USIM. Specifically, if the USIM_AS supports the commercial cryptography algorithm: the commercial cryptography algorithm should be used to calculate the AV; if the USIM_AS does not support the commercial cryptography algorithm, the international cryptographic algorithm should be used to calculate the AV.
[0212] In actual applications, the ME sends an authentication request to the BSF, including identity information such as IMSI, etc. When the authentication process is started, the ME that supports commercial encryption generates the UE algorithm support status parameters ME_AS and USIM_AS according to the algorithm support of the device, otherwise the parameters may not be supported.
[0213] ME_AS contains the status of related algorithms supported by the ME device itself, which can be all the encryption algorithms supported, a list of hash algorithms, or the status of whether commercial encryption algorithms are supported.
[0214] USIM_AS contains the status of related algorithms supported by the USIM card itself, which can be all supported encryption algorithms, a list of hash algorithms, or the status of whether commercial encryption algorithms are supported.
[0215] ME sends ME_AS and USIM_AS to BSF via an initialization request. ME_AS and USIM_AS can be used as new parameters of the initialization request, or extended fields in the initialization request can be used. If USIM_AS does not support the commercial encryption algorithm, the registration request may not include this field. If ME does not support the commercial encryption algorithm, the communication message does not include ME_AS and USIM_AS.
[0216] In step 202, the authentication information is generated based on the AV; wherein the AV includes RAND, AUTN, XRES, CK, and IK; wherein RAND is a random number, CK is a subsequent session encryption key, IK is a subsequent session integrity key, AUTN is an authentication token, and XRES is an expected response; in actual applications, AV = RAND, AUTN, XRES, CK, IK, which can be recorded as AV (RAND, AUTN, XRES, CK, IK).
[0217] In step 203, when the status parameter represents that the terminal supports the commercial cryptographic algorithm, the use of the commercial cryptographic algorithm to verify the authentication information can be understood as the ME that supports the commercial cryptographic algorithm obtains the support status of the first network device for the commercial cryptographic algorithm according to the algorithm carried in the authentication information when the status parameter represents that the terminal supports the commercial cryptographic algorithm, and then uses the commercial cryptographic algorithm to verify the authentication information; the authentication information is used for the terminal when the status parameter represents that the terminal does not support the commercial cryptographic algorithm, and the use of the international cryptographic algorithm to verify the authentication information can be understood as the ME that does not support the commercial cryptographic algorithm uses the international cryptographic algorithm to verify the authentication information.
[0218] As an example, ME verifies HTTP Digest message, and ME sends (RAND, AUTN) to USIM. USIM verifies AUTN through AKA authentication algorithm, confirms that this message comes from the authorized network, and calculates CK, IK, RES, and returns them to ME. In this way, session keys IK and CK are shared between BSF and UE.
[0219] MEs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify HTTP Digest messages. MEs that support commercial cryptographic algorithms should obtain the BSF support status BSF_AS for commercial cryptographic algorithms based on the algorithms carried in the HTTP Digest message, and verify the HTTP Digest message with the corresponding algorithms.
[0220] USIMs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify AUTN and calculate CK, IK, and RES. USIMs that support commercial cryptographic algorithms use commercial cryptographic algorithms to verify AUTN and calculate CK, IK, and RES.
[0221] In the embodiment of the present application, based on the original GBA protocol, it is possible to adaptively and compatibly use commercial and international cryptographic algorithms according to the status of the network and the terminal to meet the needs of interconnection and interoperability.
[0222] In one embodiment, the method further comprises:
[0223] Sending second request information corresponding to the target service to the third network device; the second request information is used by the third network device to determine the authentication method of the target service;
[0224] Receiving the authentication method sent by the third network device;
[0225] The first request information is sent to the first network device based on the authentication method.
[0226] It should be noted that the third network device may be determined according to actual conditions and is not limited here. As an example, the third network device may be a NAF.
[0227] Sending a second request information corresponding to the target service to the third network device; wherein the target service can be determined according to actual conditions, which is not limited here. As an example, the target service can be understood as a service application; the second request information can also be determined according to actual conditions, which is not limited here. As an example, the second request information can be service request information.
[0228] In actual applications, when the terminal UE accesses the service NAF for the first time, the NAF instructs the UE to complete authentication through GBA.
[0229] In one embodiment, the state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether a global user identity card USIM in the terminal supports the commercial cryptographic algorithm; the authentication information includes first authentication information or second authentication information; the receiving authentication information sent by the first network device includes:
[0230] Receiving first authentication information sent by the first network device;
[0231] When the first state parameter indicates that the terminal supports a commercial cryptographic algorithm, verifying the first authentication information using the algorithm corresponding to the third state parameter in the first authentication information;
[0232] or,
[0233] Receiving second authentication information sent by the first network device;
[0234] In a case where the second state parameter of the commercial cryptographic algorithm represents that the USIM supports the commercial cryptographic algorithm, the second authentication information is verified using the commercial cryptographic algorithm.
[0235] In the embodiment of the present application, the state parameter includes a first state parameter and a second state parameter; wherein, the first state parameter and the second state parameter can be determined according to the specific situation, and are not limited here. As an example, the first state parameter can be ME_AS; the second state parameter can be recorded as USIM_AS. The first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm, which can be understood as ME supporting or not supporting the commercial cryptographic algorithm. The second state parameter represents whether the USIM in the terminal supports the commercial cryptographic algorithm, which can be understood as USIM supporting or not supporting the commercial cryptographic algorithm.
[0236] The third state parameter representing whether the first network device supports the commercial encryption algorithm can be understood as the third state parameter representing the state corresponding to whether the first network device supports or does not support the commercial encryption algorithm; the third state parameter can be determined based on actual conditions and is not limited here. As an example, the third state parameter can be recorded as BSF_AS.
[0237] In actual applications, the BSF that supports commercial cryptography saves ME_AS and USIM_AS, and sends USIM_AS to HSS through the Zh interface, otherwise this parameter can be ignored. The HSS that does not support commercial cryptography uses the international algorithm to calculate AV. The HSS that supports commercial cryptography queries the commercial cryptography algorithm support status of the USIM corresponding to the IMSI based on the contract data of the USIM, compares it with the USIM_AS, and returns an error if they are inconsistent, and generates USIM_AS based on the contract status of the USIM. The BSF retrieves the user's security configuration information GUSS and authentication vector AV (AV = RAND, AUTN, XRES, CK, IK) from the HSS through the Zh interface. In a multi-HSS environment, the BSF obtains the HSS address that stores user information by querying the SLF.
[0238] BSF saves (CK, IK, XRES), and sends RAND and AUTN to ME via HTTP Digest 401 message, requiring ME to perform authentication.
[0239] ME verifies the HTTP Digest message and sends (RAND, AUTN) to USIM. USIM verifies AUTN through AKA's authentication algorithm, confirms that this message comes from an authorized network, and calculates CK, IK, RES and returns them to ME. In this way, the session keys IK and CK are shared between BSF and UE.
[0240] MEs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify HTTP Digest messages. MEs that support commercial cryptographic algorithms should obtain the BSF support status BSF_AS for commercial cryptographic algorithms based on the algorithms carried in the HTTP Digest message, and verify the HTTP Digest message with the corresponding algorithms.
[0241] USIMs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify AUTN and calculate CK, IK, and RES. USIMs that support commercial cryptographic algorithms use commercial cryptographic algorithms to verify AUTN and calculate CK, IK, and RES.
[0242] In one embodiment, the method further comprises:
[0243] Sending first response information corresponding to the authentication information to the first network device; the first response information is used by the first network device to verify the first response information using the AV verification to obtain a verification result; if the verification result shows that the first response information is verified, generating the root key of the GBA based on the AV; generating second response information based on the root key;
[0244] receiving the second response information sent by the first network device;
[0245] A service key of a third network device is determined based on the root key.
[0246] In this embodiment, first response information corresponding to the authentication information is sent to the first network device; wherein the first response information can be determined according to actual conditions and is not limited here. As an example, the first response information can be a Digest AKA response.
[0247] Using the AV to verify the first response information and obtaining a verification result may be using the AV to verify the first response information and obtaining a verification result indicating whether the first response information has passed or failed verification.
[0248] Generating the root key of the GBA based on the AV may be to string together CK and IK in the AV to generate the root key of the GBA; wherein the root key may be denoted as Ks; that is, Ks=CK||IK.
[0249] Receive the second response information sent by the first network device; wherein the second response information can be determined according to actual conditions and is not limited here. As an example, the second response information can be a 200 OK response message.
[0250] The service key of the third network device is determined based on the root key; wherein the third network device may be determined according to actual conditions, which is not limited here. As an example, the third network device may be NAF. The service key may also be determined according to actual conditions, which is not limited here. As an example, the service key may be Ks_NAF.
[0251] In actual applications, ME uses RES to calculate the Digest AKA response and sends the response to BSF through HTTP request.
[0252] MEs that do not support commercial cryptographic algorithms use international cryptographic algorithms to calculate Digest AKAresponse and include the specific algorithm in the message. MEs that support commercial cryptographic algorithms use commercial cryptographic algorithms or international cryptographic algorithms to calculate DigestAKAresponse based on BSF_AS judgment and include the specific algorithm in the message.
[0253] BSF verifies the correctness of Digest AKA response through the saved (CK, IK, XRES). If the verification is correct, it calculates the root key Ks=CK||IK and generates the value of B-TID in the format of base64encode(RAND)@BSF_servers_domain_name.
[0254] The BSF that does not support the commercial cryptographic algorithm uses the international cryptographic algorithm to verify the correctness of the Digest AKA response. The BSF that supports the commercial cryptographic algorithm updates the ME_AS according to the specific algorithm carried in the Digest AKAresponse message, and determines whether to use the commercial cryptographic algorithm or the international cryptographic algorithm to verify the correctness of the Digest AKA response based on the ME_AS.
[0255] The BSF sends a 200OK response message containing the B-TID to the ME to indicate that the authentication is successful. At the same time, the 200OKresponse message includes the lifetime of Ks.
[0256] The BSF that does not support the commercial encryption algorithm uses the international encryption algorithm to calculate the 200OK response message. The BSF that supports the commercial encryption algorithm uses the commercial encryption algorithm or the international encryption algorithm to calculate the 200OK response message according to the ME_AS.
[0257] After receiving the 200OK response message, the ME also calculates Ks=CK||IK, where Ks is the GBA root key and is used to derive the service key Ks_NAF of the application platform NAF.
[0258] The ME that does not support the commercial encryption algorithm uses the international encryption algorithm to verify the 200OK response message. The ME that supports the commercial encryption algorithm uses the corresponding algorithm to verify the 200OK response message according to the specific algorithm carried in the 200OK response message.
[0259] The embodiment of the present invention,
[0260] Accordingly, the present application also provides an authentication method for an adaptive commercial password, such as Figure 3 As shown, Figure 3 This is a flow chart of another method for authenticating an adaptive commercial password according to an embodiment of the present application, which is applied to a second network device, including:
[0261] Step 301: Receive a state parameter sent by a first network device; the state parameter represents whether the terminal supports a state corresponding to a commercial cryptographic algorithm.
[0262] Step 302: Generate AV based on the state parameters.
[0263] Step 303: Send the AV to the first network device; the AV is used by the first network device to generate authentication information based on the state parameter and the AV, so that the terminal authenticates the authentication information according to the state parameter.
[0264] It should be noted that the first network device and the second network device can be determined according to actual conditions and are not limited here. As an example, the first network device can be a network element, such as BSF; the second network device can be a server, such as HSS.
[0265] The terminal may also be determined according to actual conditions, which is not limited here. As an example, the terminal may be a user terminal, a user equipment, such as a UE; the UE may include an ME and a USIM.
[0266] In step 301, receiving the state parameter sent by the first network device may be the state parameter sent by the BSF received by the HSS; wherein the state parameter may be determined according to the specific situation, which is not limited here. As an example, the state parameter may include the first state parameter corresponding to the ME's own support for the relevant algorithm and / or the second state parameter corresponding to the USIM card's own support for the relevant algorithm; the first state parameter may be recorded as ME_AS; the second state parameter may be recorded as USIM_AS. The state parameter characterizing whether the terminal supports the commercial cryptographic algorithm can be understood as the state parameter characterizing the state corresponding to the ME supporting or not supporting the commercial cryptographic algorithm; and / or the state corresponding to the USIM supporting or not supporting the commercial cryptographic algorithm.
[0267] In step 302, AV is generated based on the state parameters; wherein, the AV includes RAND, AUTN, XRES, CK, and IK; wherein, RAND is a random number, CK is a subsequent session encryption key, IK is a subsequent session integrity key, AUTN is an authentication token, and XRES is an expected response; in actual applications, AV = RAND, AUTN, XRES, CK, IK, which can be recorded as AV (RAND, AUTN, XRES, CK, IK).
[0268] As an example, an HSS that does not support commercial encryption uses an international algorithm to calculate AV. An HSS that supports commercial encryption queries the commercial encryption algorithm support status of the USIM corresponding to the IMSI based on the USIM's contract data, compares it with the USIM_AS, and returns an error if they are inconsistent, and generates a USIM_AS based on the USIM's contract status. Specifically, if the USIM_AS supports the commercial encryption algorithm: the commercial encryption algorithm should be used to calculate the AV; if the USIM_AS does not support the commercial encryption algorithm, the international encryption algorithm should be used to calculate the AV.
[0269] In step 303, the authentication information corresponding to the first request information is generated based on the state parameters and the AV. The authentication information can be generated by using the commercial cryptographic algorithm and the AV when the state parameters represent that the ME supports the commercial cryptographic algorithm; or, the authentication information corresponding to the first request information is generated by using an international cryptographic algorithm and the AV when the state parameters represent that the ME does not support the commercial cryptographic algorithm.
[0270] As an example, BSF saves (CK, IK, XRES), and sends RAND and AUTN to ME via HTTP Digest 401 message, requiring ME to perform authentication.
[0271] BSF that does not support commercial encryption uses the international encryption algorithm to generate HTTP Digest's 401 message and includes the specific algorithm in the message. BSF that supports commercial encryption performs the following processing:
[0272] 1) If ME_AS supports a commercially encrypted algorithm: the commercially encrypted algorithm should be used to generate a 401 HTTP Digest message, and the specific algorithm should be included in the message.
[0273] If ME_AS does not support commercial encryption algorithms: it should use the international encryption algorithm to generate the HTTP Digest 401 message and include the specific algorithm in the message.
[0274] In one embodiment, the state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the global user identity card USIM in the terminal supports the commercial cryptographic algorithm; the method further includes:
[0275] receiving the second state parameter sent by the first network device;
[0276] generating the AV based on the second state parameter;
[0277] The AV is sent to the first network device; the AV is used to generate the authentication information based on the first state parameter and the AV.
[0278] In the embodiment of the present application, the state parameter includes a first state parameter and a second state parameter; wherein, the first state parameter and the second state parameter can be determined according to the specific situation, and are not limited here. As an example, the first state parameter can be ME_AS; the second state parameter can be recorded as USIM_AS. The first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm, which can be understood as ME supporting or not supporting the commercial cryptographic algorithm. The second state parameter represents whether the USIM in the terminal supports the commercial cryptographic algorithm, which can be understood as USIM supporting or not supporting the commercial cryptographic algorithm.
[0279] The sending of the AV to the first network device may be that the HSS sends the AV to the BSF; and the AV is used to generate the authentication information based on the first state parameter and the AV, which may be that the authentication information is generated based on the ME_AS and the AV.
[0280] In actual applications, the BSF that supports commercial cryptography saves ME_AS and USIM_AS, and sends USIM_AS to HSS through the Zh interface, otherwise this parameter can be ignored. The HSS that does not support commercial cryptography uses the international algorithm to calculate AV. The HSS that supports commercial cryptography queries the commercial cryptography algorithm support status of the USIM corresponding to the IMSI based on the contract data of the USIM, compares it with the USIM_AS, and returns an error if they are inconsistent, and generates USIM_AS based on the contract status of the USIM. The BSF retrieves the user's security configuration information GUSS and authentication vector AV (AV = RAND, AUTN, XRES, CK, IK) from the HSS through the Zh interface. In a multi-HSS environment, the BSF obtains the HSS address that stores user information by querying the SLF.
[0281] BSF saves (CK, IK, XRES), and sends RAND and AUTN to ME via HTTP Digest 401 message, requiring ME to perform authentication.
[0282] This embodiment solves the problem of isolating the operator user system from the enterprise or campus user system. By associating the identities of the two, it is convenient to implement dynamic authorization based on the campus user identity, which can effectively enhance the efficiency of access terminal traffic control and the security of access terminal users, make the campus intranet service access controllable, and the access rights synchronized in real time, thereby improving the flexibility of user traffic service scheduling and diversion.
[0283] Accordingly, the present application also provides an authentication method for an adaptive commercial password, such as Figure 4 As shown, Figure 4 This is a flow chart of another method for authenticating an adaptive commercial password according to an embodiment of the present application, which is applied to a third network device, including:
[0284] Step 401: receiving second request information corresponding to a target service sent by a terminal.
[0285] Step 402: Determine the authentication method of the target service based on the second request information.
[0286] Step 403: Send the authentication method to the terminal.
[0287] It should be noted that the third network device may be determined according to actual conditions and is not limited here. As an example, the third network device may be a NAF.
[0288] The terminal may also be determined according to actual conditions, which is not limited here. As an example, the terminal may be a user terminal, a user equipment, such as a UE; the UE may include an ME and a USIM.
[0289] In step 401, the second request information corresponding to the target service sent by the terminal is received; wherein the target service can be determined according to the actual situation, which is not limited here. As an example, the target service can be understood as a service application; the second request information can also be determined according to the actual situation, which is not limited here. As an example, the second request information can be service request information.
[0290] In step 402, determining the authentication mode of the target service based on the second request information may be determining the authentication mode of the target service based on service request information.
[0291] In step 403, sending the authentication mode to the terminal may be that the NAF sends the authentication mode to the ME in the terminal;
[0292] In one embodiment, the method further comprises:
[0293] Receiving a service key sent by the first network device; the service key is determined based on the second request information;
[0294] Perform service interaction with the terminal based on the service key.
[0295] In this embodiment, the service key sent by the first network device may be received by the NAF as the service key sent by the BSF. The service key may also be determined according to actual conditions, which is not limited here. As an example, the service key may be recorded as Ks_NAF.
[0296] As an example, UE needs to communicate with NAF and use Ks to derive the service key Ks_NAF=KDF(Ks,RAND,IMPI,NAP_ID). KDF is a key generation algorithm, generally implemented based on a hash algorithm, IMPI is the IMS identifier of the terminal, and NAF_ID is the ID of the service platform NAF.
[0297] UEs that do not support the commercial cryptographic algorithm use the international algorithm to calculate Ks_NAF. UEs that support the commercial cryptographic algorithm use the commercial cryptographic algorithm or the international cryptographic algorithm to calculate Ks_NAF based on the BSF_AS's judgment.
[0298] UE sends B-TID to NAF to request key negotiation with NAF; NAF sends B-TID and NAF_ID to BSF to request the user's service key Ks_NAF; BSF uses the same method as ME to derive Ks_NAF from Ks, and sends Ks_NAF to NAF through a secure channel, including information such as the key lifecycle of its Ks_NAF;
[0299] BSFs that do not support commercial cryptographic algorithms use international algorithms to calculate Ks_NAF and establish secure channels. BSFs that support commercial cryptographic algorithms use commercial cryptographic algorithms or international cryptographic algorithms to calculate Ks_NAF based on ME_AS judgment, and should establish secure channels based on the commercial cryptographic status of NAF.
[0300] In practical applications, as an example, the authentication method of the adaptive commercial password may specifically be a GBA authentication method of an adaptive commercial encryption algorithm; as an example, the first network device may be a BSF; the terminal may be a UE, and the UE includes a USIM and a ME; the second network device may be an HSS; and the third network device may be a BSF.
[0301] Devices that support commercial encryption algorithms (including but not limited to USIM, ME, BSF, HSS) need to support international algorithms (such as AES, SHA256, etc.) and commercial encryption algorithms (mainly domestic commercial encryption algorithms, such as SM4, SM3, etc.).
[0302] A USIM that supports commercial cryptographic algorithms should use the commercial cryptographic algorithms to calculate authentication parameters and should provide an algorithm support status query interface. The ME can use this interface to query whether the USIM supports the commercial cryptographic algorithms. If the interface is not supported, it is considered that the USIM does not support the commercial cryptographic algorithms.
[0303] An HSS that supports commercial cryptographic algorithms shall preferentially use commercial cryptographic algorithms to calculate authentication parameters.
[0304] Definition of KDF: KDF = HMAC (Key, S), where S is the input parameter and Key is the key used. For the specific format, refer to the definition of TS 33.220. If a commercial algorithm is used, HMAC can use SM3-HMAC, etc.; if an international algorithm is used, HMAC can use HMAC-SHA-256, etc. The algorithm replacement uses the same length key, input and output.
[0305] Definition of HASH: If a commercial algorithm is used, SM3 can be used; if an international algorithm is used, SHA-256 can be used. Algorithm replacement uses keys of the same length, input and output.
[0306] The generation method of AV (RAND, AUTN, XRES, CK, IK) refers to the definition in TS 33.102. If a commercial algorithm is used, SM4 can be used; if an international algorithm is used, AES can be used. Algorithm replacement uses keys of the same length, input and output.
[0307] Algorithm priority strategy: The network can define the algorithm to be used first according to the strategy. For example, it can define the algorithm (such as commercial encryption algorithm) that should be used first for devices that support modification (such as supporting commercial encryption, etc.). The commercial encryption algorithm should be used for calculation in the solution is an embodiment, indicating that the priority algorithm currently defined by the network is the commercial encryption algorithm.
[0308] The specific plan is as follows:
[0309] It mainly includes three stages: initialization, authentication, and security association. The initialization stage is used for the UE and the application server NAF to confirm that GBA is used for authentication; the authentication stage is to complete GBA authentication and generate session keys; the security association stage is used for the application server NAF to obtain session keys from the operator network.
[0310] Initialization phase: When the terminal UE accesses the service NAF for the first time, the NAF instructs the UE to complete authentication through GBA.
[0311] Authentication phase: This phase is an interaction between the UE and the BSF. During this phase, the UE and the BSF complete two-way verification and derive the GBA session intermediate key Ks respectively.
[0312] For ease of understanding, you can combine Figure 5 To understand, Figure 5 Schematic diagram of the GBA authentication process of the adaptive commercial encryption algorithm of the present application embodiment, as shown in FIG. Figure 5 shown.
[0313] 1) ME sends an authentication request to BSF, including identity information such as IMSI.
[0314] When starting the authentication process, the ME that supports commercial encryption generates the UE algorithm support status parameters ME_AS and USIM_AS according to the algorithm support of the device. Otherwise, the parameters may not be supported.
[0315] ME_AS contains the status of related algorithms supported by the ME device itself, which can be all the encryption algorithms supported, a list of hash algorithms, or the status of whether commercial encryption algorithms are supported.
[0316] USIM_AS contains the status of related algorithms supported by the USIM card itself, which can be all supported encryption algorithms, a list of hash algorithms, or the status of whether commercial encryption algorithms are supported.
[0317] ME sends ME_AS and USIM_AS to BSF via an initialization request. ME_AS and USIM_AS can be used as new parameters of the initialization request, or extended fields in the initialization request can be used. If USIM_AS does not support the commercial encryption algorithm, the registration request may not include this field. If ME does not support the commercial encryption algorithm, the communication message does not include ME_AS and USIM_AS.
[0318] 2) BSF retrieves the user's security configuration information GUSS and authentication vector AV (AV=RAND, AUTN, XRES, CK, IK) from HSS via Zh interface. Note: In a multi-HSS environment, BSF obtains the HSS address storing user information by querying SLF.
[0319] The BSF that supports commercial encryption saves ME_AS and USIM_AS and sends USIM_AS to HSS through the Zh interface. Otherwise, this parameter can be ignored.
[0320] HSS that does not support commercial encryption uses the international algorithm to calculate AV. HSS that supports commercial encryption queries the commercial encryption algorithm support status of the USIM corresponding to the IMSI based on the USIM contract data, and compares it with USIM_AS. If they are inconsistent, an error is returned and USIM_AS is generated based on the USIM contract status. The following processing is performed:
[0321] (1) If the USIM_AS supports a commercially encrypted algorithm: the commercially encrypted algorithm shall be used to calculate the AV.
[0322] (2) If the USIM_AS does not support commercial cryptographic algorithms, the AV should be calculated using international cryptographic algorithms.
[0323] 3) BSF saves (CK, IK, XRES), sends RAND and AUTN to ME via HTTP Digest 401 message, and requests ME to perform authentication.
[0324] BSF that does not support commercial encryption uses the international encryption algorithm to generate HTTP Digest's 401 message and includes the specific algorithm in the message. BSF that supports commercial encryption performs the following processing:
[0325] (1) If the ME_AS supports a commercially encrypted algorithm: the commercially encrypted algorithm should be used to generate a 401 HTTP Digest message and the specific algorithm should be included in the message.
[0326] (2) If ME_AS does not support commercial encryption algorithms, it should use international encryption algorithms to generate HTTP Digest 401 messages and include the specific algorithms in the message.
[0327] 4) ME verifies the HTTP Digest message and sends (RAND, AUTN) to USIM. USIM verifies AUTN through AKA's authentication algorithm, confirms that this message comes from an authorized network, and calculates CK, IK, RES and returns them to ME. In this way, the session keys IK and CK are shared between BSF and UE.
[0328] MEs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify HTTP Digest messages. MEs that support commercial cryptographic algorithms should obtain the BSF support status BSF_AS for commercial cryptographic algorithms based on the algorithms carried in the HTTP Digest message, and verify the HTTP Digest message with the corresponding algorithms.
[0329] USIMs that do not support commercial cryptographic algorithms use international cryptographic algorithms to verify AUTN and calculate CK, IK, and RES. USIMs that support commercial cryptographic algorithms use commercial cryptographic algorithms to verify AUTN and calculate CK, IK, and RES.
[0330] 5) ME uses RES to calculate the Digest AKA response and sends the response to BSF via HTTP request.
[0331] The ME that does not support the commercial cryptographic algorithm uses the international cryptographic algorithm to calculate the Digest AKA response and includes the specific algorithm in the message. The ME that supports the commercial cryptographic algorithm uses the commercial cryptographic algorithm or the international cryptographic algorithm to calculate the DigestAKA response according to the BSF_AS judgment and includes the specific algorithm in the message.
[0332] 6) BSF verifies the correctness of the Digest AKA response through the saved (CK, IK, XRES). If the verification is correct, the root key Ks=CK||IK is calculated, and the value of B-TID is generated at the same time, and its format is base64encode(RAND)@BSF_servers_domain_name.
[0333] The BSF that does not support the commercial cryptographic algorithm uses the international cryptographic algorithm to verify the correctness of the Digest AKA response. The BSF that supports the commercial cryptographic algorithm updates the ME_AS according to the specific algorithm carried in the Digest AKA response message, and determines whether to use the commercial cryptographic algorithm or the international cryptographic algorithm to verify the correctness of the Digest AKA response based on the ME_AS.
[0334] 7) BSF sends a 200OK response message containing B-TID to ME to indicate successful authentication. At the same time, the 200OKresponse message contains the lifetime of Ks;
[0335] The BSF that does not support the commercial encryption algorithm uses the international encryption algorithm to calculate the 200OK response message. The BSF that supports the commercial encryption algorithm uses the commercial encryption algorithm or the international encryption algorithm to calculate the 200OK response message according to the ME_AS.
[0336] 8) After receiving the 200OK response message, the ME also calculates Ks=CK||IK, where Ks is the GBA root key and is used to derive the service key Ks_NAF of the application platform NAF.
[0337] The ME that does not support the commercial encryption algorithm uses the international encryption algorithm to verify the 200OK response message. The ME that supports the commercial encryption algorithm uses the corresponding algorithm to verify the 200OK response message according to the specific algorithm carried in the 200OK response message.
[0338] Security association phase: UE and BSF have shared Ks, so they can generate a session key Ks_NAF for the service application NAF. When the UE accesses the service application NAF, NAF can obtain the Ks_NAF from the BSF through a secure channel (such as TLS, etc.), so as to perform identity authentication, channel security encryption, and subsequent service interaction. According to the different entities that generate and use Ks_NAF on the terminal, GBA can be divided into GBA_ME and GBA_U. GBA_ME: Ks_NAF is generated and used in ME. GBA_U: Ks_NAF is generated and used in USIM.
[0339] 9) UE needs to communicate with NAF and use Ks to derive the service key Ks_NAF = KDF (Ks, RAND, IMPI, NAP_ID). KDF is a key generation algorithm, which is generally implemented based on a hash algorithm, IMPI is the IMS identifier of the terminal, and NAF_ID is the ID of the service platform NAF.
[0340] UEs that do not support the commercial cryptographic algorithm use the international algorithm to calculate Ks_NAF. UEs that support the commercial cryptographic algorithm use the commercial cryptographic algorithm or the international cryptographic algorithm to calculate Ks_NAF based on the BSF_AS's judgment.
[0341] 10) UE sends B-TID to NAF, requesting to negotiate a key with NAF;
[0342] 11) NAF sends B-TID and NAF_ID to BSF to request the user's service key Ks_NAF;
[0343] 12) BSF uses the same method as ME to derive Ks_NAF from Ks, and sends Ks_NAF to NAF through a secure channel, including information such as the key lifecycle of its Ks_NAF;
[0344] BSFs that do not support commercial cryptographic algorithms use international algorithms to calculate Ks_NAF and establish secure channels. BSFs that support commercial cryptographic algorithms use commercial cryptographic algorithms or international cryptographic algorithms to calculate Ks_NAF based on ME_AS judgment, and should establish secure channels based on the commercial cryptographic status of NAF.
[0345] 13) After saving Ks_NAF and validity period information, NAF returns a 200OK response to ME. In this way, the key Ks_NAF is shared between ME and NAF and can be used for operations such as authentication and message encryption.
[0346] The authentication and encryption between ME and NAF need to negotiate the relevant algorithms. If both ME and NAF support the commercial encryption algorithm, the commercial encryption algorithm should be used for cryptographic calculation. If ME or NAF does not support the commercial encryption algorithm, the international encryption algorithm should be used for cryptographic calculation.
[0347] In this embodiment, by introducing USIM_AS and ME_AS, each network element can adaptively adopt the corresponding cryptographic algorithm according to the commercial secret support status of the UE, so that the protocol can be compatible with commercial secret and international cryptographic algorithms; ME can adaptively determine and calculate the cryptographic algorithm that should be used for HTTP Digest interaction and Ks_NAF through BSF_AS parameters; BSF can adaptively determine and calculate the cryptographic algorithms that should be used for HTTP Digest interaction and Ks_NAF through ME_AS parameters; HSS can adaptively determine and calculate the cryptographic algorithm that should be used for AV through USIM_AS parameters; ME can determine the cryptographic algorithm that should be used through the commercial secret support status of NAF; NAF can determine the cryptographic algorithm that should be used through the commercial secret support status of ME.
[0348] Compared with the prior art, the advantages of the present invention are: compatible with the original GBA protocol, adaptively compatible with commercial encryption algorithms and international encryption algorithms; support for various scenarios, in which any of the network elements (USIM, ME, BSF, HSS and NAF) can operate normally even if they do not support commercial encryption, thus ensuring the interconnection and interoperability of the protocols in various scenarios. For example, if neither USIM nor ME supports commercial encryption algorithms, the GBA authentication protocol can operate normally; the newly added USIM_AS, ME_AS, and BSF_AS parameters in the protocol can be added, or the extended fields of the original protocol can be used, without much modification to the original protocol, and the equipment is easy to modify.
[0349] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an authentication device for an adaptive commercial password, which is arranged on a first network device, such as Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of an adaptive commercial password authentication device according to an embodiment of the present application; the device 600 includes:
[0350] The first receiving unit 601 is used to receive a first request message of a general authentication GBA sent by a terminal; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial cryptographic algorithm;
[0351] The first sending unit 602 is used to send the state parameter to the second network device; the state parameter is used by the second network device to generate an authentication quintuple vector AV;
[0352] The first receiving unit 601 is further configured to receive the AV sent by the second network device;
[0353] A first generating unit 603 is configured to generate authentication information corresponding to the first request information based on the state parameter and the AV;
[0354] The first sending unit 602 is also used to send the authentication information to the terminal; the authentication information is used by the terminal to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or to verify the authentication information using an international cryptographic algorithm when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm.
[0355] In one embodiment, the state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the global user identity card USIM in the terminal supports the commercial cryptographic algorithm; the device also includes an acquisition unit; wherein,
[0356] The acquisition unit is configured to acquire a third state parameter of the first network device; the third state parameter indicates whether the first network device supports a commercial encryption algorithm; if the third state parameter indicates that the first network device supports a commercial encryption algorithm, save the first state parameter and the second state parameter; and send the second state parameter to the second network device, so that the second network device generates the AV based on the second state parameter;
[0357] The first receiving unit 601 is further configured to receive the AV sent by the second network device; and generate the authentication information based on the first state parameter, the third state parameter and the AV.
[0358] In one embodiment, the authentication information includes first authentication information or second authentication information; the first generation unit 603 is also used to generate the first authentication information using the commercial cryptographic algorithm, the third state parameter and the AV when the first state parameter indicates that the terminal itself supports the commercial cryptographic algorithm; and to generate the second authentication information using the international cryptographic algorithm, the third state parameter and the AV when the first state parameter of the commercial cryptographic algorithm indicates that the terminal itself does not support the commercial cryptographic algorithm.
[0359] In one embodiment, the first sending unit 602 is further used to send the first authentication information to the terminal; the first authentication information is used by the terminal to verify the first authentication information using the algorithm corresponding to the third state parameter in the first authentication information when the first state parameter indicates that the terminal supports a commercial cryptographic algorithm; or, send the second authentication information to the terminal; the second authentication information is used by the terminal to verify the second authentication information using the commercial cryptographic algorithm when the second state parameter of the commercial cryptographic algorithm indicates that the USIM supports the commercial cryptographic algorithm.
[0360] In one embodiment, the first receiving unit 601 is further configured to receive first response information sent by the terminal based on the authentication information;
[0361] The first generating unit 603 is further configured to verify the first response information by using the AV to obtain a verification result; if the verification result indicates that the first response information is verified, generate a root key of the GBA based on the AV; and generate a second response information based on the root key;
[0362] The first sending unit 602 is further used to send the second response information to the terminal; the second response information is used by the terminal to determine the service key of the third network device based on the root key.
[0363] In one embodiment, the first receiving unit 601 is further configured to receive second request information of a key of a target service sent by the third network device;
[0364] The acquisition unit is further used to acquire a third state parameter of the first network device; the third state parameter indicates whether the first network device supports a commercial encryption algorithm; when the third state parameter indicates that the first network device supports a commercial encryption algorithm, the business key corresponding to the second request information is determined by using the commercial encryption algorithm; when the third state parameter indicates that the first network device does not support a commercial encryption algorithm, the business key corresponding to the second request information is determined by using an international encryption algorithm;
[0365] The first sending unit 602 is further configured to send the service key to the third network device; the service key is used for the third network device to perform service interaction with the terminal.
[0366] In order to implement the method on the terminal side of the embodiment of the present application, the embodiment of the present application also provides an authentication device for an adaptive commercial password, which is set on the terminal, such as Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of another adaptive commercial password authentication device according to an embodiment of the present application. The device 700 includes:
[0367] The second sending unit 701 is used to send a first request message of the general authentication GBA to the first network device; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial cryptographic algorithm; the first request message is used by the first network device to send the state parameter to the second network device, so that the second network device generates an authentication quintuple vector AV;
[0368] The second receiving unit 702 is used to receive authentication information sent by the first network device; the authentication information is generated based on the AV;
[0369] The verification unit 703 is used to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or to verify the authentication information using the international cryptographic algorithm when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm.
[0370] In one embodiment, the second sending unit 701 is further used to send second request information corresponding to the target service to the third network device; the second request information is used by the third network device to determine the authentication method of the target service;
[0371] The second receiving unit 702 is further configured to receive the authentication method sent by the third network device;
[0372] The second sending unit 701 is further configured to send the first request information to the first network device based on the authentication method.
[0373] In one embodiment, the state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the global user identity card USIM in the terminal supports the commercial cryptographic algorithm; the authentication information includes first authentication information or second authentication information; the second receiving unit 702 is also used to receive the first authentication information sent by the first network device; when the first state parameter represents that the terminal supports the commercial cryptographic algorithm, the first authentication information is verified using the algorithm corresponding to the third state parameter in the first authentication information; or, the second authentication information sent by the first network device is received; when the second state parameter of the commercial cryptographic algorithm represents that the USIM supports the commercial cryptographic algorithm, the second authentication information is verified using the commercial cryptographic algorithm.
[0374] In one embodiment, the apparatus 700 further includes a determining unit; wherein,
[0375] The second sending unit 701 is further configured to send first response information corresponding to the authentication information to the first network device; the first response information is used by the first network device to verify the first response information using the AV verification to obtain a verification result; if the verification result indicates that the first response information is verified, the root key of the GBA is generated based on the AV; and the second response information is generated based on the root key;
[0376] The second receiving unit 702 is further configured to receive the second response information sent by the first network device;
[0377] The determining unit is configured to determine a service key of a third network device based on the root key.
[0378] In order to implement the method on the second network device side of the embodiment of the present application, the embodiment of the present application also provides an authentication device for an adaptive commercial password, which is arranged on the second network device, such as Figure 8 As shown, Figure 8 This is a schematic diagram of the structure of another adaptive commercial password authentication device according to an embodiment of the present application. The device 800 includes:
[0379] The third receiving unit 801 is used to receive a state parameter sent by the first network device; the state parameter indicates whether the terminal supports the state corresponding to the commercial cryptographic algorithm;
[0380] A second generating unit 802 is used to generate an authentication quintuple vector AV based on the state parameter;
[0381] The third sending unit 803 is used to send the AV to the first network device; the AV is used by the first network device to generate authentication information based on the state parameter and the AV, so that the terminal authenticates the authentication information according to the state parameter.
[0382] In one embodiment, the state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the global user identity card USIM in the terminal supports the commercial cryptographic algorithm; the third receiving unit 801 is further used to receive the second state parameter sent by the first network device;
[0383] The second generating unit 802 is further configured to generate the AV based on the second state parameter;
[0384] The third sending unit 803 is further used to send the AV to the first network device; the AV is used to generate the authentication information based on the first state parameter and the AV.
[0385] In order to implement the method on the third network device side of the embodiment of the present application, the embodiment of the present application also provides an authentication device for an adaptive commercial password, which is arranged on the third network device, such as Fig. 9 As shown, Fig. 9 This is a schematic diagram of the structure of another adaptive commercial password authentication device according to an embodiment of the present application. The device 900 includes:
[0386] The fourth receiving unit 901 is used to receive second request information corresponding to the target service sent by the terminal;
[0387] A determining unit 902, configured to determine an authentication method for the target service based on the second request information;
[0388] The fourth sending unit 903 is configured to send the authentication method to the terminal.
[0389] In one embodiment, the fourth receiving unit 901 is further configured to receive a service key sent by the first network device; the service key is determined based on the second request information; and service interaction is performed with the terminal based on the service key.
[0390] It should be noted that: the adaptive commercial password authentication device provided in the above embodiment only uses the division of the above program modules as an example when performing adaptive commercial password authentication. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the above-described processing. In addition, the adaptive commercial password authentication device provided in the above embodiment and the adaptive commercial password authentication method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0391] Based on the hardware implementation of the above-mentioned program module, an embodiment of the present application also provides a first network device, including: a first processor and a first memory for storing a computer program that can be run on the processor, wherein the first processor is used to implement the steps in the authentication method of the adaptive commercial password provided in the above-mentioned embodiment when running the computer program.
[0392] Based on the hardware implementation of the above-mentioned program module, an embodiment of the present application also provides a terminal, comprising: a second processor and a second memory for storing a computer program that can be run on the processor, wherein the second processor is used to implement the steps in the authentication method of the adaptive commercial password provided in the above-mentioned embodiment when running the computer program.
[0393] Based on the hardware implementation of the above-mentioned program module, an embodiment of the present application also provides a second network device, including: a third processor and a third memory for storing a computer program that can be run on the processor, wherein the third processor is used to implement the steps in the authentication method of the adaptive commercial password provided in the above-mentioned embodiment when running the computer program.
[0394] Based on the hardware implementation of the above-mentioned program module, an embodiment of the present application also provides a third network device, including: a fourth processor and a fourth memory for storing a computer program that can be run on the processor, wherein the fourth processor is used to implement the steps in the authentication method of the adaptive commercial password provided in the above-mentioned embodiment when running the computer program.
[0395] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the adaptive commercial password authentication method provided in the above embodiment are implemented.
[0396] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0397] It should be noted that Fig.10 This is a schematic diagram of the structure of the first network device in the embodiment of the present application, such as Fig.10 As shown, the first network device 1000 includes: a first processor 1001 and a first memory 1003 . Optionally, the first network device 1000 may also include a first communication interface 1002 .
[0398] It can be understood that the first memory 1003 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The first memory 1003 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.
[0399] The method disclosed in the above embodiment of the present application can be applied to the first processor 1001, or implemented by the first processor 1001. The first processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the first processor 1001 or by instructions in the form of software. The above-mentioned first processor 1001 may be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 1001 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 1003. The first processor 1001 reads the information in the first memory 1003 and completes the steps of the above method in combination with its hardware.
[0400] It should be noted that Fig.11 is a schematic diagram of the structure of the terminal in the embodiment of the present application, such as Fig.11 As shown, the terminal 1100 includes: a second processor 1101 and a second memory 1103 . Optionally, the terminal 1100 may also include a second communication interface 1102 .
[0401] It can be understood that the second memory 1103 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The second memory 1103 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.
[0402] The method disclosed in the above embodiment of the present application can be applied to the second processor 1101, or implemented by the second processor 1101. The second processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the second processor 1101 or an instruction in the form of software. The above-mentioned second processor 1101 may be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 1101 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 1103, and the second processor 1101 reads the information in the second memory 1103, and completes the steps of the above method in combination with its hardware.
[0403] It should be noted that Fig.12 is a schematic diagram of the structure of the second network device in the embodiment of the present application, such as Fig.12 As shown, the second network device 1200 includes: a third processor 1201 and a third memory 1203 . Optionally, the second network device 1200 may also include a third communication interface 1202 .
[0404] It can be understood that the third memory 1203 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The third memory 1203 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.
[0405] The method disclosed in the above embodiment of the present application can be applied to the third processor 1201, or implemented by the third processor 1201. The third processor 1201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the third processor 1201. The above third processor 1201 may be a general processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The third processor 1201 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the third memory 1203, and the third processor 1201 reads the information in the third memory 1203, and completes the steps of the above method in combination with its hardware.
[0406] It should be noted that Fig.13 is a schematic diagram of the structure of the third network device in the embodiment of the present application, such as Fig.13 As shown, the third network device 1300 includes: a fourth processor 1301 and a fourth memory 1303 . Optionally, the third network device 1300 may further include a fourth communication interface 1302 .
[0407] It can be understood that the fourth memory 1303 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The third memory 1203 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.
[0408] The method disclosed in the above embodiment of the present application can be applied to the fourth processor 1301, or implemented by the fourth processor 1301. The fourth processor 1301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the third processor 1201. The above-mentioned third processor 1201 may be a general-purpose processor, a digital signal processor (DSP, DigitalSignal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The fourth processor 1301 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the fourth memory 1303. The fourth processor 1301 reads the information in the fourth memory 1303 and completes the steps of the above method in combination with its hardware.
[0409] In order to implement the method provided in the embodiment of the present application, the embodiment of the present application also provides an authentication system for adaptive commercial passwords, such as Fig.14 As shown, Fig.14 This is a schematic diagram of the structure of the authentication system of the adaptive commercial password according to the embodiment of the present application. The system includes: a terminal 1401, a first network device 1402, a second network device 1403 and a third network device 1403.
[0410] Here, it should be noted that the specific processing procedures of the terminal 1401, the first network device 1402, the second network device 1403 and the third network device 1404 have been described in detail above and will not be repeated here.
[0411] In an exemplary embodiment, the device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0412] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0413] It should be noted that, in this application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0414] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0415] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0416] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0417] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0418] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0419] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0420] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. An authentication method for an adaptive commercial password, characterized in that: Applied to a first network device, comprising: Receiving a first request message of a general purpose authentication (GBA) sent by a terminal; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial cryptographic algorithm; Sending the state parameter to the second network device; the state parameter is used by the second network device to generate an authentication quintuple vector AV; receiving the AV sent by the second network device; generating authentication information corresponding to the first request information based on the state parameter and the AV; The authentication information is sent to the terminal; the authentication information is used by the terminal to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or, when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm, to verify the authentication information using an international cryptographic algorithm.
2. The method according to claim 1, characterized in that: The state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; The second status parameter represents whether the universal subscriber identity card USIM in the terminal supports the commercial cryptographic algorithm; The method further comprises: Acquire a third state parameter of the first network device; the third state parameter indicates whether the first network device supports a commercial cryptographic algorithm; In the case where the third state parameter indicates that the first network device supports a commercial cryptographic algorithm, saving the first state parameter and the second state parameter; and sending the second state parameter to the second network device, so that the second network device generates the AV based on the second state parameter; Receive the AV sent by the second network device; and generate the authentication information based on the first state parameter, the third state parameter and the AV.
3. The method according to claim 2, characterized in that The authentication information includes first authentication information or second authentication information; and the step of generating the authentication information based on the first state parameter, the third state parameter and the AV includes: In a case where the first state parameter indicates that the terminal itself supports the commercial cryptographic algorithm, generating the first authentication information using the commercial cryptographic algorithm, the third state parameter and the AV; In the case where the first state parameter of the commercial cryptographic algorithm indicates that the terminal itself does not support the commercial cryptographic algorithm, the second authentication information is generated using the international cryptographic algorithm, the third state parameter and the AV.
4. The method according to claim 3, characterized in that The sending the authentication information to the terminal includes: Sending the first authentication information to the terminal; the first authentication information is used by the terminal to verify the first authentication information using the algorithm corresponding to the third state parameter in the first authentication information when the first state parameter indicates that the terminal supports a commercial cryptographic algorithm; or, The second authentication information is sent to the terminal; the second authentication information is used by the terminal to verify the second authentication information using the commercial cryptographic algorithm when the second state parameter of the commercial cryptographic algorithm indicates that the USIM supports the commercial cryptographic algorithm.
5. The method according to claim 1, characterized in that The method further comprises: receiving first response information sent by the terminal based on the authentication information; Verify the first response information by using the AV to obtain a verification result; if the verification result indicates that the first response information is verified, generate the root key of the GBA based on the AV; and generate the second response information based on the root key; The second response information is sent to the terminal; the second response information is used by the terminal to determine the service key of the third network device based on the root key.
6. The method according to claim 5, characterized in that The method further comprises: Receiving second request information of a key of a target service sent by the third network device; Acquire a third state parameter of the first network device; the third state parameter indicates whether the first network device supports a commercial cryptographic algorithm; In a case where the third state parameter indicates that the first network device supports a commercial cryptographic algorithm, determining a service key corresponding to the second request information by using the commercial cryptographic algorithm; In a case where the third state parameter indicates that the first network device does not support a commercial cryptographic algorithm, determining a service key corresponding to the second request information by using an international cryptographic algorithm; The service key is sent to the third network device; the service key is used for the third network device to perform service interaction with the terminal.
7. An authentication method for an adaptive commercial password, characterized in that: Applied to terminals, including: Sending a first request message of a general authentication GBA to a first network device; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial cryptographic algorithm; the first request message is used by the first network device to send the state parameter to the second network device, so that the second network device generates an authentication five-tuple vector AV; Receiving authentication information sent by the first network device; the authentication information is generated based on the AV; When the status parameter indicates that the terminal supports a commercial cryptographic algorithm, the authentication information is verified using the commercial cryptographic algorithm; or, when the status parameter indicates that the terminal does not support a commercial cryptographic algorithm, the authentication information is verified using an international cryptographic algorithm.
8. The method according to claim 7, characterized in that The method further comprises: Sending second request information corresponding to the target service to the third network device; the second request information is used by the third network device to determine the authentication method of the target service; Receiving the authentication method sent by the third network device; The first request information is sent to the first network device based on the authentication method.
9. The method according to claim 7, characterized in that: The state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; the second state parameter represents whether the universal user identity card USIM in the terminal supports the commercial cryptographic algorithm; The authentication information includes first authentication information or second authentication information; The receiving authentication information sent by the first network device includes: Receiving first authentication information sent by the first network device; When the first state parameter indicates that the terminal supports a commercial cryptographic algorithm, verifying the first authentication information using the algorithm corresponding to the third state parameter in the first authentication information; or, Receiving second authentication information sent by the first network device; In a case where the second state parameter of the commercial cryptographic algorithm represents that the USIM supports the commercial cryptographic algorithm, the second authentication information is verified using the commercial cryptographic algorithm.
10. The method according to claim 7, characterized in that The method further comprises: Sending first response information corresponding to the authentication information to the first network device; the first response information is used by the first network device to verify the first response information using the AV verification to obtain a verification result; if the verification result shows that the first response information is verified, generating the root key of the GBA based on the AV; generating second response information based on the root key; receiving the second response information sent by the first network device; A service key of a third network device is determined based on the root key.
11. An authentication method for an adaptive commercial password, characterized in that: Applied to the second network device, comprising: Receiving a state parameter sent by the first network device; the state parameter indicates whether the terminal supports a state corresponding to a commercial cryptographic algorithm; Generate an authentication quintuple vector AV based on the state parameter; The AV is sent to the first network device; the AV is used by the first network device to generate authentication information based on the state parameter and the AV, so that the terminal authenticates the authentication information according to the state parameter.
12. The method according to claim 11, characterized in that The state parameter includes a first state parameter and a second state parameter; the first state parameter of the commercial cryptographic algorithm represents whether the terminal itself supports the commercial cryptographic algorithm; The second status parameter represents whether the universal subscriber identity card USIM in the terminal supports the commercial cryptographic algorithm; The method further comprises: receiving the second state parameter sent by the first network device; generating the AV based on the second state parameter; The AV is sent to the first network device; the AV is used to generate the authentication information based on the first state parameter and the AV.
13. An authentication method for an adaptive commercial password, characterized in that: Applicable to third-party network equipment, including: receiving second request information corresponding to the target service sent by the terminal; Determining an authentication method for the target service based on the second request information; The authentication method is sent to the terminal.
14. The method according to claim 13, characterized in that The method further comprises: Receiving a service key sent by the first network device; the service key is determined based on the second request information; Perform service interaction with the terminal based on the service key.
15. An authentication device for adaptive commercial password, characterized in that: The device is set on the first network device, including: A first receiving unit, configured to receive a first request message of a general authentication GBA sent by a terminal; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial cryptographic algorithm; A first sending unit, configured to send the state parameter to a second network device; the state parameter is used by the second network device to generate an authentication quintuple vector AV; The first receiving unit is further configured to receive the AV sent by the second network device; A first generating unit, configured to generate authentication information corresponding to the first request information based on the state parameter and the AV; The first sending unit is also used to send the authentication information to the terminal; the authentication information is used by the terminal to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or to verify the authentication information using an international cryptographic algorithm when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm.
16. An authentication device for adaptive commercial password, characterized in that: Set on the terminal, including: The second sending unit is used to send a first request message of the general authentication GBA to the first network device; the first request message carries a state parameter; the state parameter indicates whether the terminal supports a commercial encryption algorithm; the first request message is used by the first network device to send the state parameter to the second network device, so that the second network device generates an authentication five-tuple vector AV; A second receiving unit, configured to receive authentication information sent by the first network device; the authentication information is generated based on the AV; A verification unit is used to verify the authentication information using the commercial cryptographic algorithm when the status parameter indicates that the terminal supports the commercial cryptographic algorithm; or to verify the authentication information using the international cryptographic algorithm when the status parameter indicates that the terminal does not support the commercial cryptographic algorithm.
17. An authentication device for adaptive commercial password, characterized in that: The configuration is performed on the second network device, including: A third receiving unit is used to receive a state parameter sent by the first network device; the state parameter represents whether the terminal supports a state corresponding to the commercial cryptographic algorithm; A second generating unit, configured to generate an authentication quintuple vector AV based on the state parameter; The third sending unit is used to send the AV to the first network device; the AV is used by the first network device to generate authentication information based on the state parameter and the AV, so that the terminal authenticates the authentication information according to the state parameter.
18. An authentication device for adaptive commercial password, characterized in that: The third network device includes: A fourth receiving unit, configured to receive second request information corresponding to the target service sent by the terminal; A determining unit, configured to determine an authentication method for the target service based on the second request information; A fourth sending unit is used to send the authentication method to the terminal.
19. A first network device, characterized in that: include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 6 are executed.
20. A terminal, characterized in that: include: a second processor and a second memory for storing a computer program executable on the processor, Wherein, when the second processor is used to run the computer program, the steps of the method described in any one of claims 7 to 10 are executed.
21. A second network device, characterized in that: include: a third processor and a third memory for storing a computer program executable on the processor, Wherein, the third processor is used to execute the steps of the method described in any one of claims 11 to 12 when running the computer program.
22. A third network device, characterized in that: include: a fourth processor and a fourth memory for storing a computer program executable on the processor, Wherein, the fourth processor is used to execute the steps of the method described in any one of claims 13 to 14 when running the computer program.
23. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 6, or implements the steps of the method described in any one of claims 7 to 10, or implements the steps of the method described in any one of claims 11 to 12, or implements the steps of the method described in any one of claims 13 to 14.
