Authentication methods and devices

By having the first device calculate and send a response to the core network side device for authentication, the problem of high computational complexity in authentication for zero-power devices is solved, and an efficient authentication process is achieved.

WO2024229633A1PCT designated stage expired Publication Date: 2024-11-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/092600
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2024-11-14

AI Technical Summary

Technical Problem

In existing technologies, zero-power devices (A-IoT devices) have high computational complexity when authenticating with the core network, making it difficult to achieve efficient authentication.

Method used

The first device calculates a first response based on the identifier and shared key of the second device and sends it to the core network side device for authentication. The core network side device judges the authentication success based on the expected response, thus avoiding the complex calculations of the second device.

Benefits of technology

It enables efficient certification of zero-power devices, reduces the computational burden on devices, and simplifies the certification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023092600_14112024_PF_FP_ABST
    Figure CN2023092600_14112024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to authentication methods, devices, a computer-readable storage medium, a computer program product and a computer program. A method comprises: a first device calculates a first response on the basis of identifiers of one or multiple second devices and one or multiple first shared keys, different first shared keys among the one or multiple first shared keys being shared by different second devices, the first device and a core network side device; and the first device sends a first message to the core network side device, the first message carrying the first response, and the first response being used for the core network side device to authenticate the one or multiple second devices.
Need to check novelty before this filing date? Find Prior Art

Description

Authentication methods and equipment Technical Field

[0001] The present application relates to the field of communications, and more particularly, to an authentication method, device, computer-readable storage medium, computer program product, and computer program. Background Art

[0002] In related technologies, the authentication and key negotiation processes between UE (User Equipment) and the core network use highly complex computational functions and key architectures. However, zero-power devices, such as A-IoT devices, also need to access networks such as the core network. Therefore, how to enable A-IoT devices to authenticate with the network while reducing their computational complexity becomes a challenge.

[0003] Summary of the Invention

[0004] Embodiments of the present application provide an authentication method, device, computer-readable storage medium, computer program product, and computer program.

[0005] This embodiment of the present application provides an authentication method, including:

[0006] The first device calculates a first response based on the identifiers of the one or more second devices and the one or more first shared keys, where different first shared keys among the one or more first shared keys are shared by different second devices, the first device, and the core network side device;

[0007] The first device sends a first message to the core network side device, where the first message carries the first response, and the first response is used by the core network side device to authenticate the one or more second devices.

[0008] This embodiment of the present application provides an authentication method, including:

[0009] The core network side device receives a first message from the first device, where the first message carries a first response, and the first response is related to one or more second devices;

[0010] The core network side device determines that the authentication of the one or more second devices is successful when the first expected response is the same as the first response, wherein the first expected response is related to one or more first shared keys and the identifiers of the one or more second devices, and different first shared keys among the one or more first shared keys are shared by different second devices and the first device and the core network side device.

[0011] An embodiment of the present application provides a first device, including:

[0012] A first processing unit is configured to calculate a first response based on identifiers of one or more second devices and one or more first shared keys, where different first shared keys among the one or more first shared keys are shared by different second devices, the first device, and the core network side device;

[0013] The first communication unit is used to send a first message to the core network side device, where the first message carries the first response, and the first response is used by the core network side device to authenticate the one or more second devices.

[0014] An embodiment of the present application provides a core network side device, including:

[0015] a second communication unit, configured to receive a first message from a first device, wherein the first message carries a first response, and the first response is related to one or more second devices;

[0016] The second processing unit is used to determine that the authentication of the one or more second devices is successful when the first expected response is the same as the first response, wherein the first expected response is related to one or more first shared keys and the identifiers of the one or more second devices, and different first shared keys among the one or more first shared keys are shared by different second devices and the first device and the core network side device.

[0017] An embodiment of the present application provides a first device, comprising a transceiver, a processor, and a memory. The memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the first device performs the above method.

[0018] An embodiment of the present application provides a core network side device, comprising a transceiver, a processor, and a memory. The memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the core network side device performs the above method.

[0019] The embodiment of the present application provides a chip for implementing the above method.

[0020] Specifically, the chip includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes the above method.

[0021] An embodiment of the present application provides a computer-readable storage medium for storing a computer program, which enables a device to perform the above method when the computer program is executed by the device.

[0022] An embodiment of the present application provides a computer program product, including computer program instructions, which enable a computer to execute the above method.

[0023] An embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the above method.

[0024] By adopting the solution provided in this embodiment, the first device can calculate a first response for each second device bound to the first device based on a key shared by each second device, the first device, and the network, and send the first response to the core network device, allowing the core network device to authenticate each second device. In this way, the first device can authenticate the second device with the network on behalf of the second device, ensuring that the core network device can authenticate the second device while avoiding complex calculations on the second device, reducing the computational burden on the second device. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] FIG1 is a schematic diagram of an application scenario according to an embodiment of the present application.

[0026] FIG2 is a schematic flowchart of an authentication method according to an embodiment of the present application.

[0027] FIG3 is a schematic flowchart of an authentication method according to another embodiment of the present application.

[0028] FIG4 is a schematic diagram of a scenario architecture of an authentication method according to an embodiment of the present application.

[0029] FIG5a, FIG5b to FIG9 are schematic diagrams of various example processes of an authentication method according to an embodiment of the present application.

[0030] FIG10 is a schematic diagram of two scenarios of AIOT devices accessing the network in related technologies.

[0031] FIG11 is a schematic diagram of the AKA authentication process.

[0032] FIG12 is a schematic block diagram of a first device according to an embodiment of the present application.

[0033] FIG13 is a schematic block diagram of a core network side device according to an embodiment of the present application.

[0034] FIG14 is a schematic block diagram of a communication device according to an embodiment of the present application.

[0035] FIG15 is a schematic block diagram of a chip according to an embodiment of the present application.

[0036] FIG16 is a schematic block diagram of a communication system according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: GSM, CDMA, WCDMA, GPRS, LTE, LTE-A, NR, NR evolution, WLAN, WiFi, or other communication systems.

[0038] The embodiments of the present application describe various embodiments in conjunction with network devices and terminals. The terminals can be mobile or fixed, and can also be referred to as mobile stations, user units, etc. The terminal can be a site in a WLAN, and can be a smart terminal, wireless modem, laptop computer, tablet computer, or other terminal. In the embodiments of the present application, the terminal can be a VR terminal / AR terminal, an industrial control terminal, an unmanned driving terminal, a telemedicine terminal, a smart grid terminal, a transportation safety terminal, a smart city terminal, or a wireless terminal for a smart home, etc. As an example and not a limitation, in the embodiments of the present application, the terminal can also be a wearable device.

[0039] In the embodiment of the present application, the network device may be a device for communicating with a terminal, and the network device may be an access point in WLAN, a base station in GSM, CDMA, or WCDMA, an evolved base station in LTE, or a relay station, or a network device (gNB) in an in-vehicle device, a wearable device, and an NR network, or a network device in a future evolved PLMN network, or a network device in a non-terrestrial network, etc. As an example and not a limitation, in the embodiment of the present application, the network device may have a mobile feature, for example, the network device may be a mobile device.

[0040] It should be understood that the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B. In the description of the embodiments of this application, the term "corresponding" can mean that there is a direct or indirect correspondence between the two, or it can mean that there is an association relationship between the two, or it can mean a relationship between indication and indication, configuration and configuration, etc.

[0041] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following relevant technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.

[0042] Figure 1 exemplarily illustrates a communication system 100. The communication system includes a network device 110 and two terminals 120. In one possible implementation, the communication system 100 may include multiple network devices 110, and each network device 110 may include a different number of terminals 120 within its coverage area, although this embodiment of the present application does not limit this. In one possible implementation, the communication system 100 may also include a mobility management entity, access and mobility management functions, and other network entities, although this embodiment of the present application does not limit this. The network devices may include access network devices and core network devices. That is, the communication system may also include multiple core networks for communicating with the access network devices. The access network devices may be base stations of LTE, LTE-A, or NR systems. Taking the communication system shown in Figure 1 as an example, the communication devices may include network devices and terminals with communication functions. The communication devices may also include other devices in the communication system, such as network controllers, mobility management entities, and other network entities, although this embodiment of the present application does not limit this.

[0043] Figure 2 is a schematic flow chart of an authentication method according to an embodiment of the present application. The method includes at least part of the following contents.

[0044] S210. The first device calculates a first response based on the identifiers of one or more second devices and one or more first shared keys, where different first shared keys among the one or more first shared keys are shared by different second devices, the first device, and the core network side device.

[0045] S220. The first device sends a first message to the core network side device, where the first message carries the first response, and the first response is used by the core network side device to authenticate the one or more second devices.

[0046] Figure 3 is a schematic flow chart of an authentication method according to another embodiment of the present application. The method includes at least part of the following contents.

[0047] S310. A core network device receives a first message from a first device, where the first message carries a first response, and the first response is related to one or more second devices.

[0048] S320. The core network side device determines that the authentication of the one or more second devices is successful when the first expected response is the same as the first response, wherein the first expected response is related to one or more first shared keys and the identifiers of the one or more second devices, and different first shared keys among the one or more first shared keys are shared by different second devices and the first device and the core network side device.

[0049] The first device includes at least one of the following: a terminal device, a first access network device. The second device is an ambient IoT (AIoT) device. In some possible examples, any second device can also be a zero-power device, for example, an active zero-power device, a passive zero-power device, a semi-passive zero-power device, etc. Optionally, the second device can be called a tag. In other possible examples, the second device can be a terminal with lower computing power. All possible names or possible devices of the second device are not exhaustively listed here.

[0050] Exemplarily, the one or more second devices may be connected to the core network through an indirect mode. In this mode, one or more second devices are connected to the core network through a terminal device and a first access network device corresponding to the terminal device. In this case, the first device is the terminal device, or the first device may be the first access network device corresponding to the terminal device. Exemplarily, the one or more second devices may be connected to the core network through a direct mode. In this mode, one or more second devices are connected to the core network through a corresponding first access network device. In this case, the first device is the first access network device. In addition, when the first device is a terminal device, the first device may be a proxy UE or a relay UE, etc.

[0051] The core network side device may include one or more core network devices; the one or more core network devices may include at least one of the following: AUSF, UDM (Unified Data Management Function), ARPF (Authentication Credential Repository and Processing Function), AMF, UPF, SEAF, and AIOT network element. It should be understood that this is only an example. In actual processing, the one or more core network devices may also include other core network devices, but this is not an exhaustive list.

[0052] In some possible implementations, different first shared keys among the one or more first shared keys are shared by different second devices, the first device, and the core network side device.

[0053] Exemplarily, the first shared key corresponding to any second device is shared by the second device, the first device, and the core network side device. The first shared key corresponding to any second device can be at least one of a pre-shared key, a pre-distributed key, a private network key, an application layer key, a physical layer key, and a physical unclonable function (PUF) key.

[0054] For example, the first shared key corresponding to any second device can be the root key corresponding to the second device. The above root key is for illustrative purposes only. In actual processing, as long as the same key is shared by any second device, the first device, and the core network device, it is protected by this embodiment. This example does not limit the specific generation, distribution, or configuration method of the root key.

[0055] For example, any first shared key is not the root key of the second device, and the any first shared key can be the intermediate shared key corresponding to any second device. In this case, the intermediate shared key corresponding to any second device can be obtained by negotiation between any second device and the core network device, and then the core network side device uses the intermediate shared key as the first shared key, and sends the first shared key corresponding to the second device to the first device through the first network device, and the first device saves it. That is, the processing of the first device can also include: the first device receives one or more first shared keys from the first network device. Correspondingly, the processing of the first network device can include: the first network device sends the one or more first shared keys to the first device.

[0056] Taking any second device as the i-th second device (i is a positive integer) as an example, the i-th second device shares a root key with the core network side device, and the first device does not share the root key. The i-th second device and the core network side device can derive the intermediate shared key of the i-th second device based on the root key of the i-th second device. The core network side uses the intermediate shared key of the i-th second device as the first shared key of the i-th second device and sends the first shared key of the i-th second device to the first device through the first network device. Correspondingly, the first device can receive the first shared key of the i-th second device from the first network device. In this way, the first shared key of the i-th second device is a key shared by the i-th second device, the core network side device, and the first device.

[0057] Among them, the first network device includes one of the following: AUSF, authentication device, and the authentication device includes one of the following: second access network device, AMF, SEAF, UPF, service server, AIoT network element.

[0058] In some possible examples, the first network device may be a first core network device in a core network-side device. For example, the first core network device may be any one of an AUSF, an AMF, an UPF, a SEAF, an AIOT network element, and the like. For another example, the first core network device may be an authentication device deployed in the core network. In this case, the authentication device may be an AIoT network element deployed in the core network and / or a service server deployed in the core network. The service server may be a server serving AIoT services, and the service server may be deployed on the core network side as a core network element. The AIOT network element may refer to any one of a core network element with AIOT service functions, a core network element with AIOT functions, or a core network element serving AIOT functions. It should be understood that the AIOT network element may be a separate core network element specifically configured to serve AIOT functions, or an existing core network element with AIOT functions added. This embodiment does not exhaustively enumerate all possible scenarios.

[0059] In some possible examples, the first network device is an authentication device, which may be a device with AIOT functionality, or a device dedicated to AIOT authentication functionality, or a device dedicated to AIOT certification functionality. For example, the authentication device is an Authenticator, or an AIOT authentication device (i.e., A-IoT Authenticator). The authentication device may be deployed in the core network, that is, the first network device may be the first core network device in the core network side device. Alternatively, the first network device may be an authentication device that is not deployed in the core network. For example, the first core network device may be a second access network device, and the second access network device may be an access network device with AIoT authentication functionality. For another example, the first network device may be a service server, which is not deployed in the core network, but is a server that can access the core network and serves AIOT services, or is called an AIoT server.

[0060] In the above example, this embodiment does not limit the method for calculating the intermediate shared key. It can be calculated using a specified key calculation method based on a random number and the root key of the second device, or it can be obtained using other methods. As long as both can produce the same intermediate shared key, it is within the scope of protection of this embodiment. It should also be understood that the parameters for deriving the intermediate shared key do not need to use the root key. As long as the process of deriving the intermediate shared key uses a key that is shared only by the i-th second device and the core network-side device, and not shared by the first device, it is within the scope of protection of this embodiment.

[0061] In some possible implementations, the first device calculating a first response based on the identifiers of the one or more second devices and the one or more first shared keys includes: the first device calculating the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and one or more first random numbers. Here, the first response may be a first RES (Response).

[0062] The first device calculates the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, including one of the following: the first device calculates the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using a first calculation method; the first device obtains one or more intermediate keys based on the one or more first shared keys, and calculates the first response based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; the first device calculates one or more first intermediate responses based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, and calculates the first response based on the one or more first intermediate responses.

[0063] In some possible examples, the first device may directly use the first shared key to calculate the first response.

[0064] The first device calculates the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using a first calculation method, including one of the following: the first device calculates the first response based on the one or more second responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using a first calculation method, and the one or more second responses are obtained based on the one or more second random numbers; the first device calculates the first response based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method, wherein the second shared key is shared by the first device and the core network side device; the first device calculates the third intermediate key based on the second shared key, the identifier of the first network device, and the third random number, and calculates the first response based on the third intermediate key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method.

[0065] The above-mentioned identification may include an ID and / or a network identification. For example, the ID may include but is not limited to at least one of the following: SUPI, 5G-GUTI, GPSI, Index (number), etc. For another example, the above-mentioned network identification may include at least one of: IP address, MAC (Media Access Control, Media Access Control) address, etc. It should be pointed out that for the sake of brevity, the ID is used as the identification for exemplary explanation below. The IDs involved below can be replaced with network identifications (IP addresses and / or MAC addresses), but they are not listed one by one.

[0066] The above-mentioned first calculation method may include at least one of the following: a first authentication function, a second authentication function, a third authentication function, a hash algorithm, Advanced Encryption Standard (AES), ACSON, SNOW 3G (Snow Third Generation, third generation mobile communication snow), ZUC (ZUChongzhi, Zu Chongzhi), XOR calculation, and direct connection calculation. Among them, the first authentication function can be expressed as f1(), and the second authentication function can be expressed as f2(); the hash algorithm can be expressed as HASH(), and the hash algorithm can include HMAC-SHA-256 (Hash based Message Authentication Code-Secure Hash Algorithm-256, hash-based message authentication code secure hash algorithm 256), or other hash algorithms can also be used, which are not exhaustive in this embodiment. It should be understood that this is only an exemplary explanation. In actual processing, the first calculation method may also include more possibilities, such as a third key generation function (for example, it can be expressed as f3), a fourth key generation function (for example, it can be expressed as f4), a fifth key generation function (for example, it can be expressed as f5), etc. At least one, all possible calculation functions (or algorithms) of the first calculation method are not enumerated here.

[0067] In one example, when the number of second devices is one, the first device calculates the first response based on the identifier of the second device, the first shared key, the identifier of the first device, and the first random number using a first calculation method.

[0068] Taking the first shared key as the root key, the first calculation method as the hash algorithm, and the first device as the UE as an example, the above-mentioned calculation of the first response can be expressed by the following formula: RES'=HASH(Kr,AIoT ID,UE ID,NONCE1), wherein RES' represents the first response, HASH represents the hash algorithm, Kr is the first shared key, i.e., the root key, AIoT ID is the identifier of the second device, UE ID is the identifier of the first device, and NONCE1 is the first random number. The above-mentioned hash algorithm can also be replaced by other algorithms or functions in the above-mentioned first calculation method, such as replacing it with the second authentication function. The above-mentioned processing can be calculated by the following formula: RES'=f2(Kr,AIoT ID,UE ID,NONCE1), where f2 represents the second authentication function. The meanings of other parameters in the formula are the same as those described above and will not be repeated. The above-mentioned first shared key can also be any one of K, PSK (pre-shared key), PMK (pairwise master key), etc. Correspondingly, Kr in the various formula examples provided in this embodiment (including the following) can also be replaced by K, PSK, PMK, etc., and the list is not exhaustive here.

[0069] Taking the case where the first shared key is KAUSF-A (that is, the intermediate shared key KAUSF-A is used as the first shared key), the first calculation method is a hash algorithm, and the first device is a terminal device (such as UE) as an example, the processing of the first device calculating the first response can be expressed by the following formula: RES'=HASH(KAUSF-A, AIoT ID, UE ID, NONCE1), wherein KAUSF-A is the first shared key, and the meanings of other parameters in the formula are the same as those described above, so they will not be repeated. The above hash algorithm can also be replaced by the second authentication function in the above-mentioned first calculation method. For example, the following formula can be used for calculation: RES'=f2(KAUSF-A, AIoT ID, UE ID, NONCE1). The meanings of each content or parameter in the formula are the same as those described in the above example, so they will not be repeated. Specific examples of other calculation methods in the first calculation method that can also be replaced by the above HASH are not listed here one by one. In addition, in some possible examples, the above-mentioned first shared key can also be expressed as K AUSF-A , unless otherwise specified, KAUSF-A and K AUSF-A The meanings are the same and will not be repeated.

[0070] It should be understood that the above is a relevant explanation of the calculation formula using the UE as the first device as an example. In addition to the UE, the above-mentioned first device can also be a first access network device. For example, taking the gNB as an example, the above-mentioned calculation of the first response can also be replaced by using any one of the following formulas: RES'=HASH(Kr,AIoT ID,gNB ID,NONCE1), RES'=f2(Kr,AIoT ID,gNB ID,NONCE1), RES'=HASH(KAUSF-A,AIoT ID,gNB ID,NONCE1), RES'=f2(KAUSF-A,AIoT ID,gNB ID,NONCE1).

[0071] The following examples involve the identification of the first device. If the UE ID is used as an example, the UE ID can be replaced with the identification of the first access network device, such as eNB ID, gNB ID, etc. For the sake of brevity, they are not described one by one.

[0072] When there are multiple second devices, the first device calculates the first response using a first calculation method based on the identifiers of the multiple second devices, the multiple first shared keys, the identifier of the first device, and the multiple first random numbers. When there are multiple second devices, the multiple second devices may belong to the same device group.

[0073] If there are multiple second devices, the device group consisting of these multiple second devices may share a common first random number. In this case, the first device calculates the first response using a first calculation method based on the identifiers of the multiple second devices, the multiple first shared keys, the identifier of the first device, and the first random number. For example, where each first shared key is a root key corresponding to each second device and the first calculation method includes a hash algorithm and an exclusive-OR algorithm, the first device calculates the first response using the first calculation method based on the identifiers of the multiple second devices, the multiple first random numbers, the multiple first shared keys, and the identifier of the first device. This can be expressed using the following formula:

[0074] RES' represents a first response, which may also be referred to as a first group response. In some possible examples, RES' may be represented as RES'-Group. N is an integer greater than or equal to 2, which may represent the total number of second devices included in a device group. Kr1 to Kr N Any Kr iIt can be the root key corresponding to the i-th second device, where i is an integer greater than or equal to 1 and less than or equal to N; AIoT ID-1 to AIoT ID-N are the identifiers of each second device in the N second devices, and UE ID represents the identifier when the first device is a terminal device. The meanings of other parameters in the formula are the same as those described above and are not repeated here. If the first device is a first access network device, such as a gNB, the above formula can also be expressed alternatively as:

[0075] The above AIoT ID-1 to AIoT ID-N can also be calculated using exclusive OR or direct connection, for example: (AIoT ID-1,...,AIoT ID-N) = (AIoT ID-1||AIoTID-2||...||AIoT ID-N), or,

[0076] In some other examples, any of the above Kr can also be replaced by any of the KAUSF-A, for example, the above formula is replaced by In the above formula, KAUSF-A1~KAUSF-A N Any KAUSF-A i It can be the first shared key corresponding to the i-th second device. The meaning of other contents in this formula is the same as in the previous example and is not repeated here. If the first device is a first access network device, such as a gNB, the above formula can also be expressed as:

