Message transmission method, related equipment, storage medium and computer program product

By generating and transmitting NAS messages indicating the key generation algorithm set in the 5G system, ensuring that user equipment and unified data management functions use a consistent key generation algorithm set, the problem of inconsistent key algorithm set in the 5G system is solved, and the problem of inconsistent key algorithm set in the 5G system is improved Security and deployment efficiency.

CN119052787APending Publication Date: 2024-11-29CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411060607.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In 5G systems, user equipment (UE) and unified data management functions (UDM) cannot guarantee the use of a consistent set of keys to generate algorithms during the authentication process, especially when multiple sets of key algorithms are supported, keys exist. The problem of inconsistent algorithm sets affects security and deployment efficiency.

Method used

By generating an initial NAS message, it contains information indicating the authentication and key generation algorithm set supported by the terminal, and sending it to the network function, ensuring that the network function generates authentication parameters based on the same key generation algorithm set, including authentication vectors and integrity Key and encryption key.

Benefits of technology

It realizes that UE and UDM use a consistent key generation algorithm set during the authentication process, avoiding the problem of requiring global user identification cards and network simultaneous upgrades after the algorithm set is cracked, and reducing deployment costs and complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052787A_ABST
    Figure CN119052787A_ABST
Patent Text Reader

Abstract

Provided in an embodiment of the present application are a message transmission method, related device, storage medium and computer program product, the method comprising: a terminal generating an initial non-access stratum (NAS) message, the initial NAS message comprising first information, the first information being used for indicating an authentication and key generation algorithm set supported by the terminal, the authentication and key generation algorithm set is used for generating authentication parameters when the terminal performs network authentication; sending the initial NAS message to the first network function; wherein the first network function is at least used for access and mobility management; the first network function sends the authentication and key generation algorithm set to the second network function, so that the second network function generates an authentication parameter based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate the authentication parameter; wherein the authentication parameters comprise an authentication vector, an integrity key and an encryption key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a message transmission method, related equipment, storage medium and computer program product. Background Art

[0002] Currently, when the network authenticates the user equipment (UE), the UE and the unified data management (UDM) function will use a fixed key generation algorithm set (MILENAGE algorithm set) to generate an authentication vector (AV). The current fifth generation mobile communication technology (5G) system only supports 128-bit key algorithms. Now related technologies have begun to study how to introduce 256-bit key algorithms in 5G systems, which means that future 5G systems can support four key generation algorithm sets, including: MILENAGE (128-bit key input), MILENAGE (256-bit key input), TUAK (128-bit key input) and TUAK (256-bit key input).

[0003] However, when the 5G system supports the above four key generation algorithm sets, it is impossible to ensure that the UE and UDM use the same key generation algorithm set in the current authentication process. Even if the future 6th Generation Mobile Networks (6G) system only considers the 256-bit key generation algorithm set, there will be two algorithm sets, which also face this problem. Therefore, it is urgent to propose a technical solution that can ensure that the UE and UDM use the same key generation algorithm set during the authentication process. Summary of the invention

[0004] The implementation law of the present application provides a message transmission method, related equipment, storage medium and computer program product, which can ensure that the UE and UDM use a consistent key generation algorithm set during the authentication process.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a message transmission method, which is applied to a terminal, and the method includes:

[0007] Generate an initial non-access stratum (NAS) message, wherein the initial NAS message includes first information, wherein the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, wherein the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication, wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key;

[0008] The initial NAS message is sent to a first network function; wherein the first network function is at least used for access and mobility management.

[0009] In a second aspect, an embodiment of the present application provides a message transmission method, which is applied to a first network function, and the method includes:

[0010] receiving an initial NAS message sent by a terminal, the initial NAS message including first information, where the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication;

[0011] The authentication and key generation algorithm set is sent to a second network function so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

[0012] In a third aspect, an embodiment of the present application provides a terminal, the terminal comprising: a generating unit and a first sending unit; wherein:

[0013] The generating unit is configured to generate an initial NAS message, wherein the initial NAS message includes first information, wherein the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, and the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication;

[0014] The first sending unit is used to send the initial NAS message to a first network function; wherein the first network function is at least used for access and mobility management.

[0015] In a fourth aspect, an embodiment of the present application provides a terminal, the terminal comprising: a first processor and a first memory; wherein:

[0016] The first memory is used to store a computer program that can be run on the processor;

[0017] The first processor is used to execute the message transmission method as described above when running the computer program.

[0018] In a fifth aspect, an embodiment of the present application provides a first network function, the first network function comprising: a receiving unit and a second sending unit; wherein,

[0019] The receiving unit is configured to receive an initial NAS message sent by a terminal, where the initial NAS message includes first information, where the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication;

[0020] The second sending unit is used to send the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

[0021] In a sixth aspect, an embodiment of the present application provides a first network function, the first network function comprising: a second processor and a second memory; wherein,

[0022] The second memory is used to store a computer program that can be run on the processor;

[0023] The second processor is used to execute the message transmission method as described above when running the computer program.

[0024] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program code stored thereon. When the computer program code is executed by a computer, the message transmission method as described above is implemented.

[0025] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the message transmission method as described above.

[0026] The embodiment of the present application provides a message transmission method, related equipment, storage medium and computer program product, wherein the terminal generates an initial NAS message, the initial NAS message includes first information, the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; the initial NAS message is sent to the first network function; wherein the first network function is at least used for access and mobility management; the first network function sends the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include authentication vectors, integrity keys and encryption keys, and the second network function is at least used to manage user data. It can be seen that the terminal can add the first information to the initial NAS message, the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and then the initial NAS message can be sent to the first network function, and then the first network function can send the authentication and key generation algorithm set supported by the terminal to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 1 ;

[0028] Figure 2 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 2 ;

[0029] Figure 3 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 3 ;

[0030] Figure 4 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 4 ;

[0031] Figure 5 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 5 ;

[0032] Figure 6 A schematic diagram of the protection process of the initial NAS message proposed in an embodiment of the present application;

[0033] Figure 7 The structure of the terminal proposed in the embodiment of the present application is shown in FIG. Figure 1 ;

[0034] Figure 8 The structure of the terminal proposed in the embodiment of the present application is shown in FIG. Figure 2 ;

[0035] Fig. 9 Schematic diagram of the composition structure of the first network function proposed in the embodiment of the present application Figure 1 ;

[0036] Fig.10 Schematic diagram of the composition structure of the first network function proposed in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.

