Security implementation method and device, terminal equipment and network element

CN118696525APending Publication Date: 2024-09-24GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280091753.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing integrated synaesthesia technology, it is difficult to guarantee the security of sensory data. Especially during the transmission process of sensory data, the problem of how to prevent data leakage and theft has not been effectively solved.

Method used

By introducing an authorization certificate mechanism between the terminal device and the network side, after receiving the request information from the network side, the terminal device verifies the validity of the authorization certificate before transmitting sensing data. Conversely, the network side also verifies the authorization of the terminal device. Credentials to ensure the security of data transmission.

Benefits of technology

It effectively changes the authorization direction from the network side to the terminal side to the terminal side, improves the transmission security of sensing data, prevents data leakage and theft, and enhances the security of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696525A
    Figure CN118696525A
Patent Text Reader

Abstract

The embodiment of the invention provides a security implementation method and device, terminal equipment and a network element. The method comprises the steps that the terminal equipment receives first request information; the first request information is used for requesting the terminal equipment to authorize so as to transmit sensing data; the first request information comprises an authorization certificate of a first network element; and under the condition that the terminal device verifies the authorization certificate successfully, the terminal device authorizes to send the sensing data.
Need to check novelty before this filing date? Find Prior Art

Description

A security implementation method and device, terminal equipment, network element Technical Field

[0001] The embodiments of the present application relate to the field of mobile communication technology, and specifically to a security implementation method and apparatus, terminal equipment, and network element. Background Art

[0002] With the continuous advancement of communication technology, integrated synaesthesia technology, which enables the perception, interconnection, and intelligence of everything, has become a focus of industry attention. Synaesthesia technology refers to the integration of communication and perception. Communication refers to the transmission of information between two or more points, while perception refers to the detection of physical environmental information, such as speed measurement and target location. Synaesthesia technology can enable future communication systems to simultaneously integrate communication and perception. While transmitting information over wireless channels, it can actively learn and analyze channel characteristics to perceive the physical characteristics of the surrounding environment, enhancing both communication and perception capabilities. For example, communication systems can utilize sensory devices such as user devices, wearable devices, and base stations to sense physical environmental information and digitize this information to generate sensory data (such as location, temperature, speed, heart rate, blood pressure, etc.). Based on the sensory data transmitted by these sensory devices, sensory servers can then provide services such as positioning services, speed measurement services, and health call services.

[0003] However, perception data is usually personal data or sensitive data, and there is currently no clear solution to ensure that perception data is not leaked or stolen.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a security implementation method and apparatus, terminal equipment, and network element.

[0006] In a first aspect, an embodiment of the present application provides a security implementation method, including:

[0007] The terminal device receives a first request message; the first request message is used to request the terminal device to authorize the transmission of the sensing data; the first request message includes an authorization certificate of the first network element;

[0008] In a case where the terminal device successfully verifies the authorization credential, the terminal device authorizes the sending of the perception data.

[0009] In a second aspect, an embodiment of the present application provides a security implementation method, including:

[0010] The first network element sends a first request message; the first request message is used to request authorization from the terminal device to transmit perception data; the first request message includes an authorization certificate of the first network element; the authorization certificate is used by the terminal device to perform authorization verification on the first network element.

[0011] In a third aspect, an embodiment of the present application provides a security implementation method, including:

[0012] The second network element receives a first request message sent by the first network element; the first request message is used to request authorization of the terminal device to transmit the sensing data; the first request message includes an authorization certificate of the first network element;

[0013] The second network element sends the first request information to the terminal device.

[0014] In a fourth aspect, an embodiment of the present application provides a security implementation apparatus, applied to a terminal device, comprising:

[0015] A first receiving unit is configured to receive a first request message, wherein the first request message is used to request authorization of the terminal device to transmit the sensing data, and the first request message includes an authorization certificate of the first network element;

[0016] The first authorization unit is configured to authorize the sending of the perception data if the authorization credential is verified successfully.

[0017] In a fifth aspect, an embodiment of the present application provides a security implementation device, applied to a first network element, including:

[0018] The second sending unit is configured to send a first request message; the first request message is used to request authorization from the terminal device to transmit perception data; the first request message includes the authorization certificate of the first network element; the authorization certificate is used by the terminal device to perform authorization verification on the first network element.

[0019] In a sixth aspect, an embodiment of the present application provides a security implementation device, applied to a second network element, including:

[0020] a third receiving unit configured to receive a first request message sent by the first network element; the first request message is used to request authorization of the terminal device to transmit the sensing data; the first request message includes an authorization certificate of the first network element;

[0021] The third sending unit is configured to send the first request information to the terminal device.

[0022] In a seventh aspect, an embodiment of the present application provides a terminal device comprising a processor and a memory, wherein 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 to execute the security implementation method described in the first aspect.

[0023] In an eighth aspect, an embodiment of the present application provides a first network element, comprising 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 to execute the security implementation method described in the second aspect.

[0024] In a ninth aspect, an embodiment of the present application provides a second network element, comprising a processor and a memory. The memory is used to store a computer program, and the processor is used to call and execute the computer program stored in the memory to execute the security implementation method described in the third aspect. The chip provided in the embodiment of the present application is used to implement the above-mentioned method for determining transmit power.

[0025] In a tenth aspect, the chip provided in the embodiments of the present application is used to implement the above-mentioned security implementation method;

[0026] The chip includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes the above-mentioned security implementation method.

[0027] In the eleventh aspect, the computer-readable storage medium provided in the embodiment of the present application is used to store a computer program, which enables the computer to execute the above-mentioned security implementation method.

[0028] In a twelfth aspect, the computer program product provided in an embodiment of the present application includes computer program instructions, which enable a computer to execute the above-mentioned security implementation method.

[0029] In the thirteenth aspect, the computer program provided in the embodiment of the present application, when running on a computer, enables the computer to execute the above-mentioned security implementation method.

[0030] In the security implementation method provided by the embodiment of the present application, the first network element on the network side can send a first request message to request the terminal device to authorize the transmission of perception data. Correspondingly, after receiving the first request message, the terminal device can verify the authorization certificate carried in the first request message, and authorize the transmission of the perception data if the verification is successful. In this way, the network element on the network side can request the terminal device to authorize the transmission of perception data, and the terminal device can verify the network element on the network side. In other words, the authorization direction is changed from the network side authorizing the terminal side in the related technology to the terminal side authorizing the network side, thereby ensuring that the perception data is not leaked or stolen, and improving the security of perception data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0032] FIG1 is a schematic diagram of a network architecture of an exemplary communication system provided in an embodiment of the present application;

[0033] FIG2 is a flowchart of a security implementation method provided in an embodiment of the present application;

[0034] FIG3 is a second flow chart of a security implementation method provided in an embodiment of the present application;

[0035] FIG4 is a third flow chart of a security implementation method provided in an embodiment of the present application;

[0036] FIG5 is a fourth flow chart of a security implementation method provided in an embodiment of the present application;

[0037] FIG6 is a fifth flow chart of a security implementation method provided in an embodiment of the present application;

[0038] FIG7 is a schematic diagram of the structure of a security implementation device 700 provided in an embodiment of the present application;

[0039] FIG8 is a schematic diagram of the structure of a security implementation device 800 provided in an embodiment of the present application;

[0040] FIG9 is a schematic diagram of the structure of a security implementation device 900 provided in an embodiment of the present application;

[0041] FIG10 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0042] FIG11 is a schematic structural diagram of a chip according to an embodiment of the present application;

[0043] FIG12 is a schematic block diagram of a communication system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0045] For ease of understanding, we first introduce the network architecture to which the security implementation method provided in the embodiments of this application may be applied, in conjunction with the relevant drawings. Figure 1 is a schematic diagram of the network architecture of the communication system provided in the embodiments of this application. As shown in Figure 1, the communication system 100 may include a terminal device, an access network device, a core network, and a third-party application network. The terminal device accesses the core network through the access network device. Multi-service transmission is supported between the terminal device and the network device.

[0046] It should be understood that the embodiments of the present application are only illustrative of the communication system 100, but the embodiments of the present application are not limited thereto. That is, the technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Long Term Evolution (LTE) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Internet of Things (IoT) system, Narrow Band Internet of Things (NB-IoT) system, enhanced Machine-Type Communications (eMTC) system, fifth-generation communication system (i.e., 5G communication system, also known as New Radio (NR) communication system), sixth-generation communication system (6G), or future communication systems.

[0047] In the communication system 100 shown in FIG1 , the access network equipment can provide communication coverage for a specific geographical area and can communicate with terminal devices located in the coverage area.

[0048] The access network device can be an evolved base station (eNB or eNodeB) in a Long Term Evolution (LTE) system, or a base station (gNB) in an NR system, or a 6G base station, or a Next Generation Radio Access Network (NG RAN) device, or a wireless controller in a Cloud Radio Access Network (CRAN), or the network device 120 can be a relay station, an access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, or a network device in a future evolved Public Land Mobile Network (PLMN), etc.