[0077] It should be noted that when there are multiple second devices, different first random numbers among the one or more first random numbers may correspond to different second devices. That is, each second device in the device group consisting of the multiple second devices has its own corresponding first random number. In this case, the first device uses a first calculation method based on the identifiers of the multiple second devices, the multiple first shared keys, the identifier of the first device, and the multiple first random numbers to calculate the first response. Taking the example of each first shared key being the root key corresponding to each second device and the first calculation method including a hash algorithm and an XOR algorithm, the process of calculating the first response can be expressed using the following formula:

[0078] , among which NONCE11...NONCE1 N XOR calculation or direct connection calculation can be used between them, both within the protection scope of this embodiment, NONCE11 to NONCE1 Nare the first random numbers corresponding to the N second devices. If it is a first access network device, such as a gNB, the above formula can also be replaced by:

[0079] The above are only possible examples in the scenario of multiple second devices. The algorithm shown in the above formula can also be replaced by other algorithms or functions in the aforementioned first calculation method, and they are not listed here exhaustively.

[0080] In one example, when the number of second devices is one, the first device calculates the first response based on the second response, the identifier of the second device, the first shared key, the identifier of the first device, and the first random number using a first calculation method.

[0081] The second response can be calculated based on a second random number, which can be sent by the core network device to the first device. For example, the second response can be represented as RES, and the calculation method for obtaining the second response can be: RES = f2(RAND), where RAND is the second random number. This is for illustrative purposes only. In actual processing, in addition to using the second random number, the second response can also be calculated using other shared keys between the first device and the core network device and the second random number. For example, it can be expressed as RES = f2(RAND, K), where K can be other shared keys between the first device and the core network device. This embodiment does not limit the method for obtaining or generating these other shared keys. In addition to the second authentication function shown in the example, the calculation method for the second response can also use other algorithms or functions, such as a hash algorithm, etc. The various possible generation algorithms or generation parameters for the second response are not exhaustively listed here. It should be noted that when the core network device sends the second random number to the first device, the first network device can send the second random number to the first device when the first network device is a core network device.

[0082] Taking the first shared key as the root key and the first calculation method as the hash algorithm as an example, the processing of the first device calculating the first response can be expressed by the following formula: RES'=HASH(Kr,AIoT ID,UE ID,RES,NONCE1), where RES is the aforementioned second response, and the meanings of other parameters in the formula are the same as those described above, so they will not be elaborated on. The above hash algorithm can also be replaced by other algorithms or functions in the first calculation method. For example, the hash algorithm can be replaced by the second authentication function, and the calculation formula can be replaced by: RES'=f2(Kr,AIoT ID,UE ID,RES,NONCE1), where f2() represents the second authentication function, and the meanings of other parameters in the formula are the same as those described above, so they will not be elaborated on. Specific examples of how the above hash algorithm can also be replaced by other algorithms or functions in the first calculation method are not listed here one by one.

[0083] Taking the first shared key as KAUSF-A and the first calculation method as a hash algorithm as an example, the first device can calculate the first response using the following formula: RES' = HASH(KAUSF-A, AIoT ID, UE ID, RES, NONCE1). The meaning of each element in the formula is the same as in the previous embodiment and is not repeated here. The above is only an example. In some more examples, the hash algorithm can also be replaced by the second authentication function or other algorithms or functions in the first calculation method, which are not described in detail in this embodiment.

[0084] When there are multiple second devices, the first device uses a first calculation method to calculate the first response based on multiple second responses, the identifiers of the multiple second devices, the multiple first shared keys, the identifier of the first device, and the one or more first random numbers.

[0085] The above-mentioned multiple second responses can be calculated based on the second random numbers corresponding to the multiple second devices respectively. Any second random number can be sent by the core network side device to the first device. The method of obtaining any second random number and the method of calculating any second response are the same as those in the previous embodiment and will not be repeated here.

[0086] Taking as an example a case where each first shared key is a root key corresponding to each second device, the first calculation method is a hash algorithm, and multiple second devices correspond to the same first random number, the first device calculates the first response, which can be expressed using the following formula:

[0087] Among them, RES1~RES NThe N second responses corresponding to the N second devices are the aforementioned second responses. The meanings of other contents in the formula are the same as those in the aforementioned embodiment and are not repeated here.

[0088] The above-mentioned hash algorithm can also be replaced by other algorithms or functions in the first calculation method, such as the hash algorithm can be replaced by the second authentication function, etc., which are not listed here one by one, or the XOR calculation can be replaced by a direct calculation. The Kr of each second device in the above formula can also be replaced by the KAUSF-A of each second device. This embodiment does not elaborate on the possible replacement methods of the above formula one by one. In addition, a first random number in this example can also be replaced by a first random number corresponding to each second device, that is, the first device uses the first calculation method to calculate the first response based on multiple second responses, the identifiers of the multiple second devices, the multiple first random numbers, the multiple first shared keys, and the identifier of the first device, and will not be described in detail.

[0089] In one example, when the number of second devices is one, the first device calculates the first response based on the second shared key, the identifier of the second device, the first shared key, the identifier of the first device, and the first random number using the first calculation method, wherein the second shared key is shared by the first device and the core network side device.

[0090] The second shared key may be a pre-assigned second shared key, a private network second shared key, an application layer second shared key, a physical layer second shared key, a PUF second shared key, or at least one of the above. This embodiment does not limit the method for obtaining or generating the second shared key. As long as the second shared key can be stored in both the first device and the core network side device before executing the authentication method provided by this embodiment, it is within the scope of protection of this embodiment.

[0091] Taking the first shared key as the root key and the first calculation method including the second authentication function and direct calculation as an example, the first device can calculate the first response using the following formula: RES'=f2(KAUSF-UE||Kr,AIoT ID,UE ID,NONCE1), where "||" represents direct calculation, KAUSF-UE is the second shared key taking the first device as UE as an example, and the remaining parameters are the same as those described in the above example and will not be repeated. The first calculation method can also be replaced by a hash function and direct calculation, for example, it can be expressed as: RES'=HASH(KAUSF-UE||Kr,AIoT ID,UE ID,NONCE1), and the various parameters in the formula are the same as those described in the above example and will not be repeated. Alternatively, the first calculation method can also be replaced by a hash function and XOR calculation, for example, it can be expressed as: in, Indicates exclusive OR calculation. The parameters in the formula are the same as those in the previous example and are not repeated here.

[0092] The first shared key in the above example can also be replaced by KAUSF-A. The above process can be expressed by the following formula: RES'=f2(KAUSF-UE||KAUSF-A, AIoT ID, UE ID, NONCE1), where "||" represents direct calculation. The parameters in the formula are the same as those in the above example and are not repeated here. The first calculation method in the above example can also be replaced by a hash function and XOR calculation, for example, it can be expressed as: The parameters in the formula are the same as those in the previous example and will not be repeated here.

[0093] In the above example, the second shared key KAUSF-UE, taking the first device as UE, can also be expressed as K AUSF-UE , unless otherwise specified, KAUSF-UE and K AUSF-UE The meanings are the same and will not be repeated.

[0094] If the first device is the first access network device, the corresponding second shared key can be expressed as KAUSF-gNB (or KAUSF-eNB, etc.). In the above examples, KAUSF-UE can be replaced by KAUSF-gNB, and UEID can be replaced by gNB ID. For example, RES' = f2(KAUSF-gNB||KAUSF-A, AIoT ID, gNB ID, NONCE1). RES' = HASH(KAUSF-gNB||Kr, AIoT ID, gNB ID, NONCE1), RES' = f2(KAUSF-gNB||Kr, AIoT ID, gNB ID, NONCE1). The UE ID mentioned in each of the following examples can be replaced with the gNB ID (or an identifier of the access network device such as the eNB ID) when the first device is the first access network device. The KAUSF-UE mentioned in each of the following examples can be replaced with the KAUSF-gNB (or the second shared key between the access network device such as the KAUSF-eNB and the core network) when the first device is the first access network device. For the sake of brevity, this description is not repeated below.

[0095] On the basis of the above example, the aforementioned second response can also be added, that is, the first device can use the first calculation method to calculate the first response based on the second shared key, the identifier of the first device, the identifier of the second device, the first random number, the second response and the first shared key. For example, the first calculation method includes a hash function and a direct calculation. The above processing can be expressed as RES'=HASH(KAUSF-UE||KAUSF-A,AIoT ID,UE ID,RES,NONCE1). The meaning of each parameter in the formula is the same as in the above example and is not repeated here. In each formula in the above example, KAUSF-UE can be replaced with KAUSF-gNB, and UEID can be replaced with gNB ID, and no repetition is given.

[0096] When there are multiple second devices, the first device uses the first calculation method to calculate the first response based on the second shared key, the identifiers of the multiple second devices, the multiple first shared keys, the identifier of the first device, and the one or more first random numbers.

[0097] Taking each first shared key as the root key corresponding to each second device, the first calculation method including the second authentication function and direct calculation, and multiple second devices corresponding to the same first random number as an example, the first device calculates the first response, which can be expressed by the following formula: RES'=f2(KAUSF-UE||Kr1||…||Kr N ,AIoT ID-1…AIoT ID-N,UE ID,NONCE1), where each parameter is the same as that in the previous example and will not be repeated. The first calculation method can also be replaced by a hash function and XOR calculation, for example, it can be expressed as:

[0098] in, = represents XOR calculation, and the parameters in the formula are the same as those in the previous example, and are not repeated here. The first shared keys in the above example can also be replaced by KAUSF-A, and are not repeated here.

[0099] On the basis of the above example, multiple second responses can be added. For example, if the first calculation method includes a hash function and a direct calculation, the above process can be expressed as RES'=f2(KAUSF-UE||Kr1||…||Kr N ,AIoT ID-1…AIoT ID-N,UE ID,RES1||…||RES N ,NONCE1), the meaning of each parameter in the formula is the same as that in the previous example and will not be repeated here.

[0100] It should be understood that the above is merely an exemplary description and does not exhaustively enumerate all possible combinations of the aforementioned first calculation method. As long as one or more algorithms or functions in the first calculation method can be used to calculate the first response, it is within the scope of protection of this embodiment.

[0101] In one example, when the number of second devices is one, the first device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, and calculates the first response based on the third intermediate key, the identifier of the second device, the first shared key, the identifier of the first device, and the first random number using the first calculation method.

[0102] The first device obtaining the third intermediate key based on the second shared key, the identifier of the first network device, and the third random number may include: the first device using a second calculation method to calculate the third intermediate key from the second shared key, the identifier of the first network device, and the third random number. The second calculation method may include a KDF; in some possible examples, the second calculation method may also include other calculation functions, such as any one of f3 (third key generation function), f4 (fourth key generation function), f5 (fifth key generation function), etc. This embodiment does not exhaustively enumerate all possible calculation functions of the second calculation method.

[0103] For example, the first device can calculate the third intermediate key using the following formula: KUE = KDF (KAUSF-UE, A-IoT authenticator ID, NONCE2), where KUE is the third intermediate key when the first device is a terminal device, KDF() is a KDF function or a KDF calculation function, KAUSF-UE is the second shared key, A-IoT Authenticator ID is the identifier of the aforementioned first network device, and NONCE2 is a third random number. The above-mentioned KAUSF-UE can also be expressed as K AUSF-UE , the above KUE can also be expressed as K UE , unless otherwise specified, KAUSF-UE and K AUSF-UE Same meaning, KUE and K UE The meanings are the same and no repetition is given.

[0104] The first network device may specifically refer to an authentication device, such as an AIOT authentication device (i.e., A-IoT Authenticator). It should be understood that the first network device may also be an AUSF, and the A-IoT Authenticator ID may be replaced with the AUSF ID. Accordingly, the formula may be replaced with KUE=KDF(KAUSF-UE, AUSF ID, NONCE2), all within the scope of protection of this embodiment.

[0105] The third random number may be sent by the first network device to the first device. As long as the timing of sending the third random number occurs before executing S201 and S301, it is within the scope of protection of this embodiment. It should be noted that when the first network device sends the third random number to the first device, if the first network device is a core network-side device, the first network device in the core network-side device may send the second random number to the first device. If the first network device is not a core network-side device, the first network device performs the process of sending the third random number.

[0106] Taking the first shared key as the root key and the first calculation method including the second authentication function and direct connection calculation as an example, the calculation of the first response by the above-mentioned first device can be expressed as: RES'=HASH(KUE||Kr,AIoT ID,UE ID,NONCE1), wherein KUE is the aforementioned third intermediate key, Kr represents the root key, and the meanings of the other parameters in this formula are the same as those in the aforementioned embodiment, and are not repeated here. Taking the first shared key as KAUSF-A and the first calculation method including the second authentication function and direct connection calculation as an example, the calculation formula for calculating the first response can be expressed as RES'=f2(KUE||KAUSF-A,AIoT ID,UE ID,NONCE1), wherein KAUSF-A is the first shared key, and the meanings of the other parameters are the same as those in the aforementioned other embodiments, and are not repeated here.

[0107] In the above examples, HASH and f2 can be replaced by any other algorithm or function in the first calculation method, and the direct connection algorithm can also be replaced by any other algorithm or function in the first calculation method, such as In addition, in the above example, a second response can also be added, for example, This is not an exhaustive list of all possible situations and combinations.

[0108] If the first device is the first access network device, the corresponding second shared key can be expressed as KAUSF-gNB (or KAUSF-eNB, etc.). In the above examples, KAUSF-UE in each formula can be replaced by KAUSF-gNB, UEID can be replaced by gNB ID, and each third intermediate key KUE can also be replaced by KgNB, or KeNB, etc. to represent the third intermediate key of the first access network device. For example, KgNB=KDF(KAUSF-gNB, A-IoT authenticator ID, NONCE2), KgNB=KDF(KAUSF-gNB, AUSF ID, NONCE2), etc.; accordingly, the formula for calculating the first response can also be replaced by RES'=HASH(KgNB||Kr,AIoT ID,gNB ID,NONCE1), RES'=f2(KgNB||KAUSF-A,AIoT ID,gNB ID,NONCE1), Any one of the above. The UE ID involved in each example below can be replaced by gNB ID (or identification of access network device such as eNB ID) when the first device is the first access network device. The KAUSF-UE involved in each example below can be replaced by KAUSF-gNB (or the second shared key between access network device such as KAUSF-eNB and core network) when the first device is the first access network device. In addition, the KUE involved in the following can be replaced by KgNB (or KeNB, etc.) when the first device is the first access network device. For the sake of brevity, no repeated explanation will be given below.

[0109] When there are multiple second devices, the first device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and the third random number, and calculates the first response using the first calculation method based on the third intermediate key, the identifiers of the multiple second devices, the multiple first shared keys, the identifier of the first device, and the one or more first random numbers. The method by which the first device obtains the third intermediate key based on the second shared key, the identifier of the first network device, and the third random number is the same as in the previous embodiment and is not further described.

[0110] Taking the case where each first shared key is a root key corresponding to each second device, the first calculation method includes a second authentication function and direct calculation, and multiple second devices correspond to the same first random number, the first device calculates the first response, which can be expressed as: RES'=HASH(KUE||Kr1...||Kr N, AIoT ID-1…AIoT ID-N, UE ID, NONCE1), where KUE is the aforementioned third intermediate key. The meanings of other parameters in this formula are the same as those in the aforementioned embodiment and are not repeated here. In the above example, each root key can also be replaced by KAUSF-A, and the first calculation method includes the second authentication function and direct connection calculation as an example. The calculation formula of the above first response can be expressed as RES'=f2(KUE||KAUSF-A1…||KAUSF-A N ,AIoT ID-1…AIoT ID-N UE ID,NONCE1), the meanings of the parameters in the formula are the same as those in the other aforementioned embodiments and are not repeated here.

[0111] In each of the above examples, HASH and f2 can be replaced by any other algorithm or function in the first calculation method, and the direct connection algorithm can also be replaced by any other algorithm or function in the first calculation method. This does not exhaustively enumerate all possible situations and combinations. In addition, the first random number in this example can also be replaced by the first random number corresponding to each second device, and will not be further described.

[0112] In some possible examples, the first device may use the first shared key to calculate a first intermediate key, and then calculate the first response based on the first intermediate key.

[0113] The first device obtains one or more intermediate keys based on the one or more first shared keys, and calculates the first response using the first calculation method based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers, including one of the following:

[0114] The first device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the first response using a first calculation method based on one or more second responses, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers, wherein the one or more second responses are obtained based on the one or more second random numbers;

[0115] The first device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the first response using the first calculation method based on a second shared key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device;

[0116] The first device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device, and the one or more fourth random numbers; and calculates the first response based on the identifiers of the one or more second devices, the one or more second intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method;

[0117] The first device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, obtains one or more first intermediate keys based on one or more first shared keys, and calculates the first response based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method.

[0118] In one example, when the number of second devices is one, the first device obtains a first intermediate key based on the first shared key, and calculates the first response based on the second response, the identifier of the second device, the first intermediate key, the identifier of the first device, and the first random number using a first calculation method.

[0119] Here, the first device obtaining the first intermediate key based on the first shared key may include: if the first shared key is a root key, the first device calculating the first intermediate key based on the root key. In this case, the first shared key may be a root key, and the first intermediate key may be KAUSF-A'. The root key may be shared by the first device, the second device, and the core network device. Therefore, the first device and the core network device may obtain the same first intermediate key KAUSF-A' based on the root key using the same method. This example does not limit the calculation method for obtaining the first intermediate key based on the first shared key. For example, KAUSF-A' may be calculated using CK (encryption key) and IK (integrity key). The CK and IK may be derived from a root key shared by the core network device, the second device, and the first device. This embodiment does not limit the specific generation method of CK and IK. Alternatively, the first device obtaining the first intermediate key based on the first shared key may include: if the first shared key is not a root key, the first device calculating the first intermediate key based on the first shared key. In this case, the first shared key may be sent from the first network device to the first device, namely, the aforementioned KAUSF-A, and the first intermediate key may be KAUSF-A'. It should be noted that when the first network device sends the first shared key to the first device, if the first network device is a core network device, the first network device in the core network device may send the first shared key to the first device. If the first network device is not a core network device, the first network device performs the process of sending the first shared key.

[0120] For example, the above-mentioned process of obtaining the first intermediate key based on the first shared key can be expressed as KAUSF-A'=X(KAUSF-A), or KAUSF-A'=X(Kr), where X() can be a calculation function for obtaining the first intermediate key based on the first shared key. The calculation function can include but is not limited to at least one of KDF, f1, HASH, f2, f3, etc., and KAUSF-A' in the above formula can also be obtained in combination with other parameters, such as AK (anonymous key), other random numbers, other identifiers, etc. At least one, all possible parameters and algorithms (or functions) are not enumerated here.

[0121] Taking the first calculation method including a hash algorithm as an example, the first calculation method is used to calculate the first response based on the identifier of the first device, the first intermediate key, the identifier of the second device, and the first random number, which can be expressed as: RES'=HASH(KAUSF-A', A-IoT ID, UE ID, NONCE1).

[0122] If there are multiple second devices, the first device derives multiple first intermediate keys based on the multiple first shared keys and calculates the first responses using the first calculation method based on the multiple second responses, the identifiers of the multiple second devices, the multiple first intermediate keys, the identifier of the first device, and the one or more first random numbers. The process of deriving any first intermediate key based on any first shared key is the same as in the previous example and is not further described.

[0123] Taking the example where the first calculation method includes a hash algorithm and multiple second devices correspond to the same first random number, the calculation of the first response can be expressed as: In addition, the first random number in this example can also be replaced by the first random number corresponding to each second device, which will not be described in detail. It should also be noted that the calculation functions in each calculation formula in the above example can be replaced by other functions included in the first calculation method, and this embodiment does not list them one by one.

[0124] In one example, when there is only one second device, the first device derives a first intermediate key based on the first shared key, and calculates the first response using a first calculation method based on the second response, the identifier of the second device, the first intermediate key, the identifier of the first device, and the first random number. Derivation of the first intermediate key based on the first shared key may involve using a root key as the first shared key. The method for deriving the first intermediate key based on the first shared key is the same as in the previous embodiment and is not repeated here.

[0125] Taking the first calculation method as a hash algorithm as an example, the calculation of the first response can be expressed as: RES'=HASH(KAUSF-A', A-IoT ID, UE ID, RES, NONCE1), where KAUSF-A' is the first intermediate key. The meaning of the remaining contents in the formula is the same as that in the above embodiment, and the replaceable methods of the various contents in the formula are also the same as those in the above embodiment, and are not repeated here.

[0126] When there are multiple second devices, the first device obtains multiple first intermediate keys based on the multiple first shared keys, and calculates the first response based on multiple second responses, the identifiers of the multiple second devices, the multiple first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method.

[0127] Taking the first calculation method as a hash algorithm and multiple second devices corresponding to the same first random number as an example, the calculation of the first response can be expressed as: The meaning of each content in the formula is the same as that in the above embodiment. In this example, a first random number can also be replaced by a first random number corresponding to each second device. The replacement method of each content in the formula is the same as that in the above embodiment and is not repeated here.

[0128] In one example, when the number of second devices is one, the first device obtains the first intermediate key based on the first shared key, and calculates the first response based on the second shared key, the identifier of the second device, the first intermediate key, the identifier of the first device, and the first random number using the first calculation method.

[0129] The specific description of how the first device obtains the first intermediate key based on the first shared key is the same as that in the above embodiment and is not repeated here.