[0038] Quantum computing technology is showing an accelerating development trend. In 2019, a 54-qubit quantum computer was launched, achieving quantum supremacy. The calculations completed by this quantum computer in 200 seconds would take the world's most powerful supercomputer 10,000 years. In 2023, IBM launched the first quantum computer with more than 1,000 qubits, which is much more powerful than the 54-qubit quantum computer released by Google in 2019. Large-scale quantum computers are expected to be available within 10 years, and large-scale quantum computers will put the most commonly used cryptographic algorithms at risk. Due to Grover's quantum algorithm, the security strength of symmetric cryptographic algorithms will be reduced to half, and many commonly used asymmetric cryptographic algorithms, such as Rivest-Shamir-Adleman (RSA), Digital Signature Algorithm (DSA), and algorithms based on elliptic curves, will not be able to provide security due to Shor's quantum algorithm.

[0039] The Grover algorithm provides a square root speedup for searching in unstructured data sets relative to classical algorithms. Search algorithms are the most commonly used type of algorithms. However, traditional computers are relatively inefficient in searching for unstructured data. The commonly used classical algorithm is the traversal search algorithm, which can only search one by one until the desired data is found. The algorithm complexity is O(n), where n is the size of the data. The Grover algorithm mainly relies on the superposition of quantum states, storing n data in log2n quantum bits at the same time, and then calculating the values ​​of n functions f at the same time, and then slightly increasing the probability of the searched data through quantum operations. This operation takes O(2 n / 2) times, the probability of the data to be found will reach the maximum. At this time, if quantum measurement is performed again, the data to be found will be obtained with a high probability. The Grover algorithm reduces the effective key size by half, that is, the security strength of the symmetric key algorithm is halved. Therefore, in order to achieve resistance to quantum computing attacks, the key length of the symmetric key algorithm must be doubled.

[0040] In the current network authentication process of UE, UDM and UE use a set of key generation functions (algorithms), including f1, f1*, f2, f3, f4, f5 and f5*, to generate authentication vector (AV) and authentication response; among them, there are currently two algorithm sets that can be used for this, one is called MILENAGE algorithm set, which recommends using AES-128 as the basis, with a 128-bit key as input and a 64-bit RES in the output authentication vector; the other is called TUAK algorithm set, which is based on the Keccak hash function, with an input key size of 128 bits or 256 bits, and the RES in the authentication vector can be 32, 64, 128, 256. In practice, the MILENAGE algorithm set is more widely deployed than TUAK. The MILENAGE algorithm set only supports the use of 128-bit keys. In order to resist quantum attacks, related technologies are standardizing the MILENAGE-256 algorithm set, which supports the use of 256-bit keys.

[0041] The current 5G authentication process uses a fixed key generation algorithm set MILENAGE, because the current 5G system only supports 128-bit key algorithms. TUAK is a relatively new standard and is rarely used. Now, related technologies have begun to study how to introduce 256-bit key algorithms in 5G systems, which means that future 5G systems can support four key generation algorithm sets: MILENAGE (128-bit key input), MILENAGE (256-bit key input), TUAK (128-bit key input) and TUAK (256-bit key input). In this case, how UE and UDM determine to use a consistent key generation algorithm set during the authentication process is an important technical issue. Even if only 256-bit key generation algorithm sets are considered in the future 6G system, there are two algorithm sets, including: MILENAGE (256-bit key input) and TUAK (256-bit key input), which also face this problem; and the current 5G authentication process uses a fixed key generation algorithm set MILENAGE. The problem is that once this algorithm set is cracked, the new algorithm set cannot be deployed quickly, and the Universal Subscriber Identity Module (USIM) and the network need to be upgraded at the same time to use the new algorithm set.

[0042] In order to solve the problem that the UE and UDM cannot use a consistent key generation algorithm set in the current authentication process, the embodiment of the present application provides a message transmission method, related equipment, storage medium and computer program product, wherein the terminal generates an initial NAS message, the initial NAS message includes first information, the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; the initial NAS message is sent to the first network function; wherein the first network function is at least used for access and mobility management; the first network function sends the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include authentication vectors, integrity keys and encryption keys, and the second network function is at least used to manage user data. It can be seen from this that the terminal can add the first information to the initial NAS message, and the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and then the initial NAS message can be sent to the first network function, and then the first network function can send the authentication and key generation algorithm set supported by the terminal to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0043] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0044] The embodiment of the present application provides a message transmission method, which is applied to a terminal. Figure 1 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 1 ,like Figure 1 As shown, the message transmission method may include the following steps:

[0045] Step 101: Generate an initial NAS message, where the initial NAS message includes first information, where the first information is used to indicate an authentication and key generation algorithm set supported by a terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication, where the authentication parameters include an authentication vector, an integrity key, and an encryption key.

[0046] In an embodiment of the present application, the terminal may generate an initial NAS message.

[0047] It should be noted that in an embodiment of the present application, the initial NAS message is the first NAS message sent after the terminal transitions from an idle state. When the terminal does not have a NAS security context, the terminal should send a limited set of fields (called plaintext fields), including the fields required to establish security in the initial message.

[0048] It should be noted that in an embodiment of the present application, the plaintext field in the initial NAS message may include a subscription concealed identifier (SUCI), a globally unique temporary UE identity (GUTI), a UE security capability field, and a key set identifier (ngKSI). One or more of the fields included in the initial NAS message is not specifically limited in the present application.

[0049] It should be noted that, in an embodiment of the present application, the initial NAS message includes first information, and the first information is used to indicate the authentication and key generation algorithm set supported by the terminal. The authentication and key generation algorithm set may include one or more of the MILENAGE algorithm set (128-bit key input), the MILENAGE algorithm set (256-bit key input), the TUAK algorithm set (128-bit key input), and the TUAK algorithm set (256-bit key input). The present application does not specifically limit the algorithm type and number of the authentication and key generation algorithm set supported by the terminal.

[0050] It should be noted that, in the embodiments of the present application, the MILENAGE algorithm set and the TUAK algorithm set may include functions such as f1, f1*, f2, f3, f4, f5 and f5*; among which f1 is a message authentication function, f2 is a message authentication function, f3 is a key generation function, f4 is a key generation function, and f5 is a key generation function. The present application does not specifically limit the function types and the number of functions included in the MILENAGE algorithm set and the TUAK algorithm set.

[0051] It should be noted that, in an embodiment of the present application, when generating an initial NAS message, the terminal may set the first information in the UE security capability field in the initial NAS message, or set the first information in a newly added field in the initial NAS message.