[0049] The terminal device may be any terminal device, including but not limited to a terminal device connected to a network device or other terminal device by wire or wireless connection.

[0050] For example, the terminal device may refer to an access terminal, user equipment (UE), a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user apparatus. The access terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, an IoT device, a satellite handheld terminal, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a drone, an unmanned vehicle, a robot, a terminal device in a 5G network, a terminal device in a 6G network, or a terminal device in a future evolution network, etc.

[0051] The terminal device can also be used for device-to-device (D2D) communication.

[0052] The core network can serve as a bearer network, providing an interface to external third-party application networks, providing communication connections, authentication, management, policy control, and data service bearer services for terminal devices. The core network can be a 5G core network (5G Core, 5GC) or an LTE packet core evolution network (Evolved Packet Core, EPC), which is not limited in this embodiment of the present application.

[0053] As shown in FIG1 , the core network may include the following network elements: an access and mobility management function (AMF), an authentication server function (AUSF), an application function (AF), a network exposure function (NEF), a perception control element, and a perception collection element. The core network 130 may also include other network elements not shown in FIG1 , such as a user plane function (UPF), a session management function (SMF), a unified data manager (UDM), a network application function (NAF), and the like.

[0054] Among them, AMF is a control plane network element provided by the operator, which is responsible for access control and mobility management of terminal devices accessing the operator's network. AMF serves as the termination point of non-access layer signaling and processes network signaling. AUSF is also a control plane network element provided by the operator, which is used for terminal device authentication. AF is used to store business security requirements and provide information for policy decisions. NEF is used to expose functions and events to other systems, which not only provides openness but also ensures the security of the system. The perception control network element can be a control plane network element provided by the operator, which mainly manages and controls perception services. The perception collection entity can be a user plane network element, which is used to collect perception data sent by different devices and manage the perception data.

[0055] It should be noted that the solid arrows in FIG1 represent the transmission direction of the control message, and the dotted arrows represent the transmission direction of the IP routing data.

[0056] It should be understood that during network evolution, the network elements in the core network may be called other names, or new network entities may be formed by dividing the functions of the core network, and this is not limited in the embodiments of the present application. The above-mentioned network elements can be deployed separately, or two or more network elements can be integrated and deployed in one entity. For example, the perception control network element and the perception collection entity can be deployed in one entity, or the perception control network element and the perception collection entity can be deployed in different entities respectively, and this is not limited in the embodiments of the present application.

[0057] It should be noted that Figure 1 is merely an example of a system applicable to this application. Of course, the methods described in the embodiments of this application can also be applied to other systems. Furthermore, the terms "system" and "network" are often used interchangeably herein. The term "and / or" herein simply describes an association relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the associated objects are in an "or" relationship. It should also be understood that the term "indication" 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" can mean that A directly indicates B, for example, B can obtain information through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can obtain information through C; or it can mean that A and B have an association relationship. It should also be understood that the term "corresponding" in the embodiments of this application can mean that two objects have a direct or indirect correspondence relationship, an association relationship, or a relationship between an indicator and the indicated, a configuration and the configured, and so on. It should also be understood that the “predefined” or “predefined rules” mentioned in the embodiments of the present application can be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in devices (for example, including terminal devices and network devices), and the present application does not limit its specific implementation method. For example, predefined can refer to what is defined in the protocol. It should also be understood that in the embodiments of the present application, the “protocol” may refer to a standard protocol in the field of communications, such as LTE protocols, NR protocols, and related protocols used in future communication systems, and the present application does not limit this.

[0058] 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.

[0059] Synaesthesia integration: refers to a new information processing technology that realizes the coordination of perception and communication functions based on software and hardware resource sharing or information sharing, which can effectively improve the system spectrum efficiency, hardware efficiency and information processing efficiency.

[0060] The simultaneous capability of communication and perception will be the future trend for base stations and terminal devices in communication systems. Future terminal devices will be upgraded to intelligent agents, with the capabilities of unmanned vehicles, drones, robots, and other intelligent device systems continuously increasing. At close range, intelligent agents will need to recognize human posture, movement, and expression to enhance human-machine interface performance. They will also need to identify the motion states of multiple agents to improve their collaborative performance. At microscopic distances, it will be necessary to identify the attributes of objects within the human body, products, and objects, enabling remote, AI-powered, and unmanned health, quality, and security inspection services.

[0061] Due to differences in system functions and specifications, communication and perception systems have significant differences in bandwidth, power output capability, receiving detection sensitivity, system dynamic range, duplex capability and performance, as well as RF channel frequency deviation, phase noise, nonlinearity and other indicators. Therefore, traditional hardware architectures design hardware separately according to communication and perception requirements. However, integrated telepathy technology hopes that the architecture and hardware system can simultaneously realize perception and communication functions. Therefore, the system must balance communication and perception requirements from the beginning of design, and add new requirements such as shared spectrum resources, high dynamic range, full-duplex and self-interference cancellation, and high channel performance. In addition, it must also take into account the goals of low implementation complexity, low power consumption, and high integration. For example, the communication and perception of integrated telepathy terminal devices share newly added spectrum resources.

[0062] At present, the authorization mechanism in 5G security technology usually refers to the service network granting access authorization to the terminal device, allowing the terminal device to use the network resources, and the home network authorizing the service network to serve the terminal device. Specifically, during the terminal device registration process, 5GC performs identity authentication and access authorization based on the subscription profile in the UDM. It can be understood that the service network should authorize the terminal device through the subscription profile of the terminal device obtained from the home network. Among them, the authorization of the terminal device is based on the authenticated user permanent identifier (SUPI). It can be understood that the current security technology can better meet the access authentication problem of terminal devices in 5G security technology, and defines some key generation functions and processes.

[0063] In future communication technologies, the integrated interawareness scenarios will require that the sensory data obtained by the terminal be protected from leakage and theft. However, current security technologies only authorize network resources, and the network authorizes the terminal. They do not meet the requirements for authorizing sensory data, and the requirement for the terminal or access side to authorize the network.

[0064] To improve network security, an embodiment of the present application provides a security implementation method, as shown in FIG2 , which includes but is not limited to the following steps:

[0065] Step 210: The first network element sends a first request message, where the first request message is used to request authorization from the terminal device to transmit the sensing data. The first request message includes the authorization certificate of the first network element.

[0066] Step 220: The terminal device receives the first request information.

[0067] Step 230: When the terminal device successfully verifies the authorization credential, the terminal device authorizes the sending of the perception data.

[0068] In the embodiment of the present application, the first network element may be a control plane network element provided by an operator, which may be responsible for the management and control of the perception service. The first network element may also manage the perception server to ensure the execution of the perception service. Optionally, the first network element may be the perception control network element shown in FIG1 . The perception control network element may be a functional entity independent of other network elements, or may be a network element in related technologies. For example, the perception control network element may be an AF or a Network Application Function (NAF).

[0069] Among them, the perception server can be a third-party application server that provides perception services (such as positioning, speed measurement, and health call services). The perception server can also be understood as a usage node of perception data.

[0070] In addition, in the embodiments of the present application, the terminal device may be a device that supports synaesthesia integration technology, and the terminal device may obtain sensory data by detecting physical environment information. The sensory data may be location data, temperature data, speed, human heart rate, blood pressure, etc., which is not limited in the embodiments of the present application. The terminal device in the embodiments of the present application can be understood as a provider of sensory data.

[0071] In practical applications, a perception server can request perception data to provide corresponding services. However, since perception data is personal or sensitive data, the perception data provider needs to verify the requester's identity to ensure the legitimacy of the requester and prevent the perception data from being leaked or stolen by attackers.

[0072] Specifically, the perception server may send a perception service request to the first network element to request the terminal device to authorize the transmission of perception data to it. After receiving the perception service request, the first network element may send a first request message to the relevant terminal device to request the terminal device to authorize the perception data so as to transmit the perception data.

[0073] Optionally, the first request information may be sent directly by the first network element to the terminal device. It is understandable that the first network element may send the first request information to the terminal device through a communication interface between the first network element and the terminal device.

[0074] Optionally, the first request information may be forwarded by the first network element to the terminal device through its trusted second network element. It is understandable that the first network element may first send the first request information to the second network element, and then the second network element forwards the received first request information to the terminal device. The second network element is a control plane network element different from the first network element. Exemplarily, the second network element may be an AMF or an AUSF. This embodiment of the application does not limit the second network element.

[0075] It should be noted that the first network element can provide control and management of the perception data between the perception server and the terminal device, and the first network element can perform authentication management on the perception server in advance. In other words, the communication between the first network element and the perception server is trusted. However, because the transmission between the terminal device and the first network element is vulnerable to tampering or theft by attackers, the first network element can include its authorization credentials in the first request information, so that the terminal device can verify the identity of the first network element.