[0130] Taking the first calculation method including the second authentication function and direct connection calculation as an example, the calculation of the first response can be expressed as: RES'=f2(KAUSF-UE||KAUSF-A', A-IoT ID, UE ID, NONCE1), where KAUSF-A' is the first intermediate key, and the meanings of the remaining parameters are the same as those in the aforementioned embodiment, and are not repeated; the f2() function in the above-mentioned first calculation method can also be replaced by HASH or other calculation methods in the first calculation method, and the above-mentioned direct connection calculation can also be replaced by XOR calculation, and all possible situations are not enumerated here. In the above example, a second response can also be added for calculation, such as RES'=f2(KAUSF-UE||KAUSF-A', A-IoT ID, UE ID, RES, NONCE1). The various possible combinations of this example are not enumerated here.

[0131] When there are multiple second devices, the first device obtains multiple first intermediate keys based on the multiple first shared keys, and uses the first calculation method to calculate the first response based on the second shared key, the identifiers of the multiple second devices, the multiple first intermediate keys, the identifier of the first device, and the one or more first random numbers.

[0132] Taking the first calculation method including the second authentication function and direct calculation, and multiple second devices corresponding to the same first random number as an example, the calculation of the first response can be expressed as: RES'=f2(KAUSF-UE||KAUSF-A'1...||KAUSF-A' N,AIoT ID-1…AIoT ID-N,UE ID,NONCE1), in this formula, KAUSF-A' is the first intermediate key, and the meanings of the remaining parameters are the same as those in the aforementioned embodiment and are not repeated; the f2() function in the above-mentioned first calculation method can also be replaced by HASH or other calculation methods in the first calculation method, and the above-mentioned direct connection calculation can also be replaced by XOR calculation. All possible situations are not exhaustively listed here. In addition, a first random number in this example can also be replaced by the first random number corresponding to each second device; in the above example, a second response can also be added for calculation, such as RES'=f2(KAUSF-UE||KAUSF-A',A-IoT ID,UE ID,RES,NONCE1). The various possible combinations of this example are not exhaustively listed here.

[0133] In one example, when the number of second devices is one, the first device calculates a second intermediate key based on the first shared key, the identifier of the first network device and one or more fourth random numbers; and calculates the first response based on the identifier of the second device, the second intermediate key, the identifier of the first device and the first random number using the first calculation method.

[0134] For example, the first device calculates the second intermediate key based on the first shared key, the identifier of the first network device and the fourth random number, which may mean that the first device uses the second calculation method to calculate the second intermediate key based on the first shared key, the identifier of the first network device and the fourth random number.

[0135] Taking the above-mentioned first shared key as KAUSF-A and the second calculation method as KDF as an example, the first device calculates the second intermediate key, which can be expressed as KA-IoT=KDF(KAUSF-A, A-IoT authenticator ID, nonce3), where KA-IoT can represent the second intermediate key corresponding to the second device, KAUSF-A is the first shared key, and nonce3 is the fourth random number. The meaning of other contents in the formula is the same as that of the above embodiment and will not be repeated. For example, the above-mentioned KA-IoT can also be expressed as K A-IoT Taking the above-mentioned first shared key as the root key and the second calculation method as KDF as an example, the first device calculates the second intermediate key, which can be expressed as KA-IoT = KDF (Kr, A-IoT authenticator ID, nonce3). The meaning of other contents in the formula is the same as that of the previous embodiment and is not repeated here.

[0136] Taking the first calculation method, specifically f2, as an example, the above calculation of the first response can be expressed as: RES' = f2(KA-IoT, A-IoT ID, UE ID, NONCE1). The meaning of each content in this formula is the same as in the previous embodiment and is not repeated here. A second response can also be added to this calculation. For example, the above formula can be expressed as RES' = f2(KA-IoT, A-IoT ID, UE ID, RES, NONCE1), where RES represents the second response. The specific description is the same as in the previous embodiment and is not repeated here.

[0137] In addition, in addition to the above-mentioned A-IoT authenticator, the first network device can also be a core network device such as AUSF, AMF, SEAF, AIoT network element, UPF, etc. Therefore, the above-mentioned AIoT Authenticator ID can also be replaced by at least one of AUSF ID, AMF ID, SEAF ID, AIoT network element ID, UPF ID, etc., for example, KA-IoT = KDF (Kr, AMF ID, nonce3), or, KA-IoT = KDF (KAUSF-A, AMF ID, nonce3), etc., and all possible situations are not enumerated here.

[0138] For example, the first device calculates the second intermediate key based on the first shared key, the identifier of the first network device and the fourth random number, which may refer to: the first device obtains the first intermediate key based on the first shared key, and calculates the second intermediate key based on the first intermediate key, the identifier of the first network device and the fourth random number using the second calculation method. Taking the above-mentioned first shared key as the root key as an example, the first device obtains the first intermediate key based on the first shared key, which may refer to obtaining KAUSF-A' based on Kr. The relevant examples are the same as those in the aforementioned embodiment and are not repeated. Alternatively, taking the first shared key as KAUSF-A as an example, the first device obtains the first intermediate key based on the first shared key, which may refer to obtaining KAUSF-A' based on KAUSF-A. The relevant examples are the same as those in the aforementioned embodiment and are not repeated. Correspondingly, taking the second calculation method as KDF as an example, the second intermediate key is calculated based on the first intermediate key, the identifier of the first network device and the fourth random number using the second calculation method, which can be expressed as KA-IoT = KDF (KAUSF-A', A-IoT authenticator ID, nonce3), where KAUSF-A' is the first intermediate key. The meaning of other contents in the formula is the same as in the previous embodiment and will not be repeated here.

[0139] When there are multiple second devices, the first device calculates multiple second intermediate keys based on the multiple first shared keys, the identifier of the first network device and multiple fourth random numbers; and calculates the first response using the first calculation method based on the identifiers of the multiple second devices, the multiple second intermediate keys, the identifier of the first device, and the one or more first random numbers.

[0140] For example, taking any one of the above-mentioned multiple second devices as the i-th second device, the first shared key of the i-th second device is KAUSF-Ai, and the second calculation method is KDF as an example, the first device uses the second calculation method to calculate the i-th second intermediate key (i.e., the second intermediate key of the i-th second device) based on the i-th first shared key, the identifier of the first network device and the i-th fourth random number, which can be expressed as KA-IoT-i = KDF (KAUSF-Ai, A-IoT authenticator ID, nonce3i), where KA-IoT-i can represent the i-th second intermediate key corresponding to the i-th second device, KAUSF-Ai is the i-th first shared key (i.e., the first shared key of the i-th second device), and nonce3i represents the fourth random number corresponding to the i-th second device. The meaning of other contents in the formula is the same as that in the previous embodiment and will not be repeated.

[0141] Taking any one of the above-mentioned multiple second devices as the i-th second device, the first shared key of the i-th second device is Kri, and the second calculation method is KDF as an example, the first device uses the second calculation method to calculate the i-th second intermediate key (i.e., the second intermediate key of the i-th second device) based on the i-th first shared key, the identifier of the first network device and the i-th fourth random number, which can be expressed as KA-IoTi=KDF(Kri, A-IoT authenticator ID, nonce3i), where the meaning of other contents in the formula is the same as in the previous embodiment and will not be repeated.

[0142] In addition, in addition to the above-mentioned A-IoT authenticator, the first network device can also be a core network device such as AUSF, AMF, SEAF, AIoT network element, UPF, etc. Therefore, the above-mentioned AIoT Authenticator ID can also be replaced by at least one of AUSF ID, AMF ID, SEAF ID, AIoT network element ID, UPF ID, etc., for example, KA-IoT-i=KDF(Kri, AMF ID, nonce3i), or, KA-IoT-i=KDF(KAUSF-Ai, AMF ID, nonce3i), etc., and all possible situations are not enumerated here.

[0143] Taking the first calculation method as f2 and multiple second devices corresponding to the same first random number as an example, the calculation of the first response can be expressed as: Among them, KA-IoT-1 to KA-IoT-N are the second intermediate keys corresponding to the N second devices, respectively. The meaning of each content in this formula is the same as in the previous embodiment and is not repeated here. It should also be noted that multiple second responses can be added to this calculation, and / or a first random number can be replaced by the first random number corresponding to each second device. The replacement method of each content in this formula is the same as in the previous embodiment and is not repeated here.

[0144] In one example, when the number of second devices is one, the first device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, and obtains the first intermediate key based on the first shared key; and calculates the first response based on the third intermediate key, the identifier of the second device, the first intermediate key, the identifier of the first device, and the first random number using a first calculation method.

[0145] The manner in which the first device obtains the third intermediate key based on the second shared key, the identifier of the first network device, and the third random number has been described in detail in the previous embodiment and is not repeated here. The specific manner in which the first intermediate key is obtained based on the first shared key is the same as in the previous embodiment and is not repeated here.

[0146] Taking the first calculation method as f2 as an example, the calculation of the first response can be expressed as: RES'=f2(KUE||KAUSF-A', A-IoT ID, UE ID, NONCE1), where KAUSF-A' is the first intermediate key. The alternative methods of other contents in the formula are the same as those in the previous embodiment and are not repeated here.

[0147] When there are multiple second devices, the first device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, and obtains multiple first intermediate keys based on multiple first shared keys; and calculates the first response based on the third intermediate key, the identifiers of the multiple second devices, the multiple first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method.

[0148] The manner in which the first device obtains the third intermediate key based on the second shared key, the identifier of the first network device, and the third random number has been described in detail in the previous embodiment and is not repeated here. The specific manner in which the multiple first intermediate keys are obtained based on the multiple first shared keys is the same as in the previous embodiment and is not repeated here.

[0149] Taking the first calculation method as f2 and multiple second devices corresponding to the same first random number as an example, the calculation of the first response can be expressed as: RES'=f2(KUE||KAUSF-A'1…||KAUSF-A'N,(AIoT ID-1…AIoT ID-N),UE ID,NONCE1), where KAUSF-A'1~KAUSF-A'N are the first intermediate keys corresponding to N second devices respectively, and KUE is the third intermediate key. The meanings of the remaining contents in the formula are the same as those in the previous embodiment, and the replaceable methods of the various contents in the formula are also the same as those in the previous embodiment, and they will not be repeated here.

[0150] It should be pointed out that in the above examples, the first calculation method is illustrated by taking at least one of HASH, f2, direct connection algorithm, and XOR algorithm as an example, and they can all be replaced by the other various functions or algorithms in the above-mentioned first calculation method. For the sake of brevity, they are not listed one by one.

[0151] In some possible examples, the first shared key is used to obtain a first intermediate response, and then the first response is calculated based on the first intermediate response.

[0152] The first device calculates one or more first intermediate responses based on the identifiers of the one or more second devices, the one or more first random numbers, the one or more first shared keys, and the identifier of the first device. The first device calculates the first response based on the one or more first intermediate responses, the identifier of the first network device, and the third random number using the first calculation method.

[0153] The first device calculates one or more first intermediate responses based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, including one of the following:

[0154] The first device calculates the one or more first intermediate responses, respectively, using a first calculation method, based on the one or more second responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, where the one or more second responses are obtained based on the one or more second random numbers;

[0155] The first device calculates the one or more first intermediate responses respectively using the first calculation method based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device;

[0156] The first device calculates a third intermediate key based on the second shared key, the identifier of the first network device, and the third random number, and calculates the one or more first intermediate responses based on the third intermediate key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method;

[0157] The first device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the one or more first intermediate responses based on the one or more second responses, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method.

[0158] The first device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the one or more first intermediate responses based on the second shared key, the one or more identifiers of the second device, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method.

[0159] The first device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device, and the one or more fourth random numbers; and calculates the one or more first intermediate responses based on the identifiers of the one or more second devices, the one or more second intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method, respectively;

[0160] The first device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the one or more first intermediate responses based on the third intermediate key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method.

[0161] For example, when the number of second devices is one, taking the first shared key as the root key and the first calculation method as the hash algorithm, the first device uses the first calculation method based on the identifier of the second device, the first shared key, the identifier of the first device, and the first random number to calculate the first intermediate response, which can be expressed by the following formula: RES" = HASH(Kr, AIoT ID, UE ID, NONCE1), where RES" represents the first intermediate response. The meanings of other parameters in the formula are the same as those in the previous embodiment and are not repeated here.

[0162] For example, when the number of second devices is one, taking the first shared key as the root key and the first calculation method as the hash algorithm, the above-mentioned first device uses the first calculation method based on the second response, the identifier of the second device, the first shared key, the identifier of the first device, and the first random number to calculate the first intermediate response, which can be expressed by the following formula: RES" = HASH(Kr, AIoT ID, UE ID, RES, NONCE1), where RES" represents the first intermediate response, and the meanings of other parameters in the formula are the same as those in the previous embodiment and are not repeated here.

[0163] In general, when the number of second devices is one, the difference between the processing of this scenario and the example in which the first device calculates the first response in the aforementioned embodiment is that the first device uses the first response of a second device obtained in the above examples as the first intermediate response rather than the final first response. In order to distinguish it from RES' (first response) in the aforementioned embodiment, this example uses RES" to represent the first intermediate response. Regarding the various calculation methods that may be used to calculate the first response in the process of the first device calculating the first response of a second device in the aforementioned embodiment, they are all used to generate a first intermediate response of a second device in this embodiment, but they are not listed one by one.

[0164] The calculating of the first response based on the one or more first intermediate responses includes one of the following: the first device calculates the first response based on the one or more first intermediate responses, the identifier of the first network device, and a third random number using the first calculation method; the first device calculates the first response based on the one or more first intermediate responses and the identifier of the first network device using the first calculation method; the first device calculates the first response based on the one or more first intermediate responses and the third random number using the first calculation method.

[0165] When the number of second devices is one, the first device uses the first calculation method to calculate the first response based on the one or more first intermediate responses, the identifier of the first network device, and the third random number. It can be that the first device uses the first calculation method to calculate the first response based on the first intermediate response, the identifier of the first network device and the third random number.

[0166] Taking the first calculation method as a hash algorithm as an example, the above processing can be expressed as: RES'=HASH(RES", A-IoT authenticator ID, nonce2), where RES' has the same meaning as in the previous example and represents the first response, RES" represents the aforementioned first intermediate response, and the meaning of the remaining contents in the formula is the same as in the previous embodiment and will not be repeated.

[0167] The first device calculating the first response based on the one or more first intermediate responses and the identifier of the first network device using the first calculation method may include: the first device calculating the first response based on the first intermediate response and the identifier of the first network device using the first calculation method. Taking the first calculation method as the second authentication function as an example, the above processing can be expressed as RES'=f2(RES", A-IoT authenticator ID). The meaning of each content in the formula is the same as in the previous embodiment and is not repeated here.

[0168] The first device calculating the first response based on the one or more first intermediate responses and the third random number using the first calculation method may include: the first device calculating the first response based on the first intermediate response and the third random number using the first calculation method. Taking the first calculation method as an example of a hash algorithm, the above processing can be expressed as: RES'=HASH(RES",nonce2). The meaning of each content in the formula is the same as in the previous embodiment and is not repeated here.

[0169] The above description is directed to the manner in which the first device generates the first intermediate response of the second device and calculates the first response based on the first intermediate response when there is only one second device.

[0170] Next, a method is described in which, for a case where there are multiple second devices, the first device generates a first intermediate response for each of the multiple second devices and calculates the first response based on the first intermediate response of each second device.

[0171] In this case, the method for calculating the first intermediate response of each second device among the multiple second devices is also the same as the method for calculating the first response of any second device in the aforementioned embodiment.

[0172] For example, taking the i-th first shared key (the first shared key of the i-th second device) as the i-th root key and the first calculation method as the hash algorithm, the first device calculates the i-th first intermediate response based on the identifier of the i-th second device, the i-th first random number, the i-th first shared key, and the identifier of the first device using the first calculation method, which can be expressed by the following formula: RES"i=HASH(Kr i ,AIoT ID-i,UE ID,NONCE1i), where RES"i represents the i-th first intermediate response (i.e., the first intermediate response of the i-th second device), NONCE1i is the i-th first random number, i.e., the first random number corresponding to the i-th second device. The meanings of other parameters in this formula are the same as those in the previous embodiment and are not repeated here.

[0173] For example, taking the i-th first shared key (the first shared key of the i-th second device) as the i-th root key and the first calculation method as the hash algorithm, the first device uses the first calculation method based on the second shared key, the identifier of the first device, the identifier of the i-th second device, the i-th first random number and the i-th first shared key to calculate the i-th first intermediate response, which can be expressed by the following formula: RES"i=f2(KAUSF-UE||Kr i ,AIoT ID-i,UE ID,NONCE1i), where “||” indicates direct connection calculation, and the remaining parameters are the same as those in the previous example and will not be repeated.

[0174] In general, when there are multiple second devices, the difference between the process of calculating the first intermediate response of any second device and the example of the first device calculating the first response of the second device in the aforementioned embodiment is that the first device uses the method of calculating the first response of a second device in the above examples to calculate the first intermediate response of any second device rather than the final first response. In order to distinguish it from RES' (first response) and RES" in the aforementioned embodiment, this example uses RES"i to represent the first intermediate response of the i-th second device. Regarding the various calculation methods that may be used to calculate the first response in the process of the first device calculating the first response of the second device in the aforementioned embodiment, they are all used to generate the first intermediate response of any second device in this embodiment and are not listed one by one here.

[0175] Furthermore, in the case where there are multiple second devices, an exemplary description is given of a manner in which the first device calculates the first response based on the first intermediate response of each of the multiple second devices.

[0176] Optionally, calculating the first response based on the one or more first intermediate responses may include: calculating the first response based on the multiple first intermediate responses. For example, the multiple first intermediate responses may be subjected to an exclusive OR calculation or a direct connection calculation to calculate the first response, which may be expressed as: RES”1-RES”N is the first intermediate response of each second device in the N second devices. For example, a combination of multiple calculation functions can be used for calculation. For example, the first response can be calculated by combining an exclusive OR calculation and a hash algorithm, which is expressed as follows: It should be understood that this is merely an exemplary description, and the above specific method of directly calculating the first response based on multiple first intermediate responses can also be implemented using one or more other algorithms and / or function combinations, which are not exhaustively listed here.

[0177] Optionally, the first device calculates the first response using the first calculation method based on the multiple first intermediate responses, the identifier of the first network device, and one or more third random numbers. The number of the third random numbers may also be one or more. In a preferred example, the third random number is one. Taking the example of the first calculation method including an XOR algorithm and a hash algorithm, the above processing can be expressed as: RES' has the same meaning as in the above example and represents the first response, RES" represents the above first intermediate response, and the rest of the meanings in the formula are the same as in the above embodiment and will not be repeated.

[0178] Optionally, the first device calculates the first response based on the multiple first intermediate responses and the identifier of the first network device using the first calculation method. Taking the first calculation method as the second authentication function as an example, the above processing can be expressed as The meanings of the various contents in the formula are the same as those in the above embodiment and will not be repeated.

[0179] Optionally, the first device calculates the first response based on the multiple first intermediate responses and the third random number using the first calculation method. Taking the first calculation method including a direct connection algorithm and a hash algorithm as an example, the above processing can be expressed as: RES'=HASH(RES"1||…||RES"N, nonce2). The meaning of each content in the formula is the same as in the previous embodiment and is not repeated here.

[0180] The above embodiments provide exemplary explanations of how a first device generates a first response in different scenarios where the number of second devices is one or more. Accordingly, a first expected response also needs to be obtained on the first network device side, which can be represented as a first XRES (Expected Response).

[0181] In some possible implementations, the core network-side device includes a first network device, which receives a first expected response from another network device. The method further includes: the first network device receiving the first expected response from a second network device. Alternatively, the core network-side device may not include the first network device; the first network device also needs to receive the first expected response from the second network device. In this implementation, the second network device may include at least one of the following: UDM and ARPF.

[0182] In some possible implementations, the method further includes: the core network side device calculates the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and one or more first random numbers.

[0183] The core network side device calculates the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, including one of the following: the core network side device adopts a first calculation method to calculate the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers; the core network side device obtains one or more intermediate keys based on the one or more first shared keys, and adopts the first calculation method to calculate the first expected response based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers; the core network side device calculates one or more second intermediate responses based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, and calculates the first expected response based on the one or more second intermediate responses.

[0184] The core network side device calculates the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using a first calculation method, including one of the following: the core network side device calculates the first expected response based on the one or more second expected responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method, and the one or more second expected responses are obtained based on the one or more second random numbers; the core network side device calculates the first expected response based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method, and the second shared key is shared by the first device and the core network side device; the core network side device calculates the third intermediate key based on the second shared key, the identifier of the first network device, and the third random number, and calculates the first expected response based on the third intermediate key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method.

[0185] The core network side device obtains one or more intermediate keys based on the one or more first shared keys, and uses the first calculation method to calculate the first expected response based on the identification of the one or more second devices, the one or more intermediate keys, the identification of the first device, and the one or more first random numbers, including one of the following: the core network side device obtains one or more first intermediate keys based on the one or more first shared keys, and uses the first calculation method to calculate the first expected response based on one or more second responses, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers, wherein the one or more second expected responses are obtained based on one or more second random numbers; the core network side device obtains one or more first intermediate keys based on the one or more first shared keys, and uses the first calculation method to calculate the first expected response based on the second shared key, the identification of the one or more second devices, the one or more first intermediate keys, The first expected response is calculated using the identifier of the first device and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; the core network side device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers; the first expected response is calculated using the first calculation method based on the identifiers of the one or more second devices, the one or more second intermediate keys, the identifier of the first device and the one or more first random numbers; the core network side device obtains a third intermediate key based on the second shared key, the identifier of the first network device and the third random number, obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the first expected response using the first calculation method based on the third intermediate key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device and the one or more first random numbers.