[0052] Further, in an embodiment of the present application, when the terminal sets the first information in the UE security capability field in the initial NAS message, the first information may be set based on the reserved byte information corresponding to the UE security capability field.

[0053] It should be noted that, in an embodiment of the present application, the UE security capability field has a total of 10 bytes, and the reserved byte information corresponding to the UE security capability field may include bytes 7-10.

[0054] It should be noted that in an embodiment of the present application, when the terminal sets the first information based on the reserved byte information corresponding to the UE security capability field, it can generate a first coding value based on any byte in the reserved byte information corresponding to the UE security capability field; wherein the first coding value includes the coding value of the authentication and key generation algorithm set; and then the first information can be generated based on the first coding value.

[0055] That is to say, in an embodiment of the present application, the terminal can pre-select the type of authentication and key generation algorithm set, and then can generate the encoding value of the authentication and key generation algorithm set based on any byte in the reserved byte information corresponding to the UE security capability field, and then can generate the first information based on the encoding value.

[0056] Further, in an embodiment of the present application, when the terminal sets the first information in the newly added field in the initial NAS message, the terminal can generate a first coding value based on the newly added field in the initial NAS message; and then the first information can be generated based on the first coding value.

[0057] It should be noted that in an embodiment of the present application, the terminal can add a new field to the initial NAS message, and then encode the authentication and key generation algorithm set based on the newly added field to generate a first coding value, and then generate the first information based on the coding value.

[0058] That is to say, in an embodiment of the present application, the terminal can set the first information in the initial NAS message in two ways: the first information can be set in the UE security capability field in the initial NAS message, or the first information can be set in a newly added field in the initial NAS message, so that the authentication and key generation algorithm set supported by the terminal can be indicated based on the first information.

[0059] Step 102: Send an initial NAS message to a first network function; wherein the first network function is at least used for access and mobility management.

[0060] In an embodiment of the present application, after generating the initial NAS message, the terminal may send the initial NAS message to the first network function.

[0061] It should be noted that, in an embodiment of the present application, the first network function may include an access and mobility management function (Access and Mobility Management Function, AMF), and the present application does not specifically limit the type of the first network function.

[0062] It should be noted that, in an embodiment of the present application, after the first network function initiates the authentication process, the terminal can perform mutual authentication with the first network function based on the first preset protocol; and generate authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the authentication parameters are used for authentication processing between the terminal and the network.

[0063] It should be noted that, in the embodiments of the present application, the first preset protocol at least includes an authentication and key agreement (AKA) protocol, and the present application does not specifically limit the type of the first preset protocol.

[0064] It should be noted that, in the embodiments of the present application, the authentication parameters may include an authentication vector, an integrity key, and an encryption key. The present application does not specifically limit the number of parameters and parameter types included in the authentication parameters.

[0065] It should be noted that, in the embodiment of the present application, when the terminal generates the authentication vector in the authentication parameters based on the authentication and key generation algorithm set, it can be generated by the following formula (1).

[0066] AV = RAND || XRES || CK || IK || AUTN (1)

[0067] Among them, AV represents the authentication vector, RAND is a random number, XRES is the expected response, CK is the encryption key, IK is the integrity key, and AUTN is the authentication token.

[0068] It should be noted that, in the embodiment of the present application, the authentication token (AUTN) can be expressed by the following formula (2).

[0069]

[0070] Among them, SQN represents the sequence number, AK represents the anonymous key, AMF represents the authentication management field, and MAC represents the message authentication code.

[0071] It should be noted that, in the embodiments of the present application, the expected response (XRES) can be expressed by the following formula (3).

[0072] XRES=f2(K,RAND) (3)

[0073] Among them, f2 represents a message authentication function, RAND represents a random number, and K represents a root key of the UE.

[0074] It should be noted that, in the embodiment of the present application, the message authentication code (MAC) can be expressed by the following formula (4).

[0075] MAC=f1(K,SQN||RAND||AMF) (4)

[0076] Among them, f1 represents the message authentication function, RAND represents the random number, AMF represents the authentication management field, and K represents the root key of the UE.

[0077] It should be noted that, in the embodiment of the present application, the encryption key (CK) can be expressed by the following formula (5).

[0078] CK=f3(K,RAND) (5)

[0079] Wherein, f3 represents a key generation function, RAND represents a random number, and K represents a root key of the UE.

[0080] It should be noted that, in the embodiment of the present application, the integrity key (IK) can be expressed by the following formula (6).

[0081] IK=f4(K,RAND) (6)

[0082] Wherein, f4 represents the key generation function, and K represents the root key of the UE.

[0083] It should be noted that, in the embodiment of the present application, the anonymous key (AK) can be expressed by the following formula (7).

[0084] AK=f5(K,RAND) (7)

[0085] Wherein, f5 represents a key generation function, and K represents a root key of the UE.

[0086] That is, in an embodiment of the present application, after the terminal sends an initial NAS message to the first network function, the first network function can perform an authentication process with the terminal, and then the terminal can perform mutual authentication with the first network function based on the AKA protocol, and generate authentication parameters based on the selected authentication and key generation algorithm set, and the authentication parameters may include an authentication vector, an integrity key, and an encryption key.

[0087] It should be noted that in the embodiments of the present application, the current 5G authentication process uses a fixed authentication and key generation algorithm set (MILENAGE algorithm set) to generate authentication parameters. If the algorithm set is cracked, the new algorithm set cannot be quickly deployed. Currently, the USIM and the network need to be upgraded at the same time before the new algorithm set can be used. If the currently used algorithm set is cracked, the embodiment of the present application can indicate another algorithm set supported by the terminal through the first information in the initial NAS message, so that subsequent terminals and second network functions can generate authentication parameters through another algorithm set supported by the terminal, avoiding the simultaneous upgrade of the USIM and the network, thereby greatly reducing the deployment cost.

[0088] To summarize, the terminal can set the first information in the initial NAS message in two ways. The first information can be set in the UE security capability field in the initial NAS message, or the first information can be set in a newly added field in the initial NAS message, so that the authentication and key generation algorithm set supported by the terminal can be indicated based on the first information. Then the terminal can send the initial NAS message to the first network function, so that the first network function can obtain the authentication and key generation algorithm set supported by the terminal. After the first network function initiates the authentication process, the terminal can perform mutual authentication with the first network function based on the AKA protocol, and generate authentication parameters based on the selected authentication and key generation algorithm set. The authentication parameters may include authentication vectors, integrity keys, and encryption keys.