[0076] In an embodiment of the present application, when a terminal device receives a first request message, it can verify whether the first request message comes from the first network element based on the authorization credential carried in the first request message, and verify whether the perception service type requested by the first request message is authorized. If the verification of the authorization credential fails, it is considered that the first request message does not come from the first network element or the terminal device does not support the perception service type requested by the first request message, and the corresponding terminal device can ignore the first request message. If the verification of the authorization credential passes, it is considered that the first request message comes from a trusted first network element, and the terminal device supports the perception service type requested by the first request message, and the corresponding terminal device can respond to the first request message and authorize the transmission of perception data.

[0077] Optionally, after the terminal device authorizes the transmission of the perception data, the terminal device can send the acquired perception data to a third network element, which transmits the perception data to the perception server via the third network element. Optionally, the third network element can be the perception collection entity shown in Figure 1, or other network elements, which are not limited in this embodiment of the present application.

[0078] In summary, in the security implementation method provided by the embodiment of the present application, the first network element located on the network side can send a first request message to request the terminal device to authorize the transmission of perception data to the outside. Correspondingly, after receiving the first request message, the terminal device can verify the authorization certificate carried in the first request message, and authorize the sending of perception data if the verification is successful. In this way, the network element on the network side can request the terminal device for authorized transmission of perception data, and the terminal device can verify the network element on the network side. In other words, the authorization direction is changed from the network side authorizing the terminal side in the related technology to the terminal side authorizing the network side, thereby ensuring that the perception data is not leaked or stolen.

[0079] The following details the process of generating and verifying authorization credentials.

[0080] Optionally, as shown in FIG3 , in an embodiment of the present application, before the first network element sends the first request information in step 210, the first network element may further perform the following steps:

[0081] Step 200: The first network element generates an authorization certificate based on the sensing service type and the sensing service key.

[0082] The perception service type may be a type of perception service that the perception server can provide. For example, the perception service type may be positioning, speed measurement, etc., which is not limited in the embodiment of the present application.

[0083] In addition, the perception service key may be a key dedicated to the perception service. The perception service key in step 200 may be obtained by the first network element before step 200.

[0084] In the embodiment of the present application, the perception service key in step 200 may be generated by the first network element itself, or may be obtained by the first network element from other control plane network elements (such as the second network element) that it trusts, and the embodiment of the present application does not impose any restrictions on this. Exemplarily, the perception service key in step 200 may be generated by the first network element based on the key shared between the first network element and the terminal device. Alternatively, the perception service key in step 200 may be generated by the second network element and fed back to the first network element after the first network element sends a key request to the second network element that it trusts.

[0085] Optionally, the first network element may specifically use the message authentication function f1 or f2 to perform operations on the sensing service type and the sensing service key to generate an authorization certificate. Exemplarily, the first network element may use the following formula (1) to generate the authorization certificate.

[0086] Token_Service Type=f 2Ka_ST (Service Type) (1)

[0087] Among them, Token_Service Type is the authorization certificate, f2 is the message authentication function, and Ka_ST is the perception service key.

[0088] Optionally, in addition to the above-mentioned perception service type and perception service key, the first network element may also add other parameters to generate the above-mentioned authorization certificate, such as the first network element identifier, terminal device identifier, random number, count value (including key counter value, message counter value), etc. The embodiment of the present application does not impose any restrictions on this.

[0089] Exemplarily, the first network element may also generate the authorization credential Token_Service Type using any one of the following formulas (1-1) to (1-5).

[0090] Token_Service Type=f 2Ka_ST (Service Type︱︳ID); (1-1)

[0091] Token_Service Type=f 2Ka_ST (Service Type︱︳ID︱︳NONCE); (1-2)

[0092] Token_Service Type=f 2Ka_ST (Service Type︱︳ID︱︳COUNT); (1-3)

[0093] Token_Service Type=f 2Ka_ST (Service Type︱︳NONCE); (1-4)

[0094] Token_Service Type=f 2Ka_ST (Service Type︱︳COUNT); (1-5)

[0095] Among them, ID can be the first network element identifier and / or the terminal device identifier, NONCE is a random number, and COUNT can be a count value, that is, a key counter value and / or a message counter value.

[0096] It should be understood that after the first network element generates the authorization credential, it can send the authorization credential along with the first request information.

[0097] Optionally, if the first network element sends the first request information directly to the terminal device, the first network element can use the perception service key Ka_ST to perform integrity protection and / or encryption on the first request information to prevent attackers from tampering with or obtaining the information content.

[0098] Optionally, if the first network element forwards the first request information to the terminal device through the second network element, since the first network element and the second network element are both control plane network elements provided by the operator, the data transmission between the first network element and the second network element can be securely protected and will not be tampered with or obtained by attackers. Therefore, the transmission between the first network element and the second network element can use the perception service key Ka_ST to perform integrity protection and / or encryption on the first request information.

[0099] Optionally, the first network element may carry the sensing service type in the first request information and send it together.

[0100] Correspondingly, as shown in FIG3 , the security implementation method provided in the embodiment of the present application may further perform the following steps 240 and 250 before step 230 .

[0101] Step 240: The terminal device generates verification information based on the perceived service key and the perceived service type.

[0102] Step 250: If the verification information is consistent with the authorization credential, the terminal device determines that the authorization credential verification is successful.

[0103] In the embodiment of the present application, after receiving the first request information, the terminal device can obtain the perception service type carried in the first request information. Then, the terminal device generates the verification information based on the obtained perception service type and the pre-generated perception service key.

[0104] Optionally, in addition to the above-mentioned perception service type and perception service key, the terminal device can also add other parameters to generate the verification information, such as the first network element identifier, the terminal device identifier, the random number NONCE, the count value (including the key counter value, the message counter value), etc. The embodiment of the present application does not limit this.

[0105] The perception service key in step 240 may be generated by the terminal device before step 240. Exemplarily, the perception service key in step 240 may be generated in advance by the terminal device based on a key shared between the terminal device and the first network element.

[0106] Optionally, the terminal device generates verification information based on the perception service key and the perception service type in the same manner as the first network element generates the authorization certificate. That is, the terminal device can use the message authentication function f1 or f2 to operate on the perception service type and the perception service key to generate verification information. Exemplarily, the terminal device can use the above formula (1), or any one of formulas (1-1) to (1-5) to generate verification information.

[0107] Furthermore, after the terminal device generates the verification information, it can compare the authorization credential in the first request information with the verification information it generated to see if they are consistent. If they are consistent, the terminal device can determine that the authorization credential has been verified. If they are inconsistent, the terminal device determines that the authorization credential has not been verified and does not respond to the first request information.

[0108] Optionally, after receiving the first request information, the terminal device may first determine whether it supports the perception service type carried in the first request information. If the terminal device supports the perception service type included in the first request information, the terminal device may perform the verification process of the authorization credential in steps 240 and 250; otherwise, the terminal device may ignore the first request information.

[0109] Optionally, if the terminal device successfully verifies the authorization credentials in the first request information, the terminal device may authorize the third network element to send perception data matching the perception service type carried in the first request information. In this way, after obtaining the perception data matching the perception service type, the terminal device may transmit the obtained perception data to the third network element.

[0110] It should be understood that different perception data corresponds to different perception services. After receiving the perception data, the third network element can upload the perception data to the corresponding perception server.

[0111] It should be noted that the first network element and the third network element can be two different entities, and the first network element can also be co-located with the third network element, which is not limited in the embodiment of the present application.

[0112] Optionally, the terminal device may perform integrity protection and / or encryption on the perception data using the perception service key, and then transmit the data to the third network element.

[0113] Optionally, if the first network element and the third network element are two different entities, the first network element may send the perception service key to the third network element in advance, so that the third network element can decrypt the received perception data.

[0114] Optionally, if the third network element is a UPF, the terminal device may not use the perception service key, but may use existing methods to perform integrity protection and / or encryption on the perception data, thereby achieving security protection. This embodiment of the present application does not impose any restrictions on this.

[0115] In one embodiment of the present application, the perception service key can be generated by a first key, which can be a key shared between the terminal device and the first network element. For example, the first key can be any one of the following keys: NAF key Ks_NAF, AF key K AF 、AMF secret key K AMF , and SEAF key K SEAF The embodiment of the present application does not limit the type of the first key.

[0116] It is understood that the first key is a key shared between the first network element and the terminal device, and may be held only by the first network element and the terminal device. A third-party attacker cannot obtain the first key. Furthermore, a third-party attacker cannot generate a perception service key based on the first key. In this way, the confidentiality and security of the perception service key are guaranteed.

[0117] In the embodiment of the present application, there are multiple ways for the first network element and the terminal device to respectively determine the perception service key Ka_ST, three of which are described in detail below.