[0186] In which, the core network side device calculates one or more second intermediate responses based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, including one of the following: the core network side device respectively adopts the first calculation method to calculate the one or more second expected responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, and the one or more second expected responses are obtained based on the one or more second random numbers; the core network side device respectively adopts the first calculation method to calculate the one or more second intermediate responses based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; the core network side device calculates the third intermediate key based on the second shared key, the identifier of the first network device and the third random number, and respectively adopts the first calculation method to calculate the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys , the identifier of the first device, and the one or more first random numbers, and calculate the one or more second intermediate responses; the core network side device obtains one or more first intermediate keys based on the one or more first shared keys, and respectively adopts the first calculation method to calculate the one or more second intermediate responses based on the one or more second expected responses, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers; the core network side device obtains one or more first intermediate keys based on the one or more first shared keys, and respectively adopts the first calculation method to calculate the one or more second intermediate responses based on the second shared key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers; the core network side device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device, and the one or more fourth random numbers; and respectively adopts the first calculation method to calculate the one or more second intermediate responses based on the identifiers of the one or more second devices, the one or more second intermediate keys, the identifier of the first device, and the one or more first random numbers;The core network side device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the one or more second intermediate responses using the first calculation method based on the third intermediate key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers.

[0187] The calculating of the first expected response based on the one or more second intermediate responses includes one of the following: the core network side device adopts the first calculation method to calculate the first expected response based on the one or more second intermediate responses, the identifier of the first network device, and a third random number; the core network side device adopts the first calculation method to calculate the first expected response based on the one or more second intermediate responses and the identifier of the first network device; the core network side device adopts the first calculation method to calculate the first expected response based on the one or more second intermediate responses and the third random number.

[0188] In the above process, the descriptions of the first shared key, the first calculation method, and the second calculation method are the same as those in the previous embodiment and are not repeated here. The detailed process of the core network side device obtaining the first intermediate key, the second intermediate key, and the third intermediate key in the above process is also the same as the process of the first device obtaining the first intermediate key, the second intermediate key, and the third intermediate key in the previous embodiment and is not repeated here.

[0189] In this embodiment, the core network side device may include a first network device, and the process of calculating the first expected response may be performed by the first network device. Alternatively, the core network side device does not include the first network device. In this case, the first expected response may also be calculated by the first network device, that is, the process of the aforementioned core network side device may be replaced by the first network device, and no repetition is made. The first network device may be an AUSF or an authentication device, and the detailed description of the authentication device has been detailed in the aforementioned embodiment and will not be repeated here. In the following description, the core network side device is taken as an example, which does not mean that other network side devices (such as the case where the first network device performs the process and the first network device is not a core network side device) cannot perform the same process, but it is just that no repetition is made.

[0190] In the process of calculating the first expected response of a second device by the core network side device, the specific method adopted should be the same as the process of calculating the first response of a second device by the first device in the aforementioned embodiment.

[0191] For example, when there is only one second device, the first device calculates the first response using the first calculation method based on the identifier of the second device, the first random number, the first shared key, and the identifier of the first device. Correspondingly, the core network side device also needs to calculate the first expected response using the first calculation method based on the identifier of the second device, the first random number, the first shared key, and the identifier of the first device.

[0192] Taking the first shared key as the root key and the first calculation method as the hash algorithm as an example, the above-mentioned core network side device uses the first calculation method to calculate the first expected response based on the identifier of the second device, the first random number, the first shared key and the identifier of the first device, which can be expressed by the following formula: XRES'=HASH(Kr,AIoT ID,UE ID,NONCE1), where XRES' represents the first expected response, HASH represents the hash algorithm, Kr is the first shared key, i.e., the root key, AIoT ID is the identifier of the second device, UE ID is the identifier of the first device, and NONCE1 is the first random number.

[0193] It can be seen from the above example that the core network side device calculates the first expected response. If the root key and hash function are used for calculation, the formula used is the same as the formula RES'=HASH(Kr,AIoT ID,UE ID,NONCE1) used by the first device to calculate the first response using the root key and hash function. The only difference is that in this example, the first expected response obtained by the core network side device is distinguished as XRES'. This is because the core network side device and the first device are different execution entities. XRES' and RES' are used to represent the results calculated by the core network side device and the first device based on the same formula, but in fact, the two need to use the same parameters and calculation methods to achieve the purpose of verification.

[0194] Regarding other possible examples in which the core network side device obtains the first expected response from one or more second devices, the same calculation formula is used as that for the other possible examples in which the first device obtains the first response from one or more second devices. Therefore, the calculation method of the core network side device will not be repeated.

[0195] In addition, the core network side device may also calculate a second intermediate response using the first shared key, and then calculate the first expected response based on the second intermediate response.

[0196] In the process of calculating the second intermediate response of one or more second devices by the core network side device, the specific method adopted should be the same as the process of calculating the first intermediate response of one or more second devices by the first device in the aforementioned embodiment.

[0197] For example, when there are multiple second devices, taking the i-th first shared key (the first shared key of the i-th second device) as the i-th root key and the first calculation method as the hash algorithm, the first device uses the first calculation method to calculate the i-th first intermediate response based on the identifier of the i-th second device, the i-th first random number, the i-th first shared key, and the identifier of the first device. Correspondingly, the core network side device also uses the first calculation method to calculate the i-th second intermediate response based on the identifier of the i-th second device, the i-th first random number, the i-th first shared key, and the identifier of the first device; for example, it can be expressed as XRES"i=HASH(Kr i ,AIoT ID-i,UE ID,NONCE1i).

[0198] That is, the core network side device calculates the second intermediate response in the same way as the first device calculates the first intermediate response. The only difference is that in this example, the second intermediate response obtained by the core network side device is distinguished as XRES". In addition, the second response on the first device side is replaced by the second expected response (for example, it can be expressed as XRES). This is because the core network side device and the first device are different execution entities. XRES" and RES" are used to represent the results calculated by the core network side device and the first device based on the same formula, but in fact, the two need to use the same parameters and calculation methods to achieve the purpose of verification. Regarding other possible examples of the core network side device obtaining a second intermediate response from a second device, the same calculation formula is used as the other possible examples of the first device obtaining a first intermediate response from a second device. Therefore, the calculation method of the core network side device will not be repeated.

[0199] In the process of the core network side device using the second intermediate response of one or more second devices to calculate the first expected response, the specific method used should be the same as the process of the first device using the first intermediate response of one or more second devices to calculate the first response in the aforementioned embodiment.

[0200] For example, taking the first calculation method including an XOR algorithm and a hash algorithm as an example, the process of the first device calculating the first response can be expressed as follows: Accordingly, the process of calculating the first expected response by the core network side device can be expressed as: Here, XRES' has the same meaning as in the above example, indicating the first expected response, XRES"1 to XRES"N respectively indicate the second intermediate responses of N second devices, and the rest of the meanings in the formula are the same as in the above embodiment and are not repeated here.

[0201] Regarding other possible examples in which the core network side device obtains the first expected response based on the second intermediate response of a second device, the same calculation formula is used as in the other possible examples in which the first device calculates the first response based on the first intermediate response of a second device. Therefore, the calculation method of the core network side device will not be repeated.

[0202] The above embodiments describe in detail the detailed processing method of the first device calculating the first response and the core network side device calculating the first expected response in the scenario where there are one or more second devices. Next, the interaction process between the first device and the core network side device is described.

[0203] In some possible implementations, the second device may trigger the execution of the authentication method.

[0204] The processing by the first device may further include: the first device forwarding the authentication request from the one or more second devices to the core network side device, wherein the authentication request of each of the one or more second devices carries the identifier of the second device. Correspondingly, the core network side device receives the authentication request from the one or more second devices through the first device, wherein the authentication request of each of the one or more second devices carries the identifier of the second device.

[0205] Furthermore, the processing by the core network device may further include: the core network device sending a second message to the first device, the second message carrying at least one of the following: an identifier of the one or more second devices, an identifier of a device group, the device group including multiple second devices. The second message may be a response message to the aforementioned authentication request. Exemplarily, the second message may be referred to as an authentication response.

[0206] Optionally, the second message may further carry one or more first random numbers. Optionally, the second message may further carry at least one of one or more second random numbers, one or more fourth random numbers, and a third random number.

[0207] Accordingly, after receiving the second message from the core network device, the first device may perform the aforementioned process of calculating the first response based on the identifiers of one or more second devices and the one or more first shared keys; then the first device sends the first message to the core network device. The core network device receives the first message from the first device and, if the first expected response is the same as the first response, determines that authentication of the one or more second devices is successful.

[0208] Optionally, the method also includes at least one of the following: the first device receives binding information from a fourth network device, the binding information including one or more second devices with which the first device has a binding relationship; the first device determines one or more second devices with which the first device has a binding relationship based on preset binding information; the first device uses the one or more second devices that have passed authentication as one or more second devices with a binding relationship, and the authentication includes physical layer authentication and / or air interface authentication.

[0209] The first device may, upon receiving an authentication request from each of the second devices, first determine whether each second device is a device having a binding relationship with itself based on the binding information, and upon determining that each second device is a device having a binding relationship with itself, forward the authentication request from each second device to the core network side device.

[0210] The processing of the binding information received by the first device from the fourth network device may be before calculating the first response, or before the first device forwards the authentication request. The binding information may include one or more devices that have a binding relationship with the first device. For example, the binding information may include at least one of the following: an identifier of each device in the one or more devices that have a binding relationship with the first device, an identifier of each device group in the one or more device groups that have a binding relationship with the first device, and an identifier of each device included in each device group that has a binding relationship with the first device. The fourth network device may be the same as or different from the first network device, and this embodiment does not limit the fourth network device.

[0211] The preset binding information may be pre-configured directly in the first device. The content of the preset binding information may be the same as the aforementioned binding information, and will not be repeated here.

[0212] The specific processing flow of the physical layer authentication and / or air interface authentication is not limited in this embodiment. That is, as long as the first device performs physical layer authentication and / or air interface authentication with any second device, the identifier of the second device will be saved and the second device will be recorded as a device with which it has a binding relationship.

[0213] In some possible examples, the number of the second device is one.

[0214] Before the first device calculates a first response based on the second device's identifier and the first shared key, the first device forwards the authentication request from the second device to the core network device. Accordingly, the core network device receives the authentication request from the second device forwarded by the first device. During the aforementioned forwarding of the authentication request by the first device to the core network device, the first device may also include the first device's identifier in the authentication request.

