WO2019137232A1 - 消息的发送方法和装置 - Google Patents
消息的发送方法和装置 Download PDFInfo
- Publication number
- WO2019137232A1 WO2019137232A1 PCT/CN2018/124490 CN2018124490W WO2019137232A1 WO 2019137232 A1 WO2019137232 A1 WO 2019137232A1 CN 2018124490 W CN2018124490 W CN 2018124490W WO 2019137232 A1 WO2019137232 A1 WO 2019137232A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- security
- terminal device
- integrity
- security gateway
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/04—Key management, e.g. using generic bootstrapping architecture [GBA]
- H04W12/043—Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
- H04W12/0431—Key distribution or pre-distribution; Key agreement
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/10—Integrity
- H04W12/106—Packet or message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0435—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/04—Key management, e.g. using generic bootstrapping architecture [GBA]
- H04W12/041—Key generation or derivation
Definitions
- the present application relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting a message.
- the terminal device performs access authentication before sending the message, and the terminal device is accessing.
- the access network is accessed through a wireless local area network (WLAN), and the WLAN initiates a verification request to the authentication, authorization, and account server (Authentication, Authorization, Accounting Server, AAA Server) through the SWa interface.
- the terminal device In order to enable the terminal device to obtain its own Internet Protocol (IP) address, and then use the IP address for tunnel authentication, thereby ensuring secure transmission of the message.
- IP Internet Protocol
- access authentication and tunnel authentication combined authentication are adopted, that is, access authentication and tunnel authentication are performed simultaneously.
- the security of messages sent between the terminal device and the security gateway is not guaranteed until the unified authentication is completed.
- the present application provides a method and an apparatus for transmitting a message to solve the problem that the security of a message transmitted in the prior art is not high.
- the first aspect of the present application provides a method for sending a message, including: receiving, by a terminal device, a request message sent by a security gateway, where the request message includes a security parameter of the security gateway; after the terminal device obtains the security parameter of the security gateway, according to the The security parameters of the security gateway and the security parameters of the terminal device use the security context to protect the transmitted message. Thereby, the security of the transmitted message is improved.
- the request message further includes a start flag bit.
- the security message flag is further included in the request message.
- the security flag is included in a header or payload of the request message.
- the terminal device acquires a security context between the terminal device and the security gateway according to the security parameter of the security gateway and the security parameter of the terminal device, including:
- the terminal device generates a first key according to the security parameter of the security gateway and the security parameter of the terminal device, and generates first integrity message authentication information according to the first key.
- it also includes:
- the terminal device sends the security parameter of the terminal device and the first integrity message authentication information to the security gateway.
- it also includes:
- the terminal device verifies the second integrity authentication information according to the first key.
- the terminal device receives the second integrity message authentication information sent by the security gateway, including:
- the terminal device receives a response message sent by the security gateway, where the response message includes the second integrity message authentication information.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the terminal device uses the security context to protect the sent message, including:
- the terminal device encrypts a message sent by the security gateway by using the first key
- the terminal device uses the first integrity message authentication information to perform integrity protection on a message sent to the security gateway.
- the second aspect of the present application provides a method for sending a message, including:
- the security gateway sends a request message to the terminal device, where the request message includes the security parameter of the security gateway, and after obtaining the security parameter of the security gateway, the terminal device may obtain the terminal according to the security parameter of the security gateway and its own security parameter.
- the security context between the device and the security gateway; and the security context is used to protect the message sent to the security gateway, thereby improving the security of the sent message.
- the request message further includes a start flag bit.
- the security message flag is further included in the request message.
- the security flag is included in a header or payload of the request message.
- the security context includes a first key and first integrity message authentication information
- the method further includes:
- the security gateway generates a second key according to the security parameter of the terminal device and the security parameter of the security gateway;
- the security gateway verifies the first integrity message authentication information according to the second key.
- it also includes:
- the second integrity message authentication information sent by the security gateway to the terminal device.
- the second integrity message authentication information sent by the security gateway to the terminal device includes:
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- it also includes:
- the security gateway encrypts the message sent to the terminal device by using the second key
- the security gateway performs integrity protection on the message sent to the terminal device by using the second integrity message authentication information.
- the third aspect of the present application provides a method for sending a message, including:
- the security gateway receives the first message sent by the terminal device, where the first message includes the terminal device identity identifier and the security parameter of the terminal device; according to the security parameter of the terminal device and the security parameter of the security gateway, Obtaining a security context between the terminal device and the security gateway; and using the security context to protect a message sent to the terminal device. Thereby, the security of the transmitted message is improved.
- the security gateway acquires a security context between the terminal device and the security gateway according to the security parameter of the terminal device and the security parameter of the security gateway, including:
- the security gateway generates a first key according to the security parameter of the terminal device and the security parameter of the security gateway, and generates first integrity message authentication information according to the first key.
- it also includes:
- the security gateway sends the security parameter of the security gateway and the first integrity message authentication information to the terminal device.
- it also includes:
- the security gateway verifies the second integrity message authentication information according to the first key.
- the security gateway uses the security context to protect the sent message, including:
- the security gateway uses the first key to encrypt a message sent to the terminal device
- the security gateway performs integrity protection on the message sent to the terminal device by using the first integrity message authentication information.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- a fourth aspect of the present application provides a method for sending a message, including:
- the terminal device sends a first message to the security gateway, where the first message includes the terminal device identity identifier and the security parameter of the terminal device, where the security parameter is used by the security gateway to acquire the terminal device and the a security context between the security gateways; receiving a message sent by the security gateway, the message using security context protection between the terminal device and the security gateway.
- the security of the transmitted message is improved.
- the security context includes a first key and first integrity message authentication information
- the method further includes:
- the terminal device generates a second key according to the security parameter of the terminal device and the security parameter of the security gateway;
- the terminal device verifies the first integrity message according to the second key.
- it also includes:
- the terminal device sends second integrity message authentication information to the security gateway.
- it also includes:
- the terminal device encrypts a message sent by the network device by using the second key
- the terminal device uses the second integrity message authentication information to perform integrity protection on a message sent to the network device.
- the security parameter includes: a parameter required to generate a security context.
- the negotiated algorithm includes one or both of an integrity algorithm and an encryption algorithm.
- the fifth aspect of the present application provides a message sending apparatus, including:
- a receiving module configured to receive a request message sent by the security gateway, where the request message includes a security parameter of the security gateway;
- a processing module configured to acquire a security context between the sending device of the message and the security gateway according to the security parameter of the security gateway and the security parameter of the sending device of the message;
- a sending module configured to protect the sent message by using the security context and the first integrity message authentication information.
- the request message further includes a start flag bit.
- the security message flag is further included in the request message.
- the security flag is included in a header or payload of the request message.
- the processing module is configured to generate a first key according to the security parameter of the security gateway and a security parameter of the sending device of the message, and generate a first integrity message according to the first key. Certification Information.
- the sending module is further configured to send, to the security gateway, a security parameter of the sending device of the message and the first integrity message authentication information.
- the receiving module is further configured to receive second integrity message authentication information sent by the security gateway;
- the processing module is further configured to verify the second integrity authentication information according to the first key.
- the receiving module is specifically configured to receive a response message sent by the security gateway, where the response message includes the second integrity message authentication information.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the sending module is configured to encrypt, by using the first key pair, a message sent by the security gateway, and use the first integrity message authentication information to send a message to the security gateway. Integrity protection.
- the sixth aspect of the present application provides a message sending apparatus, including:
- a sending module configured to send a request message to the terminal device, where the request message includes a security parameter of the sending device of the message, where the security parameter of the sending device of the message is used by the terminal device to acquire the terminal device and the The security context between the sending devices of the message;
- a receiving module configured to receive a message sent by the terminal device, where the message uses security context protection between the terminal device and a sending device of the message.
- the request message further includes a start flag bit.
- the security message flag is further included in the request message.
- the security flag is included in a header or payload of the request message.
- the security context includes a first key and first integrity message authentication information
- the receiving module is further configured to receive the security parameter of the terminal device and the first integrity message authentication information that are sent by the terminal device;
- a processing module Also included: a processing module
- the processing module is configured to generate a second key according to the security parameter of the terminal device and a security parameter of the sending device of the message; and verify the first integrity message authentication according to the second key information.
- the sending module is further configured to send second integrity message authentication information to the terminal device.
- the sending module is further configured to send a response message to the terminal device, where the response message includes the second integrity message authentication information.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the sending module is configured to encrypt, by using the first key pair, a message sent by the terminal device, and use the second integrity message authentication information to send a message to the terminal device. Integrity protection.
- the seventh aspect of the present application provides a message sending apparatus, including:
- a receiving module configured to receive a first message sent by the terminal device, where the first message includes the terminal device identity identifier and a security parameter of the terminal device;
- a processing module configured to acquire a security context between the terminal device and the sending device of the message according to the security parameter of the terminal device and the security parameter of the sending device of the message;
- a sending module configured to use the security context to protect the message sent to the terminal device.
- the processing module is configured to generate a first key according to the security parameter of the terminal device and a security parameter of the sending device of the message, and generate a first integrity message according to the first key. Certification Information.
- the sending module is further configured to send, to the terminal device, a security parameter of the sending device of the message and the first integrity message authentication information.
- the receiving module is further configured to receive second integrity message authentication information sent by the terminal device;
- the processing module is further configured to verify the second integrity message authentication information according to the first key.
- the sending module is configured to encrypt, by using the security context, a message sent to the terminal device, and use the first integrity message authentication information to complete a message sent to the terminal device.
- sexual protection is configured to encrypt, by using the security context, a message sent to the terminal device, and use the first integrity message authentication information to complete a message sent to the terminal device.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the eighth aspect of the present application provides a message sending apparatus, including:
- a sending module configured to send a first message to the security gateway, where the first message includes a sending device identity of the message and a security parameter of the sending device of the message, where the security parameter is used by the security gateway to obtain a security context between the sending device of the message and the security gateway;
- a receiving module configured to receive a message sent by the security gateway, where the message uses security context protection between the sending device of the message and the security gateway.
- the security context includes a first key and first integrity message authentication information
- the receiving module is further configured to receive the security parameter of the security gateway and the first integrity message authentication information sent by the security gateway;
- a processing module configured to generate a second key according to a security parameter of the sending device of the message and a security parameter of the security gateway; and verify the first integrity message according to the second key.
- the sending module is further configured to send second integrity message authentication information to the security gateway.
- the sending module is further configured to encrypt, by using the security context, a message sent to the network device, and use the second integrity message authentication information to complete a message sent to the network device.
- sexual protection is further configured to encrypt, by using the security context, a message sent to the network device, and use the second integrity message authentication information to complete a message sent to the network device.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the ninth aspect of the present application provides a message sending apparatus, including:
- a processor for storing instructions, the transceiver for communicating with other devices, the processor for executing instructions stored in the memory to cause a transmitting device of the message to perform the first
- the processor for executing instructions stored in the memory to cause a transmitting device of the message to perform the first
- a tenth aspect of the present application provides a message sending apparatus, including:
- a processor for storing instructions
- the transceiver for communicating with other devices
- the processor for executing instructions stored in the memory to cause a transmitting device of the message to perform the following second The method described in the aspects.
- the eleventh aspect of the present application provides a message sending apparatus, including:
- a processor for storing instructions
- the transceiver for communicating with other devices
- the processor for executing instructions stored in the memory to cause a transmitting device of the message to perform as the third The method described in the aspects.
- a twelfth aspect of the present application provides a message sending apparatus, including:
- a processor for storing instructions
- the transceiver for communicating with other devices
- the processor for executing instructions stored in the memory to cause a transmitting device of the message to perform the following fourth The method described in the aspects.
- a thirteenth aspect of the present application provides a computer readable storage medium storing instructions that, when executed by a computing device, cause a transmitting device of the message to perform the method of the first aspect.
- a fourteenth aspect of the present application provides a computer readable storage medium storing instructions that, when executed by a computing device, cause a transmitting device of the message to perform the method of the second aspect .
- a fifteenth aspect of the present application provides a computer readable storage medium storing instructions that, when executed by a computing device, cause a transmitting device of the message to perform the method of the third aspect .
- a sixteenth aspect of the present application provides a computer readable storage medium storing instructions that, when executed by a computing device, cause a transmitting device of the message to perform the method of the fourth aspect .
- a seventeenth aspect of the present application provides a program product, the program product comprising a computer program stored in a computer readable storage medium, at least one processor of a message transmitting device from the computer readable storage medium Reading the computer program, the at least one processing executing the computer program causes the transmitting device of the message to perform the method as described in the first aspect.
- the eighteenth aspect of the present application provides a program product, the program product comprising a computer program stored in a computer readable storage medium, at least one processor of a message transmitting device from the computer readable storage medium Reading the computer program, the at least one processing executing the computer program causes the transmitting device of the message to perform the method of the second aspect.
- a nineteenth aspect of the present application provides a program product, the program product comprising a computer program stored in a computer readable storage medium, at least one processor of a message transmitting device from the computer readable storage medium Reading the computer program, the at least one processing executing the computer program causes the transmitting device of the message to perform the method as described in the third aspect.
- a twentieth aspect of the present application provides a program product, the program product comprising a computer program stored in a computer readable storage medium, at least one processor of a message transmitting device from the computer readable storage medium The computer program is read, the at least one processing executing the computer program causing the transmitting device of the message to perform the method as described in the fourth aspect.
- FIG. 1 is a schematic diagram of a 5G network architecture provided by the present application.
- FIG. 2 is a schematic flowchart of a method for sending a message according to the present application
- 3a-3c are schematic diagrams showing the structure of a message of a request message provided by the present application.
- FIG. 4 is a schematic flowchart of another method for sending a message according to the present application.
- FIG. 5 is a schematic structural diagram of a message sending apparatus according to the present application.
- FIG. 6 is a schematic structural diagram of another apparatus for sending a message according to the present application.
- FIG. 7 is a schematic structural diagram of another apparatus for sending a message according to the present application.
- FIG. 8 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- FIG. 9 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- FIG. 10 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- FIG. 11 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- FIG. 12 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- FIG. 1 is a schematic diagram of a 5G network architecture provided by the present application.
- the network architecture of the present embodiment includes: a terminal device, an untrusted non-3GPP access network device, and a security gateway (illustrated by N3IWF in FIG. 1). Access and Mobility Management Function (AMF) network element, Authentication Server Function (AUSF) network element, 3GPP access network device, session management function (SMF) network element, User plane function (UPF) network element and data network equipment, among which:
- AMF Access and Mobility Management Function
- AUSF Authentication Server Function
- 3GPP access network device 3GPP access network device
- SMF session management function
- UPF User plane function
- Untrusted non-3GPP access network device The network element allows non-3GPP technology interconnection between the terminal device and the 3GPP core network, wherein non-3GPP technologies such as Wireless Fidelity (Wi-Fi), global microwave Worldwide Interoperability for Microwave Access (WiMAX), Code Division Multiple Access (CDMA) network, etc., can directly access the 3GPP core network, which is directly connected to a trusted non-3GPP access network device.
- non-3GPP technologies such as Wireless Fidelity (Wi-Fi), global microwave Worldwide Interoperability for Microwave Access (WiMAX), Code Division Multiple Access (CDMA) network, etc.
- the security tunnel established by the security gateway needs to be interconnected with the 3GPP core network, such as an Evolved Packet Data Gateway (eDPG) or a non-3GPP Interworking Function (N3IWF). Network element.
- eDPG Evolved Packet Data Gateway
- N3IWF non-3GPP Interworking Function
- the network element establishes a secure tunnel with the terminal device, so that the terminal device can communicate with the 3GPP core network securely.
- the network element is an intermediate network element for communication between the terminal device and the 3GPP core network.
- AUSF network element mainly provides authentication and authentication functions.
- Terminal equipment can be user equipment (UE), handheld terminal, notebook computer, subscriber unit, cellular phone, smart phone, wireless data card, personal digital assistant (personal Digital assistant, PDA) computer, tablet, wireless modem, handheld, laptop computer, cordless phone, or wireless local loop (WLL)
- UE user equipment
- PDA personal digital assistant
- WLL wireless local loop
- MTC machine type communication
- the access network device may include various forms of base stations, such as a macro base station, a micro base station (also referred to as a small station), a relay station, an access point, and the like.
- base stations such as a macro base station, a micro base station (also referred to as a small station), a relay station, an access point, and the like.
- the name of a device having a base station function may be different, for example, in a 5th generation (5th generation, 5G) system, called gNB; in an LTE system, It is an evolved Node B (eNB or eNodeB); in a 3rd generation (3G) system, it is called a Node B or the like.
- 5G 5th generation
- gNB 5th generation
- LTE Long Term Evolution
- eNB evolved Node B
- 3G 3rd generation
- AMF network element belongs to the core network element and is mainly responsible for signaling processing, such as access control, mobility management, attach and detach, and gateway selection.
- the AMF network element provides a service for the session in the terminal device
- the storage resource of the control plane is provided for the session
- the session identifier, the SMF network element identifier associated with the session identifier, and the like are stored.
- Session management function (SMF) network element responsible for user plane network element selection, user plane network element redirection, Internet protocol (IP) address allocation, bearer establishment, modification and release, and QoS control.
- IP Internet protocol
- UPF network element responsible for forwarding and receiving user data in the terminal device.
- the user data may be received from the data network and transmitted to the terminal device through the access network device.
- the UPF network element may also receive user data from the terminal device through the access network device and forward the data to the data network.
- the transmission resources and scheduling functions for the terminal devices in the UPF network element are managed and managed by the SMF network element.
- the terminal device communicates with the untrusted non-3GPP access network device through the Y1 interface, and the untrusted non-3GPP access network device communicates with the N3IWF network element through the Y2 interface, and the N3IWF network element communicates with the AMF network element through the N2 interface.
- the AMF network element communicates with the AUSF network element through the N12 interface or the serviced interface, and the terminal device communicates with the 3GPP access network device through the N1 interface, and the 3GPP access network device communicates with the AMF network element through the N2 interface, and the AMF network element
- the NFM interface communicates with the SMF network element, and the SMF network element communicates with the UPF network element through the N4 interface.
- the N3IWF network element communicates with the UPF network element through the N3 interface, and the 3GPP access network device communicates with the UPF network element through the N3 interface.
- the UPF network element communicates with the data network device through the N6 interface.
- the functions and interfaces of the network elements are merely exemplary. When each network element is applied to the embodiment of the present application, not all functions are required. All or part of the network elements of the core network in this embodiment may be physical physical network elements or virtualized network elements, which are not limited herein.
- a network element obtains information from another network element (for example, a B network element), and may refer to that the A network element directly receives information from the B network element, or may The A network element receives information from the B network element through other network elements (for example, the C network element).
- the C network element can transparently transmit information, and can also process the information, for example, carrying the information in different messages for transmission or filtering the information. Only the filtered information is sent to the A network element.
- the A network element sends information to the B network element, which may be that the A network element directly sends information to the B network element, and may also refer to the A network element passing through other network elements (for example, the C network. Meta) sends information to the B network element.
- the B network element may be that the A network element directly sends information to the B network element, and may also refer to the A network element passing through other network elements (for example, the C network. Meta) sends information to the B network element.
- FIG. 2 is a schematic flowchart of a method for sending a message according to the present application, as shown in FIG. 2;
- the security gateway sends a request message to the terminal device.
- the request message includes security parameters of the security gateway.
- a security gateway refers to a device that can securely communicate between a terminal device and a 3GPP core network by establishing a secure tunnel, such as the N3IWF network element shown in FIG. 1.
- the security parameters of the security gateway include, but are not limited to, the materials that generate the security context, such as the algorithm to be negotiated, or the selected algorithm, and the parameters needed to generate the security context, such as the security certificate, Diffie-Herman (Diffie- The public key sent by the security gateway in the Hellman, DH) method, or the public key used by the gateway in the public-private key method.
- the materials that generate the security context such as the algorithm to be negotiated, or the selected algorithm
- the parameters needed to generate the security context such as the security certificate, Diffie-Herman (Diffie- The public key sent by the security gateway in the Hellman, DH) method, or the public key used by the gateway in the public-private key method.
- the algorithm to be negotiated or the selected algorithm includes one or both of the integrity algorithm and the encryption algorithm.
- the parameters required to generate a security context include, but are not limited to, DH values.
- the request message may be any message before the non-access stratum (NAS) message, and the request message may be an extension of the existing request message or a completely newly added request message. Therefore, the application is not limited.
- NAS non-access stratum
- the request message may further include a security flag bit, the security flag bit is used to indicate that the request message is used to indicate a security context procedure, or is used to indicate that the terminal device establishes a security context, and the security flag bit may be included in the header of the request message or In the payload.
- the security flag is included in the header of the request message, and the security flag can be represented by defining one or more bits of the idle bits in the header.
- the R bit in Figure 3a can be replaced with a security identifier. Bits; one or more bits defined in the header may be redefined to represent the security flag bits. For this reason, the application does not limit the present invention.
- the request message is exemplified by the 5G Extended Authentication Protocol (GigabitEthernet Protocol) (EAP-5G) message.
- EAP-5G 5G Extended Authentication Protocol
- the format of the EAP-5G packet header is shown in Figure 3a - Figure 3c, and the second generation in Figure 3a - Figure 3c.
- the Internet Key Exchange version 2 (IKEv2) is taken as an example.
- Figure 3a is a schematic diagram of the existing EAP-5G packet header. The slash-filled portion in Figure 3a is expanded to Figure 3b. The complete part of the Internet Key Exchange Protocol packet header (IKE header, IKE HDR) in 3b is shown in Figure 3c.
- IKE header, IKE HDR Internet Key Exchange Protocol packet header
- S is the start flag
- C is the full flag
- F is the failure flag
- R is reserved.
- the request message also includes a start flag, which is an existing flag of the existing message header, and is represented by a bit. When the bit value is valid, it indicates that the NAS message is started to be transmitted; In the method, the security parameter is carried in the existing request message, so that the terminal device acquires the security parameter of the security gateway.
- the terminal device acquires a security context between the terminal device and the security gateway according to the security parameter of the security gateway and the security parameter of the terminal device.
- the security parameters of the terminal device include, but are not limited to, the material that generates the security context, such as the algorithm to be negotiated, or the selected algorithm, and the parameters required to generate the security context, such as the security certificate, the public gateway sent by the DH method.
- the key, or the public key used by the gateway in the public-private key method are not limited to, the material that generates the security context, such as the algorithm to be negotiated, or the selected algorithm, and the parameters required to generate the security context, such as the security certificate, the public gateway sent by the DH method.
- the algorithm to be negotiated or the selected algorithm includes one or both of the integrity algorithm and the encryption algorithm.
- the parameters required to generate a security context include, but are not limited to, DH values.
- the first key is included in the security context, and the terminal device may obtain the first key according to the security parameter of the security gateway and the security parameter of the terminal device.
- the first key includes an integrity protection key.
- the first key further includes an encryption key.
- S203 The terminal device generates first integrity message authentication information according to the first key.
- the integrity message authentication information is generated by a message that the terminal device is about to reply and an integrity protection key.
- the integrity authentication information may be a Message Authentication Code (Integrity, MAC-I) for performing integrity protection verification on the terminal device to the security gateway during the authentication process.
- MAC-I Message Authentication Code
- S204 may also be performed.
- S204 The terminal device sends the security parameter of the terminal device and the first integrity message authentication information to the security gateway.
- the first integrity message authentication information is generated by the integrity protection key generated by the terminal, and the next message that the terminal device is about to send to the security gateway.
- the security gateway generates a second key according to the security parameter of the terminal device and the security parameter of the security gateway, and uses the second key to verify the first integrity message authentication information.
- the second key contains an integrity protection key.
- the second key further comprises an encryption protection key.
- whether the encryption protection key is included may be determined by at least one of the following methods: according to the security flag bit, or the selected protection method, or both parties agree in advance.
- the selected protection methods are, for example, certain specific public and private key methods.
- the security gateway may use the second key to perform integrity protection or encryption protection on the message sent to the terminal device.
- the first integrity message authentication information fails to be verified, it indicates that the first key is different from the second key, and the terminal device needs to be denied access to the core network.
- the information that the authentication fails may be returned at the same time.
- S206 The security gateway sends the second integrity message authentication information to the terminal device.
- the security gateway generates second integrity message authentication information according to the second key. And sending the second integrity message authentication information to the terminal device.
- the second integrity message authentication information is generated by the second key generated by the security gateway and the next message to be sent to the terminal.
- S207 The terminal device uses the first key to verify the second integrity message authentication information.
- the terminal device may use the first key to securely protect the message sent to the security gateway.
- the security protection is integrity protection.
- encryption protection is also performed.
- the second integrity message authentication information fails to be verified, it indicates that the first key is different from the second key, and the terminal device needs to be denied access to the core network, and optionally, the authentication failure information may be returned.
- S208 The terminal device uses the security context to protect the sent message.
- the terminal device uses the security context to perform integrity protection and/or encryption protection on the message sent to the security gateway.
- the message to be sent is, for example, a NAS message, a NAS message, for example, a NAS registration request message, a NAS authentication request message, etc., and the application does not limit this.
- the transmitted message is also, for example, part or all of the message entity in the EAP-5G message.
- the message entity refers to the part other than the EAP-5G header information.
- S209 The security gateway protects the sent message by using the second key and the second integrity authentication message.
- the security gateway uses the security context to perform integrity protection on the subsequent messages sent to the terminal device, and optionally performs encryption protection.
- the message sent by the security gateway to the terminal device includes all messages sent later or part of the message. For example, the EAP-5G Request message and the EAP 5G Response message are protected, but the EAP success message or the EAP failure message is not secured.
- the execution order of S208 and S209 is not limited.
- the security gateway sends a request message to the terminal device, and the terminal device acquires a security context between the terminal device and the security gateway according to the security parameter of the security gateway and the security parameter of the terminal device, and the terminal device uses the security context to protect the sent message.
- the security of the message sent by the terminal device to the security gateway is improved.
- the security gateway And transmitting, by the terminal device, the security parameter of the terminal device and the first integrity message authentication information to the security gateway, and the security gateway generates the second key according to the security parameter of the terminal device and the security parameter of the security gateway, and uses the second key to verify The first integrity message authentication information, the security gateway sends the second integrity message authentication information to the terminal device, the terminal device uses the first key to verify the second integrity message authentication information, and the security gateway uses the security context to protect the sent message, thereby The security of the message sent by the security gateway to the terminal device is improved.
- FIG. 4 is a schematic flowchart diagram of another method for sending a message according to the present application, where FIG. 4 shows:
- S401 The terminal device sends a first message to the security gateway.
- the first message includes the terminal device identity identifier and the security parameter of the terminal device.
- the identifier of the terminal device may be at least one of a device identifier, a permanent identity information of the terminal device, and an encryption result of the permanent identity information of the terminal device.
- the first message may be any message in the process of exchanging identity between the terminal device and the non-3GPP access network device.
- the security gateway acquires a security context between the terminal device and the security gateway according to the security parameter of the terminal device and the security parameter of the security gateway.
- the security gateway generates a first key according to the security parameter of the terminal device and the security parameter of the security gateway.
- S403 The security gateway generates first integrity message authentication information according to the first key.
- the integrity message authentication information is generated by a message that the terminal device is about to reply and an integrity protection key.
- the integrity authentication information may be an integrity message authentication code (MAC-I) for performing integrity protection verification on the message of the terminal device to the security gateway during the authentication process.
- MAC-I integrity message authentication code
- the security gateway sends the security parameter of the security gateway and the first integrity message authentication information to the terminal device.
- the first integrity message authentication information is generated by the integrity protection key generated by the terminal, and the next message that the terminal device is about to send to the security gateway.
- S405 The terminal device generates a second key according to the security parameter of the terminal device and the security parameter of the security gateway, and verifies the first integrity message authentication information.
- the second key contains an integrity protection key.
- the second key further comprises an encryption protection key.
- whether the encryption protection key is included may be determined by at least one of the following methods: according to the security flag bit, or the selected protection method, or both parties agree in advance.
- the selected protection methods are, for example, certain specific public and private key methods.
- the terminal device may use the second key to perform integrity protection or encryption protection on the message sent to the terminal device.
- the terminal device needs to be denied access to the core network, and optionally, the authentication failure information may be returned.
- S406 The terminal device sends the second integrity message authentication information to the security gateway.
- the terminal device generates second integrity message authentication information according to the second key. And sending the second integrity message authentication information to the security gateway.
- the second integrity message authentication information is generated by the second key generated by the security gateway and the next message to be sent to the terminal.
- S407 The security gateway verifies the second integrity message authentication information according to the first key.
- the security gateway may use the first key to secure the message sent to the terminal device.
- the security protection is integrity protection.
- encryption protection is also performed.
- the second integrity message authentication information fails to be verified, it indicates that the first key is different from the second key, and the terminal device needs to be denied access to the core network, and optionally, the authentication failure information may be returned.
- the security gateway uses the security context to protect the message sent to the terminal device.
- the security gateway uses the security context to perform row integrity protection and/or encryption protection on messages sent to the terminal device.
- the terminal device uses the security context to protect a message sent to the terminal device.
- the terminal device uses the security context to perform integrity protection on the message sent to the security gateway, and optionally performs encryption protection.
- the message sent by the terminal device to the security gateway includes all messages sent later or part of the message.
- the execution order of S408 and S409 is not limited.
- the first message is sent to the security gateway by the terminal device, and the security gateway obtains the security context between the terminal device and the security gateway according to the security parameter of the terminal device and the security parameter of the security gateway, and the security gateway sends the security context to the terminal device.
- the security parameter of the security gateway and the first integrity message authentication information the terminal device generates a second key according to the security parameter of the terminal device and the security parameter of the security gateway, and verifies the first integrity message authentication information, and the terminal device
- the security gateway sends the second integrity message authentication information, and the security gateway verifies the second integrity message authentication information according to the first key, and the security gateway uses the security context to protect the message sent to the terminal device, and the terminal device uses the security
- the context protects the message sent to the terminal device, thereby improving the security of the sent message, and the first message in this embodiment is any message in the process of exchanging identity between the terminal device and the non-3GPP access network device. Therefore, the signaling interaction process is reduced.
- FIG. 5 is a schematic structural diagram of a message sending apparatus provided by the present application, where the sending device of the message may be a terminal device.
- the device includes: a receiving module 501, a processing module 502, and a sending module 503, where the receiving module 501 is configured to receive a request message sent by the security gateway, where the request message includes a security parameter of the security gateway; and the processing module 502 is configured to: Acquiring a security context between the sending device of the message and the security gateway according to the security parameter of the security gateway and the security parameter of the sending device of the message; the sending module 503 is configured to use the security context protection to send the Message.
- the request message further includes a start flag bit.
- the security message flag is further included in the request message.
- the security flag is included in a header or payload of the request message.
- the processing module 502 is specifically configured to generate a first key according to the security parameter of the security gateway and a security parameter of the sending device of the message; and generate a first integrity according to the first key Message authentication information.
- the sending module is further configured to send, to the security gateway, a security parameter of the sending device of the message and the first integrity message authentication information.
- the receiving module 501 is further configured to receive second integrity message authentication information sent by the security gateway;
- the processing module 502 is further configured to verify the second integrity authentication information according to the first key.
- the receiving module 501 is specifically configured to receive a response message sent by the security gateway, where the response message includes the second integrity message authentication information.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the sending module 503 is specifically configured to encrypt, by using the first key, a message sent by the security gateway, and send the first integrity message authentication information to the security gateway.
- the message is integrity protected.
- the device in this embodiment is correspondingly used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 6 is a schematic structural diagram of another apparatus for sending a message according to the present application, where the sending apparatus of the message may be a security gateway.
- the device includes a sending module 601 and a receiving module 602, wherein the sending module 601 is configured to send a request message to the terminal device, where the request message includes a security parameter of the sending device of the message, where the sending device of the message
- the security parameter is used by the terminal device to obtain a security context between the terminal device and the sending device of the message
- the receiving module 602 is configured to receive a message sent by the terminal device, where the message uses the terminal device and the security Security context protection between gateways.
- the request message further includes a start flag bit.
- the security message flag is further included in the request message.
- the security flag is included in a header or payload of the request message.
- the security context includes a first key and first integrity message authentication information
- the receiving module 602 is further configured to receive the security parameter of the terminal device and the first integrity message authentication information sent by the terminal device;
- the processing module 603 is configured to generate a second key according to the security parameter of the terminal device and a security parameter of the sending device of the message, and verify the first integrity message authentication according to the second key. information.
- the sending module 601 is further configured to send second integrity message authentication information to the terminal device.
- the sending module 601 is further configured to send a response message to the terminal device, where the response message includes the second integrity message authentication information.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the sending module 601 is specifically configured to: use the second key to encrypt a message sent to the terminal device, and use the second integrity message authentication information to send the message to the terminal device.
- the message is integrity protected.
- the device in this embodiment is correspondingly used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 7 is a schematic structural diagram of another apparatus for sending a message according to the present application.
- the message sending apparatus may be a security gateway.
- the device includes a receiving module 701, a processing module 702, and a sending module 703, where the receiving module 701 is configured to receive a first message sent by the terminal device, where the first message includes the terminal device identity identifier and the terminal device a security parameter; the processing module 702 is configured to acquire a security context between the terminal device and the sending device of the message according to the security parameter of the terminal device and the security parameter of the sending device of the message; the sending module 703 is configured to: The message sent to the terminal device is protected using the security context.
- the processing module 702 is specifically configured to generate a first key according to the security parameter of the terminal device and a security parameter of the sending device of the message, and generate a first integrity according to the first key.
- Message authentication information is specifically configured to generate a first key according to the security parameter of the terminal device and a security parameter of the sending device of the message.
- the sending module 703 is further configured to send, to the terminal device, a security parameter of the sending device of the message and the first integrity message authentication information.
- the receiving module 701 is further configured to receive second integrity message authentication information sent by the terminal device;
- the processing module 702 is further configured to verify the second integrity message authentication information according to the first key.
- the sending module 703 is specifically configured to: use the first key to encrypt a message sent by the terminal device, and use the first integrity message authentication information to send the message to the terminal device.
- the message is integrity protected.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the device in this embodiment is correspondingly used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 8 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- the message sending apparatus may be a terminal apparatus.
- the device includes a sending module 801 and a receiving module 802, where the sending module 801 is configured to send a first message to the security gateway, where the first message includes the sending device identity of the message and the security of the sending device of the message. a parameter, the security parameter is used by the security gateway to obtain a security context between the sending device of the message and the security gateway; the receiving module 802 is configured to receive a message sent by the security gateway, where the message uses the Security context protection between the sending device of the message and the security gateway.
- the security context includes a first key and first integrity message authentication information
- the receiving module is further configured to receive the security parameter of the security gateway and the first integrity message authentication information sent by the security gateway;
- the processing module 803 is configured to generate a second key according to the security parameter of the sending device of the message and the security parameter of the security gateway, and verify the first integrity message according to the second key.
- the sending module 801 is further configured to send second integrity message authentication information to the security gateway.
- the sending module 801 is further configured to: use the security context to encrypt a message sent to the network device; and use the second integrity message authentication information to perform a message sent to the network device. Integrity protection.
- the security parameter includes: a parameter required to generate a security context.
- the parameters required to generate the security context include a negotiated algorithm, and the negotiated algorithm includes one or all of an integrity algorithm and an encryption algorithm.
- the device in this embodiment is correspondingly used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 9 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- the sending apparatus of the message may be a terminal device, and the apparatus includes a processor 901, a memory 902, and a transceiver 903, where the memory 902 is configured to store an instruction.
- the transceiver 903 is configured to communicate with other devices, and the processor 901 is configured to execute the instructions stored in the memory 902, so that the security gateway performs the technical solution of the method embodiment shown in FIG. 2.
- the device in this embodiment is correspondingly used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and the technical effect are similar, and details are not described herein again.
- FIG. 10 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- the sending apparatus of the message may be a security gateway, and the apparatus includes a processor 1001, a memory 1002, and a transceiver 1003, where the memory 1002 is configured to store The transceiver 1003 is configured to communicate with other devices, and the processor 1001 is configured to execute instructions stored in the memory 1002 to enable the security gateway to perform the technical solution of the method embodiment shown in FIG. 2.
- FIG. 11 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- the sending apparatus of the message may be a security gateway, and the apparatus includes a processor 1101, a memory 1102, and a transceiver 1103.
- the memory 1102 is configured to store
- the transceiver 1103 is configured to communicate with other devices, and the processor 1101 is configured to execute instructions stored in the memory 1102 to enable the security gateway to perform the technical solution of the method embodiment shown in FIG. 4.
- FIG. 12 is a schematic structural diagram of still another apparatus for sending a message according to the present application.
- the sending apparatus of the message may be a terminal device, and the apparatus includes a processor 1201, a memory 1202, and a transceiver 1203, where the memory 1202 is configured to store
- the transceiver 1203 is configured to communicate with other devices, and the processor 1201 is configured to execute instructions stored in the memory 1202 to cause the security gateway to perform the technical solution of the method embodiment shown in FIG.
- the present application also provides a computer readable storage medium, which is applied to a sending device of a message, the computer readable storage medium storing instructions, when the instructions are executed by the computing device, causing the sending device of the message to perform as shown in FIG. 2 Said method.
- the present application also provides a computer readable storage medium for use in a message transmitting apparatus, the computer readable storage medium storing instructions, when the instructions are executed by the computing device, causing the sending device of the message to perform as shown in FIG. 4 Said method.
- the application also provides a program product, the program product comprising a computer program, the computer program being stored in a computer readable storage medium, the at least one processor of the message transmitting device reading from the computer readable storage medium
- the computer program, the at least one processing executing the computer program causes a transmitting device of the message to perform the method described in FIG.
- the application also provides a program product, the program product comprising a computer program, the computer program being stored in a computer readable storage medium, the at least one processor of the message transmitting device reading from the computer readable storage medium
- the computer program, the at least one processing executing the computer program causes a transmitting device of the message to perform the method described in FIG.
- the sending module and the receiving module are used to implement content interaction between the processing module and other units or network elements.
- the sending module and the receiving module may be a communication interface, a transceiver circuit or a transceiver, or a transceiver.
- the sending module and the receiving module may also be communication interfaces or transceiver circuits of the processing module.
- the processing module is used to implement processing of data.
- the processing module can be a processing circuit or a processor.
- the processor may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and an NP.
- the processor may further include a hardware chip.
- the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
- the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a Generic Array Logic (GAL), or any combination thereof.
- the processing module may also include a plurality of processing units or the processing unit includes a plurality of sub-data processing units.
- the processor may be a single-CPU processor or a multi-core processor.
- the transmitting device of the message in this embodiment may further include a storage unit.
- the storage module is used to store computer instructions executed by the processing module.
- the storage module can be a storage circuit or a memory.
- the memory can be either volatile memory or non-volatile memory, or can include both volatile and nonvolatile memory.
- the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (ROMM), an erasable programmable read only memory (erasable PROM, EPROM), or an electrical Erase programmable EPROM (EEPROM) or flash memory.
- the volatile memory can be a random access memory (RAM) that acts as an external cache.
- the storage module may be a unit that is independent of the processing module, or may be a storage unit in the processing module, which is not limited herein.
- the sending device of the message may include a plurality of storage modules or the storage module includes a plurality of sub-memory modules.
- the sending module and the receiving module and the processing module may be physically separated from each other, or may be integrated into one or more physical units, which is not limited herein.
- the disclosed apparatus and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- 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.
- the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
Claims (30)
- 一种消息的发送方法,其特征在于,包括:终端设备接收安全网关发送的请求消息,所述请求消息中包含所述安全网关的安全参数;所述终端设备根据所述安全网关的安全参数以及所述终端设备的安全参数,获取所述终端设备与所述安全网关之间的安全上下文;所述终端设备使用所述安全上下文保护发送的消息。
- 根据权利要求1所述的方法,其特征在于,所述请求消息中还包括开始标志位。
- 根据权利要求1所述的方法,其特征在于,所述请求消息中还包括安全标志位。
- 根据权利要求3所述的方法,其特征在于,所述安全标志位包含在所述请求消息的头部或者净荷中。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述终端设备根据所述安全网关的安全参数以及所述终端设备的安全参数,获取所述终端设备与所述安全网关之间的安全上下文,包括:所述终端设备根据所述安全网关的安全参数以及所述终端设备的安全参数,生成第一密钥;所述终端设备根据所述第一密钥,生成第一完整性消息认证信息。
- 根据权利要求5所述的方法,其特征在于,还包括:所述终端设备向所述安全网关发送所述终端设备的安全参数和所述第一完整性消息认证信息。
- 根据权利要求6所述的方法,其特征在于,还包括:所述终端设备接收所述安全网关发送的第二完整性消息认证信息;所述终端设备根据所述第一密钥验证所述第二完整性认证信息。
- 根据权利要求7所述的方法,其特征在于,所述终端设备接收所述安全网关发送的第二完整性消息认证信息,包括:所述终端设备接收所述安全网关发送的响应消息,所述响应消息中包含所述第二完整性消息认证信息。
- 根据权利要求1-8任一项所述的方法,其特征在于,所述安全参数包括:生成安全上下文所需的参数。
- 根据权利要求9所述的方法,其特征在于,所述生成安全上下文所需的参数包括:协商的算法;所述协商的算法包括完整性算法和加密算法之一或全部。
- 根据权利要求5所述的方法,其特征在于,所述终端设备使用所述安全上下文保护发送的消息,包括:所述终端设备采用所述第一密钥对向所述安全网关发送的消息进行加密;所述终端设备采用所述第一完整性消息认证信息对向所述安全网关发送的消息进行完整性保护。
- 一种消息的发送方法,其特征在于,包括:安全网关向终端设备发送请求消息,所述请求消息中包含所述安全网关的安全参数,其中,所述安全网关的安全参数用于终端设备获取所述终端设备与所述安全网关之间的安全上下文;所述安全网关接收所述终端设备发送的消息,所述消息使用所述终端设备与所述安全网关之间的安全上下文保护。
- 根据权利要求12所述的方法,其特征在于,所述安全上下文中包含第一密钥和第一完整性消息认证信息;所述方法还包括:所述安全网关接收所述终端设备发送的所述终端设备的安全参数和所述第一完整性消息认证信息;所述安全网关根据所述终端设备的安全参数和所述安全网关的安全参数,生成第二密钥;所述安全网关根据所述第二密钥,验证所述第一完整性消息认证信息。
- 根据权利要求13所述的方法,其特征在于,还包括:所述安全网关向所述终端设备发送的第二完整性消息认证信息。
- 根据权利要求14所述的方法,其特征在于,所述安全网关向所述终端设备发送的第二完整性消息认证信息,包括:所述安全网关向所述终端设备发送的响应消息,所述响应消息中包含所述第二完整性消息认证信息。
- 根据权利要求12-15任一项所述的方法,其特征在于,所述安全参数包括:生成安全上下文所需的参数。
- 根据权利要求16所述的方法,其特征在于,还包括:所述安全网关采用所述第二密钥对向所述终端设备发送的消息进行加密;所述安全网关采用所述第二完整性消息认证信息对向所述终端设备发送的消息进行完整性保护。
- 一种消息的发送装置,其特征在于,包括:接收模块,用于接收安全网关发送的请求消息,所述请求消息中包含所述安全网关的安全参数;处理模块,用于根据所述安全网关的安全参数以及所述消息的发送装置的安全参数,获取所述消息的发送装置与所述安全网关之间的安全上下文;发送模块,用于使用所述安全上下文保护发送的消息。
- 根据权利要求18所述的装置,其特征在于,所述处理模块具体用于根据所述安全网关的安全参数以及所述消息的发送装置的安全参数,生成第一密钥;并根据所述第一密钥,生成第一完整性消息认证信息。
- 根据权利要求19所述的装置,其特征在于,所述发送模块还用于向所述安全网关发送所述消息的发送装置的安全参数和所述第一完整性消息认证信息。
- 根据权利要求20所述的装置,其特征在于,所述接收模块还用于接收所述安全网关发送的第二完整性消息认证信息;所述处理模块还用于根据所述第一密钥验证所述第二完整性认证信息。
- 根据权利要求18-21任一项所述的装置,其特征在于,所述发送模块具体用于采用所述第一密钥对向所述安全网关发送的消息进行加密;并采用所述第一完整性消息认证信息对向所述安全网关发送的消息进行完整性保护。
- 一种消息的发送装置,其特征在于,包括:发送模块,用于向终端设备发送请求消息,所述请求消息中包含所述消息的发送装置的安全参数,其中,所述消息的发送装置的安全参数用于终端设备获取所述终端设备与所述消息的发送装置之间的安全上下文;接收模块,用于接收所述终端设备发送的消息,所述消息使用所述终端设备与所述消息的发送装置之间的安全上下文保护。
- 根据权利要求23所述的装置,其特征在于,所述安全上下文中包含第一密钥和第一完整性消息认证信息;所述接收模块还用于接收所述终端设备发送的所述终端设备的安全参数和所述第一完整性消息认证信息;还包括:处理模块;所述处理模块,用于根据所述终端设备的安全参数和所述消息的发送装置的安全参数,生成第二密钥;并根据所述第二密钥,验证所述第一完整性消息认证信息。
- 根据权利要求24所述的装置,其特征在于,所述发送模块还用于向所述终端设备发送的第二完整性消息认证信息。
- 根据权利要求25所述的装置,其特征在于,所述发送模块具体用于采用所述第二密钥对向所述终端设备发送的消息进行加密;并采用所述第二完整性消息认证信息对向所述终端设备发送的消息进行完整性保护。
- 一种消息的发送装置,其特征在于,包括:处理器、存储器和收发器,所述存储器用于存储指令,所述收发器用于和其他设备通信,所述处理器用于执行所述存储器中存储的指令,以使消息的发送装置执行如权利要求1-11任一项所述的方法。
- 一种消息的发送装置,其特征在于,包括:处理器、存储器和收发器,所述存储器用于存储指令,所述收发器用于和其他设备通信,所述处理器用于执行所述存储器中存储的指令,以使消息的发送装置执行如权利要求12-17任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有指令,当所述指令被计算装置执行时,使得消息的发送装置执行如权利要求1-11任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有指令,当所述指令被计算装置执行时,使得消息的发送装置执行如权利要求12-17任一项所述的方法。
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP18899550.0A EP3720079A4 (en) | 2018-01-15 | 2018-12-27 | METHOD AND DEVICE FOR SENDING A MESSAGE |
| BR112020013831-2A BR112020013831A2 (pt) | 2018-01-15 | 2018-12-27 | método e aparelho para envio de mensagem |
| US16/928,853 US20200344245A1 (en) | 2018-01-15 | 2020-07-14 | Message sending method and apparatus |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810036963.5 | 2018-01-15 | ||
| CN201810036963.5A CN110048988B (zh) | 2018-01-15 | 2018-01-15 | 消息的发送方法和装置 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/928,853 Continuation US20200344245A1 (en) | 2018-01-15 | 2020-07-14 | Message sending method and apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019137232A1 true WO2019137232A1 (zh) | 2019-07-18 |
Family
ID=67219306
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/124490 Ceased WO2019137232A1 (zh) | 2018-01-15 | 2018-12-27 | 消息的发送方法和装置 |
Country Status (5)
| Country | Link |
|---|---|
| US (1) | US20200344245A1 (zh) |
| EP (1) | EP3720079A4 (zh) |
| CN (1) | CN110048988B (zh) |
| BR (1) | BR112020013831A2 (zh) |
| WO (1) | WO2019137232A1 (zh) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7529769B2 (ja) | 2019-09-16 | 2024-08-06 | 華為技術有限公司 | エアインターフェース情報セキュリティ保護方法および装置 |
| CN112601222B (zh) * | 2019-09-16 | 2022-04-22 | 华为技术有限公司 | 一种空口信息的安全保护方法及装置 |
| WO2021068258A1 (zh) * | 2019-10-12 | 2021-04-15 | 华为技术有限公司 | 获得安全参数的方法及装置 |
| CN111132162B (zh) * | 2019-12-26 | 2022-11-22 | 新华三技术有限公司成都分公司 | 一种终端信息的获取方法及装置 |
| KR102528678B1 (ko) * | 2020-12-30 | 2023-05-08 | 한국전자통신연구원 | 원격 검증 관리 장치 및 방법 |
| CN116017427A (zh) * | 2021-10-21 | 2023-04-25 | 华为技术有限公司 | 一种通信方法及装置 |
| CN114302503B (zh) * | 2021-12-31 | 2023-06-06 | 广州爱浦路网络技术有限公司 | 基于非3gpp接入功能网元的数据传输方法及非3gpp接入功能网元 |
| CN117376900A (zh) * | 2022-06-29 | 2024-01-09 | 华为技术有限公司 | 一种通信方法及装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006122213A2 (en) * | 2005-05-10 | 2006-11-16 | Network Equipment Technologies, Inc. | Lan-based uma network controller with aggregated transport |
| CN101631309A (zh) * | 2008-07-17 | 2010-01-20 | 上海华为技术有限公司 | 基于家庭基站网络的对终端进行鉴权的方法、设备及系统 |
| CN101754211A (zh) * | 2008-12-15 | 2010-06-23 | 华为技术有限公司 | 认证协商方法及系统、安全网关、家庭无线接入点 |
| CN101815296A (zh) * | 2009-02-23 | 2010-08-25 | 华为技术有限公司 | 一种进行接入认证的方法、装置及系统 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102594555B (zh) * | 2011-01-17 | 2015-04-29 | 华为技术有限公司 | 数据的安全保护方法、网络侧实体和通信终端 |
| US9088408B2 (en) * | 2012-06-28 | 2015-07-21 | Certicom Corp. | Key agreement using a key derivation key |
| CN107005927B (zh) * | 2015-09-22 | 2022-05-31 | 华为技术有限公司 | 用户设备ue的接入方法、设备及系统 |
-
2018
- 2018-01-15 CN CN201810036963.5A patent/CN110048988B/zh not_active Expired - Fee Related
- 2018-12-27 WO PCT/CN2018/124490 patent/WO2019137232A1/zh not_active Ceased
- 2018-12-27 EP EP18899550.0A patent/EP3720079A4/en not_active Withdrawn
- 2018-12-27 BR BR112020013831-2A patent/BR112020013831A2/pt not_active Application Discontinuation
-
2020
- 2020-07-14 US US16/928,853 patent/US20200344245A1/en not_active Abandoned
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006122213A2 (en) * | 2005-05-10 | 2006-11-16 | Network Equipment Technologies, Inc. | Lan-based uma network controller with aggregated transport |
| CN101631309A (zh) * | 2008-07-17 | 2010-01-20 | 上海华为技术有限公司 | 基于家庭基站网络的对终端进行鉴权的方法、设备及系统 |
| CN101754211A (zh) * | 2008-12-15 | 2010-06-23 | 华为技术有限公司 | 认证协商方法及系统、安全网关、家庭无线接入点 |
| CN101815296A (zh) * | 2009-02-23 | 2010-08-25 | 华为技术有限公司 | 一种进行接入认证的方法、装置及系统 |
Non-Patent Citations (2)
| Title |
|---|
| MOTOROLA MOBILITY ET AL: "Details of EAP-5G Solution for registration via untru- sted non-3GPP access", 3GPP SA WG2 MEETING #123 S2-177681, 27 October 2017 (2017-10-27), XP051346313 * |
| See also references of EP3720079A4 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110048988B (zh) | 2021-03-23 |
| BR112020013831A2 (pt) | 2020-12-01 |
| EP3720079A1 (en) | 2020-10-07 |
| US20200344245A1 (en) | 2020-10-29 |
| CN110048988A (zh) | 2019-07-23 |
| EP3720079A4 (en) | 2021-01-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11778459B2 (en) | Secure session method and apparatus | |
| WO2019137232A1 (zh) | 消息的发送方法和装置 | |
| CN108347410B (zh) | 安全实现方法、设备以及系统 | |
| CN109600804B (zh) | 一种安全保护的方法、装置和系统 | |
| CN111357308B (zh) | 一种安全保护的方法及装置 | |
| CN108605225B (zh) | 一种安全处理方法及相关设备 | |
| US12273706B2 (en) | Method, system, and apparatus for determining user plane security algorithm | |
| US20250024261A1 (en) | Communication method and apparatus | |
| CN111226452B (zh) | 一种业务策略创建方法及装置 | |
| CN110999347A (zh) | 数据完整性保护方法和装置 | |
| CN110830993A (zh) | 一种数据处理的方法和装置 | |
| WO2016134536A1 (zh) | 密钥生成方法、设备及系统 | |
| CN110891269A (zh) | 一种数据保护方法、设备及系统 | |
| JP2018537912A (ja) | 複数の接続およびサービスコンテキストをサポートするためのセキュリティモデルを使用したワイヤレス通信のための方法および装置 | |
| CN116601985B (zh) | 一种安全上下文生成方法、装置及计算机可读存储介质 | |
| CN112492590A (zh) | 一种通信方法及装置 | |
| WO2018170703A1 (zh) | 一种连接建立方法及装置 | |
| CN112654046A (zh) | 用于注册的方法和装置 | |
| CN115484595A (zh) | 一种公私网业务的隔离方法、装置及系统 | |
| WO2023213191A1 (zh) | 安全保护方法及通信装置 | |
| WO2022147846A1 (zh) | 一种生成设备间通信的密钥的方法、系统和装置 | |
| WO2026026541A1 (zh) | 一种数据传输方法和通信装置以及存储介质 | |
| CN119450460A (zh) | 通信方法和通信装置 | |
| HK40126424A (zh) | 一种安全保护的方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18899550 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2018899550 Country of ref document: EP Effective date: 20200703 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112020013831 Country of ref document: BR |
|
| ENP | Entry into the national phase |
Ref document number: 112020013831 Country of ref document: BR Kind code of ref document: A2 Effective date: 20200707 |