[0118] Method 1:

[0119] Optionally, if Generic Bootstrapping Architecture (GBA) is used for security management, the first network element may be a NAF in the GBA architecture, and the second network element may be an AMF or an AUSF. Correspondingly, the first key may be a NAF key Ks_NAF.

[0120] In this GBA scenario, the first network element and the terminal device can generate a perception service key Ka_ST based on the key Ks_NAF, the perception service type, and the first network parameter, where the first network parameter can include: a random number NONCE and / or a count value COUNT.

[0121] Specifically, the first network element may use the following formula (2) to obtain the perception service key Ka_ST.

[0122] Ka_ST=KDF(Ks_NAF,S) (2)

[0123] KDF is a key derivation function, and S may include a P0 parameter and a P1 parameter. The P0 parameter is the perception service type, and the P1 parameter may be a random number NONCE and / or a count value COUNT.

[0124] Specifically, referring to the flowchart shown in FIG4 , in a GBA scenario, the security implementation method provided in the embodiment of the present application can be implemented through the following steps.

[0125] Step 400: The terminal device and the first network element (NAF) authenticate and share a secret key Ks_NAF according to the GBA process.

[0126] It should be understood that the terminal device can perform bidirectional authentication with the NAF according to the GBA process and negotiate to obtain the key Ks_NAF. The specific details of the authentication between the terminal device and the NAF can be referred to the GBA process in the related art, and will not be described in detail in this embodiment of the application.

[0127] Step 401: The first network element generates a perception service key Ka_ST based on the key Ks_NAF.

[0128] Specifically, the first network element may deduce the perception service key Ka_ST based on the key Ks_NAF, the perception service type, and the first network parameter. Exemplarily, the first network element may deduce the perception service key Ka_ST using the above formula (2).

[0129] Step 402: The first network element generates an authorization credential Token_Service Type based on the sensing service type and the sensing service key Ka_ST.

[0130] Optionally, the first network element may obtain the authorization credential Token_Service Type by using the above formula (1), or any one of formulas (1-1) to (1-5).

[0131] Step 403: The first network element sends a first request message, and the terminal device receives the first request message.

[0132] The first request information carries the authorization credential Token_Service Type.

[0133] Optionally, the first request information may further carry the sensing service type and a first network parameter, wherein the first network parameter may include a random number NONCE and / or a count value COUNT.

[0134] Optionally, the first network element sends the first request information directly to the terminal device, or the first network element sends the first request information to the terminal device through the second network element (AMF or AUSF).

[0135] Optionally, if the first network element sends the first request information directly to the terminal device, the first network element can use the perception service key Ka_ST to perform integrity protection and / or encryption on the first request information to prevent a third-party attacker from tampering with or stealing the information content.

[0136] It should be understood that since the first network element is a 3GPP network device, the information sent by the first network element to the second network element and the information sent by the second network element to the terminal device are both securely protected. Therefore, the first request information is securely protected and cannot be tampered with or obtained by attackers.

[0137] Optionally, after receiving the first request message, the terminal device may first determine whether it supports the perception service type carried in the first request message. If the terminal device supports the perception service type carried in the first request message, step 404 is continued. If the terminal device does not support the perception service type carried in the first request message, the first request message is ignored and the security implementation process is exited.

[0138] Step 404: The terminal device generates a perception service key Ka_ST based on the key Ks_NAF.

[0139] On the terminal side, the terminal device can generate the perception service key Ka_ST using the same method as in step 401. Specifically, the terminal device can deduce the perception service key Ka_ST using the key Ks_NAF, the perception service type, and the first network parameter. Exemplarily, the terminal device can deduce the perception service key Ka_ST according to formula (2).

[0140] It should be understood that since the key Ks_NAF is held only by the terminal device and the first network element, a third-party attacker cannot obtain Ks_NAF and cannot generate the perception service key Ka_ST, thereby ensuring the confidentiality of the key Ka_ST.

[0141] Optionally, if the first request information is integrity protected and / or encrypted by the perception service key Ka_ST, the terminal device may generate the perception service key Ka_ST based on the key Ks_NAF after receiving the first request information, and use the perception service key Ka_ST to decrypt and integrity check the first request information.

[0142] Step 405: The terminal device generates verification information based on the perceived service key Ka_ST and the perceived service type.

[0143] It should be understood that after generating the perception service key Ka_ST, the terminal device can generate verification information based on the generated perception service key Ka_ST and the perception service type obtained from the first request information.

[0144] The way in which the terminal device generates verification information is the same as the way in which the first network element generates the authorization certificate in step 402, and for the sake of brevity, it will not be repeated here.

[0145] Step 406: If the verification information is consistent with the authorization certificate, the terminal device authorizes the sending of the perception data.

[0146] It should be understood that the terminal device can compare whether the generated verification information is consistent with the received authorization credential Token_Service Type. If they are consistent, the terminal device can confirm that the first request information is sent by the first network element it trusts, and that the terminal device supports the perception service type requested by the first request information, thereby completing the authorization.

[0147] Step 407: The terminal device sends the perception data.

[0148] Here, the terminal device can send the perception data to the third network element (ie, the perception collection entity), so that the third network element can send the perception data of different perception service types to the corresponding perception server.

[0149] Optionally, the terminal device may use the perception service key Ka_ST to perform integrity protection and / or encryption on the perception data.

[0150] Optionally, the third network element may obtain the perception service key Ka_ST from the first network element to facilitate decryption and integrity verification of the perception data sent by the terminal device.

[0151] Optionally, if the terminal device forwards the perception data to the third network element through the UPF, the terminal device can use existing technologies to protect the perception data.

[0152] Method 2:

[0153] Optionally, if the Authentication and Key Management for Applications (AKMA) architecture is used for security management, the first network element may be the AF in the AKMA architecture, and the second network element may be the AMF or AUSF. Correspondingly, the first key may be the AF key K AF .

[0154] In the AKMA scenario, the first network element and the terminal device can respectively AF , the sensing service type, the AKMA key identification information, and the second network parameter to generate the sensing service key Ka_ST. The second network parameter may include a random number NONCE and / or a count value COUNT.

[0155] Specifically, the first network element may refer to the following formula (3) to obtain the perception service key Ka_ST.

[0156] Ka_ST=KDF(K AF ,S) (3)

[0157] KDF is a key derivation function, and S may include P0, P1, and P2 parameters. P0 is the type of service being sensed, P1 may be a random number NONCE and / or a count value COUNT, and P2 may be AKMA key identification information.

[0158] Specifically, referring to the flowchart shown in Figure 5, in the AKMA scenario, the security implementation method provided in the embodiment of the present application can be implemented through the following steps.

[0159] Step 500: The terminal device and the first network element (i.e., AF) authenticate and share the secret key K according to the AKMA process. AF .

[0160] It should be understood that the terminal device and the first network element perform two-way authentication according to the AKMA process and negotiate to obtain the secret key K AF Among them, the specific details of the authentication between the terminal device and the first network element (AF) can refer to the AKMA process in the relevant technology, and this embodiment of the application will not be described in detail.

[0161] Step 501: The first network element uses the secret key K AF , generate the perception service key Ka_ST.

[0162] Specifically, the first network element may be based on the secret key K AF , the perception service type, the AKMA key identification information, and the second network parameter, and derive the perception service key Ka_ST. Exemplarily, the first network element can derive the perception service key Ka_ST according to the above formula (3).

[0163] Step 502: The first network element generates an authorization credential Token_Service Type based on the sensing service type and the sensing service key Ka_ST.

[0164] Optionally, the first network element may obtain the authorization credential Token_Service Type according to formula (1), or any one of formulas (1-1) to (1-5).

[0165] Step 503: The first network element sends a first request message, and the terminal device receives the first request message.

[0166] The first request information carries the authorization credential Token_Service Type.

[0167] Optionally, the first request information may further carry the sensing service type and a second network parameter, wherein the second network parameter includes a random number NONCE and / or a count value COUNT.

[0168] Optionally, the first network element sends the first request information directly to the terminal device, or the first network element sends the first request information to the terminal device through the second network element (ie, AMF or AUSF).

[0169] Optionally, if the first network element sends the first request information directly to the terminal device, the first network element can use the perception service key Ka_ST to perform integrity protection and / or encryption on the first request information to prevent a third-party attacker from tampering with or stealing the information content.

[0170] It should be understood that since the first network element belongs to a 3GPP network device, the information sent by the first network element to the AMF or AUSF, and the information sent by the AMF or AUSF to the terminal device are all security protected. Therefore, the first request information is security protected and will not be tampered with or obtained by attackers.

[0171] Optionally, after receiving the first request message, the terminal device may first determine whether it supports the perception service type carried in the first request message. If the terminal device supports the perception service type carried in the first request message, step 504 is continued. If the terminal device does not support the perception service type carried in the first request message, the first request message is ignored and the security implementation process is exited.