[0089] The embodiment of the present application provides a message transmission method, which is applied to a terminal, wherein the terminal generates an initial NAS message, wherein the initial NAS message includes first information, wherein the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; the initial NAS message is sent to a first network function; wherein the first network function is at least used for access and mobility management. It can be seen that the terminal includes the first information in the generated initial NAS message, wherein the first information can indicate the authentication and key generation algorithm set supported by the terminal, and then the initial NAS message can be sent to the first network function, wherein the first network function can obtain the authentication and key generation algorithm set supported by the terminal, and subsequently notify the second network function, so that the terminal and the second network function can generate authentication parameters through the same authentication and key generation algorithm set.

[0090] Based on the above embodiment, another embodiment of the present application provides a message transmission method, which is applied to a first network function. Figure 2 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 2 ,like Figure 2 As shown, the message transmission method may include the following steps:

[0091] Step 201: Receive an initial NAS message sent by a terminal, where the initial NAS message includes first information, where the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication.

[0092] In an embodiment of the present application, the first network function may receive an initial NAS message sent by the terminal.

[0093] It should be noted that, in an embodiment of the present application, the first network function may include AMF, and the present application does not specifically limit the type of the first network function.

[0094] It should be noted that, in the embodiments of the present application, Figure 3 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 3 ,like Figure 3 As shown, after receiving the initial NAS message sent by the terminal, that is, after step 201, the first network function may further include the following steps:

[0095] Step 203: parse the UE security capability field in the initial NAS message to obtain an authentication and key generation algorithm set; or parse the newly added field in the initial NAS message to obtain an authentication and key generation algorithm set.

[0096] Exemplarily, in an embodiment of the present application, when the first network function obtains the authentication and key generation algorithm set by parsing the UE security capability field in the initial NAS message, the encoded value in the reserved byte information corresponding to the UE security capability field can be parsed, thereby obtaining the authentication and key generation algorithm set supported by the terminal.

[0097] Exemplarily, in an embodiment of the present application, when the first network function parses the newly added field in the initial NAS message to obtain the authentication and key generation algorithm set, it can parse the encoded value in the newly added field, thereby obtaining the authentication and key generation algorithm set supported by the terminal.

[0098] Step 202: Send the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

[0099] In an embodiment of the present application, after receiving the initial NAS message sent by the terminal, the first network function may send the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set.

[0100] It should be noted that, in the embodiments of the present application, the second network function may include UDM, and the present application does not specifically limit the type of the second network function.

[0101] It should be noted that in an embodiment of the present application, the first network function may send the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0102] It should be noted that, in an embodiment of the present application, after receiving the initial NAS message sent by the terminal, the first network function may initiate an authentication process to the terminal, and perform mutual authentication with the terminal based on the first preset protocol.

[0103] Furthermore, in an embodiment of the present application, the first network function can also receive authentication parameters sent by the second network function, and then the first network function and the terminal can deduce the security context for protecting NAS messages, access stratum (AS) messages, and user plane (UP) data based on the authentication vector and integrity key in the authentication parameters.

[0104] Furthermore, in the embodiments of the present application, Figure 4 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 4 ,like Figure 4 As shown, after the first network function sends the authentication and key generation algorithm set to the second network function so that the second network function generates authentication parameters based on the authentication and key generation algorithm set, that is, after step 202, the following steps may also be included:

[0105] Step 204: Send a NAS security mode command message to the terminal, where the security mode command message includes a flag for requesting the terminal to send a complete initial NAS message in a NAS security mode completion message;

[0106] Step 205: Receive a NAS security mode completion message sent by the terminal. The NAS security mode completion message includes a complete initial NAS message in the NAS container. Compare the complete initial NAS message with the initial NAS message. If they are the same, it proves that the initial NAS message has not been modified by the attacker.

[0107] Step 206: Send a response to the initial NAS message to the terminal, using the complete initial NAS message in the NAS container as the response message. This message should be encrypted and its integrity should be protected.

[0108] To summarize, after receiving the initial NAS message sent by the terminal, the first network function can parse the UE security capability field in the initial NAS message to obtain the authentication and key generation algorithm set; or, the newly added field in the initial NAS message can be parsed to obtain the authentication and key generation algorithm set, and then the authentication and key generation algorithm set can be sent to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0109] The embodiment of the present application provides a message transmission method, which is applied to a first network function, wherein the first network function receives an initial NAS message sent by a terminal, wherein the initial NAS message includes first information, wherein the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, wherein the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; wherein the authentication and key generation algorithm set is sent to a second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is used at least to manage user data. It can be seen that the first network function can receive an initial NAS message, wherein the first information included in the initial NAS message can be used to indicate an authentication and key generation algorithm set supported by the terminal, and then the authentication and key generation algorithm set can be sent to the second network function, so that the second network function can generate authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0110] Based on the above embodiment, another embodiment of the present application provides a message transmission method, which is applied to a terminal and a first network function. Figure 5 The message transmission method proposed in this embodiment of the present application is shown in FIG. Figure 5 ,like Figure 5 As shown, the message transmission method may include the following steps:

[0111] Step 301: The terminal generates an initial NAS message, where the initial NAS message includes first information, where the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication.

[0112] It should be noted that in an embodiment of the present application, the initial NAS message is the first NAS message sent after the terminal transitions from an idle state. When the terminal does not have a NAS security context, the terminal should send a limited set of fields (called plaintext fields), including the fields required to establish security in the initial message.

[0113] It should be noted that in an embodiment of the present application, the plaintext field in the initial NAS message may include one or more of SUCI, GUTI, UE security capability field, and key set identifier (ngKSI). The present application does not specifically limit the field type included in the initial NAS message.

[0114] It should be noted that, in an embodiment of the present application, the initial NAS message includes first information, and the first information is used to indicate the authentication and key generation algorithm set supported by the terminal. The authentication and key generation algorithm set may include one or more of the MILENAGE algorithm set (128-bit key input), the MILENAGE algorithm set (256-bit key input), the TUAK algorithm set (128-bit key input), and the TUAK algorithm set (256-bit key input). The present application does not specifically limit the algorithm type and number of the authentication and key generation algorithm set supported by the terminal.

[0115] It should be noted that, in the embodiments of the present application, the MILENAGE algorithm set and the TUAK algorithm set may include functions such as f1, f1*, f2, f3, f4, f5 and f5*; among which f1 is a message authentication function, f2 is a message authentication function, f3 is a key generation function, f4 is a key generation function, and f5 is a key generation function. The present application does not specifically limit the function types and the number of functions included in the MILENAGE algorithm set and the TUAK algorithm set.