[0215] Exemplarily, the core network side device may include a first network device, which may check whether the first device and the second device have a binding relationship, and forward the authentication request to the second network device when it is determined that there is a binding relationship. Correspondingly, the first network device receives the first expected response from the second network device. After receiving the authentication request forwarded by the first network device, the second network device calculates the first expected response corresponding to the second device (i.e., XRES' of the aforementioned embodiment); and sends the first expected response to the first network device. The second network device may include UDM and / or ARPF. The specific processing method for the second network device to obtain the first expected response should be the same as the method for calculating the first expected response in the aforementioned embodiment, so it will not be repeated. The above processing is particularly applicable to the case where the first network device is not an authentication device, for example, the first network device is a first core network device, such as AUSF.

[0216] Among them, the first network device checks whether the first device and the second device have a binding relationship, which can be based on the binding information corresponding to the first device stored by itself. For example, it checks whether the identifier of the second device is included in the identifier of one or more binding devices contained in the binding information corresponding to the first device. If so, it is determined that the first device and the second device have a binding relationship. Optionally, the first network device can further determine whether the first device can provide a wireless connection and / or a relay connection for the second device. For example, the first network device can determine whether the first device can provide a wireless connection and / or a relay connection for the second device based on relevant data of the first device. For example, the first network device can determine whether the first device can provide a wireless connection and / or a relay function based on the relevant data of the first device, to determine whether the first device can provide a wireless connection and / or a relay connection for the second device.

[0217] Optionally, the core network side device may include a first network device, which may also receive at least one of the following from the second network device: a first message authentication code (MAC), a second expected response (such as XRES in the aforementioned embodiment), KAUSF, etc. Optionally, the first network device may also receive at least one of the following from the second network device: a first random number, a second random number, a third random number, and a fourth random number. The above-mentioned first expected response, first message authentication code, second expected response, etc. may be carried in the 5G HEAV sent by the second network device to the first network device.

[0218] The first network device may include at least one of the first random number, the second random number, the third random number, and the fourth random number from the second network device in a second message and send the message to the first device. Accordingly, after receiving the second message, the first device may calculate a first response. The first device then sends the first response to the first network device. If the first expected response is identical to the first response, the first network device determines that authentication of the second device is successful.

[0219] Exemplarily, the first network device may check whether the first device and the second device have a binding relationship. If a binding relationship is determined, the first network device calculates the first expected response of the second device. The manner in which the first network device calculates the first expected response in this example has been described in detail in the aforementioned embodiment and is not further elaborated here.

[0220] When the first network device calculates the first expected response, it can also obtain any one of the first message authentication code, second expected response, KAUSF, and so on, of the second device. The first network device also generates at least one of the aforementioned first random number, second random number, third random number, and fourth random number. The first network device can then send a second message to the first device, carrying at least one of the aforementioned first message authentication code, second expected response, KAUSF, first random number, second random number, third random number, and fourth random number. The processing that the first device can perform, as well as the subsequent authentication processing performed by the first network device, are the same as those in the aforementioned example and are not further described.

[0221] In some possible examples, there are multiple second devices, and the multiple second devices may belong to the same device group.

[0222] Before calculating the first response based on the identifier of the second device and the first shared key, the first device forwards the authentication requests from the multiple second devices to the core network side device. Accordingly, the core network side device receives the authentication requests from the multiple second devices forwarded by the first device.

[0223] In this scenario, each of the multiple second devices can send an authentication request to the first device on the same time domain resource; for example, the time domain resource can be a time, and each second device sets the same time to trigger the authentication request. When the time to trigger the authentication request arrives, each second device sends an authentication request to the first device at the same time. Of course, the time domain resource can also be a time range, for example, each second device can send an authentication request to the first device at any time within a specified time range. The time range can be set according to actual conditions, for example, it can be within the range of 11 o'clock to 11:10, or longer or shorter, and is not limited here. Accordingly, if the time domain resource is a time, the first device can receive the authentication request sent by each second device at the same time, and different authentication requests carry different second device identifiers; if the time domain resource is a time range, the first device can send the authentication requests of each second device received within the time range to the core network side device at the end of the time range.

[0224] When the first device forwards the authentication request to the core network device, the first device may also add the first device identifier to the authentication request. In addition, the authentication request may also include identifiers of the device groups to which the multiple second devices belong.

[0225] Exemplarily, the core network side device may include a first network device, which may check whether the first device has a binding relationship with multiple second devices. If it is determined that a binding relationship exists, the authentication request of the multiple second devices is forwarded to the second network device. Accordingly, the first network device receives a first expected response from the second network device. In this case, the first expected response may be the group first expected response of the device group to which the multiple second devices belong. After receiving the authentication requests of the multiple second devices forwarded by the first network device, the second network device calculates the first expected responses corresponding to the multiple second devices (i.e., the XRES' in the aforementioned embodiment) and sends the first expected response to the first network device. The second network device may include UDM and / or ARPF. The specific processing method for the second network device to obtain the first expected response should be the same as the method for the first network device to calculate the first expected response in the aforementioned embodiment, and therefore will not be described in detail. The method for the first network device to check whether the first device has a binding relationship with each second device may include: the first network device determines whether the first device has a binding relationship with the device group through the identifier of the device group to which the multiple second devices belong, and if so, determines that the first device has a binding relationship with each second device.

[0226] Optionally, the core network-side device may include a first network device, which may further receive at least one of the following from a second network device: one or more first random numbers, one or more second random numbers, a third random number, and one or more fourth random numbers. The first expected response, one or more random numbers, and other content may be carried in a 5G HEAV message sent by the second network device to the first network device. The first network device may include at least one of the one or more first random numbers, one or more second random numbers, third random number, and one or more fourth random numbers from the second network device in a second message and send it to the first device. Accordingly, after receiving the second message, the first device may calculate a first response; then send the first response to the first network device. If the first expected response is the same as the first response, the first network device determines that authentication of the second device is successful. Exemplarily, the first network device may check whether the first device has a binding relationship with each second device. If a binding relationship is determined, the first network device calculates a first expected response. When calculating the first expected response, the first network device also generates at least one of the one or more first random numbers, one or more second random numbers, third random number, and one or more fourth random numbers. The first network device may then send a second message to the first device, where the second message carries at least one of the one or more first random numbers, the one or more second random numbers, the third random number, the one or more fourth random numbers, and so on. The processing that may be performed by the first device and the subsequent authentication processing performed by the first network device are the same as those in the above example and are not described in detail.

[0227] Optionally, the first message further carries one or more first random numbers. Optionally, the first message further carries at least one of one or more second random numbers, one or more fourth random numbers, and a third random number.

[0228] In this case, the processing of the first device further includes: the first device generating the one or more first random numbers. Then, the first device performs the aforementioned processing of calculating the first response. Correspondingly, the core network side device performs the processing of receiving the first message from the first device.

[0229] For example, a core network device includes a first network device. The first network device calculates a first expected response based on the one or more first random numbers, or sends the one or more first random numbers to a second network device and receives the first expected response from the second network device. The first network device then determines that authentication of the one or more second devices is successful if the first expected response is the same as the first response. In a scenario where there is only one second device, the first device forwards the authentication request from the second device to the first network device. Accordingly, the first network device receives the authentication request forwarded by the first device. During the forwarding of the authentication request by the first device to the first network device, the first device may also include an identifier of the first device in the authentication request. The first network device may check whether a binding relationship exists between the first device and the second device. If a binding relationship is determined, the first device sends a second message to the first device. Unlike the previous example, the second message is only used for authentication confirmation and does not carry information such as random numbers. After receiving the second message, the first device generates random numbers on its own, calculates a first response, and sends the first response and the random numbers along with the first message to the first network device. The first network device can calculate a first expected response based on the first random number corresponding to the second device sent by the first device, or send the first random number corresponding to the second device to the second network device, which will then calculate the 5G HE AV corresponding to the second device. The process of obtaining the 5G HE AV is the same as in the previous embodiment and will not be described in detail. In the scenario where there are multiple second devices, the first device simultaneously receives authentication requests from multiple second devices and forwards them to the first network device. Accordingly, the first network device receives the authentication requests from multiple second devices forwarded by the first device. In the process of forwarding the authentication requests to the first network device, the first device may also add the first device's identifier to the authentication request. The first network device may check whether the first device has a binding relationship with the multiple second devices. If a binding relationship is determined, it may send a second message to the first device. The second message is only used for authentication confirmation and does not carry information such as the random number. After receiving the second message, the first device generates a random number corresponding to each second device, calculates a first response, and sends the first response and each random number to the first network device in the first message. The first network device can calculate the first expected response based on the first random number corresponding to each second device sent by the first device, or send the first random number corresponding to each second device to the second network device, and the second network device still calculates the 5G HE AV corresponding to the second device; the process of obtaining the 5G HE AV is the same as that in the previous embodiment and will not be repeated.

[0230] In some possible implementations, the second device may trigger the execution of the authentication method.

[0231] The processing of the first device may also include: the first device receiving an authentication request from each of the one or more second devices, wherein the authentication request of each second device carries the identifier of the second device. After the first device receives the authentication request of each second device, it performs a process of calculating a first response. In the process of calculating the first response, the first device generates one or more first random numbers. In addition, the first device may also generate the aforementioned one or more second random numbers, a third random number, and one or more fourth random numbers. The first device then sends a first message. In addition to carrying the first response, the first message may also carry one or more first random numbers. In addition, the first message may also carry the aforementioned one or more second random numbers, a third random number, and one or more fourth random numbers.

[0232] The processing by the core network side device may include: the core network side device receiving a first message from a first device.

[0233] Optionally, the core network side device includes a first network device, which can receive a first message from the first device, obtain each random number from the first message, send each random number to the second network device, and receive a first expected response from the second network device; if the first expected response is the same as the first response, the first network device can determine that the authentication of each second device is successful. Furthermore, the first network device can also send a notification message of successful authentication to the first device.

[0234] Optionally, the core network side device includes a first network device that can receive a first message from the first device, obtain each random number from the first message, and calculate a first expected response based on each random number; if the first expected response is the same as the first response, the first network device can determine that authentication of each second device is successful. Furthermore, the first network device can also send a notification message of successful authentication to the first device.

[0235] The above implementation is applied to the scenario where there is only one second device or multiple second devices. The processing of the first device calculating the first response and the processing of the first network device or the second network device generating the first expected response are the same as the above embodiments and will not be repeated.

[0236] In addition, regardless of the scenario of one or more second devices, the core network side device can verify whether there is a binding relationship between the first device and each second device after receiving the first message. The specific processing method is the same as the previous embodiment and will not be repeated.

[0237] In some possible implementations, the authentication may be triggered by the network side.

[0238] The second message is used to request authentication, and the core network side device includes a first network device; the method also includes: the first network device receives an authentication request from a third network device, and the authentication request carries at least one of the following: the identifier of the one or more second devices, the identifier of the device group, and the device group includes multiple second devices.

[0239] The third network device may be a server, for example, a server with AIOT service functions, etc., and all possible possibilities are not exhaustively enumerated here.

[0240] If there is only one second device, the authentication request may carry the identifier of the second device. If there are multiple second devices, the authentication request may carry the identifier of each second device; alternatively, the authentication request may carry the identifier of a device group. Furthermore, if the authentication request carries the identifier of the device group, the first network device may also determine the identifier of each of the multiple second devices included in the device group based on the identifier of the device group.

[0241] In some possible examples, the first network device may be a first core network device, such as AUSF, that is, the first core network device may obtain a first expected response from the second network device or calculate the first expected response itself after determining the identifiers of the above-mentioned respective second devices. The above-mentioned processing is the same as the aforementioned implementation method and will not be repeated. The first network device may then send a second message to the first device, where the second message is used to request authentication. The second message may carry one or more first random numbers; in addition, it may also carry the aforementioned other random numbers. The first device performs processing such as calculating the first response and sending the first message to the first network device. The specific processing method is the same as the aforementioned embodiment and will not be repeated.

[0242] In some possible examples, the first network device may be an authentication device. The first network device may receive an authentication request from a third network device via another core network device. The other core network device may include at least one of AUSF, UDM, and ARPF. The other core network device may first calculate the authentication information of each second device based on the authentication request from the third network device. The authentication information of each second device may include at least one of the following: a message authentication code of the second device, a second expected response of the second device, a second random number corresponding to the second device, and the like. Furthermore, in this case, the other core network device may carry the above authentication information in the authentication request and send it to the first network device. The first network device may perform the calculation of the first expected response and send the second message to the first device. The first device may perform the calculation of the first response and send the first message to the first network device. The specific processing method is the same as that in the previous embodiment and is not further described. In this example, the first network device may be any one of the core network side devices, such as AUSF; or the first network device may not be a core network side device, such as an authentication device.

[0243] In some possible implementations, the first device may also verify a core network side device.

[0244] In a possible example, the second message also carries a first message authentication code, which is used by the first device to authenticate the core network side device; the method also includes: the core network side device calculates the first message authentication code based on the one or more first shared keys.

[0245] In which, the core network side device calculates the first message authentication code based on the one or more first shared keys, including one of the following: the core network side device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers, and uses the first calculation method to calculate the first message authentication code based on the one or more second intermediate keys, the identifier of the one or more second devices and the identifier of the first device; the core network side device calculates one or more intermediate verification codes based on the one or more first shared keys, and uses the first calculation method to calculate the first message authentication code based on the one or more intermediate verification codes and the identifier of the first network device.

[0246] In the processing of the first device, the method also includes: the first device calculates a second message authentication code based on the one or more first shared keys, and when the second message authentication code is the same as the first message authentication code, the first device determines that the authentication of the core network side device is completed.

[0247] Among them, the first device calculates the second message authentication code based on the one or more first shared keys, including one of the following: the first device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers, and uses the first calculation method to calculate the second message authentication code based on the one or more second intermediate keys, the identifier of the one or more second devices and the identifier of the first device; the first device calculates one or more intermediate verification codes based on the one or more first shared keys, and uses the first calculation method to calculate the second message authentication code based on the one or more intermediate verification codes and the identifier of the first network device.

[0248] This example is particularly applicable to scenarios where there are multiple second devices. In this scenario, the first message authentication code can be a first group message authentication code. That is, when multiple second devices form a device group, a single overall first message authentication code is generated for the device group. However, this example can also be used in scenarios where there is only one second device, and its applicable scenarios are not limited here.

[0249] Optionally, the core network side device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers, and calculates the first message authentication code based on the one or more second intermediate keys, the identifier of the one or more second devices and the identifier of the first device using the first calculation method.

[0250] The manner in which the core network side device calculates each second intermediate key is the same as the manner in which the aforementioned first device calculates each second intermediate key, and is not described again here.

[0251] In the process of calculating the first message authentication code based on the one or more second intermediate keys, the one or more identifiers of the second devices and the identifier of the first device using the first calculation method, in addition to the above-mentioned second intermediate key, the identifier of the second device and the identifier of the first device, other parameters may be added, such as at least one of a sixth random number, a sequence number (SQN, Sequence number), etc. In addition to the above-mentioned sixth random number and sequence number SQN, other parameters may also be included, which are not exhaustively listed here.

[0252] Taking the first calculation method as the first authentication function as an example, the first message authentication code is calculated using the first calculation method based on the one or more second intermediate keys, the identifiers of the one or more second devices, the identifier of the first device, the sixth random number, and the SQN, which can be expressed as: Wherein, MAC-Group is the first message authentication code, f1 is the first authentication function, KA-IoT-1 to KA-IoT-N are the second intermediate keys of the N second devices, Tag ID-1 to Tag ID-N are the identifiers of the N second devices, RAND' is the sixth random number, and SQN is the sequence number. The above Tag ID can be replaced with the A-IoT ID in the above embodiment. The above RAND' may be the same as the above second random number in some possible cases, and may be different from the above second random number in other possible cases.

[0253] Taking the first calculation method as a hash algorithm as an example, the first message authentication code is calculated using the first calculation method based on the one or more second intermediate keys, the one or more identifiers of the second device, the identifier of the first device, and the sixth random number, which can be expressed as: The meanings of the various contents in the formula are the same as those in the above embodiment and are not described in detail.

[0254] Optionally, the core network side device calculates one or more intermediate verification codes based on the one or more first shared keys, and calculates the first message authentication code based on the one or more intermediate verification codes and the identifier of the first network device using a first calculation method.

[0255] Taking any second device as the i-th second device as an example, a MAC corresponding to the i-th second device is obtained based on at least one of the first shared key, serial number, sixth random number, AMF name, etc. of the i-th second device, and the MAC corresponding to the i-th second device is used as the i-th intermediate verification code. Taking the first calculation method as a hash algorithm as an example, the first calculation method is used to calculate the first message authentication code based on the one or more intermediate verification codes and the identifier of the first network device, which can be expressed as: Among them, MAC-1 to MAC-N are intermediate verification codes corresponding to the N second devices respectively. The meanings of other contents in the formula are the same as those in the above embodiment and are not repeated here.

[0256] It should be understood that the above is only an exemplary description. In actual processing, the algorithms or functions in the various formulas given in the above examples can also be replaced by one or more other algorithms or functions in the first calculation method. For example, XOR calculation can be replaced by direct connection calculation, f1 can be replaced by f3, HASH can be replaced by f2, and so on. The examples are not exhaustive here.

[0257] The processing of calculating the second message authentication code on the first device side should be the same as the parameters and algorithm (or function) used in the processing of calculating the first message authentication code by the core network side device. This embodiment only uses the first message authentication code and the second message authentication code to distinguish between the message authentication codes obtained by different subjects. The second message authentication code obtained on the first device side can be expressed as XMAC-Group, and the processing of the first device will not be repeated here.

[0258] In a possible example, the second message also carries one or more first message authentication codes; the method also includes: the core network side device calculates the first message authentication code corresponding to each second device in the one or more second devices based on the one or more first shared keys.

[0259] In the processing of the first device, the method also includes: the first device calculates a target second message authentication code based on a first shared key corresponding to a target second device among the one or more second devices, and when the target second message authentication code is the same as the target first message authentication code, the first device determines that the authentication of the core network side device is completed, wherein the target first message authentication code is related to the target second device.

[0260] This example is different from the previous example in that the core network side device in this example calculates the corresponding first message authentication code for each second device. This embodiment does not limit the method of calculating the first message authentication code of each second device. As long as it is related to the first shared key of each second device, it is within the protection scope of this embodiment.

[0261] Correspondingly, when the number of second devices is one, the first device side can use the second device as the aforementioned target second device, calculate the target second message authentication code of the target second device, and when the target second message authentication code is the same as the target first message authentication code, the first device determines that the authentication of the core network side device is completed.

[0262] In the case where there are multiple second devices, the first device side can select any one of the multiple second devices as the target second device and calculate the target second message authentication code of the target second device; then determine the first message authentication code corresponding to the target second device from the multiple first message authentication codes and use it as the target first message authentication code; when the target second message authentication code is the same as the target first message authentication code, the first device determines that the authentication of the core network side device is completed. Regarding the method of calculating the target second message authentication code by the first device, as long as it is the same as the method of calculating the first message authentication code and is related to the first shared key, its specific calculation method is not limited within the scope of protection of this embodiment.

[0263] In some possible implementations, mutual authentication may also be performed between the first device and any second device.

[0264] In some possible examples, the first device performs physical layer authentication with the second device, so that the second device authenticates the first device.

[0265] During processing by the first device, the method further includes: the first device sends a third message to each of the one or more second devices, and the third message is used to instruct each second device to authenticate the first device; the first device receives a pilot signal sent by each second device; the first device calculates a verification code corresponding to each second device based on the pilot signal sent by each second device; the first device sends a corresponding verification code to each second device; the first device receives a fourth message from each second device, wherein the fourth message of each second device is used to indicate whether each second device has successfully authenticated the first device.

[0266] The third message of any second device may be a physical layer authentication request. The pilot signal sent by any second device may be a secret pilot sent by the second device. The secret pilot is calculated based on the first shared key (e.g., Kr) and the channel information between the first device (e.g., UE) and the second device (e.g., A-IoT device). It has confidentiality and privacy, and can only be verified by the first device.

[0267] Taking any second device as the i-th second device as an example, the first device calculates the verification code corresponding to each second device based on the pilot signal sent by each second device. The first device may calculate the verification code corresponding to the i-th second device based on the first shared key of the i-th second device and the secret pilot of the i-th second device. Furthermore, after the first device receives the fourth message from each second device, if each second device indicates that the authentication of the first device is successful, the first device may complete all authentication processes. Alternatively, if each second device indicates that the authentication of the first device is successful, the first device performs the aforementioned process of calculating the first response.

[0268] In some possible examples, the first device authenticates the second device.

[0269] Optionally, the first device can use the PUF principle to authenticate each second device. For example: taking any second device as the i-th second device as an example, the first device authenticates the i-th second device according to the PUF principle. After the authentication is passed, the first device sends a verification pass message to the i-th second device.

[0270] Optionally, the first device calculates a third expected response for each of the one or more second devices based on the one or more first shared keys and one or more fifth random numbers; the first device sends a corresponding fifth message to each of the second devices, and the fifth message corresponding to each of the second devices carries the fifth random number corresponding to the second device; the first device receives a sixth message from each of the second devices, and the sixth message of each of the second devices carries the third response of each of the second devices; the first device determines that the authentication of each of the second devices is successful when the third response of each of the second devices is the same as the third expected response.

[0271] Taking any second device as the i-th second device as an example, the first device calculates the third expected response of the i-th second device based on the first shared key corresponding to the i-th second device and the fifth random number corresponding to the i-th second device using the first calculation method. For example, the following calculation formula is used: XRES-AIOT-i = HASH(Kri, fifth random number), or XRES-AIOT-i = f2(KAUSF-Ai, fifth random number), where XRES-AIOT-i represents the third expected response of the i-th second device. The meaning of other contents in the formula is not repeated here.

[0272] When the third response of each second device is identical to the third expected response, the first device determines that authentication of each second device is successful. This may be: when the third response of the i-th second device is identical to the third expected response of the i-th second device, the first device determines that authentication of the i-th second device is successful. The processing for each second device is the same as that for the i-th second device and is not described in detail.

[0273] After determining that the authentication of each of the second devices is successful, the first device may perform the processing of sending the first message, or the first device may perform the processing of calculating the first response, or the first device may perform the aforementioned processing of sending the third message to each of the one or more second devices. Various possible processing are not enumerated here.

[0274] For each example provided in the embodiments of the present application (including each example below), the first device can be a terminal device or a first access network device, so the UE ID involved in the above examples or formulas can be replaced by any one of gNB ID, eNB ID, etc., and the UE-related keys involved in each formula (such as shared keys or intermediate keys) can be replaced by keys related to the first access network device (for example, KUE can be replaced by KgNB, KAUSF-UE can be replaced by KAUSF-gNB, etc.); and, in addition to the above-mentioned A-IoT authenticator, the first network device can also be a core network device such as AUSF, AMF, SEAF, AIoT network element, UPF, etc., so the AIoT Authenticator ID involved in the above examples or formulas can also be replaced by at least one of AUSF ID, AMF ID, SEAF ID, AIoT network element ID, UPF ID, etc., and all possible situations are not described here one by one.

[0275] In conjunction with the indirect mode processing architecture of the A-IoT device (i.e., any of the aforementioned second devices) provided in Figure 4, a possible exemplary illustration of the above-mentioned authentication method is provided: the UE / base station (i.e., the aforementioned first device) acts as an authentication agent to authenticate the A-IoT device, and the core network only authenticates the UE and does not authenticate the A-IoT device. Furthermore, the A-IoT device and the UE or base station (hereinafter only using the UE as an example) have a shared key, which can be the root key Kr of the A-IoT device shared with the core network. The A-IoT device authenticates the UE using physical layer authentication. The core network authenticates the A-IoT based on the A-IoT device root key Kr. However, since the UE possesses the A-IoT root key Kr, the authentication of the A-IoT can be completed on the UE proxy. The 5G AKA and the RES' (i.e., the aforementioned first response) that authenticates the A-IoT do not need to be calculated by the A-IoT, thereby reducing the computational burden of the A-IoT. In addition, authentication can also be performed between the core network and a server (e.g., a third-party server of an AIOT service), and this part of the processing is not limited in this embodiment.

[0276] In conjunction with Figure 5a, an exemplary explanation of the above authentication method is given. Taking the second device as A-IoT (i.e., A-IoT device), the first device as UE (as proxy authentication), and the core network side device as the core network side as an example, the above A-IoT, UE, and core network side can use the same first shared key and A-IoT ID to perform authentication processing. Specifically, after the UE receives the authentication request from the core network side (which can carry the A-IoT ID), the generation of RES' (i.e., the aforementioned first response) needs to include the Kr or shared key (i.e., the first shared key) of the A-IoT device to achieve the purpose of authentication; Figure 5a illustrates a possible calculation method for RES': RES' = HASH (Kue||Kr, A-IoT ID, UE ID, nonce1). The meaning of each parameter in this formula is the same as in the above embodiment and is not repeated. The core network uses the same method as the UE to generate XRES' (i.e., the aforementioned first expected response) and verifies that RES' = XRES' to complete the authentication of the IoT device. Before the UE calculates the first response, the A-IoT device can also authenticate the UE, such as physical layer authentication. The above-mentioned A-IoT device can also be replaced by a zero-power device, and the A-IoT ID in the above formula can also be replaced by a tag ID, which will not be repeated here. It should also be noted that in relation to Figure 5a, XRES' can be calculated on the core network side before sending the authentication request (such as shown in the first dotted box on the core network side in Figure 5a), or the core network side can calculate XRES' after receiving the confirmation (carrying RES') sent by the UE (as shown in the second dotted box on the core network side in Figure 5a). This example does not limit the specific execution timing of the calculation of XRES' on the core network side. In addition, the above-mentioned shared key can be a shared key derived from the root key Kr of the A-IoT device. In the process of the above-mentioned A-IoT device authenticating the UE using physical layer authentication, the A-IoT device may need to perform some authentication calculations.

[0277] The above authentication method is illustrated in conjunction with Figure 5b. For example, the second device is an A-IoT (i.e., an A-IoT device), the first device is a first access network device (e.g., the gNB in ​​Figure 5b), and the core network device is represented as the core network. The A-IoT, gNB, and core network can use the same first shared key and A-IoT ID to perform authentication. Specifically, after receiving the authentication request (which may include the A-IoT ID) from the core network, the gNB generates RES' (i.e., the aforementioned first response), which includes the A-IoT device's Kr or shared key (i.e., the first shared key) to achieve authentication. Figure 5b illustrates a possible calculation method for RES': RES' = HASH(Kue||Kr, A-IoT ID, gNB ID, nonce1). The meanings of the various parameters in this formula are the same as in the previous embodiment and are not repeated here. The core network generates XRES' (i.e., the aforementioned first expected response) using the same method as the gNB and verifies that RES' = XRES', completing authentication of the IoT device. Before the gNB calculates the first response, the A-IoT device can also authenticate the gNB. The aforementioned A-IoT device can also be replaced with a zero-power device, and the A-IoT ID in the above formula can also be replaced with a tag ID. This explanation is not repeated here. Regarding Figure 5b, it should also be noted that the core network can calculate XRES' before sending the authentication request to the gNB (as shown in the first dashed box on the core network side in Figure 5b), or the core network can calculate XRES' after receiving the confirmation (carrying RES') from the gNB (as shown in the second dashed box on the core network side in Figure 5b). This example does not limit the specific timing of calculating XRES' on the core network side. Furthermore, the aforementioned shared key can be a shared key derived from the A-IoT device's root key Kr. During the A-IoT device's authentication process with the gNB, the A-IoT device may need to perform some authentication calculations.

[0278] In conjunction with Figure 6, the authentication method provided in the aforementioned embodiment is exemplified. In Figure 6, taking a scenario of a second device as an example, the second device is represented as an A-IoT device, the first device is a terminal device or a first access network device, and the first device is represented as a UE / gNB (that is, the first device is a UE or a gNB) in Figure 6. The first shared key is the root key Kr. For simplicity, the core network side devices are merged into core network side network elements and represented as AUSF / UDM / ARPF in Figure 6. The authentication method of Figure 6 is that the UE authenticates the A-IoT device based on the root key. The processing flow of Figure 6 is summarized as follows: a pre-condition is adopted: the A-IoT device and the UE / gNB and the core network side network element share the root key Kr of the A-IoT device; the authentication method includes: the UE generates RES', and the generation of RES' needs to include the A-IoT Kr or the shared key to achieve the purpose of authentication, specifically in any of the following ways: RES' = HASH(Kr, Tag ID, UE ID, nonce1), RES' = f2(Kr, Tag ID, UE ID, nonce1), RES' = HASH(Kr, Tag ID, UE ID, RES, nonce1), where the tag ID can be replaced with the A-IoT ID. The core network side network element uses the same method to generate XRES' and verifies that RES' = XRES' to complete the authentication of the IoT device; or the authentication method includes: the gNB generates RES', and the generation of RES' needs to include the A-IoT Kr or the shared key to achieve the purpose of authentication, specifically in any of the following ways: RES' = HASH(Kr, Tag ID, gNB The core network side network element uses the same method to generate XRES' and verify that RES' = XRES' to complete the authentication of the IoT device.

[0279] The specific processing flow of Figure 6 includes:

[0280] In step S601, the A-IoT device sends an authentication request to the UE / gNB, carrying the A-IoT ID. The UE can be a relay UE or a proxy UE.

[0281] Optionally, S600 may be included before S601: the UE / gNB triggers the AIoT device. For example, the UE / gNB may send a trigger message to the AIoT device to trigger the AIoT device to send an authentication request.

[0282] S602: The UE / gNB forwards the authentication request to the AUSF, carrying the A-IoT ID and UE ID.

[0283] S603, AUSF / UDM / ARPF calculates XRES' (ie, the first expected response).

[0284] Specifically, the AUSF checks the whitelist to see if it includes the binding relationship between the UE / gNB and the A-IoT device, and whether the UE / gNB can provide a wireless or relay connection for the A-IoT device. If so, the process proceeds to the next step; otherwise, the process terminates. The AUSF sends an authentication request to the UDM / ARPF, carrying the A-IoT ID. The UDM / ARPF performs 5G AKA, calculates the A-IoT's 5G HEAV, including MAC, XRES, KAUSF, and RAND, and calculates XRES', which it sends to the AUSF.

[0285] Among them, if the first device is a UE, the method for calculating XRES' may include XRES'=HASH(Kr,A-IoT ID,UE ID,nonce1); if the first device is a gNB, the method for calculating XRES' may include XRES'=HASH(Kr,A-IoT ID,gNB ID,nonce1). Other possible calculation formulas are the same as those in the previous embodiment and are not repeated here.

[0286] S604: The AUSF sends an authentication response to the UE / gNB, carrying the A-IoT ID and MAC (i.e., the first message authentication code). This authentication response may be the second message in the aforementioned embodiment.

[0287] In S605, the UE / gNB calculates RES, MAC, and KAUSF based on Kr. The UE verifies MAC and successfully completes authentication on the core network side.

[0288] Optionally, the A-IoT device performs physical layer authentication with the UE based on Kr. At step S606, the UE / gNB sends a physical layer authentication request to the A-IoT device. At step S607, the A-IoT device sends a secret pilot to the UE. At step S608, the UE / gNB calculates a verification code based on Kr and the secret pilot and sends it to the A-IoT device. At step S609, the A-IoT device successfully authenticates the UE / gNB based on the verification code. At step S610, the A-IoT device sends an authentication success message to the UE / gNB.

[0289] Optionally, the UE / gNB authenticates the A-IoT device, for example, using a PUF principle. This includes the following steps: S611: The UE / gNB authenticates the A-IoT device based on the PUF principle. S612: After the UE / gNB authenticates the A-IoT device based on the PUF principle, it sends a verification success message.

[0290] Optionally, the UE / gNB can authenticate the AIoT device by calculating the third expected response (XRES-AIOT) of the AIoT device. For example, this may include: S611': The UE / gNB calculates XRES-AIOT based on Kr or KAUSF-A and sends the fifth random number used to calculate XRES-AIOT to the A-IoT device. The method for calculating XRES-AIOT in this step is the same as in the previous embodiment and is not repeated here. S612': The A-IoT device calculates RES-AIOT based on Kr and sends it to the UE / gNB. The UE / gNB verifies that XRES-AIOT = RES-AIOT, successfully authenticating the A-IoT device.

[0291] S613: The UE / gNB sends an authentication confirmation to the AUSF, carrying RSE'. The method for the UE / gNB to calculate RES' has been described in detail in the previous embodiment and is not repeated here.

[0292] S614, AUSF verifies RES'=XRES' and successfully verifies the A-IoT device.

[0293] It should be noted that the above S613 and S614 may be executed after S605 successfully completes the authentication on the core network side, and S606 to S612, and / or S611 to S612, and / or S611' to S612' may not be executed. Alternatively, the above S613 and S614 may be executed after S605 successfully completes the authentication on the core network side and after the above S610 is completed, that is, the above S611 to S612 and / or S611' to S612' may not be executed. Alternatively, the above S613 and S614 may be executed after S605 successfully completes the authentication on the core network side and after the above S610 is completed, and after S612 is further completed. In this case, the processing of S611' to S612' is not executed. Alternatively, the above S613 and S614 may be executed after the above S605 is successfully authenticated on the core network side, after the above S610 is completed, and after S612' is further completed. In this case, the processing of S611 to S612 is not executed.

[0294] It should also be noted that in the above process, the authentication response in S604 may carry various random numbers (such as the first random number, the second random number, and so on in the aforementioned embodiment, which are not exhaustive), and the corresponding authentication confirmation in S613 may only carry RES'. Alternatively, in the above process, the authentication response in S604 may not carry various random numbers, and the corresponding authentication confirmation in S613 may carry, in addition to RES', various random numbers used to calculate RES'.

[0295] Still in combination with the above Figure 6, another exemplary explanation of the authentication method is given. In another example, 5G AKA can be performed based on the UE's second shared key (for example, the UE's root key KAUSF-UE) to complete the authentication of the network.

[0296] In this example, S601 to S602 are the same as those in the previous example and are not described in detail.

[0297] The AUSF / UDM / ARPF calculation XRES' (i.e., the first expected response) processing in S603, in this example, is performed by the UE / gNB and the network based on the root key of the UE / gNB to obtain the UE's 5G HE AV and complete the authentication of the network. Specifically, the AUSF checks the whitelist to see whether it includes the binding relationship between the UE / gNB and the A-IoT device, and whether the UE / gNB can provide a wireless connection or relay connection for the A-IoT device. If the check result is yes, the AUSF sends an authentication request to the UDM / ARPF, carrying the UE ID (or gNB ID), and the UDM performs 5G AKA, calculates the UE's (or gNB's) 5G HE AV, including MAC, XRES, XRES'KAUSF-UE, RAND, and sends it to the AUSF. If the check result is otherwise, the process is terminated.