[0172] Step 504: The terminal device uses the secret key K AF , generate the perception service key Ka_ST.

[0173] On the terminal side, the terminal device can use the same method as in step 501 to generate the perception service key Ka_ST. Specifically, the terminal device can use the key K AF , the perception service type, the AKMA key identification information, and the second network parameter, and derive the perception service key Ka_ST. Exemplarily, the terminal device can derive the perception service key Ka_ST according to formula (3).

[0174] It should be understood that since the key K AF Only the terminal device and the first network element hold it, so a third-party attacker cannot obtain K AF , nor can it be based on K AF Generate the perception service key Ka_ST, thereby ensuring the confidentiality of the key Ka_ST.

[0175] Optionally, if the first request information is integrity protected and / or encrypted by the perception service key Ka_ST, the terminal device may, after receiving the first request information, use the key K AF Generate a perception service secret key Ka_ST, and then use the perception service secret key Ka_ST to decrypt and verify the integrity of the first request information.

[0176] Step 505: The terminal device generates verification information based on the perceived service key Ka_ST and the perceived service type.

[0177] It should be understood that after generating the perception service key Ka_ST, the terminal device can generate verification information based on the generated perception service key Ka_ST and the perception service type obtained from the first request information.

[0178] Among them, the way in which the terminal device generates verification information is the same as the way in which the first network element generates the authorization certificate in step 502, and will not be repeated here.

[0179] Step 506: If the verification information is consistent with the authorization certificate, the terminal device authorizes the sending of the perception data.

[0180] It should be understood that the terminal device can compare whether the generated verification information is consistent with the received authorization credential Token_Service Type. If they are consistent, the terminal device can confirm that the first request information is sent by the first network element it trusts, and that the terminal device supports the perception service type requested by the first request information, thereby completing the authorization.

[0181] Step 507: The terminal device sends the perception data.

[0182] Here, the terminal device can send the perception data to the third network element (ie, the perception collection entity), so that the third network element can send the perception data of different perception service types to the corresponding perception server.

[0183] Optionally, the terminal device may use the perception service key Ka_ST to perform integrity protection and / or encryption on the perception data.

[0184] Optionally, the third network element may obtain the perception service key Ka_ST from the first network element to facilitate decryption and integrity verification of the perception data sent by the terminal device.

[0185] Optionally, if the terminal device forwards the perception data to the third network element through the UPF, the terminal device can use existing technologies to protect the perception data.

[0186] Method 3:

[0187] Optionally, if the Authentication and Key Agreement (AKA) architecture or the Extensible Authentication Protocol-Authentication and Key Agreement (EAP-AKA) architecture is adopted, the first network element may be a perception control network element, and the second network element may be an AMF or AUSF. Correspondingly, the first key may be the key K AMF , or, the secret key K SEAF .

[0188] Optionally, the first secret key is the secret key K AMF When the terminal device can be based on the secret key K AMF , the perception service type, and the third network parameter to generate the perception service key Ka_ST. The third network parameter may include a random number NONCE and / or a count value COUNT. Specifically, the terminal device may use the following formula (4) to obtain the perception service key Ka_ST.

[0189] Ka_ST=KDF(K AMF ,S) (4)

[0190] Among them, KDF is a key deduction function, S may include a P0 parameter and a P1 parameter, the P0 parameter is the perception service type, and the P1 parameter may be a random number NONCE and / or a count value COUNT.

[0191] Optionally, the terminal device is based on the secret key K AMF , the sensing service type, and the third network parameter generate the sensing service key Ka_ST, which can also be achieved in the following ways:

[0192] The terminal device first uses the secret key K AMF Generate the first intermediate key K AMF ', and then according to the first intermediate key K AMF ', the sensing service type, and the third network parameter, to generate the sensing service secret key Ka_ST. The terminal device can use the following formula (5) based on the secret key K AMF Generate the first intermediate key K AMF '.

[0193] K AMF =KDF(K AMF ,S) (5)

[0194] Here, S may include P0 parameter and P1 parameter, P0 parameter is AMF identification information, P1 parameter may be random number NONCE and / or count value COUNT. In addition, the terminal device may use the first intermediate key K AMF ', the sensing service type, and the third network parameter, the sensing service key Ka_ST can be generated by referring to formula (4), which will not be repeated here for the sake of brevity.

[0195] Optionally, the first secret key is the secret key K SEAF When the terminal device can be based on the secret key K SEAF , the perception service type, and the third network parameter to generate the perception service key Ka_ST. Specifically, the terminal device can use the following formula (6) to obtain the perception service key Ka_ST.

[0196] Ka_ST=KDF(K SEAF ,S) (6)

[0197] Here, S may include a P0 parameter and a P1 parameter, the P0 parameter is the perception service type, and the P1 parameter may be a random number NONCE and / or a count value COUNT.

[0198] Optionally, the terminal device is based on the secret key K SEAF , the sensing service type, and the third network parameter to generate the sensing service key Ka_ST, which can also be achieved in the following ways:

[0199] The terminal device first uses the secret key K SEAF Generate the second intermediate key K SEAF ', and then according to the second intermediate key K SEAF ', the sensing service type, and the third network parameter, to generate the sensing service secret key Ka_ST. Specifically, the terminal device can use the following formula (7) based on the secret key K SEAF Generate the second intermediate key K SEAF '.

[0200] K SEAF =KDF(K SEAF ,S) (7)

[0201] Here, S may include P0 parameter and P1 parameter, P0 parameter is AMF identification information, P1 parameter may be random number NONCE and / or count value COUNT. In addition, the terminal device may use the first intermediate key K AMF ', the sensing service type, and the third network parameter, the sensing service key Ka_ST can be generated by referring to formula (6), which will not be repeated here for the sake of brevity.

[0202] The above is a process in which a terminal device generates a perception service key Ka_ST in an AKA / EAP-AKA scenario. The following describes a process in which a first network element obtains a perception service key Ka_ST in an AKA / EAP-AKA scenario.

[0203] In the AKA / EAP-AKA scenario, the first network element, as a network element dedicated to processing perception services, may not store the key shared with the terminal device. Based on this, when the first network element receives a perception service request sent by the perception server, it may send a second request message to the second network element (AMF or AUSF) to request the second network element to generate and feedback the perception service key Ka_ST.

[0204] Optionally, the manner in which the second network element generates the perception service key Ka_ST may be consistent with the manner in which the terminal device generates the perception service key Ka_ST in the AKA / EAP-AKA scenario, and is not described again here.

[0205] Specifically, referring to the flowchart shown in FIG6 , in an AKA or EAP-AKA scenario, the security implementation method provided in the embodiment of the present application can be implemented through the following steps.

[0206] Step 600: The terminal device and the second network element (AMF or AUSF) perform authentication according to the AKA or EAP-AKA process and share the secret key K. AMF and secret key K SEAF .

[0207] It should be understood that the terminal device and the second network element perform bidirectional authentication according to the AKA or EAP-AKA process and negotiate to obtain the AKA or EAP-AKA key. The specific details of the authentication between the terminal device and the second network element can be referred to the AKA or EAP-AKA process in the relevant technology, and will not be described in detail in the present embodiment.

[0208] Step 601: The first network element sends a second request message to the second network element, and the second network element sends a second request message to the terminal device, where the second request message is used to request a perception service key.

[0209] It should be understood that the first network element does not store the secret key K AMF and secret key K SEAF Therefore, after receiving the perception service request sent by the perception server, the first network element can send a request to the server storing the secret key K AMF and secret key K SEAF The second network element sends a request for the perception service key.

[0210] Here, after receiving the second request information, the second network element can forward the second request information to the terminal device, so that the terminal device confirms whether it supports the requested perception service, thereby determining whether the second network element is allowed to provide the perception service key to the first network element.

[0211] Optionally, the second request information may carry the perception service type.

[0212] Optionally, after receiving the second request information, the terminal device may first determine whether it supports the perception service type carried in the second request information. If the terminal device supports the perception service type, step 602 is continued. If the terminal device does not support the perception service type, the second request information is ignored.

[0213] Step 602: The terminal device senses the service type and the key K. AMF (or secret key K SEAF ) to generate the perception service key Ka_ST.

[0214] Specifically, when the second network element is AMF, in one possible implementation, the terminal device can be based on the secret key K AMF , the perception service type, and the third network parameter to generate the perception service key Ka_ST. That is, the terminal device can obtain the perception service key Ka_ST according to the above formula (4). In another possible implementation, the terminal device can first generate the perception service key Ka_ST based on the key K AMF Generate the first intermediate key K AMF ', and then according to the first intermediate key K AMF ', the perception service type, and the third network parameter to generate the perception service key Ka_ST. That is, the terminal device can combine the above formula (4) and formula (5) to obtain the perception service key Ka_ST.