[0116] It should be noted that, in an embodiment of the present application, when generating an initial NAS message, the terminal may set the first information in the UE security capability field in the initial NAS message, or set the first information in a newly added field in the initial NAS message.

[0117] Further, in an embodiment of the present application, when the terminal sets the first information in the UE security capability field in the initial NAS message, the first information may be set based on the reserved byte information corresponding to the UE security capability field.

[0118] It should be noted that, in an embodiment of the present application, the UE security capability field has a total of 10 bytes, and the reserved byte information corresponding to the UE security capability field may include bytes 7-10.

[0119] It should be noted that in an embodiment of the present application, when the terminal sets the first information based on the reserved byte information corresponding to the UE security capability field, it can generate a first coding value based on any byte in the reserved byte information corresponding to the UE security capability field; wherein the first coding value includes the coding value of the authentication and key generation algorithm set; and then the first information can be generated based on the first coding value.

[0120] That is to say, in an embodiment of the present application, the terminal can pre-select the type of authentication and key generation algorithm set, and then can generate the encoding value of the authentication and key generation algorithm set based on any byte in the reserved byte information corresponding to the UE security capability field, and then can generate the first information based on the encoding value.

[0121] Further, in an embodiment of the present application, when the terminal sets the first information in the newly added field in the initial NAS message, the terminal can generate a first coding value based on the newly added field in the initial NAS message; and then the first information can be generated based on the first coding value.

[0122] It should be noted that in an embodiment of the present application, the terminal can add a new field to the initial NAS message, and then encode the authentication and key generation algorithm set based on the newly added field to generate a first coding value, and then generate the first information based on the coding value.

[0123] That is to say, in an embodiment of the present application, the terminal can set the first information in the initial NAS message in two ways: the first information can be set in the UE security capability field in the initial NAS message, or the first information can be set in a newly added field in the initial NAS message, so that the authentication and key generation algorithm set supported by the terminal can be indicated based on the first information.

[0124] Step 302: The terminal sends an initial NAS message to a first network function, wherein the first network function is at least used for access and mobility management.

[0125] It should be noted that, in an embodiment of the present application, the first network function may include AMF.

[0126] It should be noted that, in an embodiment of the present application, after the first network function initiates the authentication process, the terminal can perform mutual authentication with the first network function based on the first preset protocol; and generate authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the authentication parameters are used for authentication processing between the terminal and the network.

[0127] It should be noted that, in the embodiments of the present application, the first preset protocol at least includes the AKA protocol, and the present application does not specifically limit the type of the first preset protocol.

[0128] It should be noted that, in the embodiments of the present application, the authentication parameters may include an authentication vector, an integrity key, and an encryption key. The present application does not specifically limit the number of parameters and parameter types included in the authentication parameters.

[0129] That is, in an embodiment of the present application, after the terminal sends an initial NAS message to the first network function, the first network function can perform an authentication process with the terminal, and then the terminal can perform mutual authentication with the first network function based on the AKA protocol, and generate authentication parameters based on the selected authentication and key generation algorithm set, and the authentication parameters may include an authentication vector, an integrity key, and an encryption key.

[0130] It should be noted that in the embodiments of the present application, the current 5G authentication process uses a fixed authentication and key generation algorithm set (MILENAGE algorithm set) to generate authentication parameters. If the algorithm set is cracked, the new algorithm set cannot be quickly deployed. Currently, the USIM and the network need to be upgraded at the same time before the new algorithm set can be used. If the currently used algorithm set is cracked, the embodiment of the present application can indicate another algorithm set supported by the terminal through the first information in the initial NAS message, so that subsequent terminals and second network functions can generate authentication parameters through another algorithm set supported by the terminal, avoiding the simultaneous upgrade of the USIM and the network, thereby greatly reducing the deployment cost.

[0131] Step 303: The first network function sends the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

[0132] It should be noted that, in the embodiment of the present application, the second network function may include UDM.

[0133] It should be noted that in an embodiment of the present application, the first network function may send the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0134] It should be noted that, in an embodiment of the present application, after receiving the initial NAS message sent by the terminal, the first network function may initiate an authentication process to the terminal, and perform mutual authentication with the terminal based on the first preset protocol.

[0135] Furthermore, in an embodiment of the present application, the first network function can also receive authentication parameters sent by the second network function, and then the first network function and the terminal can deduce the security context for protecting NAS messages, access layer AS messages, and UP plane data based on the authentication vector and integrity key in the authentication parameters.

[0136] Further, in the embodiments of the present application, Figure 4 As shown, after the first network function sends the authentication and key generation algorithm set to the second network function so that the second network function generates authentication parameters based on the authentication and key generation algorithm set, the first network function may send a NAS security mode command message to the terminal, and the security mode command message includes a flag for requesting the terminal to send a complete initial NAS message in the NAS security mode completion message;

[0137] Then, a NAS security mode completion message sent by the terminal can be received. The NAS security mode completion message includes the complete initial NAS message in the NAS container, and the complete initial NAS message is compared with the initial NAS message. If they are the same, it proves that the initial NAS message has not been modified by the attacker. Then, a response to the initial NAS message can be sent to the terminal, and the complete initial NAS message in the NAS container is used as the response message. This message should be encrypted and its integrity should be protected.