[0298] In addition, in this example, the root key of the UE / gNB is also added to the process of calculating XRES', which may include one of the following: XRES'=f2(KAUSF-UE||Kr,A-IoT ID,UE ID,nonce1), XRES'=HASH(KAUSF-UE||Kr,A-IoT ID,UE ID,nonce1), XRES'=f2(KAUSF-UE||KAUSF-A,A-IoT ID,UE ID,nonce1), XRES'=HASH(KAUSF-UE||KAUSF-A,A-IoT ID,gNB ID,nonce1), XRES'=f2(KAUSF-UE||Kr,A-IoT ID,gNB ID,nonce1). ID, nonce1), XRES'=HASH(KAUSF-UE||KAUSF-A, A-IoT ID, gNB ID, nonce1); the above || can be replaced by an XOR algorithm, etc. The meanings of the parameters in the above formulas are the same as those in the previous embodiment and are not repeated here.

[0299] The processing of S604 to S612 or S604 to S612' in this example is the same as that in the above example and will not be described in detail.

[0300] In the process of S613, the UE / gNB calculates RES' in the same manner as the aforementioned calculation of XRES', and no further explanation is given.

[0301] In conjunction with Figure 7, the aforementioned authentication method is further illustrated by taking a second device as an example. In the example of Figure 7, an authentication network element (i.e., authentication device) A-IoT authenticator is added. In Figure 7, the second device is an A-IoT device, the first device is a UE / gNB, the first network device is an A-IoT authenticator, and the core network side devices other than the first network device are represented as AUSF / UDM / ARPF. In the example of Figure 7, the random number nonce2 (i.e., the aforementioned third random number) is generated by the A-IoT authenticator, KA-IoT (i.e., the second intermediate key) is generated based on KAUSF-A (i.e., the first shared key), and XRES' is generated based on KA-IoT.

[0302] Optionally, at S700, the UE / gNB triggers the AIoT device. For example, the UE / gNB may send a trigger message to the AIoT device to trigger the AIoT device to send an authentication request.

[0303] In the specific processing flow, the processing of S701 to S702 is the same as that of the aforementioned S601 to S602 and will not be described in detail.

[0304] S703, AUSF / UDM / ARPF calculates 5G HE AV and sends it to the A-IoT authenticator. For example, AUSF sends 5G HE AV (including XRES, the aforementioned second expected response, including MAC) to the authentication network element A-IoT authenticator, which can be a base station, AMF, SEAF, UPF, service server, A-IoT network element, etc.

[0305] S704, the A-IoT authenticator calculates XRES' (ie, the first expected response).

[0306] Optionally, the A-IoT authenticator generates a random number nonce2, generates KA-IoT according to KAUSF-A, generates XRES' according to KA-IoT, and the A-IoT authenticator replaces the XRES in 5G HE AV with XRES' and stores it locally; or, the AUSF generates a random number nonce2, generates KA-IoT according to KAUSF-A, generates XRES' according to KA-IoT, and sends XRES' to the A-IoT authenticator. The calculation method of KA-IoT is the same as that in the aforementioned embodiment and will not be repeated. If the first device is a UE, the calculation of XRES' may include one of the following: XRES'=f2(KA-IoT, A-IoT ID, UE ID, nonce1), XRES'=HASH(KA-IoT, A-IoT ID, UE ID, nonce1). The above-mentioned various possible processing are the same as those in the aforementioned embodiment and will not be repeated. If the first device is a gNB, calculating XRES' may include one of the following: XRES' = f2(KA-IoT, A-IoT ID, gNB ID, nonce1), XRES' = HASH(KA-IoT, A-IoT ID, gNB ID, nonce1). The above possible processing is the same as in the previous embodiment and is not further described.

[0307] Optionally, the A-IoT authenticator performs 5G AKA based on the UE's root key (i.e., KAUSF-UE). For example, the A-IoT authenticator generates a random number nonce2, generates KUE (a third intermediate key) based on the UE's KAUSF-UE, and then calculates XRES' based on the third intermediate key. The method for calculating KUE is the same as in the previous embodiment and is not described in detail. Accordingly, the method for calculating XRES' based on KUE may include one of the following: XRES'=f2(KUE||Kr,A-IoT ID,UE ID,nonce1), XRES'=HASH(KUE||Kr,A-IoT ID,UE ID,nonce1), XRES'=f2(KUE||KAUSF-A,A-IoT ID,UE ID,nonce1), XRES'=HASH(KUE||KAUSF-A,A-IoT ID,UE ID,nonce1).

[0308] Optionally, the A-IoT authenticator performs 5G AKA based on the gNB's root key (i.e., KAUSF-gNB). For example, the A-IoT authenticator generates a random number, nonce2, generates KUE (a third intermediate key) based on the gNB's KAUSF-gNB, and then calculates XRES' based on the third intermediate key. The method for calculating KgNB is the same as in the previous embodiment and is not further described. Accordingly, the method for calculating XRES' based on KgNB may include one of the following: XRES' = f2(KgNB||Kr, A-IoT ID, gNB ID, nonce1), XRES' = HASH(KgNB||Kr, A-IoT ID, gNB ID, nonce1), XRES' = f2(KgNB||KAUSF-A, A-IoT ID, gNB ID, nonce1), XRES' = HASH(KgNB||KAUSF-A, A-IoT ID, gNB ID, nonce1).

[0309] In addition, the calculation method of the above XRES' can also be HASH (XRES, A-IoT authenticator ID, nonce1), which is not described here.

[0310] The specific processing of S705 to S715 is the same as the specific description of S604 to S614 in the above example. The only difference is that the method of calculating RES' is the same as the calculation of XRES' in S704, so it is not repeated here.

[0311] In conjunction with FIG8 , taking a plurality of second devices as an example to form a device group, another exemplary explanation of the aforementioned authentication method is given. The example in FIG8 also includes an authentication network element (i.e., authentication device) A-IoT authenticator. In FIG8 , for the sake of simplicity, only any one of the plurality of second devices is illustrated, and the arbitrary second device is represented as an A-IoT device. In addition, the example in FIG8 is illustrated by taking the first device as UE / gNB, the first network device as A-IoT authenticator, and the core network side devices other than the first network device as including AUSF / UDM / ARPF as an example.

[0312] S801: The server sends a trigger command, which carries multiple A-IoT IDs and / or Group-IDs associated with multiple A-IoT devices to be triggered.

[0313] S802, AUSF obtains 5G HE AV of each A-IoT.

[0314] For example, AUSF checks the whitelist to determine the binding relationship between Group-ID and A-IoT ID, and searches for the UE ID (or gNB ID) bound to them. These UE / gNBs can provide wireless or relay connections for A-IoT devices. It also searches for the A-IoT authenticator bound to them. Furthermore, AUSF sends an authentication request to UDM / ARPF, carrying the A-IoT ID, Group ID, authenticator ID, UE ID, and UDM / ARPF for 5G AKA. It calculates the 5G HE AV of A-IoT, including MAC, XRES, KAUSF, and RAND, and sends the 5G HE AC of each A-IoT device to AUSF.

[0315] S803: The AUSF sends an authentication request to the A-IoT authenticator. Because the network server triggers authentication, the AUSF sends the authentication request to the A-IoT authenticator, which carries 5G HEAV. The A-IoT authenticator can be a base station, AMF, SEAF, UPF, service server, A-IoT network element, etc.

[0316] S804: The A-IoT authenticator calculates XRES'_Group. For example, the A-IoT authenticator generates a random number, nonce-i, for each A-IoT device, generates KA-IoT-i based on KAUSF-i, and generates an XRES'_Group based on the KA-IoT-i of each A-IoT device. The method for calculating XRES'_Group is detailed in the previous embodiment and will not be repeated here.

[0317] S805: The A-IoT authenticator sends an authentication request to the UE / gNB. The authentication request carries the A-IoT ID, the MAC address of each A-IoT, the A-IoT authenticator ID, and so on.

[0318] Optionally, after S805 is completed, at least one of the following may also be performed: each A-IoT device performs physical layer authentication on the UE / gNB based on Kr; the UE / gNB authenticates each A-IoT device; or the UE / gNB authenticates each AIoT device. The aforementioned authentication processes between the UE / gNB and each A-IoT device, namely S806 to S810, S811 to S812, and S811' to S812', are identical to the aforementioned S606 to S610, S611 to S612, and S611' to S612', and are not repeated here.

[0319] At step S813, the UE / gNB sends an authentication response to the A-IoT authenticator, including the RSE'-Group. The UE calculates the RES'-Group in the same manner as the XRES'-Group.

[0320] S814, A-IoT Authenticator verifies RES'_Group = XRES'_Group, successfully authenticates group A-IoT, trusts A-IoT is not a malicious device, and also trusts the sent data.

[0321] Optionally, the authentication request in S803 may also carry the random numbers of each A-IoT device (for example, the first random number of the i-th A-IoT device is represented as NONCE1i) and XRES'_Group. That is, the AUSF generates a random number nonce1 for each A-IoT device, generates KA-IoT based on KAUSF-A, and generates an XRES'_Group based on the KA-IoT of each A-IoT device. The AUSF sends an authentication request, including the XRES'_Group, to the A-IoT authenticator; then executes S805, and the A-IoT authenticator forwards the authentication request to the UE, including MAC, A-IoT authenticator ID, A-IoT ID-1…A-IoT ID-I, nonce-1…nonce-i, RAND.

[0322] Optionally, before the processing of S813, for example, before S806, it may also include: the UE / gNB performs 5G AKA calculation RES, MAC, and KAUSF based on any Kr, the UE / gNB verifies the MAC, and successfully completes the authentication on the core network side.

[0323] Optionally, in S802 , the MAC calculation may be performed to generate a MAC_Group for the group of A-IoT devices, and the MAC_Group may be included in the authentication request in S805 . Accordingly, the UE-verified MAC mentioned above refers to the UE / gNB-verified MAC_Group. The MAC_Group calculation method is the same as in the previous embodiment and is not further described.

[0324] In conjunction with Figure 9, taking a second device as an example, the above-mentioned authentication method is further exemplified. In Figure 9, the second device is represented as an A-IoT device, the first device is represented as UE / gNB, and the core network side device is simplified as AUSF / UDM / ARPF.

[0325] S901: The A-IoT device sends an authentication request to the UE / gNB, carrying the A-IoT ID.

[0326] After completing S901, the A-IoT device and the UE / gNB may also perform at least one of the following: the A-IoT device performs physical layer authentication of the UE / gNB based on Kr; the UE / gNB authenticates the A-IoT device; or the UE / gNB authenticates the A-IoT device. The various authentication processes between the UE and the A-IoT device, namely S902-S906, S907-S908, and S907'-S908', are similar to S606-S610, S611-S612, and S611'-S612' described above and are not repeated here.

[0327] In step S909, the UE / gNB generates random numbers and calculates RES'. The calculation method of RES' is the same as in the previous embodiment and is not further described.

[0328] S910: The UE / gNB sends an authentication request to the AUSF, where the authentication request carries RES'.

[0329] S911, AUSF calculates XRES' and verifies that RES'=XRES'. The calculation method of XRES' is the same as that in the above embodiment and will not be described in detail.

[0330] S912: If the AUSF verification is successful, an authentication success message is sent to the UE.

[0331] As can be seen, by adopting the above authentication method, the first device can calculate a first response for each second device bound to the first device based on a key shared by each second device, the first device, and the network, and send this first response to the network, so that the network can authenticate each second device. In this way, the first device can authenticate the second device with the network on behalf of the second device. While ensuring that the core network device can authenticate the second device, it avoids performing more complex calculations on the second device, reducing the computational burden on the second device. This method is particularly suitable for devices with lower computing power.

[0332] Finally, the beneficial effects of the solution provided by this embodiment are described in combination with relevant technologies.

[0333] Ambient IoT is a new type of IoT terminal studied in 3GPP Release 19. It is an IoT device powered by energy harvesting and lacks batteries or has limited energy storage capacity. The device cost is extremely low, but computing power is extremely limited. Currently, there are two network architectures in the industry, which can be summarized as direct mode and indirect mode. For example, see Figure 10. The top of Figure 10 shows the direct mode, where the AIOT device directly connects to the access network device (such as a base station) on the network side. The base station then connects to the core network and then to the AIOT AF. The bottom of Figure 10 shows the indirect or indirect mode, where the AIOT device connects to the base station through other terminal devices (such as relay UE, CPE, or AP), and then connects to the 5G core network and AIOT AF through the base station.

[0334] In related technologies, a UE must undergo authentication and key negotiation before accessing the 5G network and using network resources. Based on the authentication results, the network authorizes the UE to use network resources and services. The 3GPP security standards define the 5G AKA process and the cryptographic algorithms used. The authentication and authorization credentials used in the UE's AKA process are the symmetric root key K, which is centrally stored on the network side by the core network's UDM / ARPF network elements. Each authorization requires the UDM to obtain the authorization credentials and the core network to perform the corresponding authentication calculations.

[0335] Regarding the above-mentioned AKA process, as shown in Figure 11, it may include: S1101. In response to the received authentication request, the UDM / ARPF generates an AV (Authentication Vector). That is, the UDM / ARPF creates a 5G HE AV (Home Environment Authentication Vector), in which the Authentication Management Field (AMF) separation bit is set to "1". Then, the UDM / ARPF should derive the KAUSF (Key Authentication Server Function) and calculate the XRES* (Expected User Response). Finally, the UDM / ARPF should create a 5G HE AV from the RAND (Random number), AUTN (Authentication Token), XRES* and KAUSF. S1102. The UDM should return the 5G HE AV to the AUSF. S1103. The AUSF should store the XRES* and temporarily store the XRES* together with the received SUCI or SUPI. S1104. The AUSF shall generate a 5G AV based on the 5G HE AV received from the UDM / ARPF, calculate HXRES* from XRES* and KSEAF from KAUSF, replace XRES* in the 5G HE AV with HXRES*, and replace KAUSF with KSEAF. S1105. The AUSF removes KSEAF and returns the 5G SE AV to the SEAF. S1106. The SEAF sends RAND and AUTN to the UE. S1107. The USIM calculates the response RES. The USIM shall return RES, CK, and IK to the ME. The ME shall then calculate RES* from RES. S1108. The UE returns RES* to the SEAF. S1109. The SEAF calculates HRES* from RES* and compares HRES* with HXRES*. If they are consistent, the SEAF shall consider the authentication successful from the perspective of the serving network. Otherwise, the SEAF shall consider the authentication failed and indicate the failure to the AUSF. S1110. The SEAF sends the RES* received from the UE to the AUSF. S1111. The AUSF compares the received RES* with the stored XRES*. If RES* and XRES* are equal, the AUSF shall consider the authentication successful. The AUSF shall notify the UDM of the authentication result. S1112. The AUSF indicates to the SEAF whether the authentication was successful from the perspective of the home network.

[0336] In related technologies, RFID systems typically consist of a reader and a tag, operating in different frequency bands. Tags can be categorized as passive, active, or semi-active based on their power supply method. Passive tags are coupled to the reader using either near-field or far-field coupling. Near-field coupling relies on induction, where the mutual inductance between the reader and tag causes changes in the tag coil current that can be detected by the reader. Far-field coupling relies on backscatter communication.

[0337] In related technologies, two-way authentication between a reader and a tag may include: 1. The reader generates a random number RN r RN r Sent to the tag. 2: The tag receives RN r After that, the local also generates a random number RN t The tag uses hash function and PSK to identify the RN. r ||RN t Calculate MIC1 (message integrity check code). Finally, RN r , RN t 3: The reader sends the received RN r With local RN r Do a comparison, if they are not equal, ignore them; if they are equal, the reader uses the hash function and PSK to compare RN r ||RN t Calculate MIC′1, compare MIC1 with MIC′1, if they are not equal, ignore them; if they are equal, the reader authenticates the tag is legal, and the reader continues to use the hash function and PSK to authenticate the RN t Calculate MIC2 and finally RN t , MIC2 is sent to the tag. 4: The tag receives the RN t With local RN t Do a comparison, if they are not equal, ignore them; if they are equal, use the hash function and PSK to compare RN t Calculate MIC'2 and compare the received MIC2 with the locally calculated MIC'2. If they are not equal, ignore them. If they are equal, the tag authenticates the reader as legitimate and returns the authentication result to the reader. 5: If the tag and reader need to communicate securely, each uses KDH(PSK, TID||RID||RN r ||RN t ) derives the session key, KDH() is a key derivation algorithm.

[0338] The above analysis shows that the f1-f5 functions and KDF functions used in the AKA authentication and key agreement processes in related technologies have high computational complexity and complex key architectures, making them unsuitable for secure authentication of A-IoT devices. They also do not support authentication and key agreement between A-IoT devices and UEs / gNBs. Authentication and key agreement are performed between tags and readers, but cannot support authentication and key agreement between A-IoT devices and networks. Compared to the related technologies described above, the various embodiments provided in this application enable the A-IoT device to perform authentication calculations through a first device (which can be either a terminal or an access network device), allowing the network and A-IoT devices to complete bidirectional authentication through the first device. This advantage is that the A-IoT device does not need to perform complex authentication calculations. Furthermore, the first device can proxy the calculation of the authentication parameter RES' for a group of A-IoT devices, allowing the network to complete authentication for a group of A-IoT devices in a single process, improving the efficiency of group A-IoT device authentication. This method of proxying authentication by the first device supports the first device's management of the security processes of A-IoT devices, enhancing the capabilities of the first device and increasing flexibility and security management efficiency in B2B scenarios.

[0339] FIG12 is a schematic diagram of the composition structure of a first device according to an embodiment of the present application, including:

[0340] The first processing unit 1201 is configured to calculate a first response based on identifiers of one or more second devices and one or more first shared keys, where different first shared keys among the one or more first shared keys are shared by different second devices, the first device, and the core network side device;

[0341] The first communication unit 1202 is configured to send a first message to the core network side device, where the first message carries the first response, and the first response is used by the core network side device to authenticate the one or more second devices.

[0342] The first processing unit is configured to calculate the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and one or more first random numbers.

[0343] The first communication unit is configured to receive the one or more first shared keys from the core network side device.

[0344] The first processing unit is used to perform one of the following: using a first calculation method to calculate the first response based on the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers; obtaining one or more intermediate keys based on the one or more first shared keys, and using the first calculation method to calculate the first response based on the identification of the one or more second devices, the one or more intermediate keys, the identification of the first device, and the one or more first random numbers; calculating one or more first intermediate responses based on the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, and calculating the first response based on the one or more first intermediate responses.

[0345] The first processing unit is used to perform one of the following: using the first calculation method to calculate the first response based on one or more second responses, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, wherein the one or more second responses are obtained based on the one or more second random numbers; using the first calculation method to calculate the first response based on the second shared key, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; calculating the third intermediate key based on the second shared key, the identification of the first network device and the third random number, and using the first calculation method to calculate the first response based on the third intermediate key, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers.

[0346] The first processing unit is configured to perform one of the following: obtaining one or more first intermediate keys based on the one or more first shared keys, and calculating the first response based on one or more second responses, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers using a first calculation method, wherein the one or more second responses are obtained based on one or more second random numbers; obtaining one or more first intermediate keys based on the one or more first shared keys, and calculating the first response based on the second shared key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers using the first calculation method, wherein the second shared key is the first A device is shared with the core network side device; one or more second intermediate keys are calculated based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers; the first response is calculated based on the identifier of the one or more second devices, the one or more second intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method; a third intermediate key is obtained based on the second shared key, the identifier of the first network device and the third random number, one or more first intermediate keys are obtained based on the one or more first shared keys, and the first response is calculated based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method.

[0347] The first processing unit is used to perform one of the following: respectively using the first calculation method to calculate the one or more first intermediate responses based on one or more second responses, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, wherein the one or more second responses are obtained based on the one or more second random numbers; respectively using the first calculation method to calculate the one or more first intermediate responses based on the second shared key, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; respectively using the second shared key, the identification of the first network device and the third random number to calculate the one or more first intermediate responses based on the third intermediate key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers; respectively using the first calculation method to obtain one or more first intermediate keys based on the one or more first shared keys, wherein the first calculation method is used to calculate the one or more second responses, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers. or multiple first intermediate keys, the identifier of the first device, and the one or more first random numbers, calculate the one or more first intermediate responses; obtain one or more first intermediate keys based on the one or more first shared keys, and respectively use the first calculation method to calculate the one or more first intermediate responses based on the second shared key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers; calculate one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device, and one or more fourth random numbers, and respectively use the first calculation method to calculate the one or more first intermediate responses based on the identifier of the one or more second devices, the one or more second intermediate keys, the identifier of the first device, and the one or more first random numbers; obtain a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, obtain one or more first intermediate keys based on the one or more first shared keys, and respectively use the first calculation method to calculate the one or more first intermediate responses based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers.