[0215] When the second network element is AUSF, in a possible implementation, the terminal device can be based on the secret key K SEAF , the perception service type, and the third network parameter to generate the perception service key Ka_ST. That is, the terminal device can obtain the perception service key Ka_ST according to the above formula (6). In another possible implementation, the terminal device can first generate the perception service key Ka_ST based on the key K SEAF Generate the second intermediate key K SEAF ', and then according to the second intermediate key K SEAF ', the perception service type, and the third network parameter to generate the perception service key Ka_ST. That is, the terminal device can refer to and combine the above formula (6) and formula (7) to obtain the perception service key Ka_ST.

[0216] Optionally, when generating the perception service key Ka_ST, the terminal device may also generate a verification parameter Res_ST, and the verification parameter Res_ST is used by the second network element to verify the perception service type.

[0217] Optionally, the terminal device may generate the verification parameter Res_ST using the message authentication function f1 or f2. Exemplarily, the terminal device may calculate the verification parameter Res_ST according to the following formula (8).

[0218] Res_ST=f 2Ka_ST (Service Type, COUNT_K) (8)

[0219] COUNT_K is the count value corresponding to the perception service key Ka_ST, that is, the key counter value. COUNT_K is determined by the terminal device when generating the perception service key Ka_ST.

[0220] Step 603: The terminal device sends a confirmation message to the second network element; the confirmation message is used to instruct the second network element to send the perception service key to the first network element.

[0221] Optionally, the determination information may include at least one of a verification parameter Res_ST, COUNT_K, and a perception service type.

[0222] Optionally, after receiving the confirmation information, the second network element may generate verification parameter verification information. Specifically, the second network element may generate verification parameter verification information using the method in which the terminal device generates verification parameter Res_ST. In other words, the second network element may calculate the verification parameter verification information according to formula (8).

[0223] In this embodiment of the present application, if the verification parameter verification information generated by the second network element is consistent with the verification parameter in the confirmation information, the second network element can determine that the perceived service type is correct, and the second network element can continue to perform step 704. Otherwise, the second network element can ignore the confirmation information and exit the security implementation process.

[0224] Step 604: The second network element generates a perception service key Ka_ST.

[0225] Among them, the way in which the second network element generates the perception service key Ka_ST is consistent with the way in which the terminal device generates the perception service key Ka_ST in step 602, and will not be repeated here.

[0226] Step 605: The second network element sends the perception service key Ka_ST to the first network element.

[0227] Step 606: The first network element generates an authorization credential Token_Service Type based on the perceived service type and the perceived service key Ka_ST.

[0228] Optionally, the first network element may obtain the authorization credential Token_Service Type according to formula (1), or any one of formulas (1-1) to (1-5).

[0229] Step 607: The first network element sends a first request message, and the terminal device receives the first request message.

[0230] The first request information carries the authorization credential Token_Service Type.

[0231] Optionally, the first request information may also carry the perception service type.

[0232] Optionally, the first network element may send the first request information directly to the terminal device, or the first network element may send the first request information to the terminal device through the second network element.

[0233] Optionally, if the first network element sends the first request information directly to the terminal device, the first network element can use the perception service key Ka_ST to perform integrity protection and / or encryption on the first request information to prevent a third-party attacker from tampering with or stealing the information content.

[0234] Step 608: The terminal device generates verification information based on the perceived service key Ka_ST and the perceived service type.

[0235] It should be understood that after generating the perception service key Ka_ST, the terminal device can generate verification information based on the perception service key Ka_ST and the perception service type obtained from the first request information.

[0236] Among them, the way in which the terminal device generates verification information is the same as the way in which the first network element generates the authorization certificate in step 606, which will not be repeated here.

[0237] Step 609: If the verification information is consistent with the authorization certificate, the terminal device is authorized to send the perception data.

[0238] It should be understood that the terminal device can compare whether the generated verification information is consistent with the received authorization credential Token_Service Type. If they are consistent, the terminal device can confirm that the first request information is sent by the first network element it trusts, and that the terminal device supports the perception service type requested by the first request information, thereby completing the authorization.

[0239] Step 610: The terminal device sends the perception data.

[0240] Here, the terminal device can send the perception data to the third network element (ie, the perception collection entity), so that the third network element can send the perception data of different perception service types to the corresponding perception server.

[0241] Optionally, the terminal device may use the perception service key Ka_ST to perform integrity protection and / or encryption on the perception data.

[0242] Optionally, the third network element may obtain the perception service key Ka_ST from the first network element to facilitate decryption and integrity verification of the perception data sent by the terminal device.

[0243] Optionally, if the terminal device forwards the perception data to the third network element through the UPF, the terminal device can use existing technologies to protect the perception data.

[0244] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all fall within the scope of protection of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will no longer describe the various possible combinations separately. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the idea of ​​the present application, they should also be regarded as the contents disclosed in the present application. For another example, under the premise of no conflict, the various embodiments and / or the technical features in each embodiment described in the present application can be arbitrarily combined with the prior art, and the technical solution obtained after the combination should also fall within the scope of protection of the present application.

[0245] It should also be understood that in the various method embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. In addition, in the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three types of relationships can exist. Specifically, 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 related objects before and after are in an "or" relationship.

[0246] FIG7 is a schematic diagram of the first structure of a security implementation device 700 provided in an embodiment of the present application, which is applied to a terminal device. As shown in FIG7 , the security implementation device 700 includes:

[0247] The first receiving unit 701 is configured to receive a first request message; the first request message is used to request the terminal device to authorize the terminal device to transmit the sensing data; the first request message includes an authorization certificate of the first network element;

[0248] The authorization unit 702 is configured to authorize the sending of the perception data when the authorization credential is verified successfully.

[0249] Optionally, the first request information includes the perception service type, and the authorization unit 702 is specifically configured such that the terminal device generates verification information based on the perception service key and the perception service type; if the verification information is consistent with the authorization certificate, it is determined that the authorization certificate verification is successful.

[0250] Optionally, the security implementation device 700 further includes a first generating unit configured to generate the perception service key based on a first key, where the first key is a key shared between the terminal device and the first network element.

[0251] Optionally, the first network element is a network element in GBA, the first key is a NAF key Ks_NAF, and the first generation unit is further configured to generate the perception service key based on the NAF key Ks_NAF, the perception service type, and a first network parameter; the first network parameter includes a random number NONCE and / or a count value COUNT.

[0252] Optionally, the first network element is a network element in an AKMA architecture, the first key is an AF key KAF, and the first generating unit is further configured to generate a network element based on the AF key KAF. AF , the perception service type, AKMA key identification information, and the second network parameter to generate the perception service key;

[0253] The second network parameter includes a random number NONCE and / or a count value COUNT.

[0254] Optionally, the first generating unit is further configured to generate the perception service key based on the first key when the terminal device supports the perception service type.

[0255] Optionally, the first network element is a network element in an AKA architecture or an EAP-AKA architecture, and the first key is an AMF key K AMF , or SEAF key K SEAF ;

[0256] The first generating unit is further configured to generate a AMF , the sensing service type, and a third network parameter, generating the sensing service key;

[0257] or,

[0258] The first generating unit is further configured to generate a SEAF , the sensing service type, and a third network parameter, generating the sensing service key;

[0259] The third network parameter includes a random number NONCE and / or a count value COUNT.

[0260] Optionally, the first generating unit is further configured to generate a key based on the AMF key K AMF Generate the first intermediate key K AMF '; Based on the first intermediate key K AMF ', the perception service type, and the third network parameter, to generate the perception service key;

[0261] Optionally, the first generating unit is further configured to generate a key based on the SEAF key K SEAF Generate the second intermediate key K SEAF '; Based on the first intermediate key K SEAF ', the perception service type, and the third network parameter to generate the perception service key.

[0262] Optionally, the first receiving unit 701 is further configured to receive second request information, where the second request information is used to request the perception service key;

[0263] The security implementation device 700 further includes a first sending unit configured to send confirmation information to the second network element, where the confirmation information is used to instruct the second network element to send the perception service key to the first network element.

[0264] Optionally, the confirmation information further includes a verification parameter, and the verification parameter is used by the second network element to verify the perception service type.

[0265] Optionally, the first request information includes a perception service type, and the first sending unit is further configured to send perception data matching the perception service type to the third network element.

[0266] Optionally, the first request information and / or the perception data are integrity protected and / or encrypted using a perception service key.

[0267] FIG8 is a schematic diagram of the structure of a security implementation device 800 provided in an embodiment of the present application, which is applied to a first network element. As shown in FIG8 , the security implementation device 800 includes:

[0268] The second sending unit 801 is configured to send a first request message; the first request message is used to request authorization from the terminal device to transmit perception data; the first request message includes the authorization certificate of the first network element; the authorization certificate is used by the terminal device to perform authorization verification on the first network element.