[0138] In summary, the terminal can set the first information in the initial NAS message in two ways. The first information can be set in the UE security capability field in the initial NAS message, or the first information can be set in the newly added field in the initial NAS message, so that the authentication and key generation algorithm set supported by the terminal can be indicated based on the first information. Then the terminal can send the initial NAS message to the first network function, so that the first network function can obtain the authentication and key generation algorithm set supported by the terminal. After the first network function initiates the authentication process, the terminal can perform mutual authentication with the first network function based on the AKA protocol, and generate authentication parameters based on the selected authentication and key generation algorithm set. The authentication parameters may include authentication vectors, integrity keys, and encryption keys; the first network function can parse the UE security capability field in the initial NAS message to obtain the authentication and key generation algorithm set; or, the newly added field in the initial NAS message can be parsed to obtain the authentication and key generation algorithm set, and then the authentication and key generation algorithm set can be sent to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0139] The embodiment of the present application provides a message transmission method, which is applied to a terminal and a first network function, wherein the terminal generates an initial NAS message, the initial NAS message includes first information, the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; the initial NAS message is sent to the first network function; wherein the first network function is at least used for access and mobility management; the first network function sends the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include authentication vectors, integrity keys, and encryption keys, and the second network function is at least used to manage user data. It can be seen that the terminal can add the first information to the initial NAS message, and the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and then the initial NAS message can be sent to the first network function, and then the first network function can send the authentication and key generation algorithm set supported by the terminal to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0140] Based on the above embodiment, another embodiment of the present application provides a message transmission method, the basic principle of which is that the UE (terminal) uses an initial NAS message to indicate an authentication and key generation algorithm set, and uses the UE security capability field in the initial NAS message or defines a new field in the initial NAS message to indicate the authentication and key generation algorithm set. After receiving the initial NAS message, the AMF (ie, the first network function) parses the authentication and key generation algorithm set specified by the UE and notifies the UDM (ie, the second network function). When the UDM generates an authentication vector (authentication parameter), the authentication and key generation algorithm set determined by the UE is used, so that the UE and the UDM can use the same authentication and key generation algorithm set.

[0141] It should be noted that in an embodiment of the present application, the UE uses the UE security capability field in the initial NAS message to indicate the authentication and key generation algorithm set, which may specifically include the following steps: 1. The UE (terminal) sends an initial NAS message to the AMF (i.e., the first network function). The UE has no NAS security context. The initial NAS message should only contain plaintext fields, such as SUCI or GUTI, UE security capabilities, ngKSI, etc. The UE security capabilities are used by the UE to notify the AMF of the cryptographic algorithms it supports; wherein, the UE security capabilities have a total of 10 bytes, bytes 1-6 have encoded the key algorithms supported by the UE, and bytes 7-10 are not currently used. This application can select any byte in bytes 7-10 (reserved byte information) to encode the authentication and key generation algorithm set supported by the UE. Before sending the initial NAS message to the AMF, the UE can select the authentication and key generation algorithm set and set the corresponding authentication and key generation algorithm set encoding; 2. The AMF receives the initial NAS message, parses the UE security capability field to obtain the authentication and key generation algorithm set set set by the UE, and notifies the UDM. The AMF initiates the authentication process with the UE, and the UE uses 5G The AKA authentication protocol performs mutual authentication with the network. The UE and the network (UDM) use the authentication and key generation algorithm set indicated by the UE to generate the authentication vector, integrity key IK and encryption key CK. The UE and AMF deduce the security context for protecting NAS messages, AS messages and UP plane data based on IK and CK (deduced based on the key deduction tree).

[0142] It should be noted that in an embodiment of the present application, the UE indicates the authentication and key generation algorithm set by newly defining a field in the initial NAS message, which may specifically include the following steps: 1. The UE sends an initial NAS message to the AMF. The UE does not have a NAS security context. The initial NAS message should only contain plaintext fields, such as a subscription identifier (such as SUCI or GUTI), UE security capabilities, ngKSI, etc. UE security capability is used for UE to notify AMF of the cryptographic algorithms it supports. A new field (authentication and key generation algorithm set indication field) is added to the initial NAS message to encode the authentication and key generation algorithm set supported by the UE. Before sending the initial NAS message to AMF, the UE selects the authentication and key generation algorithm set and sets the corresponding authentication and key generation algorithm set encoding; 2. AMF receives the initial NAS message, parses the authentication and key generation algorithm set indication field (newly added field) to obtain the authentication and key generation algorithm set set by the UE, and notifies UDM. AMF initiates the authentication process with the UE. The UE uses the 5G AKA authentication protocol to authenticate each other with the network. The UE and the network (UDM) use the authentication and key generation algorithm set indicated by the UE to generate the authentication vector, integrity key IK and encryption key CK (authentication parameters). The UE and AMF deduce the security context used to protect NAS messages, AS messages and UP plane data based on IK and CK (deduced based on the key deduction tree).

[0143] It should be noted that, in an embodiment of the present application, the terminal can set the first information in the initial NAS message in two ways. The first information can be set in the UE security capability field in the initial NAS message, or the first information can be set in a newly added field in the initial NAS message. The first information is used to indicate the authentication and key generation algorithm set supported by the terminal. After receiving the initial NAS message sent by the terminal, the first network function can parse the UE security capability field in the initial NAS message to obtain the authentication and key generation algorithm set; or, the newly added field in the initial NAS message can be parsed to obtain the authentication and key generation algorithm set, and then the authentication and key generation algorithm set can be sent to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0144] Furthermore, in the embodiments of the present application, Figure 6 A schematic diagram of the protection process of the initial NAS message proposed in the embodiment of the present application is shown in FIG. Figure 6As shown, the protection process of the initial NAS message proposed in this application mainly includes the following steps: 1. The UE (terminal) sends an initial NAS message to the AMF (i.e., the first network function). The UE has no NAS security context. The initial NAS message should only contain plain text fields, such as (SUCI or GUTI), UE security capabilities, ngKSI, etc.; wherein, the UE security capabilities are used by the UE to notify the AMF of the cryptographic algorithms it supports; the UE can use the UE security capability field in the initial NAS message or define a new field in the initial NAS message to indicate the authentication and key generation algorithm set; 2. The AMF initiates the authentication process with the UE, and the UE uses the 5GAKA authentication protocol to authenticate each other with the network. The AMF can parse the UE security capability field in the initial NAS message to obtain the authentication and key generation algorithm set; or, the newly added field in the initial NAS message can be parsed to obtain the authentication and key generation algorithm set, and the UDM, UE and network (UDM) are notified. M) Use the authentication and key generation algorithm set indicated by the UE to generate the authentication vector, integrity key IK and encryption key CK. The UE and AMF deduce the security context used to protect NAS messages, AS messages and UP plane data based on IK and CK (based on the key deduction tree); 3. AMF sends a NAS security mode command message. AMF includes a flag in the security mode command message, requesting the UE to send a complete initial NAS message in the NAS security mode completion message; 4. The UE sends a NAS security mode completion message to the network in response to the NAS security mode command message. The NAS security mode completion message should be encrypted and integrity protected. The NAS security mode completion message should include the complete initial NAS message in the NAS container. AMF compares the initial NAS message received this time with the initial NAS message received in the first step. If they are the same, it proves that the message in the first step has not been modified by the attacker; 5. AMF sends its response to the initial NAS message. AMF should use the complete initial NAS message in the NAS container as the response message. This message should be encrypted and its integrity should be protected; Among them, the authentication service function (Authentication Server Function, AUSF) is mainly used to handle the UE's identity authentication process.