[0348] The first processing unit is used to perform one of the following: using the first calculation method to calculate the first response based on the one or more first intermediate responses, the identifier of the first network device, and a third random number; using the first calculation method to calculate the first response based on the one or more first intermediate responses and the identifier of the first network device; using the first calculation method to calculate the first response based on the one or more first intermediate responses and the third random number.

[0349] The first communication unit is used to receive a second message from the core network side device, where the second message carries at least one of the following: an identifier of the one or more second devices, an identifier of a device group, and the device group includes multiple second devices.

[0350] The second message also carries the one or more first random numbers.

[0351] The first communication unit is configured to forward the authentication request from the one or more second devices to the core network side device, wherein the authentication request of each second device in the one or more second devices carries an identifier of the second device.

[0352] The second message is used to request authentication.

[0353] The first communication unit is configured to receive an authentication request from each of the one or more second devices, where the authentication request from each second device carries an identifier of the second device.

[0354] The first message also carries the one or more first random numbers; the first processing unit is used to generate the one or more first random numbers.

[0355] The second message also carries a first message authentication code, and the first processing unit is used to calculate the second message authentication code based on the one or more first shared keys, and determine that the authentication of the core network side device is completed when the second message authentication code is the same as the first message authentication code.

[0356] The first processing unit is used to perform one of the following: calculating one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers, and calculating the second message authentication code based on the one or more second intermediate keys, the identifier of the one or more second devices and the identifier of the first device using the first calculation method; calculating one or more intermediate verification codes based on the one or more first shared keys, and calculating the second message authentication code based on the one or more intermediate verification codes and the identifier of the first network device using the first calculation method.

[0357] The second message also carries one or more first message authentication codes; the first processing unit is used to calculate a target second message authentication code based on a first shared key corresponding to a target second device among the one or more second devices, and when the target second message authentication code is the same as the target first message authentication code, the first device determines that the authentication of the core network side device is completed, wherein the target first message authentication code is related to the target second device.

[0358] The first communication unit is configured to send a third message to each of the one or more second devices, the third message being used to instruct each second device to authenticate the first device; the first device receiving a pilot signal sent by each second device; sending a corresponding verification code to each second device; and receiving a fourth message from each second device, wherein the fourth message from each second device is used to indicate whether each second device has successfully authenticated the first device;

[0359] The first processing unit is configured to calculate a verification code corresponding to each second device based on the pilot signal sent by each second device.

[0360] The first processing unit is configured to calculate a third expected response of each of the one or more second devices based on the one or more first shared keys and the one or more fifth random numbers; and determine that authentication of each second device is successful if the third response of each second device is the same as the third expected response;

[0361] The first communication unit is used to send a corresponding fifth message to each second device, where the fifth message corresponding to each second device carries the fifth random number corresponding to the second device; and receive a sixth message from each second device, where the sixth message of each second device carries the third response of each second device.

[0362] The first communication unit is configured to receive binding information from a fourth network device, where the binding information includes the one or more second devices with which the first device has a binding relationship;

[0363] And / or, the first processing unit is used to perform one of the following: based on preset binding information, determine the one or more second devices with a binding relationship; use the one or more second devices that have passed the authentication as the one or more second devices with a binding relationship, and the authentication includes physical layer authentication and / or air interface authentication.

[0364] The first calculation method includes at least one of the following: a first authentication function, a second authentication function, a third authentication function, a hash algorithm, AES, ACSON, SNOW 3G, ZUC, an XOR algorithm, and a direct connection calculation.

[0365] The first device includes at least one of the following: a terminal device, a first access network device; the second device is an environment-powered Internet of Things (AIoT) device; the first network device includes one of the following: AUSF, an authentication device, and the authentication device includes one of the following: a second access network device, AMF, SEAF, UPF, a service server, and an AIoT network element.

[0366] FIG13 is a schematic diagram of the structure of a core network side device according to an embodiment of the present application, including:

[0367] The second communication unit 1301 is configured to receive a first message from a first device, where the first message carries a first response, and the first response is related to one or more second devices;

[0368] The second processing unit 1302 is used to determine that the authentication of the one or more second devices is successful when the first expected response is the same as the first response, wherein the first expected response is related to one or more first shared keys and the identifiers of the one or more second devices, and different first shared keys among the one or more first shared keys are shared by different second devices and the first device and the core network side device.

[0369] The second communication unit is configured to send the one or more first shared keys to the first device.

[0370] The second processing unit is configured to calculate the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and one or more first random numbers.

[0371] The second processing unit is used to perform one of the following: using a first calculation method to calculate the first expected response based on the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers; obtaining one or more intermediate keys based on the one or more first shared keys, and using the first calculation method to calculate the first expected response based on the identification of the one or more second devices, the one or more intermediate keys, the identification of the first device, and the one or more first random numbers; calculating one or more second intermediate responses based on the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, and calculating the first expected response based on the one or more second intermediate responses.

[0372] The second processing unit is used to perform one of the following: using the first calculation method to calculate the first expected response based on one or more second expected responses, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, wherein the one or more second expected responses are obtained based on the one or more second random numbers; using the first calculation method to calculate the first expected response based on the second shared key, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; calculating the third intermediate key based on the second shared key, the identification of the first network device and the third random number, and using the first calculation method to calculate the first expected response based on the third intermediate key, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers.

[0373] The second processing unit is used to perform one of the following: obtain one or more first intermediate keys based on the one or more first shared keys, and calculate the first expected response based on one or more second responses, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers using a first calculation method, wherein the one or more second expected responses are obtained based on one or more second random numbers; obtain one or more first intermediate keys based on the one or more first shared keys, and calculate the first expected response based on the second shared key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers using the first calculation method, wherein the second shared key is the The first device is shared with the core network side device; one or more second intermediate keys are calculated based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers; the first expected response is calculated based on the identifier of the one or more second devices, the one or more second intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; the third intermediate key is obtained based on the second shared key, the identifier of the first network device, and the third random number, and one or more first intermediate keys are obtained based on the one or more first shared keys; the first expected response is calculated based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method.

[0374] The second processing unit is used to perform one of the following: respectively using the first calculation method to calculate the one or more second intermediate responses based on one or more second expected responses, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, wherein the one or more second expected responses are obtained based on the one or more second random numbers; respectively using the first calculation method to calculate the one or more second intermediate responses based on the second shared key, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; respectively calculating the third intermediate key based on the second shared key, the identification of the first network device and the third random number, respectively using the first calculation method to calculate the one or more second intermediate responses based on the third intermediate key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers; respectively obtaining one or more first intermediate keys based on the one or more first shared keys, respectively using the first calculation method to calculate the one or more second expected responses, the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers. The method comprises: calculating the one or more second intermediate responses based on the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers; obtaining one or more first intermediate keys based on the one or more first shared keys, and respectively calculating the one or more second intermediate responses using the first calculation method based on the second shared key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers; calculating one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device, and the one or more fourth random numbers; respectively calculating the one or more second intermediate responses based on the identifier of the one or more second devices, the one or more second intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; obtaining a third intermediate key based on the second shared key, the identifier of the first network device, and the third random number; obtaining one or more first intermediate keys based on the one or more first shared keys, and respectively calculating the one or more second intermediate responses based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method.

[0375] The second processing unit is used to perform one of the following: using the first calculation method to calculate the first expected response based on the one or more second intermediate responses, the identifier of the first network device, and a third random number; using the first calculation method to calculate the first expected response based on the one or more second intermediate responses and the identifier of the first network device; using the first calculation method to calculate the first expected response based on the one or more second intermediate responses and the third random number.

[0376] The core network side device includes a first network device, and the first network device includes the second communication unit; the second communication unit is used to receive the first expected response from the second network device.

[0377] The second communication unit is configured to receive the one or more first random numbers from the second network device.

[0378] The second communication unit is configured to send a second message to the first device, where the second message carries at least one of the following: an identifier of the one or more second devices, and an identifier of a device group, where the device group includes multiple second devices.

[0379] The second message also carries the one or more first random numbers.

[0380] The second communication unit is configured to receive an authentication request from the one or more second devices through the first device, wherein the authentication request of each of the one or more second devices carries an identifier of the second device.

[0381] The core network side device includes a first network device, which includes the second communication unit; the second message is used to request authentication, and the second communication unit is used to receive an authentication request from a third network device, and the authentication request carries at least one of the following: the identifier of the one or more second devices, the identifier of the device group, and the device group includes multiple second devices.

[0382] The first message also carries the one or more first random numbers.

[0383] The second message also carries a first message authentication code, which is used by the first device to authenticate the core network side device; the second processing unit is used to calculate the first message authentication code based on the one or more first shared keys.

[0384] The second processing unit is used to perform one of the following: calculating one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers, and calculating the first message authentication code based on the one or more second intermediate keys, the identifier of the one or more second devices and the identifier of the first device using the first calculation method; calculating one or more intermediate verification codes based on the one or more first shared keys, and calculating the first message authentication code based on the one or more intermediate verification codes and the identifier of the first network device using the first calculation method.

[0385] The second message also carries one or more first message authentication codes; the second processing unit is used to calculate the first message authentication code corresponding to each second device in the one or more second devices based on the one or more first shared keys.

[0386] The first calculation method includes at least one of the following: a first authentication function, a second authentication function, a third authentication function, a hash algorithm, AES, ACSON, SNOW 3G, ZUC, an XOR algorithm, and a direct connection calculation.

[0387] The first device includes at least one of the following: a terminal device, a first access network device; the second device is an environment-powered Internet of Things (AIoT) device; the first network device includes one of the following: AUSF, an authentication device, and the authentication device includes one of the following: a second access network device, AMF, SEAF, UPF, a service server, and an AIoT network element.

[0388] The device of the embodiment of the present application can realize the corresponding functions of each device in the aforementioned authentication method embodiment. The processes, functions, implementation methods and beneficial effects corresponding to the first device or each module (sub-module, unit or component, etc.) in the core network side device can be found in the corresponding description in the above method embodiment, which will not be repeated here. It should be noted that the functions described in the first device of the application embodiment or each module (sub-module, unit or component, etc.) in the core network side device can be implemented by different modules (sub-modules, units or components, etc.) or by the same module (sub-module, unit or component, etc.).

[0389] Figure 14 is a schematic structural diagram of a communication device 1400 according to an embodiment of the present application. The communication device 1400 includes a processor 1410, which can call and execute a computer program from a memory to enable the communication device 1400 to implement the method in the embodiment of the present application.

[0390] In a possible implementation, the communication device 1400 may further include a memory 1420. The processor 1410 may call and execute a computer program from the memory 1420 to enable the communication device 1400 to implement the method in the embodiment of the present application.

[0391] The memory 1420 may be a separate device independent of the processor 1410 , or may be integrated into the processor 1410 .

[0392] In one possible implementation, the communication device 1400 may further include a transceiver 1430 , and the processor 1410 may control the transceiver 1430 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices.

[0393] The transceiver 1430 may include a transmitter and a receiver. The transceiver 1430 may further include an antenna, and the number of antennas may be one or more.

[0394] In one possible implementation, the communication device 1400 may be the first device of the embodiment of the present application, and the communication device 1400 may implement the corresponding processes implemented by the first device in each method of the embodiment of the present application. For the sake of brevity, no further details are given here. In one possible implementation, the communication device 1400 may be the core network side device of the embodiment of the present application, and the communication device 1400 may implement the corresponding processes implemented by the core network side device in each method of the embodiment of the present application. For the sake of brevity, no further details are given here.

[0395] 15 is a schematic structural diagram of a chip 1500 according to an embodiment of the present application. The chip 1500 includes a processor 1510, which can call and execute a computer program from a memory to implement the method according to the embodiment of the present application.

[0396] In one possible implementation, the chip 1500 may further include a memory 1520. The processor 1510 may call and execute a computer program from the memory 1520 to implement the method performed by the access network device or the first core network device in the embodiment of the present application. The memory 1520 may be a separate device independent of the processor 1510 or integrated into the processor 1510.

[0397] In one possible implementation, the chip 1500 may further include an input interface 1530. The processor 1510 may control the input interface 1530 to communicate with other devices or chips, specifically, to obtain information or data sent by other devices or chips. In one possible implementation, the chip 1500 may further include an output interface 1540. The processor 1510 may control the output interface 1540 to communicate with other devices or chips, specifically, to output information or data to other devices or chips.

[0398] In one possible implementation, the chip can be applied to the core network side device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the core network side device in each method of the embodiments of the present application. For the sake of brevity, no further details are given here. In one possible implementation, the chip can be applied to the first device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the first device in each method of the embodiments of the present application. For the sake of brevity, no further details are given here.

[0399] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0400] The processor mentioned above may be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or other programmable logic devices, transistor logic devices, discrete hardware components, etc. The general-purpose processor mentioned above may be a microprocessor or any conventional processor, etc.

[0401] The memory mentioned above may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM).

[0402] It should be understood that the above-mentioned memories are exemplary but not restrictive. For example, the memories in the embodiments of the present application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM RAM (DR RAM), etc. In other words, the memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0403] Figure 16 is a schematic block diagram of a communication system 1600 according to an embodiment of the present application. The communication system 1600 includes a first device 1610 and a core network side device 1620. In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0404] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0405] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0406] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. An authentication method, comprising: The first device calculates a first response based on the identifiers of one or more second devices and one or more first shared keys, where different first shared keys among the one or more first shared keys are shared by different second devices, the first device, and the core network side device; The first device sends a first message to the core network side device, where the first message carries the first response, and the first response is used by the core network side device to authenticate the one or more second devices.

2. The method according to claim 1, wherein: The first device calculates a first response based on the identification of one or more second devices and one or more first shared keys, including: The first device calculates the first response based on the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and one or more first random numbers.

3. The method according to claim 2, wherein: The method further comprises: The first device receives the one or more first shared keys from the core network side device.

4. The method according to claim 2 or 3, wherein: The first device calculates the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, including one of the following: The first device calculates the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers in a first calculation manner; The first device obtains one or more intermediate keys based on the one or more first shared keys, and calculates the first response based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; The first device calculates one or more first intermediate responses based on the identifications of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, and calculates the first response based on the one or more first intermediate responses.

5. The method according to claim 4, wherein: The first device calculates the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers in a first calculation manner, including one of the following: The first device calculates the first response in a first calculation manner based on one or more second responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, where the one or more second responses are obtained based on the one or more second random numbers; The first device calculates the first response by using the first calculation method based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; The first device calculates a third intermediate key based on the second shared key, the identifier of the first network device and a third random number, and calculates the first response based on the third intermediate key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method.

6. The method according to claim 4, wherein: The first device obtains one or more intermediate keys based on the one or more first shared keys, and calculates the first response based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method, including one of the following: The first device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the first response in a first calculation manner based on one or more second responses, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers, wherein the one or more second responses are obtained based on the one or more second random numbers; The first device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the first response based on a second shared key, the one or more second device identifiers, the one or more first intermediate keys, the first device identifier, and the one or more first random numbers using the first calculation method, wherein the second shared key is shared by the first device and the core network side device; The first device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and the one or more fourth random numbers; and calculates the first response based on the identifiers of the one or more second devices, the one or more second intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method; The first device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, obtains one or more first intermediate keys based on one or more first shared keys, and calculates the first response based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method.

7. The method according to claim 4, wherein: The first device calculates one or more first intermediate responses based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, including one of the following: The first device calculates the one or more first intermediate responses based on the one or more second responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using a first calculation method, respectively, wherein the one or more second responses are obtained based on the one or more second random numbers; The first device calculates the one or more first intermediate responses based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, respectively using the first calculation method, wherein the second shared key is shared by the first device and the core network side device; The first device calculates a third intermediate key based on the second shared key, the identifier of the first network device, and the third random number, and respectively calculates the one or more first intermediate responses based on the third intermediate key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; The first device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the one or more first intermediate responses based on one or more second responses, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method; The first device obtains one or more first intermediate keys based on the one or more first shared keys, and respectively calculates the one or more first intermediate responses based on the second shared key, the one or more identifiers of the second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers by using the first calculation method; The first device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and the one or more fourth random numbers; and calculates the one or more first intermediate responses based on the identifiers of the one or more second devices, the one or more second intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method respectively; The first device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number. key, obtain one or more first intermediate keys based on the one or more first shared keys, and calculate the one or more first intermediate responses based on the third intermediate key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers using the first calculation method.

8. The method according to claim 4 or 7, wherein: The calculating the first response based on the one or more first intermediate responses comprises one of the following: The first device calculates the first response based on the one or more first intermediate responses, the identifier of the first network device, and a third random number by using the first calculation method; The first device calculates the first response based on the one or more first intermediate responses and the identifier of the first network device using the first calculation method; The first device calculates the first response based on the one or more first intermediate responses and the third random number using the first calculation method.

9. The method according to any one of claims 2 to 8, wherein: The method further comprises: The first device receives a second message from the core network side device, where the second message carries at least one of the following: an identifier of the one or more second devices, an identifier of a device group, and the device group includes multiple second devices.

10. The method according to claim 9, wherein: The second message also carries the one or more first random numbers.

11. The method according to claim 9 or 10, wherein: Also includes: The first device forwards the authentication request from the one or more second devices to the core network side device, and the authentication request of each second device in the one or more second devices carries the identifier of the second device.

12. The method according to claim 9 or 10, wherein: The second message is used to request authentication.

13. The method according to any one of claims 2 to 8, wherein: The method further comprises: The first device receives an authentication request from each of the one or more second devices, where the authentication request of each second device carries an identifier of the second device.

14. The method according to claim 9 or 13, wherein: The first message also carries the one or more first random numbers; and the method further includes: The first device generates the one or more first random numbers.

15. The method according to any one of claims 9 to 13, wherein: The second message also carries a first message authentication code, and the method further includes: The first device calculates a second message authentication code based on the one or more first shared keys, and when the second message authentication code is the same as the first message authentication code, the first device determines that authentication of the core network side device is completed.

16. The method according to claim 15, wherein: The first device calculates a second message authentication code based on the one or more first shared keys, including one of the following: The first device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers, and calculates the second message authentication code based on the one or more second intermediate keys, the one or more identifiers of the second devices and the identifier of the first device using the first calculation method; The first device calculates one or more intermediate verification codes based on the one or more first shared keys, and calculates the second message authentication code based on the one or more intermediate verification codes and the identifier of the first network device using a first calculation method.

17. The method according to any one of claims 9 to 13, wherein: The second message also carries one or more first message authentication codes; the method further includes: The first device calculates a target second device based on a first shared key corresponding to the target second device in the one or more second devices. Message authentication code, when the target second message authentication code is the same as the target first message authentication code, the first device determines that the authentication of the core network side device is completed, wherein the target first message authentication code is related to the target second device.

18. The method according to any one of claims 1 to 17, wherein: The method further comprises: The first device sends a third message to each of the one or more second devices, where the third message is used to instruct each second device to authenticate the first device; The first device receives a pilot signal sent by each second device; The first device calculates a verification code corresponding to each second device based on the pilot signal sent by each second device; The first device sends a corresponding verification code to each of the second devices; The first device receives a fourth message from each of the second devices, wherein the fourth message from each of the second devices is used to indicate whether each of the second devices has successfully authenticated the first device.

19. The method according to any one of claims 1 to 18, wherein: The method further comprises: The first device calculates a third expected response from each of the one or more second devices based on the one or more first shared keys and the one or more fifth random numbers; The first device sends a corresponding fifth message to each of the second devices, where the fifth message corresponding to each of the second devices carries the fifth random number corresponding to the second device; The first device receives a sixth message from each of the second devices, where the sixth message from each of the second devices carries a third response from each of the second devices; When the third response of each second device is the same as the third expected response, the first device determines that the authentication of each second device is successful.

20. The method according to any one of claims 1 to 19, wherein: The method further comprises at least one of the following: The first device receives binding information from a fourth network device, where the binding information includes the one or more second devices with which the first device has a binding relationship; The first device determines the one or more second devices having a binding relationship based on preset binding information; The first device uses the one or more second devices that have passed authentication as the one or more second devices with a binding relationship, and the authentication includes physical layer authentication and / or air interface authentication.

21. The method according to any one of claims 4 to 8 and 16, wherein: The first calculation method includes at least one of the following: a first authentication function, a second authentication function, a third authentication function, a hash algorithm, AES, ACSON, SNOW 3G, ZUC, an XOR algorithm, and a direct connection calculation.

22. The method according to any one of claims 5 to 8 and 16, wherein: The first device includes at least one of the following: a terminal device, a first access network device; the second device is an environment-powered Internet of Things (AIoT) device; the first network device includes one of the following: AUSF, an authentication device, and the authentication device includes one of the following: a second access network device, AMF, SEAF, UPF, a service server, and an AIoT network element.

23. An authentication method, comprising: The core network side device receives a first message from a first device, where the first message carries a first response, and the first response is related to one or more second devices; The core network side device determines that the authentication of the one or more second devices is successful when the first expected response is the same as the first response, wherein the first expected response is related to the one or more first shared keys and the identifiers of the one or more second devices, and different first shared keys in the one or more first shared keys are different second devices and the first device, Core network side equipment is shared.

24. The method according to claim 23, wherein: The method further comprises: The core network side device sends the one or more first shared keys to the first device.

25. The method according to claim 23 or 24, wherein: The method further comprises: The core network side device calculates the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and one or more first random numbers.

26. The method according to claim 25, wherein: The core network side device calculates the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, including one of the following: The core network side device calculates the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using a first calculation method; The core network side device obtains one or more intermediate keys based on the one or more first shared keys, and calculates the first expected response based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; The core network side device calculates one or more second intermediate responses based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, and calculates the first expected response based on the one or more second intermediate responses.