[0269] Optionally, the security implementation device 800 further includes a second generating unit;

[0270] The second generating unit is configured to generate the authorization credential based on the sensing service type and the sensing service key.

[0271] Optionally, the perception service key is generated based on a first key, and the first key is a key shared between the terminal device and the first network element.

[0272] Optionally, the first network element is a network element in GBA, the first key is a NAF key Ks_NAF, and the second generating unit is specifically configured to generate the perception service key based on the NAF key Ks_NAF, the perception service type, and the first network parameter;

[0273] The first network parameter includes a random number NONCE and / or a count value COUNT.

[0274] Optionally, the first network element is a network element in an AKMA architecture, and the first key is an AF key K AF The second generating unit is specifically configured to generate the AF key K based on the AF key K. AF , the perception service type, AKMA key identification information, and two network parameters to generate the perception service key;

[0275] The second network parameter includes a random number NONCE and / or a count value COUNT.

[0276] Optionally, the first network element is a network element in an AKA architecture or an EAP-AKA architecture, and the first key is an access and mobility management function AMF key K AMF , or the security anchor function SEAF key K SEAF ;

[0277] The second sending unit 801 is further configured to send a second request message to the second network element, where the second request message is used to request the perception service key; wherein the perception service key is the second network element based on the AMF key K AMF or the SEAF key K SEAF generate;

[0278] The security implementation device 800 further includes a second receiving unit, which is configured to receive the perception service key sent by the second network element.

[0279] Optionally, the first request information is integrity protected and / or encrypted using the perception service key.

[0280] FIG9 is a schematic diagram of the structure of a security implementation device 900 provided in an embodiment of the present application, which is applied to a second network element. As shown in FIG9 , the security implementation device 900 includes:

[0281] The third receiving unit 901 is configured to receive a first request message sent by a first network element; the first request message is used to request authorization of the terminal device to transmit the sensing data; the first request message includes an authorization certificate of the first network element;

[0282] The third sending unit 902 is configured to send the first request information to the terminal device.

[0283] Optionally, the first network element is a network element in an authentication and key management AKA architecture or an enhanced extended authentication and key agreement protocol EAP-AKA architecture;

[0284] The third receiving unit 901 is further configured to receive a second request message sent by the first network element; the second request message is used to request a perception service key;

[0285] The third sending unit 902 is further configured to send the second request information to the terminal device.

[0286] Optionally, the third receiving unit 901 is further configured to receive confirmation information sent by the terminal device; the confirmation information is used to instruct the second network element to send the perception service key to the first network element;

[0287] The security implementation device 900 further includes a third generation unit; the third generation unit is configured to generate the perception service key based on the first key; the first key is a key shared between the terminal device and the first network element;

[0288] The third sending unit 902 is further configured to send the perception service key to the first network element.

[0289] Optionally, the first key includes the AMF key K AMF , or the security anchor function SEAF key K SEAF ;

[0290] The third generating unit is configured to generate a key based on the AMF key K AMF, the sensing service type, and a third network parameter, generating the sensing service key;

[0291] or,

[0292] The third generating unit is configured to generate a key based on the SEAF key K SEAF , the sensing service type, and a third network parameter, to generate the sensing service key;

[0293] The third network parameter includes a random number NONCE and / or a count value COUNT.

[0294] Optionally, the third generating unit is further configured to generate a key based on the AMF key K AMF Generate intermediate key K AMF '; Based on the intermediate key K AMF ', the perception service type, and the third network parameter, to generate the perception service key;

[0295] Optionally, the third generating unit is further configured to generate a SEAF Generate the second intermediate key K SEAF '; Based on the first intermediate key K SEAF ', the perception service type, and the third network parameter to generate the perception service key.

[0296] Optionally, the third generation unit is further configured to generate verification parameter verification information; and when the verification parameter verification information is consistent with the verification parameter, determine to generate the perception service key based on the first key.

[0297] Those skilled in the art should understand that the relevant description of the above-mentioned security implementation device in the embodiment of the present application can be understood with reference to the relevant description of the security implementation method in the embodiment of the present application.

[0298] Figure 10 is a schematic diagram of a communication device 1000 provided in an embodiment of the present application. The communication device can be a terminal device, or a first network element or a second network element. The communication device 1000 shown in Figure 10 includes a processor 1010, which can call and execute a computer program from a memory to implement the method in the embodiment of the present application.

[0299] Optionally, as shown in FIG10 , the communication device 1000 may further include a memory 1020. The processor 1010 may call and execute a computer program from the memory 1020 to implement the method in the embodiment of the present application.

[0300] The memory 1020 may be a separate device independent of the processor 1010 , or may be integrated into the processor 1010 .

[0301] Optionally, as shown in FIG10 , the communication device 1000 may further include a transceiver 1030 , and the processor 1010 may control the transceiver 1030 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices.

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

[0303] Optionally, the communication device 1000 may specifically be a terminal device of an embodiment of the present application, and the communication device 1000 may implement the corresponding processes implemented by the terminal device in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0304] Optionally, the communication device 1000 may specifically be the first network element of the embodiment of the present application, and the communication device 1000 may implement the corresponding processes implemented by the first network element in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0305] Optionally, the communication device 1000 may specifically be the second network element of the embodiment of the present application, and the communication device 1000 may implement the corresponding processes implemented by the second network element in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0306] Figure 11 is a schematic structural diagram of a chip according to an embodiment of the present application. The chip 1100 shown in Figure 11 includes a processor 1110, which can call and run a computer program from a memory to implement the method according to the embodiment of the present application.

[0307] Optionally, as shown in FIG11 , the chip 1100 may further include a memory 1120. The processor 1110 may call and execute a computer program from the memory 1120 to implement the method in the embodiment of the present application.

[0308] The memory 1120 may be a separate device independent of the processor 1110 , or may be integrated into the processor 1110 .

[0309] Optionally, the chip 1100 may further include an input interface 1130. The processor 1110 may control the input interface 1130 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0310] Optionally, the chip 1100 may further include an output interface 1140. The processor 1110 may control the output interface 1140 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0311] Optionally, the chip can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0312] Optionally, the chip can be applied to the first network element in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the first network element in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0313] Optionally, the chip can be applied to the second network element in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the second network element in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0314] 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.

[0315] FIG12 is a schematic block diagram of a communication system 1200 provided in an embodiment of the present application. As shown in FIG12 , the communication system 1200 includes a terminal device 1210 , a first network element 1220 , and a second network element 1230 .

[0316] Among them, the terminal device 1210 can be used to implement the corresponding functions implemented by the terminal device in the above method, and the first network element 1220 can be used to implement the corresponding functions implemented by the first network element in the above method, and the second network element 1230 can be used to implement the corresponding functions implemented by the second network element in the above method. For the sake of brevity, they will not be repeated here.

[0317] It should be understood that the processor of the embodiments of the present application may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiment can be completed by hardware integrated logic circuits in the processor or software instructions. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0318] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, 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), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), 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 bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0319] 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.

[0320] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.

[0321] Optionally, the computer-readable storage medium can be applied to the network device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0322] Optionally, the computer-readable storage medium can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0323] An embodiment of the present application also provides a computer program product, including computer program instructions.

[0324] Optionally, the computer program product can be applied to the network device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0325] Optionally, the computer program product can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0326] The embodiment of the present application also provides a computer program.

[0327] Optionally, the computer program can be applied to the network device in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, they are not described here.

[0328] Optionally, the computer program can be applied to the mobile terminal / terminal device in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0329] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0330] 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.

[0331] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0332] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0333] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0334] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0335] 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 changes 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 in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A security implementation method, comprising: The terminal device receives the first request information; The first request information is used to request authorization from the terminal device to transmit the sensing data; The first request information includes the authorization certificate of the first network element; In a case where the terminal device successfully verifies the authorization credential, the terminal device authorizes the sending of the perception data.

2. The method according to claim 1, wherein The first request information includes a sensing service type, and the method further includes: The terminal device generates verification information based on the sensing service key and the sensing service type; If the verification information is consistent with the authorization credential, the terminal device determines that the authorization credential verification is successful.

3. The method according to claim 2, wherein: Before the terminal device generates verification information based on the sensing service key and the sensing service type, the terminal device further includes: The terminal device generates the perception service key based on a first key, where the first key is a key shared between the terminal device and the first network element.

4. The method according to claim 3, wherein: The first network element is a network element in a general bootstrapping architecture (GBA), and the first key is a network application function (NAF) key Ks_NAF; The terminal device generates the perception service key based on the first key, including: The terminal device generates the perception service key based on the NAF key Ks_NAF, the perception service type, and the first network parameter; The first network parameter includes a random number NONCE and / or a count value COUNT.