[0145] It should be noted that in the embodiments of the present application, the current 5G authentication process uses a fixed authentication and key generation algorithm set (MILENAGE algorithm set) to generate authentication parameters. If the algorithm set is cracked, the new algorithm set cannot be quickly deployed. Currently, the USIM and the network need to be upgraded at the same time before the new algorithm set can be used. If the currently used algorithm set is cracked, the embodiment of the present application can indicate another algorithm set supported by the terminal through the first information in the initial NAS message, so that subsequent terminals and second network functions can generate authentication parameters through another algorithm set supported by the terminal, avoiding the simultaneous upgrade of the USIM and the network, thereby greatly reducing the deployment cost.

[0146] In summary, the terminal can set the first information in the initial NAS message in two ways. The first information can be set in the UE security capability field in the initial NAS message, or the first information can be set in the newly added field in the initial NAS message, so that the authentication and key generation algorithm set supported by the terminal can be indicated based on the first information. Then the terminal can send the initial NAS message to the first network function, so that the first network function can obtain the authentication and key generation algorithm set supported by the terminal. After the first network function initiates the authentication process, the terminal can perform mutual authentication with the first network function based on the AKA protocol, and generate authentication parameters based on the selected authentication and key generation algorithm set. The authentication parameters may include authentication vectors, integrity keys, and encryption keys; the first network function can parse the UE security capability field in the initial NAS message to obtain the authentication and key generation algorithm set; or, the newly added field in the initial NAS message can be parsed to obtain the authentication and key generation algorithm set, and then the authentication and key generation algorithm set can be sent to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0147] The embodiment of the present application provides a message transmission method, which is applied to a terminal and a first network function, wherein the terminal generates an initial NAS message, the initial NAS message includes first information, the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; the initial NAS message is sent to the first network function; wherein the first network function is at least used for access and mobility management; the first network function sends the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include authentication vectors, integrity keys, and encryption keys, and the second network function is at least used to manage user data. It can be seen that the terminal can add the first information to the initial NAS message, and the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and then the initial NAS message can be sent to the first network function, and then the first network function can send the authentication and key generation algorithm set supported by the terminal to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0148] Based on the above embodiments, the present application provides a terminal. Figure 7 The terminal structure is shown in Figure 1. Figure 1 ,like Figure 7 As shown, the terminal 10 includes: a generating unit 11 and a first sending unit 12; wherein,

[0149] The generating unit 11 is configured to generate an initial NAS message, wherein the initial NAS message includes first information, wherein the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, wherein the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication, wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key;

[0150] The first sending unit 12 is used to send the initial NAS message to a first network function; wherein the first network function is at least used for access and mobility management.

[0151] In the embodiments of the present application, further, Figure 8 The terminal structure is shown in Figure 1. Figure 2 ,like Figure 8 As shown, the terminal 10 proposed in the embodiment of the present application may also include a first processor 13, a first memory 14 storing executable instructions of the first processor 13, and further, the terminal 10 may also include a first communication interface 15, and a first bus 16 for connecting the first processor 13, the first memory 14 and the first communication interface 15.

[0152] In the embodiment of the present application, the first processor 13 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function may also be other, and the embodiment of the present application is not specifically limited. The terminal 10 may also include a first memory 14, which may be connected to the first processor 13, wherein the first memory 14 is used to store executable program code, the program code includes computer operation instructions, and the first memory 14 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.

[0153] In the embodiment of the present application, the first bus 16 is used to connect the first communication interface 15, the first processor 13 and the first memory 14, and the mutual communication between these devices.

[0154] In the embodiment of the present application, the first memory 14 is used to store instructions and data.

[0155] Further, in an embodiment of the present application, the above-mentioned first processor 13 is used to generate an initial NAS message, the initial NAS message including first information, the first information being used to indicate an authentication and key generation algorithm set supported by the terminal, the authentication and key generation algorithm set being used to generate authentication parameters when the terminal performs network authentication; the initial NAS message is sent to a first network function; wherein the first network function is at least used for access and mobility management.

[0156] In practical applications, the first memory 14 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memories, and provide instructions and data to the first processor 13.

[0157] The embodiment of the present application provides a terminal, the terminal generates an initial NAS message, the initial NAS message includes first information, the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; the initial NAS message is sent to a first network function; wherein the first network function is at least used for access and mobility management. It can be seen that the terminal includes the first information in the generated initial NAS message, the first information can indicate the authentication and key generation algorithm set supported by the terminal, and then the initial NAS message can be sent to the first network function, the first network function can obtain the authentication and key generation algorithm set supported by the terminal, and subsequently notify the second network function, so that the terminal and the second network function can generate authentication parameters through the same authentication and key generation algorithm set.

[0158] An embodiment of the present application provides a computer-readable storage medium having a program stored thereon, which implements the message transmission method as described above when executed by a processor.

[0159] Specifically, a program instruction corresponding to a message transmission method in this embodiment can be stored on a storage medium such as a CD, a hard disk, a USB flash drive, etc. When the program instruction corresponding to a message transmission method in the storage medium is read or executed by an electronic device, the following steps are included:

[0160] Generate an initial NAS message, the initial NAS message including first information, the first information being used to indicate an authentication and key generation algorithm set supported by the terminal, the authentication and key generation algorithm set being used to generate authentication parameters when the terminal performs network authentication;

[0161] The initial NAS message is sent to a first network function; wherein the first network function is at least used for access and mobility management.

[0162] The embodiment of the present application further provides a computer program product, including a computer program, and the computer program can be executed by the first processor 13 of the terminal 10 to complete the steps of any of the aforementioned methods.

[0163] In the embodiments of the present application, further, Fig. 9 Schematic diagram of the composition structure of the first network function Figure 1 ,like Fig. 9 As shown, the first network function 20 includes: a receiving unit 21 and a second sending unit 22; wherein,

[0164] The receiving unit 21 is configured to receive an initial NAS message sent by a terminal, where the initial NAS message includes first information, where the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication;

[0165] The second sending unit 22 is used to send the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

[0166] In the embodiments of the present application, further, Fig.10 Schematic diagram of the composition structure of the first network function Figure 2 ,like Fig.10 As shown, the first network function 20 proposed in the embodiment of the present application may also include a second processor 23, a second memory 24 storing executable instructions of the second processor 23, and further, the first network function 20 may also include a second communication interface 25, and a second bus 26 for connecting the second processor 23, the second memory 24 and the second communication interface 25.