27. The method according to claim 26, wherein: The core network side device calculates the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers in a first calculation manner, including one of the following: The core network side device calculates the first expected response by adopting a first calculation method based on one or more second expected responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, where the one or more second expected responses are obtained based on the one or more second random numbers; The core network side device calculates the first expected response by adopting the first calculation method based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; The core network side device calculates a third intermediate key based on the second shared key, the identifier of the first network device and a third random number, and calculates the first expected response based on the third intermediate key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method.

28. The method according to claim 26, wherein: The core network side device obtains one or more intermediate keys based on the one or more first shared keys, and calculates the first expected response based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method, including one of the following: The core network side device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the first expected response based on one or more second responses, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method, wherein the one or more second expected responses are obtained based on the one or more second random numbers; The core network side device obtains one or more first intermediate keys based on the one or more first shared keys, and uses the first calculation method to calculate the one or more first intermediate keys based on the second shared key, the one or more second device identifiers, the one or more first intermediate keys, The first expected response is calculated using the identifier of the first device and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; The core network side device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and the one or more fourth random numbers; and calculates the first expected response based on the identifiers of the one or more second devices, the one or more second intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method; The core network side device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, obtains one or more first intermediate keys based on one or more first shared keys, and calculates the first expected response based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using a first calculation method.

29. The method according to claim 28, wherein: The core network side device calculates one or more second intermediate responses based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, including one of the following: The core network side device respectively calculates the one or more second intermediate responses based on the one or more second expected responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers by using the first calculation method, wherein the one or more second expected responses are obtained based on the one or more second random numbers; The core network side device respectively adopts the first calculation method to calculate the one or more second intermediate responses based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; The core network side device calculates a third intermediate key based on the second shared key, the identifier of the first network device and the third random number, and respectively calculates the one or more second intermediate responses based on the third intermediate key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; The core network side device obtains one or more first intermediate keys based on the one or more first shared keys, and calculates the one or more second intermediate responses based on one or more second expected responses, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers by using a first calculation method; The core network side device obtains one or more first intermediate keys based on the one or more first shared keys, and respectively calculates the one or more second intermediate responses based on the second shared key, the identifiers of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers by using the first calculation method; The core network side device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers; and calculates the one or more second intermediate responses based on the identifiers of the one or more second devices, the one or more second intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method respectively; The core network side device obtains a third intermediate key based on the second shared key, the identifier of the first network device, and a third random number, obtains one or more first intermediate keys based on one or more first shared keys, and calculates the one or more second intermediate responses based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers, respectively using the first calculation method.

30. The method according to claim 26 or 29, wherein: The calculating the first expected response based on the one or more second intermediate responses comprises one of the following: The core network side device calculates the first expected response based on the one or more second intermediate responses, the identifier of the first network device, and a third random number by using the first calculation method; The core network side device calculates the first expected response based on the one or more second intermediate responses and the identifier of the first network device by using the first calculation method; The core network side device calculates the first expected response based on the one or more second intermediate responses and the third random number using the first calculation method.

31. The method according to claim 23 or 24, wherein: The core network side device includes a first network device; the method further includes: The first network device receives the first expected response from the second network device.

32. The method according to claim 31, wherein: The method further comprises: The first network device receives the one or more first random numbers from the second network device.

33. The method according to any one of claims 23 to 32, wherein: The method further comprises: The core network side device sends a second message to the first device, where the second message carries at least one of the following: an identifier of the one or more second devices, an identifier of a device group, and the device group includes multiple second devices.

34. The method of claim 33, wherein: The second message also carries the one or more first random numbers.

35. The method of claim 34, wherein: Also includes: The core network side device receives an authentication request from the one or more second devices through the first device, and the authentication request of each second device in the one or more second devices carries an identifier of the second device.

36. The method of claim 34, wherein: The second message is used to request authentication, and the core network side device includes a first network device; the method further includes: The first network device receives an authentication request from a third network device, where the authentication request carries at least one of the following: an identifier of the one or more second devices, an identifier of a device group, and the device group includes a plurality of second devices.

37. The method according to any one of claims 23 to 31, wherein: The first message also carries the one or more first random numbers.

38. The method according to any one of claims 33 to 36, wherein: The second message also carries a first message authentication code, and the first message authentication code is used by the first device to authenticate the core network side device; the method also includes: The core network side device calculates the first message authentication code based on the one or more first shared keys.

39. The method of claim 38, wherein: The core network side device calculates the first message authentication code based on the one or more first shared keys, including one of the following: The core network side device calculates one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers, and calculates the first message authentication code based on the one or more second intermediate keys, the one or more identifiers of the second device and the identifier of the first device using the first calculation method; The core network side device calculates one or more intermediate verification codes based on the one or more first shared keys, and calculates the first message authentication code based on the one or more intermediate verification codes and the identifier of the first network device using a first calculation method.

40. The method according to any one of claims 33 to 36, wherein: The second message also carries one or more first message authentication codes; The method further comprises: The core network side device calculates a first message authentication code corresponding to each second device in the one or more second devices based on the one or more first shared keys.

41. The method according to any one of claims 26 to 30 and 39, wherein: The first calculation method includes at least one of the following: a first authentication function, a second authentication function, a third authentication function, a hash algorithm, AES, ACSON, SNOW 3G, ZUC, an XOR algorithm, and a direct connection calculation.

42. The method according to any one of claims 27 to 31, wherein: The first device includes at least one of the following: a terminal device, a first access network device; the second device is an environment-powered Internet of Things (AIoT) device; the first network device includes one of the following: AUSF, an authentication device, and the authentication device includes one of the following: a second access network device, AMF, SEAF, UPF, a service server, and an AIoT network element.

43. A first device, comprising: A first processing unit, configured to calculate a first response based on the identifiers of one or more second devices and one or more first shared keys, where different first shared keys among the one or more first shared keys are shared by different second devices and the first device and a core network side device; The first communication unit is used to send a first message to the core network side device, where the first message carries the first response, and the first response is used by the core network side device to authenticate the one or more second devices.

44. The first device according to claim 43, wherein The first processing unit is configured to calculate the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and one or more first random numbers.

45. The first device according to claim 44, wherein The first communication unit is used to receive the one or more first shared keys from the core network side device.

46. ​​A first device according to claim 44 or 45, wherein The first processing unit is configured to perform one of the following: calculating the first response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using a first calculation method; Obtain one or more intermediate keys based on the one or more first shared keys, and calculate the first response based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; Based on the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, one or more first intermediate responses are calculated, and the first response is calculated based on the one or more first intermediate responses.

47. The first device according to claim 46, wherein The first processing unit is configured to perform one of the following: calculating the first response in a first calculation manner based on one or more second responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the one or more second responses are obtained based on the one or more second random numbers; Calculate the first response by using the first calculation method based on a second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; A third intermediate key is calculated based on the second shared key, the identifier of the first network device and a third random number, and the first response is calculated using the first calculation method based on the third intermediate key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers.

48. The first device according to claim 46, wherein The first processing unit is used to perform one of the following: obtain one or more first intermediate keys based on the one or more first shared keys, and use the first calculation method to calculate the first response based on one or more second responses, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers, wherein the one or more second responses are obtained based on one or more second random numbers; obtain one or more first intermediate keys based on the one or more first shared keys, and use the first calculation method to calculate the first response based on the second shared key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers, wherein the second shared key is the first A device is shared with the core network side device; one or more second intermediate keys are calculated based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers; the first response is calculated based on the identifier of the one or more second devices, the one or more second intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method; a third intermediate key is obtained based on the second shared key, the identifier of the first network device and a third random number, one or more first intermediate keys are obtained based on the one or more first shared keys, and the first response is calculated based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method.

49. The first device according to claim 46, wherein: The first processing unit is configured to perform one of the following: respectively calculating the one or more first intermediate responses based on the one or more second responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifiers of the first device, and the one or more first random numbers using a first calculation method, wherein the one or more second responses are obtained based on the one or more second random numbers; The one or more first intermediate responses are calculated based on the second shared key, the identifier of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method, wherein the second shared key is shared by the first device and the core network side device; a third intermediate key is calculated based on the second shared key, the identifier of the first network device and a third random number, and the one or more first intermediate responses are calculated based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; one or more first intermediate keys are obtained based on the one or more first shared keys, and the one or more first intermediate responses are calculated based on the first calculation method based on the one or more second responses, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; a first intermediate key is obtained based on the one or more first shared keys. or multiple first intermediate keys, and respectively use the first calculation method to calculate the one or more first intermediate responses based on the second shared key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers; calculate one or more second intermediate keys based on the one or more first shared keys, the identification of the first network device and one or more fourth random numbers, and respectively use the first calculation method to calculate the one or more first intermediate responses based on the identification of the one or more second devices, the one or more second intermediate keys, the identification of the first device, and the one or more first random numbers; obtain a third intermediate key based on the second shared key, the identification of the first network device, and a third random number, and obtain one or more first intermediate keys based on the one or more first shared keys, and respectively use the first calculation method to calculate the one or more first intermediate responses based on the third intermediate key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers.

50. The first device according to claim 46 or 49, wherein: The first processing unit is configured to perform one of the following: using the first calculation method to calculate the first response based on the one or more first intermediate responses, the identifier of the first network device, and a third random number; using the first calculation method to calculate the first response based on the one or more first intermediate responses and the identifier of the first network device; The first response is calculated based on the one or more first intermediate responses and the third random number using the first calculation method.

51. The first device according to any one of claims 43 to 50, wherein: The first communication unit is used to receive a second message from the core network side device, and the second message carries at least one of the following: an identifier of the one or more second devices, an identifier of a device group, and the device group includes multiple second devices.

52. The first device according to claim 51, wherein The second message also carries the one or more first random numbers.

53. A first device according to claim 51 or 52, wherein: The first communication unit is used to forward the authentication request from the one or more second devices to the core network side device, and the authentication request of each second device in the one or more second devices carries the identifier of the second device.

54. The first device according to claim 51 or 52, wherein: The second message is used to request authentication.

55. The first device according to any one of claims 43 to 50, wherein: The first communication unit is configured to receive an authentication request from each of the one or more second devices, wherein the authentication request of each second device carries an identifier of the second device.

56. The first device according to claim 51 or 55, wherein: The first message also carries the one or more first random numbers; and the first processing unit is used to generate the one or more first random numbers.

57. The first device according to any one of claims 51 to 55, wherein: The second message also carries a first message authentication code, and the first processing unit is used to calculate the second message authentication code based on the one or more first shared keys, and determine that the authentication of the core network side device is completed when the second message authentication code is the same as the first message authentication code.

58. The first device according to claim 57, wherein The first processing unit is configured to perform one of the following: calculating one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device, and the one or more fourth random numbers, and calculating the second message authentication code based on the one or more second intermediate keys, the one or more identifiers of the second devices, and the identifier of the first device using the first calculation method; One or more intermediate verification codes are calculated based on the one or more first shared keys, and the second message authentication code is calculated based on the one or more intermediate verification codes and the identifier of the first network device using a first calculation method.

59. The first device according to any one of claims 51 to 55, wherein: The second message also carries one or more first message authentication codes; the first processing unit is used to calculate a target second message authentication code based on a first shared key corresponding to a target second device among the one or more second devices, and when the target second message authentication code is the same as the target first message authentication code, the first device determines that authentication of the core network side device is completed, wherein the target first message authentication code is related to the target second device.

60. The first device according to any one of claims 43 to 59, wherein: The first communication unit is configured to send a third message to each of the one or more second devices, wherein the third message is used to instruct each second device to authenticate the first device; the first device receives a pilot signal sent by each second device; sends a corresponding verification code to each second device; and receives a fourth message from each second device, wherein the fourth message of each second device is used to indicate whether each second device successfully authenticates the first device; The first processing unit is configured to calculate a verification code corresponding to each second device based on the pilot signal sent by each second device.

61. The first device according to any one of claims 43 to 60, wherein: The first processing unit is configured to calculate a third expected response of each second device among the one or more second devices based on the one or more first shared keys and the one or more fifth random numbers; and determine that authentication of each second device is successful when the third response of each second device is the same as the third expected response; The first communication unit is used to send a corresponding fifth message to each of the second devices, wherein the fifth message corresponding to each of the second devices carries the fifth random number corresponding to the second device; and receive a sixth message from each of the second devices, wherein the sixth message of each of the second devices carries a third response of each of the second devices.

62. The first device according to any one of claims 43 to 61, wherein: The first communication unit is configured to receive binding information from a fourth network device, wherein the binding information includes the one or more second devices with which the first device has a binding relationship; And / or, the first processing unit is used to perform one of the following: based on preset binding information, determine the one or more second devices with a binding relationship; use the one or more second devices that have passed the authentication as the one or more second devices with a binding relationship, and the authentication includes physical layer authentication and / or air interface authentication.

63. The first device according to any one of claims 46-50 and 58, wherein: The first calculation method includes at least one of the following: a first authentication function, a second authentication function, a third authentication function, a hash algorithm, AES, ACSON, SNOW 3G, ZUC, an XOR algorithm, and a direct connection calculation.

64. The first device according to any one of claims 47-50 and 58, wherein: The first device includes at least one of the following: a terminal device, a first access network device; the second device is an environment-powered Internet of Things (AIoT) device; the first network device includes one of the following: AUSF, an authentication device, and the authentication device includes one of the following: a second access network device, AMF, SEAF, UPF, a service server, and an AIoT network element.

65. A core network side device, comprising: A second communication unit, configured to receive a first message from a first device, wherein the first message carries a first response, and the first response is related to one or more second devices; A second processing unit is used to determine that the authentication of the one or more second devices is successful when the first expected response is the same as the first response, wherein the first expected response is related to one or more first shared keys and the identifiers of the one or more second devices, and different first shared keys among the one or more first shared keys are shared by different second devices and the first device and the core network side device.

66. The core network side device according to claim 65, wherein: The second communication unit is configured to send the one or more first shared keys to the first device.

67. The core network side device according to claim 65 or 66, wherein: The second processing unit is configured to calculate the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and one or more first random numbers.

68. The core network side device according to claim 67, wherein: The second processing unit is configured to perform one of the following: calculating the first expected response based on the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using a first calculation method; Obtain one or more intermediate keys based on the one or more first shared keys, and calculate the first expected response based on the identifiers of the one or more second devices, the one or more intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; Based on the identification of the one or more second devices, the one or more first shared keys, the identification of the first device, and the one or more first random numbers, one or more second intermediate responses are calculated, and the first expected response is calculated based on the one or more second intermediate responses.

69. The core network side device according to claim 68, wherein: The second processing unit is configured to perform one of the following: calculating the first expected response in a first calculation manner based on one or more second expected responses, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the one or more second expected responses are obtained based on the one or more second random numbers; Calculate the first expected response by using the first calculation method based on the second shared key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers, wherein the second shared key is shared by the first device and the core network side device; A third intermediate key is calculated based on the second shared key, the identifier of the first network device and a third random number, and the first expected response is calculated based on the third intermediate key, the identifiers of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method.

70. The core network side device according to claim 68, wherein: The second processing unit is used to perform one of the following: obtain one or more first intermediate keys based on the one or more first shared keys, and use the first calculation method to calculate the first expected response based on one or more second responses, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers, wherein the one or more second expected responses are obtained based on one or more second random numbers; obtain one or more first intermediate keys based on the one or more first shared keys, and use the first calculation method to calculate the first expected response based on the second shared key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers, wherein the second shared key is the The first device is shared with the core network side device; one or more second intermediate keys are calculated based on the one or more first shared keys, the identifier of the first network device and one or more fourth random numbers; the first expected response is calculated based on the identifier of the one or more second devices, the one or more second intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method; a third intermediate key is obtained based on the second shared key, the identifier of the first network device and a third random number, one or more first intermediate keys are obtained based on the one or more first shared keys, and the first expected response is calculated based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device and the one or more first random numbers using the first calculation method.

71. The core network side device according to claim 70, wherein: The second processing unit is used to perform one of the following: respectively calculating the one or more second intermediate responses based on the one or more second expected responses, the one or more second device identifiers, the one or more first shared keys, the first device identifier, and the one or more first random numbers using the first calculation method, wherein the one or more second expected responses are obtained based on the one or more second random numbers; The one or more second intermediate responses are calculated based on the second shared key, the identifier of the one or more second devices, the one or more first shared keys, the identifier of the first device, and the one or more first random numbers using the first calculation method, wherein the second shared key is shared by the first device and the core network side device; a third intermediate key is calculated based on the second shared key, the identifier of the first network device and a third random number, and the one or more second intermediate responses are calculated based on the third intermediate key, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; one or more first intermediate keys are obtained based on the one or more first shared keys, and the one or more second expected responses, the identifier of the one or more second devices, the one or more first intermediate keys, the identifier of the first device, and the one or more first random numbers using the first calculation method; one or more second intermediate responses are obtained based on the one or more first shared keys. one or more first intermediate keys, and respectively use the first calculation method to calculate the one or more second intermediate responses based on the second shared key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers; calculate the one or more second intermediate keys based on the one or more first shared keys, the identification of the first network device and one or more fourth random numbers; respectively use the first calculation method to calculate the one or more second intermediate responses based on the identification of the one or more second devices, the one or more second intermediate keys, the identification of the first device, and the one or more first random numbers; obtain the third intermediate key based on the second shared key, the identification of the first network device, and the third random number, and obtain the one or more first intermediate keys based on the one or more first shared keys; and respectively use the first calculation method to calculate the one or more second intermediate responses based on the third intermediate key, the identification of the one or more second devices, the one or more first intermediate keys, the identification of the first device, and the one or more first random numbers.

72. The core network side device according to claim 68 or 71, wherein: The second processing unit is used to perform one of the following: using the first calculation method to calculate the first expected response based on the one or more second intermediate responses, the identifier of the first network device, and a third random number; using the first calculation method to calculate the first expected response based on the one or more second intermediate responses and the identifier of the first network device; using the first calculation method to calculate the first expected response based on the one or more second intermediate responses and the third random number.

73. The core network side device according to claim 65 or 66, wherein: The core network side device includes a first network device, and the first network device includes the second communication unit; the second communication unit is used to receive the first expected response from the second network device.

74. The core network side device according to claim 73, wherein: The second communication unit is used to receive the one or more first random numbers from the second network device.

75. The core network side device according to any one of claims 65 to 74, wherein: The second communication unit is used to send a second message to the first device, where the second message carries at least one of the following: an identifier of the one or more second devices, an identifier of a device group, and the device group includes multiple second devices.

76. The core network side device according to claim 75, wherein: The second message also carries the one or more first random numbers.

77. The core network side device according to claim 76, wherein: The second communication unit is configured to receive an authentication request from the one or more second devices through the first device, wherein the authentication request of each second device in the one or more second devices carries an identifier of the second device.

78. The core network side device according to claim 76, wherein: The core network side device includes a first network device, and the first network device includes the second communication unit; the second message is used to request authentication, and the second communication unit is used to receive an authentication request from a third network device, and the authentication request carries at least one of the following: an identifier of the one or more second devices, an identifier of a device group, and the device group includes multiple second devices.

79. The core network side device according to any one of claims 65 to 73, wherein: The first message also carries the one or more first random numbers.

80. The core network side device according to any one of claims 75 to 78, wherein: The second message also carries a first message authentication code, which is used by the first device to authenticate the core network side device; the second processing unit is used to calculate the first message authentication code based on the one or more first shared keys.

81. The core network side device according to claim 80, wherein: The second processing unit is configured to perform one of the following: calculating one or more second intermediate keys based on the one or more first shared keys, the identifier of the first network device, and the one or more fourth random numbers, and calculating the first message authentication code based on the one or more second intermediate keys, the one or more identifiers of the second devices, and the identifier of the first device using the first calculation method; One or more intermediate verification codes are calculated based on the one or more first shared keys, and the first message authentication code is calculated based on the one or more intermediate verification codes and the identifier of the first network device using a first calculation method.

82. The core network side device according to any one of claims 75 to 78, wherein: The second message also carries one or more first message authentication codes; the second processing unit is used to calculate the first message authentication code corresponding to each second device in the one or more second devices based on the one or more first shared keys.

83. The core network side device according to any one of claims 68 to 72 and 81, wherein: The first calculation method includes at least one of the following: a first authentication function, a second authentication function, a third authentication function, a hash algorithm, AES, ACSON, SNOW 3G, ZUC, an XOR algorithm, and a direct connection calculation.

84. The core network side device according to any one of claims 69 to 72, wherein: The first device includes at least one of the following: a terminal device, a first access network device; the second device is an environment-powered Internet of Things (AIoT) device; the first network device includes one of the following: AUSF, an authentication device, and the authentication device includes one of the following: a second access network device, AMF, SEAF, UPF, a service server, and an AIoT network element.

85. A first device, comprising: A transceiver, a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, so that the first device executes the method as claimed in any one of claims 1 to 22.

86. A core network side device, comprising: A transceiver, a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory so that the core network side device executes the method as described in any one of claims 23 to 42.

87. A chip, comprising: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 22 or claims 23 to 42.

88. A computer-readable storage medium for storing a computer program, which, when executed by a device, causes the device to perform the method according to any one of claims 1 to 22 or claims 23 to 42.

89. A computer program product comprising computer program instructions, the computer program instructions causing a computer to perform the method of any one of claims 1 to 22 or claims 23 to 42.

90. A computer program causing a computer to perform the method of any one of claims 1 to 22 or claims 23 to 42.

Citation Information

Patent Citations

  • Communication method and device

    CN103152733A

  • Enhanced aggregated re-authentication for wireless devices

    CN109691156A

  • Grouping authentication method for narrowband Internet of Things

    CN110012467A

  • Security management method and device between user and multiple terminals, and equipment

    CN114051242A

  • IoT edge device authentication method and system

    CN115776398A