5. The method according to claim 3, wherein The first network element is a network element in the application authentication and key management AKMA architecture, and the first key is the application function AF key K AF ; The terminal device generates the perception service key based on the first key, including: The terminal device is based on the AF key K AF , the perception service type, AKMA key identification information, and the second network parameter to generate the perception service key; The second network parameter includes a random number NONCE and / or a count value COUNT.

6. The method according to claim 4 or 5, wherein: The terminal device generates the perception service key based on the first key, including: In a case where the terminal device supports the perception service type, the terminal device generates the perception service key based on the first key.

7. The method according to claim 3, wherein: The first network element is a network element in an authentication and key agreement AKA architecture or an enhanced extended authentication key agreement protocol EAP-AKA architecture, and the first key is an access and mobility management function AMF key K AMF , or the security anchor function SEAF key K SEAF ; The terminal device generates the perception service key based on the first key, including: The terminal device is based on the AMF key K AMF , the sensing service type, and a third network parameter, generating the sensing service key; or, The terminal device is based on the SEAF key K SEAF , the sensing service type, and a third network parameter, generating the sensing service key; The third network parameter includes a random number NONCE and / or a count value COUNT.

8. The method according to claim 7, wherein: The terminal device is based on the AMF key K AMF , the sensing service type, and network parameters, to generate the sensing service key, comprising: The terminal device is based on the AMF key K AMF Generate the first intermediate key K AMF '; The terminal device uses the first intermediate key K AMF ', the perception service type, and the third network parameter, to generate the perception service key; The terminal device is based on the SEAF key K SEAF , the sensing service type, and a third network parameter, to generate the sensing service key, comprising: The terminal device is based on the SEAF key K SEAF Generate the second intermediate key K SEAF '; The terminal device uses the first intermediate key K SEAF ', the perception service type, and the third network parameter to generate the perception service key.

9. The method according to claim 7 or 8, wherein Before the terminal device generates the perception service key based on the first key, the method further includes: The terminal device receives second request information, where the second request information is used to request the perception service key; After the terminal device generates the perception service key based on the first key, the method further includes: The terminal device sends a confirmation message to the second network element, where the confirmation message is used to instruct the second network element to send the perception service key to the first network element.

10. The method according to claim 9, wherein: The confirmation information also includes a verification parameter, and the verification parameter is used by the second network element to verify the perception service type.

11. The method according to any one of claims 1 to 10, wherein: The first request information includes a sensing service type, and the method further includes: The terminal device sends perception data matching the perception service type to the third network element.

12. The method according to claim 11, wherein The first request information and / or the perception data are integrity protected and / or encrypted using a perception service key.

13. A security implementation method comprising: The first network element sends a first request message; The first request information is used to request authorization from the terminal device to transmit the sensing data; The first request information includes the authorization certificate of the first network element; The authorization certificate is used by the terminal device to perform authorization verification on the first network element.

14. The method according to claim 13, wherein Before the first network element sends the first request information, the method further includes: The first network element generates the authorization credential based on the sensing service type and the sensing service key.

15. The method according to claim 14, wherein The perception service key is generated based on a first key, where the first key is a key shared between the terminal device and the first network element.

16. The method according to claim 15, wherein The first network element is a network element in a general bootstrapping architecture (GBA), the first key is a network application function (NAF) key Ks_NAF, and before the first network element generates the authorization credential based on the perception service type and the perception service key, the method includes: The first network element generates the perception service key based on the NAF key Ks_NAF, the perception service type, and the first network parameter; The first network parameter includes a random number NONCE and / or a count value COUNT.

17. The method according to claim 15, wherein: The first network element is a network element in the application authentication and key management AKMA architecture, and the first key is the application function AF key K AF Before the first network element generates the authorization credential based on the sensing service type and the sensing service key, the method includes: The first network element is based on the AF key K AF , the perception service type, AKMA key identification information, and two network parameters to generate the perception service key; The second network parameter includes a random number NONCE and / or a count value COUNT.

18. The method according to claim 15, wherein The first network element is a network element in the authentication and key management AKA architecture or the enhanced extended authentication key agreement protocol EAP-AKA architecture, and the first key is the access and mobility management function AMF key K AMF , or the security anchor function SEAF key K SEAF ; Before the first network element generates the authorization credential based on the sensing service type and the sensing service key, the method includes: The first network element sends a second request message to the second network element, where the second request message is used to request the perception service key; wherein the perception service key is the second network element based on the AMF key K AMF or the SEAF key K SEAF generate; The first network element receives the perception service key sent by the second network element.

19. The method according to any one of claims 13 to 18, wherein: The first request information is integrity protected and / or encrypted using the perception service key.

20. A security implementation method, the method comprising: The second network element receives the first request information sent by the first network element; The first request information is used to request authorization from the terminal device to transmit the sensing data; The first request information includes the authorization certificate of the first network element; The second network element sends the first request information to the terminal device.

21. The method according to claim 20, wherein The first network element is a network element in an authentication and key management AKA architecture or an enhanced extended authentication and key agreement protocol EAP-AKA architecture; Before the second network element receives the first request information sent by the first network element, the method further includes: The second network element receives a second request message sent by the first network element; the second request message is used to request a perception service key; The second network element sends the second request information to the terminal device.

22. The method according to claim 21, wherein Also includes: The second network element receives confirmation information sent by the terminal device; The confirmation information is used to instruct the second network element to send the perception service key to the first network element; The second network element generates the perception service key based on the first key; The first key is a key shared between the terminal device and the first network element; The second network element sends the perception service key to the first network element.

23. The method according to claim 22, wherein The first key includes the AMF key K AMF , or the security anchor function SEAF key K SEAF ; The second network element generates the perception service key based on the first key, including: The second network element is based on the AMF key K AMF , the sensing service type, and a third network parameter, generating the sensing service key; or, The second network element is based on the SEAF key K SEAF , the sensing service type, and a third network parameter, generating the sensing service key; The third network parameter includes a random number NONCE and / or a count value COUNT.

24. The method according to claim 23, wherein The second network element is based on the AMF key K AMF , a sensing service type, and a third network parameter, to generate the sensing service key, comprising: The first network element is based on the AMF key K AMF Generate intermediate key K AMF '; The first network element is based on the intermediate key K AMF ', the perception service type, and the third network parameter, to generate the perception service key; The second network element is based on the SEAF key K SEAF , the sensing service type, and a third network parameter, to generate the sensing service key, comprising: The second network element is based on the SEAF key K SEAF Generate the second intermediate key K SEAF '; The second network element is based on the first intermediate key K SEAF ', the perception service type, and the third network parameter to generate the perception service key.

25. The method according to any one of claims 22 to 24, wherein: The confirmation information includes a verification parameter, which is used by the second network element to verify the perception service type, and further includes: The second network element generates verification parameter verification information; When the verification parameter verification information is consistent with the verification parameter, the second network element determines to generate the perception service key based on the first key.

26. A security implementation device, applied to a terminal device, comprising: A first receiving unit configured to receive first request information; The first request information is used to request authorization from the terminal device to transmit the sensing data; The first request information includes the authorization certificate of the first network element; The first authorization unit is configured to authorize the sending of the perception data if the authorization credential is verified successfully.

27. A security implementation device, applied to a first network element, comprising: A second sending unit is configured to send the first request information; The first request information is used to request authorization from the terminal device to transmit the sensing data; The first request information includes the authorization certificate of the first network element; the authorization certificate is used by the terminal device to perform authorization verification on the first network element.

28. A security implementation device, applied to a second network element, comprising: A third receiving unit is configured to receive first request information sent by the first network element; The first request information is used to request authorization from the terminal device to transmit the sensing data; The first request information includes the authorization certificate of the first network element; The third sending unit is configured to send the first request information to the terminal device.

29. A terminal device comprising: 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 to execute the method according to any one of claims 1 to 12.

30. A first network element, comprising: 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 to execute the method according to any one of claims 13 to 19.

31. A second network element, comprising: 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 to execute the method according to any one of claims 20 to 25.

32. 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 the method according to any one of claims 1 to 12.

33. 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 the method according to any one of claims 13 to 19.

34. A chip comprising: A processor, configured to call and execute a computer program from a memory, so that a device equipped with the chip executes the method according to any one of claims 20 to 35.

35. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 12.

36. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 13 to 19.

37. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 20 to 25.

38. A computer program product comprising computer program instructions for causing a computer to perform the method according to any one of claims 1 to 12.

39. A computer program product comprising computer program instructions for causing a computer to perform the method according to any one of claims 13 to 19.

40. A computer program product comprising computer program instructions for causing a computer to perform the method of any one of claims 20 to 25.

41. A computer program causing a computer to execute the method according to any one of claims 1 to 12.

42. A computer program causing a computer to perform the method of any one of claims 13 to 19.

43. A computer program causing a computer to perform the method of any one of claims 20 to 25.