[0167] In an embodiment of the present application, the second processor 23 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor function may also be other, and the embodiment of the present application is not specifically limited. The first network function 20 may also include a second memory 24, which may be connected to the second processor 23, wherein the second memory 24 is used to store executable program code, the program code includes computer operation instructions, and the second memory 24 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.

[0168] In the embodiment of the present application, the second bus 26 is used to connect the second communication interface 25, the second processor 23 and the second memory 24, and the mutual communication between these devices.

[0169] In the embodiment of the present application, the second memory 24 is used to store instructions and data.

[0170] Further, in an embodiment of the present application, the above-mentioned second processor 23 is used to receive an initial NAS message sent by the terminal, the initial NAS message containing first information, the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, and the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; send the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

[0171] In practical applications, the second memory 24 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memories, and provide instructions and data to the second processor 23.

[0172] The embodiment of the present application provides a first network function, the first network function receives an initial NAS message sent by a terminal, the initial NAS message includes first information, the first information is used to indicate the authentication and key generation algorithm set supported by the terminal, the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; the authentication and key generation algorithm set is sent to a second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data. It can be seen that the first network function can receive an initial NAS message, the first information included in the initial NAS message can be used to indicate the authentication and key generation algorithm set supported by the terminal, and then the authentication and key generation algorithm set can be sent to the second network function, so that the second network function can generate authentication parameters based on the authentication and key generation algorithm set supported by the terminal, thereby ensuring that the second network function and the terminal use the same authentication and key generation algorithm set to generate authentication parameters.

[0173] An embodiment of the present application provides a computer-readable storage medium having a program stored thereon, which implements the message transmission method as described above when executed by a processor.

[0174] Specifically, a program instruction corresponding to a message transmission method in this embodiment can be stored on a storage medium such as a CD, a hard disk, a USB flash drive, etc. When the program instruction corresponding to a message transmission method in the storage medium is read or executed by an electronic device, the following steps are included:

[0175] receiving an initial NAS message sent by a terminal, the initial NAS message including first information, where the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication;

[0176] The authentication and key generation algorithm set is sent to a second network function so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

[0177] The embodiment of the present application also provides a computer program product, including a computer program, which can be executed by the second processor 23 of the first network function 20 to complete the steps of any of the aforementioned methods.

[0178] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0179] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0180] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0181] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0182] 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. A message transmission method, characterized in that: The method is applied to a terminal, and the method includes: Generate an initial non-access stratum NAS message, the initial NAS message including first information, the first information being used to indicate an authentication and key generation algorithm set supported by the terminal, the authentication and key generation algorithm set being used to generate authentication parameters when the terminal performs network authentication, the authentication parameters including an authentication vector, an integrity key, and an encryption key; The initial NAS message is sent to a first network function; wherein the first network function is at least used for access and mobility management.

2. The method according to claim 1, characterized in that When generating the initial NAS message, the method includes: The first information is set in a UE security capability field in the initial NAS message, or the first information is set in a newly added field in the initial NAS message.

3. The method according to claim 2, characterized in that The setting of the first information in the UE security capability field in the initial NAS message includes: The first information is set based on the reserved byte information corresponding to the UE security capability field.

4. The method according to claim 3, characterized in that The setting the first information based on the reserved byte information corresponding to the UE security capability field includes: Generate a first coded value based on any one byte in the reserved byte information corresponding to the UE security capability field; wherein the first coded value includes the coded value of the authentication and key generation algorithm set; The first information is generated based on the first encoded value.

5. The method according to claim 2, characterized in that: The newly added field in the initial NAS message sets the first information, including: generating a first coded value based on a newly added field in the initial NAS message; The first information is generated based on the first encoded value.

6. The method according to claim 1, characterized in that The method further comprises: After the first network function initiates the authentication process, mutual authentication is performed with the first network function based on a first preset protocol; wherein the first preset protocol at least includes an authentication and key agreement AKA protocol; The authentication parameters are generated based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the authentication parameters are used for the terminal to perform authentication processing with the network.

7. A message transmission method, characterized in that: The method is applied to a first network function, and the method comprises: receiving an initial NAS message sent by a terminal, the initial NAS message including first information, where the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; The authentication and key generation algorithm set is sent to a second network function so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

8. The method according to claim 7, characterized in that After the receiving terminal sends the initial NAS message, the method further includes: Parsing the UE security capability field in the initial NAS message to obtain the authentication and key generation algorithm set; or, The newly added fields in the initial NAS message are parsed to obtain the authentication and key generation algorithm set.

9. The method according to claim 7, characterized in that: The method further comprises: An authentication process is initiated to the terminal, and mutual authentication is performed with the terminal based on a first preset protocol.

10. A terminal, characterized in that: The terminal comprises: a generating unit and a first sending unit; wherein, The generating unit is configured to generate an initial NAS message, wherein the initial NAS message includes first information, wherein the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, wherein the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication, wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key; The first sending unit is used to send the initial NAS message to a first network function; wherein the first network function is at least used for access and mobility management.

11. A terminal, characterized in that: The terminal comprises: a first processor and a first memory; wherein, The first memory is used to store a computer program that can be run on the processor; The first processor is configured to execute the method according to any one of claims 1 to 6 when running the computer program.

12. A first network function, characterized in that: The first network function includes: a receiving unit and a second sending unit; wherein, The receiving unit is configured to receive an initial NAS message sent by a terminal, where the initial NAS message includes first information, where the first information is used to indicate an authentication and key generation algorithm set supported by the terminal, where the authentication and key generation algorithm set is used to generate authentication parameters when the terminal performs network authentication; The second sending unit is used to send the authentication and key generation algorithm set to the second network function, so that the second network function generates authentication parameters based on the authentication and key generation algorithm set; wherein the authentication parameters include an authentication vector, an integrity key, and an encryption key, and the second network function is at least used to manage user data.

13. A first network function, characterized in that: The first network function includes: a second processor and a second memory; wherein, The second memory is used to store a computer program that can be run on the processor; The second processor is used to execute the method according to any one of claims 7 to 9 when running the computer program.

14. A computer-readable storage medium, characterized in that: The storage medium stores computer program code, and when the computer program code is executed by a computer, the method described in any one of claims 1 to 6 or 7 to 9 is performed.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1-6 or 7-9.

Citation Information

Cited By

  • Information transmission method and apparatus, and communication device and readable storage medium

    WO2026138759A1