Secure communication method and device

By interactively sending messages containing port number, SPI and IP addresses between the terminal device and the P-CSCF, different salt values ​​and initialization vectors for uplink and downlink transmission are determined, and the communication security between the terminal device and the P-CSCF in IMS is solved. The problem of low performance improves communication security performance.

CN118972838APending Publication Date: 2024-11-15HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310544449.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-15
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In IP Multimedia Subsystem (IMS), how uplink and downlink communication between the terminal device and the P-CSCF ensures security, especially the salt value and initialization vector may be the same in uplink and downlink transmissions, resulting in lower communication security performance.

Method used

Determine the different salt values ​​and initializations for uplink and downlink transmissions by sending messages containing port numbers, security parameter index (SPI), Internet Protocol (IP) addresses and security algorithm lists interactively between the terminal device and the P-CSCF to determine the different salt values ​​and initializations for uplink and downlink transmissions Vectors to ensure the security of uplink and downlink communication.

Benefits of technology

The salt values ​​and initialization vectors of uplink and downlink communication between the terminal device and P-CSCF are realized, which improves communication security performance and avoids the problem of encryption and decryption failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972838A_ABST
    Figure CN118972838A_ABST
Patent Text Reader

Abstract

The invention provides a secure communication method and device, and the method comprises the steps that a first device sends first information of the first device to a second device through a first message, and the first message comprises one or more of a first port number, a first security parameter index SPI, a first Internet protocol IP address, a first security algorithm list and a first random number; the first device receives a second message including second information from the second device, wherein the second message includes one or more of a second port number, a second SPI, a second IP address, a second security algorithm list and a second random number; and the first device determines a first salt value for uplink transmission between the first device and the second device by using a first calculation mode according to the first information and / or the second information, and / or determines a second salt value for downlink transmission between the first device and the second device by using a second calculation mode. Uplink and downlink communication security between the first device and the second device can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and more particularly, to a secure communication method and device. Background Art

[0002] The security of mobile communications is receiving more and more attention. In the Internet Protocol (IP) Multimedia Subsystem (IMS), security is based on a long-term security key. After the terminal device and the network device complete the authentication, the terminal device and the first interaction point (such as the proxy call session control function (P-CSCF)) will obtain a shared key. Furthermore, an Internet Protocol Security (IPSEC) channel can be established between the terminal device and the P-CSCF based on the shared key. The IPSEC channel is used for uplink / downlink communication between the terminal device and the P-CSCF, wherein the key, salt value and initialization vector (IV) used for uplink / downlink communication between the terminal device and the P-CSCF may be the same.

[0003] How to ensure the security of uplink and downlink communications between terminal equipment and P-CSCF is a problem that needs to be solved at present. Summary of the invention

[0004] The present application provides a secure communication method and apparatus, which can ensure the security of uplink and downlink communications between a terminal device and a P-CSCF.

[0005] In the first aspect, a secure communication method is provided. The method can be executed by a terminal device, or by a chip or circuit configured in the terminal device; or the method can be executed by a network device, or by a chip or circuit configured in the network device, and this application does not limit this.

[0006] The method may include:

[0007] The first device sends first information of the first device to the second device via a first message, where the first message includes one or more of a first port number, a first security parameter index SPI, a first Internet Protocol IP address, a first security algorithm list, and a first random number; the first device receives a second message including second information from the second device, where the second message includes one or more of a second port number, a second security parameter index SPI, a second Internet Protocol IP address, a second security algorithm list, and a second random number; the first device determines a first salt value for uplink transmission between the first device and the second device using a first calculation method based on the first information and / or the second information, and / or determines a second salt value for downlink transmission between the first device and the second device using a second calculation method.

[0008] According to the method provided in the present application, for the uplink transmission between the first device and the second device, the first device can determine the first salt value using the first calculation method based on the first information of the first device and the second information from the second device; accordingly, the second device determines the first salt value using the first calculation method based on the second information of the second device and the first information from the first device. It can be seen that in the uplink transmission between the first device and the second device, the first device and the second device can determine the same salt value through the same calculation method, that is, the uplink communication security between the first device and the second device can be guaranteed. For the downlink transmission between the first device and the second device, the first device can determine the second salt value using the second calculation method based on the first information of the first device and the second information from the second device; accordingly, the second device determines the second salt value using the second calculation method based on the second information of the second device and the first information from the first device. It can be seen that in the downlink transmission between the first device and the second device, the first device and the second device can determine the same salt value through the same calculation method, that is, the downlink communication security between the first device and the second device can be guaranteed.

[0009] In combination with the first aspect, in some possible implementations, the first information is included in one of the first port number, the first security parameter index SPI, the first Internet Protocol IP address, the first security algorithm list, and the first random number of the first message; and / or the second information is included in one of the second port number, the second security parameter index SPI, the second Internet Protocol IP address, the second security algorithm list, and the second random number of the second message.

[0010] Based on the above technical solution, the first device sends a first message to the second device, the first message includes one or more of the first port number, the first security parameter index SPI, the first Internet Protocol IP address, the first security algorithm list, and the first random number, and the first information included in the first message can carry any one of the first port number, the first security parameter index SPI, the first Internet Protocol IP address, the first security algorithm list, and the first random number in the first message. The first device receives a second message sent from the second device, the second message includes one or more of the second port number, the second security parameter index SPI, the second Internet Protocol IP address, the second security algorithm list, and the second random number, and the second information included in the second message can carry any one of the second port number, the second security parameter index SPI, the second Internet Protocol IP address, the second security algorithm list, and the second random number in the second message.

[0011] In a possible implementation, when the first information is carried in any one of a first port number, a first security parameter index SPI, a first Internet Protocol IP address, a first security algorithm list, and a first random number, the first information may be represented in the form of bits.

[0012] In another possible implementation, when the first information is carried in any one of the first security algorithm list and the first port number, the first information may also be represented by an entry in the list, such as by adding an algorithm identifier.

[0013] In conjunction with the first aspect, in some possible implementations, using the first calculation method to determine the first salt value includes:

[0014] Calculate a first salt value using a first safety parameter,

[0015] The first security parameter includes one or more of the following: an uplink transmission direction identifier, an uplink transmission direction identifier, an uplink port number of the first device and / or the second device, an uplink IP address of the first device and / or the second device, an uplink SPI of the first device and / or the second device, an uplink counter of the first device and / or the second device, and a random number of the first device and / or the second device;

[0016] Determining the second salt value using the second calculation method includes: calculating the second salt value using the second safety parameter,

[0017] Among them, the second security parameter includes one or more of the following: a direction identifier of downlink transmission, a direction identifier of downlink transmission, a downlink port number of the first device and / or the second device, a downlink IP address of the first device and / or the second device, a downlink SPI of the first device and / or the second device, a downlink counter of the first device and / or the second device, and a random number of the first device and / or the second device.

[0018] It should be understood that the uplink SPI and port number of the first device, the downlink SPI and port number of the first device can both be generated locally by the first device, and the uplink SPI and port number of the second device, the downlink SPI and port number of the second device can both be generated locally by the second device.

[0019] In one possible implementation, the uplink port number of the first device, the uplink IP address of the first device, the uplink SPI of the first device, the uplink counter of the first device, and the random number of the first device can be sent to the second device via a first message, so that the second device uses the first security parameter to calculate the first salt value; the uplink port number of the second device, the uplink IP address of the second device, the uplink SPI of the second device, the uplink counter of the second device, and the random number of the second device can be sent to the first device via a second message, so that the first device uses the first security parameter to calculate the first salt value.

[0020] In another implementation method, the upstream port number of the first device, the downstream IP address of the first device, the downstream SPI of the first device, the downstream counter of the first device, and the random number of the first device can be sent to the second device via a first message, so that the second device uses the second security parameters to calculate the second salt value; the downstream port number of the second device, the downstream IP address of the second device, the downstream SPI of the second device, the downstream counter of the second device, and the random number of the second device can be sent to the first device via a second message, so that the first device uses the second security parameters to calculate the second salt value.

[0021] In combination with the first aspect, in some possible implementations, the first device uses a first security parameter to determine a first vector for uplink transmission, and / or uses a second security parameter to determine a second vector for downlink transmission;

[0022] The first device sends the first vector and / or the second vector to the second device.

[0023] Based on the above technical solution, the first device uses relevant parameters (e.g., port number, direction mark, direction identifier, IP address, SPI, counter, random number) for distinguishing uplink and downlink transmission to determine the first vector and / or the second vector, and sends the first vector and / or the second vector to the second device. The first vector is different from the second vector, which can further ensure that the first vector and the second vector used for uplink and downlink between the first device and the second device are different, thereby ensuring the security of uplink and downlink communications between the first device and the second device.

[0024] In a second aspect, a secure communication method is provided. The method may be executed by a terminal device, or by a chip or circuit configured in the terminal device; or the method may be executed by a network device, or by a chip or circuit configured in the network device, and this application does not limit this.

[0025] The method includes:

[0026] The first device determines a first vector for uplink transmission between the first device and the second device using the first security parameter, and / or determines a second vector for downlink transmission between the first device and the second device using the second security parameter;

[0027] Among them, the first security parameter includes one or more of the following: an uplink transmission direction identifier, an uplink transmission direction identifier, an uplink port number of the first device and / or the second device, an uplink IP address of the first device and / or the second device, an uplink SPI of the first device and / or the second device, an uplink counter of the first device and / or the second device, and a random number of the first device and / or the second device; the second security parameter includes one or more of the following: a downlink transmission direction identifier, a downlink transmission direction identifier, a downlink port number of the first device and / or the second device, a downlink IP address of the first device and / or the second device, a downlink SPI of the first device and / or the second device, a downlink counter of the first device and / or the second device, and a random number of the first device and / or the second device;

[0028] The first device sends the first vector and / or the second vector to the second device.

[0029] Based on the above technical solution, the first device uses relevant parameters (e.g., port number, direction mark, direction identifier, IP address, SPI, counter, random number) for distinguishing uplink and downlink transmission to determine the first vector and / or the second vector, and sends the first vector and / or the second vector to the second device. The first vector is determined according to the first security parameter related to the uplink transmission, and the second vector is determined according to the second security parameter related to the downlink transmission, that is, the first vector and the second vector used for uplink and downlink between the first device and the second device are different, thereby ensuring the uplink and downlink communication security between the first device and the second device.

[0030] In a third aspect, a secure communication device is provided, which is used to execute the method provided in the first aspect and / or the second aspect. Specifically, the device may include a unit and / or module, such as a processing unit and / or a transceiver unit (or a communication unit), for executing the method provided in any one of the implementation modes of the first aspect and the second aspect.

[0031] In one implementation, the device is a communication device (such as a terminal device, or a network device). When the device is a communication device, the communication unit may be a transceiver or a transceiver unit, or an input / output interface; the processing unit may be at least one processor. Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.

[0032] In another implementation, the device is a chip, chip system or circuit used in a communication device (such as a terminal device, or a network device). When the device is a chip, chip system or circuit used in a communication device, the communication unit may be an input / output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip, chip system or circuit; the processing unit may be at least one processor, processing circuit or logic circuit.

[0033] In a fourth aspect, a communication device is provided, comprising: a memory for storing computer programs or instructions; and at least one processor for executing the computer programs or instructions stored in the memory to execute the method provided in any one of the implementations of the first and second aspects above.

[0034] In one implementation, the apparatus is a communication device (such as a terminal device or a network device).

[0035] In another implementation, the device is a chip, a chip system or a circuit used in a communication device (such as a terminal device or a network device).

[0036] In a fifth aspect, the present application provides a processor for executing the methods provided in the above aspects.

[0037] For the operations such as sending and acquiring / receiving involved in the processor, unless otherwise specified, or unless they conflict with their actual function or internal logic in the relevant description, they can be understood as operations such as processor output and input, or as sending and receiving operations performed by the radio frequency circuit and antenna, and this application does not limit this.

[0038] In a sixth aspect, a computer-readable storage medium is provided, which stores a program code for execution by a device, and the program code includes a method for executing any one of the above-mentioned implementation methods in the first aspect and the second aspect.

[0039] In a seventh aspect, a computer program product comprising instructions is provided. When the computer program product is run on a computer, the computer executes the method provided in any one of the implementation modes of the first aspect or the second aspect.

[0040] In an eighth aspect, a chip is provided, the chip including a processor and a communication interface, the processor reads instructions stored in a memory through the communication interface, and executes the method provided by any one of the implementation modes in the first and second aspects above.

[0041] Optionally, as an implementation method, the chip also includes a memory, in which a computer program or instructions are stored, and the processor is used to execute the computer program or instructions stored in the memory. When the computer program or instructions are executed, the processor is used to execute the method provided in any one of the implementation methods of the first aspect or the second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of a network architecture suitable for the method provided in the embodiment of the present application.

[0043] Figure 2 It is a schematic flowchart of a secure communication method provided according to an embodiment of the present application.

[0044] Figure 3 It is a schematic flowchart of a secure communication method provided by another embodiment of the present application.

[0045] Figure 4 It is a schematic diagram of a secure communication device 400 provided in an embodiment of the present application.

[0046] Figure 5 FIG. 5 is a schematic diagram of a secure communication device 500 provided in accordance with another embodiment of the present application.

[0047] Figure 6 It is a schematic diagram of a chip system 600 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0049] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, fifth generation (5G) system, new radio (NR), sixth generation (6G) system or future communication systems, etc.

[0050] It should be understood that the embodiments of the present application do not particularly limit the specific structure of the execution subject of the method provided by the embodiments of the present application. As long as it is possible to communicate according to the method provided by the embodiments of the present application by running a program that records the code of the method provided by the embodiments of the present application, for example, the execution subject of the method provided by the embodiments of the present application may be a terminal side or network side device, or a functional module in the terminal side or network side device that can call and execute the program.

[0051] To facilitate understanding of the embodiments of the present application, first Figure 1 An application scenario of an embodiment of the present application is described in detail.

[0052] Figure 1 Schematic diagram of a network architecture applicable to the method provided in the embodiment of the present application. Figure 1 As shown, the network architecture may specifically include the following network elements:

[0053] 1. User equipment (UE): can be called user equipment, terminal, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device. The terminal equipment can also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved Public Land Mobile Network (PLMN), etc., and the embodiments of the present application are not limited to this.

[0054] 2. Proxy call session control function (P-CSCF): The unified initial entry point of the visited domain control plane of the IMS domain. It mainly forwards the session initiation protocol (SIP) messages from the visited access network to the serving call session control function (S-CSCF) or interrogating call session control function (I-CSCF) of its home location.

[0055] The P-CSCF is also used to provide integrity and security of SIP information between the IMS and terminal equipment.

[0056] 3. Inter-Call Session Control Function (I-CSCF): When a user is roaming, I-CSCF mainly serves as an access point for the terminal device to access the home network.

[0057] The I-CSCF interacts with the home subscriber server (HSS) to obtain the S-CSCF address to which the user belongs. The I-CSCF can forward SIP requests and responses to the S-CSCF.

[0058] 4. Service Call Session Control Function (S-CSCF): S-CSCF is in the core control position in the session control of the entire IMS core network. S-CSCF receives the registration request forwarded by the IMS user from the visited network through the P-CSCF, cooperates with the HSS to authenticate the IMS terminal equipment, downloads the basic subscription data of IMS from the HSS, and performs basic session routing functions for the calling and called IMS terminals.

[0059] 5. Home Subscriber Server (HSS): HSS is mainly used to store the centralized comprehensive database of IMS user's subscription information in the home network. The IMS user's subscription information includes identification information, routing information, and service subscription information. HSS is located at the top layer of the IMS core network architecture.

[0060] The main information stored in the HSS includes: IMS user identity (including public and private identity), number and address information; IMS user security context: key information for user network access authentication; IMS user routing information: HSS supports user registration and stores user location information; IMS user service subscription information: including value-added service data of other application servers (AS).

[0061] 6. Application Server (AS): Provides IMS services, such as SMS, ringback tone, color printing, etc. AS receives and processes SIP requests from IMS.

[0062] It should be understood that IMS is based on the concept of a home network and a visited network. Generally, there are two scenarios depending on whether the IMS user is roaming. One scenario: the first interaction point (such as P-CSCF) for the terminal device to access the IMS is located in the home network; the other scenario: the P-CSCF is located in the visited network, which means that the terminal device is roaming in a way that the first interaction point for accessing the IMS is not in the home network. The method provided in this application can be used in any of the above two scenarios, and this application does not make specific limitations on this.

[0063] It should also be understood that the detailed process of authentication between the terminal device and the network device can be referred to the prior art, which will not be repeated here. After the terminal device and the network device complete the authentication, the terminal device and the P-CSCF will obtain a shared key, wherein the shared key includes an integrity key (integrity key, IK) and a confidentiality key (confidentiality key, CK), and the terminal device and the P-CSCF establish an IP Security (IPSEC) channel based on the IK and the CK.

[0064] Among them, the IPSEC channel may include uplink transmission between the terminal device and the P-CSCF, and downlink transmission between the terminal device and the P-CSCF, that is, the direction of the IPSEC channel is bidirectional, including uplink and downlink directions. When uplink transmission and / or downlink transmission are performed between the terminal device and the P-CSCF, the terminal device and the P-CSCF each need to determine a salt value for the uplink transmission and / or downlink transmission, and the salt value is used to encrypt or decrypt the information of the uplink transmission and / or downlink transmission. How to ensure that in the uplink transmission between the terminal device and the P-CSCF, the salt values ​​determined by the terminal device and the P-CSCF are the same, and in the downlink transmission between the terminal device and the P-CSCF, the salt values ​​determined by the terminal device and the P-CSCF are the same, is a hot issue currently being studied in this field.

[0065] In order to facilitate the understanding of the technical solutions provided in the embodiments of the present application, the following briefly introduces the professional terms involved in the present application:

[0066] 1. The salt value can be a random field or a value generated by an algorithm. The salt value is mainly used to protect the password of the transmitted information. By adding salt to the password (mixing random characters into the password plain text), the complexity of the system can be increased to obtain a stronger and more secure ciphertext summary value.

[0067] 2. The initialization vector (IV) can be an initial variable or an initial vector, which is an input value of fixed length. Each encryption requires a different bit sequence to be randomly generated as IV, and static IV is generally not used. The value of IV is determined according to different cryptographic algorithms, but its basic requirement is "uniqueness", that is, the same initialization vector IV is not reused for the same key. The two directions in the IPSEC channel use the same initialization vector IV. It may be because IPSEC does not provide an IV coordination mechanism, resulting in the IV generated by the terminal device and P-CSCF being exactly the same.

[0068] Currently, the upstream transmission and downstream communication of the IPSEC channel use the same key (i.e., IK and CK), the same salt value, and the same IV. Assume that when the same text is transmitted from the upstream and downstream directions of the IPSEC channel, the text will go through the same key, salt value, and initialization vector IV, that is, the upstream and downstream transmissions will obtain the same encrypted text, resulting in low communication security performance.

[0069] Among them, since the parameters for generating the salt value of the terminal device and the P-CSCF are exactly the same, the salt values ​​of the uplink transmission and the downlink transmission in the IPSEC channel are exactly the same, that is, the terminal device and the P-CSCF respectively determine the salt values ​​for the uplink transmission and the downlink transmission to be exactly the same. For example, for the uplink transmission between the terminal device and the P-CSCF, the terminal device determines the salt value for the uplink transmission to be salt value #1, and the P-CSCF determines the salt value for the uplink transmission to be salt value #1'; for the downlink transmission between the terminal device and the P-CSCF, the terminal device determines the salt value for the downlink transmission to be salt value #2, and the P-CSCF determines the salt value for the downlink transmission to be salt value #2'; wherein, salt value #1, salt value #1', salt value #2 and salt value #2' are exactly the same.

[0070] Considering the communication security of IPSEC channel transmission, when the same key (IK and CK) is used for uplink transmission and downlink transmission in the IPSEC channel, it is necessary to ensure that the salt value of the uplink transmission between the terminal device and the P-CSCF is different from the salt value of the downlink transmission between the terminal device and the P-CSCF. In order to ensure that the salt value of the uplink transmission between the terminal device and the P-CSCF is different from the salt value of the downlink transmission between the terminal device and the P-CSCF, the security parameter index (SPI) in the security association (SA) can be added to the salt value derivation parameters of the terminal device and the P-CSCF. Among them, SA is unidirectional and unique, and the SPI is the unique identification ID of SA, that is, the SPI corresponding to the uplink transmission and the downlink transmission is different, thereby ensuring that the salt values ​​used for the uplink transmission and the downlink transmission are different.

[0071] Among them, it is defined that the salt values ​​corresponding to the uplink transmission and the downlink transmission are different. For example, for the uplink transmission between the terminal device and the P-CSCF, the terminal device determines the salt value for the uplink transmission to be salt value #1, and the P-CSCF determines the salt value for the uplink transmission to be salt value #1'; for the downlink transmission between the terminal device and the P-CSCF, the terminal device determines the salt value for the downlink transmission to be salt value #2, and the P-CSCF determines the salt value for the downlink transmission to be salt value #2'. The salt values ​​used for uplink transmission (salt value #1 and salt value #1') are different from the salt values ​​used for downlink transmission (salt value #2 and salt value #2'), and it is not considered whether the salt values ​​#1 and salt value #1' used for uplink transmission are the same, and whether the salt values ​​#2 and salt value #2' used for downlink transmission are the same.

[0072] The terminal device and P-CSCF cannot guarantee whether the salt values ​​determined by the terminal device and P-CSCF are the same in uplink transmission, or whether the salt values ​​determined by the terminal device and P-CSCF are the same in downlink transmission. When the uplink / downlink salt values ​​determined by the terminal device and P-CSCF for transmission are different in uplink transmission or downlink transmission, the encryption and decryption of the transmission information by the terminal device and P-CSCF will fail, thereby affecting the communication performance.

[0073] In response to the above-mentioned technical problems, the uplink and downlink transmission between the terminal device and the P-CSCF, how to ensure that the terminal device and the P-CSCF determine the same salt value in the uplink transmission, and the terminal device and the P-CSCF determine the same salt value in the downlink transmission is a technical problem to be solved by this application.

[0074] The present application provides a secure communication method that can ensure the security of uplink and downlink communications between communication devices. For example, uplink transmission is performed between a first device and a second device, that is, the salt value determined by the uplink transmission of the first device is the same as the salt value determined by the uplink transmission of the second device, thereby improving the communication security between the first device and the second device.

[0075] Figure 2 It is a process diagram of a secure communication method provided in an embodiment of the present application.

[0076] 210. The first device sends first information of the first device to the second device through a first message.

[0077] Accordingly, the second device receives the first information of the first device sent by the first device through the first message.

[0078] Among them, the first information includes the salt value calculation method supported by the first device. The salt value calculation method supported by the first device can be understood as the salt value calculation capability supported by the first device, or can be understood as the algorithm supported by the first device. The salt value calculation method supported by the first device and the salt value calculation capability supported by the first device can both be used to determine the method in which the first device calculates the salt value. In the embodiments of the present application, the salt value calculation method supported by the first device is mainly described, and can also be replaced by other descriptions, which are not specifically limited in the present application.

[0079] It should be understood that the first message includes one or more of a first port number, a first security parameter index SPI, a first Internet Protocol IP address, a first security algorithm list, and a first random number.

[0080] In one possible implementation, the first device sends the first information to the second device through a first message. The first device may send the first information to the second device through a separate indication, and the first information does not need to be carried in any other signaling or algorithm list.

[0081] In another possible implementation, the first information is carried in any one of the first port number, the first security parameter index SPI, the first Internet Protocol IP address, the first security algorithm list, and the first random number included in the first message, and is sent to the second device through the first message. For example, the first message includes the first port number and the first Internet Protocol IP address. The first port number may carry the first information, or the first IP address may carry the first information.

[0082] The first information may be represented in the form of bits.

[0083] As an example, when the first information is carried in any one of a first port number, a first security parameter index SPI, a first Internet Protocol IP address, a first security algorithm list, and a first random number in a first message, it is assumed that the first information includes a first bit, which is contained in the first port number, and the first bit is used to indicate a salt value calculation method supported by the first device.

[0084] For example, assuming that the length of the first bit is 1 bit, when the first bit is 0, it indicates that the first device supports method #1 for calculating the salt value; when the first bit is 1, it indicates that the first device supports method #2 for calculating the salt value.

[0085] It should be understood that in the future, the first device may support two or more salt value calculation methods, and the first information may represent the salt value calculation methods supported by the first device in the form of bits.

[0086] The first information may be represented in the form of an information element (IE).

[0087] As an example, when the first information is carried in the first security algorithm list in the first message, the first information may represent the salt value calculation method supported by the first device in the form of an information element.

[0088] For example, the first information is an algorithm identifier or indication in the algorithm, and / or the first information is an algorithm identifier or indication of the encryption algorithm.

[0089] 220. The first device receives a second message including second information from the second device.

[0090] Accordingly, the second device sends a second message including second information to the first device.

[0091] Among them, the second information includes the salt value calculation method supported by the second device. The salt value calculation method supported by the second device can be understood as the salt value calculation capability supported by the second device, or can be understood as the algorithm supported by the second device. The salt value calculation method supported by the second device and the salt value calculation capability supported by the second device can both be used to determine the method in which the second device calculates the salt value. In the embodiment of the present application, the salt value calculation method supported by the second device is mainly described, and can also be replaced by other descriptions, which are not specifically limited in the present application.

[0092] It should be understood that the second message includes one or more of a second port number, a second security parameter index SPI, a second Internet Protocol IP address, a second security algorithm list, and a second random number.

[0093] In one possible implementation, the second device sends the second information to the first device through a second message. The second information may be sent by the second device to the first device through a separate indication, and the second information does not need to be carried in any other signaling or algorithm list.

[0094] In another possible implementation, the second information is carried in any one of the second port number, the second security parameter index SPI, the second Internet Protocol IP address, the second security algorithm list, and the second random number included in the second message, and is sent to the first device through the second message. For example, the second message includes the second port number and the second Internet Protocol IP address. The second port number can carry the second information, or the second IP address can carry the second information.

[0095] It should be understood that the second information may represent the salt value calculation method supported by the second device. Specifically, the second information may be represented in the form of bits or in the form of cells, which is not specifically limited in the present application.

[0096] It should also be understood that the transmission method of the second information in step 220 and the specific form of expression of the second information are similar to the transmission method of the first information in step 210 and the specific form of expression of the first information. For details, please refer to the detailed examples in step 210 and will not be repeated here.

[0097] It should be noted that the present application does not limit the order of steps between step 210 and step 220. Step 210 may occur before step 220, step 220 may occur before step 210, or step 210 and step 220 may occur simultaneously. The present application does not make any specific limitation.

[0098] It should also be noted that when there is an obvious logical relationship between step 210 and step 220, step 210 may be performed before step 220. As described below:

[0099] As a possible implementation method, after the second device receives the first message including the first information sent from the first device, the second device determines that the second device supports the calculation method of the salt value of the first device, and the second device will execute step 220, that is, the second device sends the second message including the second information to the first device.

[0100] When the second device determines that the second device supports the calculation method of the salt value of the first device, the second device calculates the first salt value according to the calculation method of the salt value of the first device supported by the second device.

[0101] Step 230: Determine a first salt value using a first calculation method and / or determine a second salt value using a second calculation method according to the first information and / or the second information.

[0102] Among them, the first device and the second device can use the first information and the second information to determine a first salt value for uplink transmission between the first device and the second device using a first calculation method, and / or use a second calculation method to determine a second salt value for downlink transmission between the first device and the second device.

[0103] In one possible implementation, after the first device receives the second information, the first device determines a first calculation method according to the salt value calculation method supported by the second device and the salt value calculation method supported by the first device itself included in the second information. The first device determines the first salt value for uplink transmission between the first device and the second device through the first calculation method.

[0104] Similarly, after the second device receives the first information, the second device determines the first calculation method according to the salt value calculation method supported by the first device and the salt value calculation method supported by the second device itself included in the first information. The second device determines the first salt value for uplink transmission between the first device and the second device through the first calculation method.

[0105] In another possible implementation, after the first device receives the second information, the first device determines a second calculation method according to the salt value calculation method supported by the second device and the salt value calculation method supported by the first device itself included in the second information. The first device determines the second salt value for downlink transmission between the first device and the second device through the second calculation method.

[0106] Similarly, after the second device receives the first information, the second device determines the second calculation method according to the salt value calculation method supported by the first device and the salt value calculation method supported by the second device itself included in the first information. The second device determines the second salt value for downlink transmission between the first device and the second device through the second calculation method.

[0107] The first device may determine the first salt value using a first calculation method according to the second information, and / or determine the second salt value using a second calculation method.

[0108] In a possible implementation, after the first device receives the second information, the first device may determine that the second device supports the salt value calculation method supported by the first device, and the first device may determine the first calculation method and / or the second calculation method based on the second information. The first device determines the first salt value for uplink transmission between the first device and the second device by the first calculation method; and / or the first device determines the second salt value for downlink transmission between the first device and the second device by the second calculation method.

[0109] As an example, assume that the first device is a terminal device and the second device is a P-CSCF. After the terminal device receives the second information from the P-CSCF, the terminal device determines that the P-CSCF has received the first information of the terminal device, and the P-CSCF supports the salt value calculation method supported by the terminal device in the first information. The terminal device can determine the first calculation method and / or the second calculation method based on the second information of the P-CSCF, and determine the first salt value by the first calculation method and / or determine the second salt value by the second calculation method.

[0110] The first device may determine the first salt value using a first calculation method according to the first information, and / or determine the second salt value using a second calculation method.

[0111] In a possible implementation, after the first device receives the second information from the second device, the first device determines that it supports the salt value calculation method supported by the second device based on the second information, and the first device can determine the first calculation method and / or the second calculation method based on the first information. The first device determines the first salt value for uplink transmission between the first device and the second device by the first calculation method; and / or the first device determines the second salt value for downlink transmission between the first device and the second device by the second calculation method.

[0112] As an example, assume that the first device is a P-CSCF and the second device is a terminal device. After the P-CSCF receives the second information from the terminal device, the P-CSCF determines the salt value calculation method supported by the terminal device based on the salt value calculation method supported by the terminal device in the second information and the salt value calculation method supported by the P-CSCF in the first information. The P-CSCF can determine the first calculation method and / or the second calculation method based on the first information, and determine the first salt value by the first calculation method and / or determine the second salt value by the second calculation method.

[0113] It should be understood that when the first device and the second device use the first calculation method and / or the second calculation method to determine the first salt value and / or the second salt value, the parameters used are different (for example, the upstream port number and the downstream port number are different), and the internal algorithms of the first calculation method and the second calculation method may be the same. That is, the first salt value and the second salt value determined by the first device and the second device are different. Under the condition that the salt values ​​used for upstream transmission and downstream transmission between the first device and the second device are different, when the first device and the second device are transmitting upstream, the salt value determined by the first device is the same as the salt value determined by the second device; when the first device and the second device are transmitting downstream, the salt value determined by the first device is the same as the salt value determined by the second device. That is, the upstream and downstream communication security between the first device and the second device is guaranteed, and the problem of encryption and decryption failure caused by the first device and the second device using different keys is avoided.

[0114] In a possible implementation, the first device and the second device determine the first salt value using the first calculation method, which may include the first device and the second device determining the first salt value using the first security parameter. The first security parameter includes one or more of the following: an uplink transmission direction identifier, an uplink transmission direction identifier, an uplink port number of the first device and / or the second device, an uplink IP address of the first device and / or the second device, an uplink SPI of the first device and / or the second device, an uplink counter of the first device and / or the second device, and a random number of the first device and / or the second device.

[0115] The first device and the second device can determine the direction mark of the uplink transmission, the direction identifier of the uplink transmission, and the random number. The direction mark of the uplink transmission and the direction identifier of the uplink transmission can also be agreed upon, which is not specifically limited in this application.

[0116] Among them, one or more of the uplink port number of the first device, the uplink IP address of the first device, the uplink SPI of the first device, the uplink counter of the first device, and the random number of the first device can be sent by the first device to the second device through the first message; one or more of the uplink port number of the second device, the uplink IP address of the second device, the uplink SPI of the second device, the uplink counter of the second device, and the random number of the second device can be sent by the second device to the first device through the second message.

[0117] In a possible implementation, the first device and the second device determine the second salt value using the second calculation method, which may include the first device and the second device determining the second salt value using a second security parameter. The second security parameter includes one or more of the following: a direction identifier for downlink transmission, a direction identifier for downlink transmission, a downlink port number of the first device and / or the second device, a downlink IP address of the first device and / or the second device, a downlink SPI of the first device and / or the second device, a downlink counter of the first device and / or the second device, and a random number of the first device and / or the second device.

[0118] The first device and the second device can determine the direction mark of the downlink transmission, the direction identifier of the downlink transmission, and the random number. The direction mark of the downlink transmission and the direction identifier of the downlink transmission can also be agreed upon, which is not specifically limited in this application.

[0119] Among them, one or more of the downstream port number of the first device, the downstream IP address of the first device, the downstream SPI of the first device, the downstream counter of the first device, and the random number of the first device can be sent by the first device to the second device through the first message; one or more of the downstream port number of the second device, the downstream IP address of the second device, the downstream SPI of the second device, the upstream counter of the second device, and the random number of the second device can be sent by the second device to the first device through the second message.

[0120] As an example, assuming that the salt value calculation methods supported by the first device include method #1 and method #2, and the salt value calculation methods supported by the second device include method #2, then the first device and the second device determine that the first calculation method is method #2 according to the salt value calculation methods supported by the first device and the salt value calculation methods supported by the second device, and the first device and the second device use method #2 to determine the first salt value of the uplink transmission between the first device and the second device. The first device and the second device can respectively use the uplink transmission direction identifier, the uplink transmission direction identifier, the uplink port number of the first device, and the uplink port of the second device to calculate the first salt value through method #2.

[0121] As another example, assuming that the salt value calculation method supported by the first device includes method #1, and the salt value calculation method supported by the second device includes method #1, the first device and the second device determine that the second calculation method is method #1 according to the salt value calculation method supported by the first device and the salt value calculation method supported by the second device, and the first device and the second device use method #1 to determine the second salt value of the downlink transmission between the first device and the second device. The first device and the second device can respectively use the direction identifier of the downlink transmission, the downlink SPI of the first device and the downlink SPI of the second device, and the downlink counter of the first device and the downlink counter of the second device to calculate the second salt value through method #1.

[0122] It should be understood that the first salt value and the second salt value are determined using the first security parameter and the second security parameter, so that the uplink transmission and the downlink transmission between the first device and the second device can be distinguished. Those skilled in the art can also use other parameters that can distinguish the uplink transmission and the downlink transmission between the first device and the second device to determine the first salt value and the second salt value.

[0123] It should also be understood that the first device in the present application may be a terminal device, and the second device may be a P-CSCF; or, the first device is a P-CSCF, and the second device is a terminal device.

[0124] As an example, when the first device is a terminal device and the second device is a P-CSCF, in the uplink transmission between the first device and the second device, the terminal device can act as a client and the P-CSCF can act as a server; in the downlink transmission between the first device and the second device, the terminal device can act as a server and the P-CSCF can act as a client. For example, in the uplink transmission between the first device and the second device, the value of the uplink SPI of the terminal device can be expressed as SPI_uc, and SPI_uc is used to indicate the SPI value when the terminal device acts as a client; the value of the uplink SPI of the P-CSCF can be expressed as SPI_ps, and SPI_ps is used to indicate the SPI value when the P-CSCF acts as a server.

[0125] According to the above Figure 2 The method shown, the first device and the second device can interact with each other to support the salt value calculation method, and can use the first calculation method to determine the first salt value of the uplink transmission between the first device and the second device, and / or can use the second calculation method to determine the first salt value of the downlink transmission between the first device and the second device. In the downlink or uplink transmission between the first device and the second device, the first device and the second device can obtain the same salt value, that is, it can ensure that even if any one of the first device and the second device is upgraded or other configurations change, the first device and the second device can still determine a calculation method according to the salt value calculation method supported by both parties, and the salt value obtained by the first device and the second device through the calculation method is the same, avoiding the problem of different salt values ​​determined by the first device and the second device in the uplink transmission or downlink transmission between the first device and the second device, which leads to the failure of information encryption and decryption.

[0126] At the same time, the first salt value obtained by the method in the embodiment of the present application for uplink transmission between the first device and the second device is different from the second salt value used for downlink transmission between the first device and the second device, thereby improving the security performance of uplink and downlink.

[0127] like Figure 2 The method shown in the figure further comprises the following steps:

[0128] 240. The first device uses the first security parameter to determine a first vector for uplink transmission, and / or uses the second security parameter to determine a second vector for downlink transmission.

[0129] 250. The first device sends the first vector and / or the second vector to the second device.

[0130] It will be appreciated that the first vector and the second vector are different.

[0131] The first device determines a first vector for uplink transmission by using a first security parameter, wherein the first security parameter is a parameter related to uplink transmission. The first device determines a second vector for downlink transmission by using a second security parameter, wherein the second security parameter is a parameter related to downlink transmission. If the first security parameter is different from the second security parameter, then the first vector is different from the second vector.

[0132] It should also be understood that the above steps 240 and 250 are Figure 3 Steps 310 to 330 are similar to those in Figure 3 The detailed introduction in the article is omitted here to avoid redundancy.

[0133] Figure 3 It is a process diagram of another secure communication method provided in an embodiment of the present application.

[0134] 310 , the first device determines a first vector using a first security parameter, and / or the first device determines a second vector using a second security parameter.

[0135] The first vector is used for uplink transmission between the first device and the second device; the second vector is used for downlink transmission between the first device and the second device.

[0136] Among them, the first security parameter includes one or more of the following: an uplink transmission direction identifier, an uplink transmission direction identifier, an uplink port number of the first device and / or the second device, an uplink IP address of the first device and / or the second device, an uplink SPI of the first device and / or the second device, an uplink counter of the first device and / or the second device, and a random number of the first device and / or the second device; the second security parameter includes one or more of the following: a downlink transmission direction identifier, a downlink transmission direction identifier, a downlink port number of the first device and / or the second device, a downlink IP address of the first device and / or the second device, a downlink SPI of the first device and / or the second device, a downlink counter of the first device and / or the second device, and a random number of the first device and / or the second device.

[0137] It should be understood that the first security parameter and the second security parameter are parameters used to distinguish uplink and downlink transmission between the first device and the second device. That is, the first security parameter is different from the second security parameter. For example, the uplink port number of the first device included in the first security parameter is different from the uplink port number of the first device included in the second security parameter; the uplink counter of the first device included in the first security parameter is different from the uplink counter of the first device included in the second security parameter.

[0138] It should also be understood that if a first safety parameter used to determine the first vector and a second safety parameter used to determine the second vector are different, then the first vector and the second vector are different.

[0139] Optionally, the first vector is an initialization vector IV determined by the first device for uplink transmission, and the first vector is an initialization vector IV determined by the first device for downlink transmission.

[0140] 320. The first device sends the first vector and / or the second vector to the second device.

[0141] Specifically, after the first device determines the first vector and / or the second vector, the first device sends the first vector and / or the second vector to the second device.

[0142] Optionally, the first vector is used by the second device to decrypt an encrypted message received from the first device via an uplink communication link. The second vector is used by the second device to encrypt a message to be sent to the first device on a downlink communication link.

[0143] It should be understood that the first vector can be transmitted to the second device in the same message as the encrypted message sent by the first device to the second device, or the first vector can also be carried in other signaling or algorithm lists and sent to the second device, or the first vector can also be sent to the second device through separate indication information, and this application does not make specific limitations on this.

[0144] according to Figure 3 In the method shown, the first device uses relevant parameters (e.g., port number, direction identifier, direction identifier, IP address, SPI, counter, random number) for distinguishing uplink and downlink transmission to determine the first vector and / or the second vector, and sends the first vector and / or the second vector to the second device. The first vector is determined based on the first security parameter related to the uplink transmission, and the second vector is determined based on the second security parameter related to the downlink transmission, that is, the first vector and the second vector corresponding to the uplink transmission and the downlink transmission between the first device and the second device are different, thereby ensuring the uplink and downlink communication security between the first device and the second device.

[0145] It should be understood that in the various embodiments described herein, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0146] The various embodiments described herein may be independent solutions or may be combined according to internal logic, and all of these solutions fall within the protection scope of this application.

[0147] It can be understood that in the above-mentioned method embodiments, the methods and operations implemented by the terminal side can also be implemented by components (such as chips or circuits) that can be used for terminal side devices, and the methods and operations implemented by the network side can also be implemented by components (such as chips or circuits) that can be used for network side devices.

[0148] Above, combined Figure 2 and Figure 3 The method provided by the embodiment of the present application is described in detail. Figures 4 to 6 The secure communication device provided by the embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the contents not described in detail can be referred to the method embodiment above, and for the sake of brevity, they will not be repeated here.

[0149] The above mainly introduces the scheme provided by the embodiment of the present application from the perspective of interaction between various devices. It is understandable that each device, such as a transmitting end device or a receiving end device, includes a hardware structure and / or software module corresponding to each function in order to realize the above functions. Those skilled in the art should be aware that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 to exceed the scope of the present application.

[0150] The embodiment of the present application can divide the functional modules of the first device or the second device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module according to each function.

[0151] Figure 4 4 is a schematic block diagram of a secure communication device provided in an embodiment of the present application. The device 400 includes a transceiver unit 410, which can be used to implement corresponding communication functions. The transceiver unit 410 can also be called a communication interface or a communication unit.

[0152] Optionally, the device 400 may further include a processing unit 420, and the processing unit 420 may be used for performing data processing.

[0153] Optionally, the device 400 also includes a storage unit, which can be used to store instructions and / or data, and the processing unit 420 can read the instructions and / or data in the storage unit so that the device implements the actions of different terminal devices in the aforementioned method embodiments, for example, the actions of the first device / the actions of the second device.

[0154] The device 400 can be used to execute the actions performed by the first device or the second device in each of the method embodiments above. In this case, the device 400 can be the first device, or a component of the first device, or the second device, or a component of the second device. The transceiver unit 410 is used to execute the transceiver-related operations of the first device or the second device in the method embodiments above, and the processing unit 420 is used to execute the processing-related operations of the first device or the second device in the method embodiments above.

[0155] It should also be understood that the device 400 here is embodied in the form of a functional unit. The term "unit" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a proprietary processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit, and / or other suitable components that support the described functions. In an optional example, those skilled in the art can understand that the device 400 can be specifically the first device in the above-mentioned embodiment, and can be used to execute the various processes and / or steps corresponding to the first device in the above-mentioned method embodiments, or the device 400 can be specifically the second device in the above-mentioned embodiment, and can be used to execute the various processes and / or steps corresponding to the second device in the above-mentioned method embodiments. To avoid repetition, it will not be repeated here.

[0156] The apparatus 400 of each of the above-mentioned schemes has the function of implementing the corresponding steps performed by the first device in the above-mentioned method, or the apparatus 400 of each of the above-mentioned schemes has the function of implementing the corresponding steps performed by the second device in the above-mentioned method. The functions can be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more modules corresponding to the above-mentioned functions; for example, the transceiver unit can be replaced by a transceiver (for example, the sending unit in the transceiver unit can be replaced by a transmitter, and the receiving unit in the transceiver unit can be replaced by a receiver), and other units, such as the processing unit, can be replaced by a processor, respectively performing the sending and receiving operations and related processing operations in each method embodiment.

[0157] In addition, the transceiver unit 410 may also be a transceiver circuit (for example, may include a receiving circuit and a sending circuit), and the processing unit may be a processing circuit.

[0158] It should be pointed out that Figure 4 The device in the embodiment may be a network element or device in the foregoing embodiment, or may be a chip or a chip system, such as a system on chip (SoC). The transceiver unit may be an input / output circuit or a communication interface; the processing unit may be a processor or a microprocessor or an integrated circuit integrated on the chip. This is not limited here.

[0159] like Figure 5 As shown, an embodiment of the present application provides another communication device 500. The device 500 includes a processor 510, the processor 510 is coupled to a memory 520, the memory 520 is used to store computer programs or instructions and / or data, and the processor 510 is used to execute the computer programs or instructions stored in the memory 520, or read the data stored in the memory 520, so as to execute the methods in the above method embodiments.

[0160] Optionally, there are one or more processors 510 .

[0161] Optionally, the memory 520 is one or more.

[0162] Optionally, the memory 520 is integrated with the processor 510 or is separately provided.

[0163] Alternatively, if Figure 5 As shown, the device 500 further includes a transceiver 530, and the transceiver 1130 is used for receiving and / or sending signals. For example, the processor 510 is used for controlling the transceiver 530 to receive and / or send signals.

[0164] As a solution, the apparatus 500 is used to implement the operations performed by the first device in each of the above method embodiments.

[0165] For example, the processor 510 is configured to execute a computer program or instruction stored in the memory 520 to implement the related operations of the first control plane device in each of the above method embodiments. Figure 2 or Figure 3 The first device or the second device in any one of the embodiments shown.

[0166] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0167] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory and / or a non-volatile memory. 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). For example, RAM can be used as an external cache. By way of example and not limitation, RAM includes the following forms: 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 rambus RAM (DR RAM).

[0168] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated into the processor.

[0169] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0170] like Figure 6 The embodiment of the present application provides a chip system 600. The chip system 600 (or also referred to as a processing system) includes a logic circuit 610 and an input / output interface 620.

[0171] Among them, the logic circuit 610 can be a processing circuit in the chip system 600. The logic circuit 610 can be coupled to the storage unit and call the instructions in the storage unit so that the chip system 600 can implement the methods and functions of each embodiment of the present application. The input / output interface 620 can be an input / output circuit in the chip system 600, outputting information processed by the chip system 600, or inputting data or signaling information to be processed into the chip system 600 for processing.

[0172] As a solution, the chip system 600 is used to implement the operations performed by the first device or the second device in the above method embodiments.

[0173] For example, the logic circuit 610 is used to implement operations related to the processing by the first device in the above method embodiment, or operations related to the processing by the second device, such as Figure 2 or Figure 3 The input / output interface 620 is used to implement the operations related to sending and / or receiving by the first device or the second device in any of the embodiments shown in the foregoing method embodiments, or the operations related to sending and / or receiving by the second device.

[0174] An embodiment of the present application also provides a computer-readable storage medium on which computer instructions for implementing the methods executed by the first device and the second device in the above-mentioned method embodiments are stored.

[0175] For example, when the computer program is executed by a computer, the computer can implement the methods performed by the first device and the second device in each embodiment of the above method.

[0176] An embodiment of the present application also provides a computer program product, comprising instructions, which, when executed by a computer, implement the methods performed by the first device and the second device in the above-mentioned method embodiments.

[0177] The explanation of the relevant contents and beneficial effects of any of the above-mentioned devices can be referred to the corresponding method embodiments provided above, which will not be repeated here.

[0178] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, 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.

[0179] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)). For example, the aforementioned available medium includes, but is not limited to, 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.

[0180] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A secure communication method, characterized in that: include: The first device sends first information of the first device to the second device through a first message, where the first message includes one or more of a first port number, a first security parameter index SPI, a first Internet Protocol IP address, a first security algorithm list, and a first random number; The first device receives a second message including second information from the second device, where the second message includes one or more of a second port number, a second security parameter index SPI, a second Internet Protocol IP address, a second security algorithm list, and a second random number; The first device determines, based on the first information and / or the second information, a first salt value for uplink transmission between the first device and the second device using a first calculation method, and / or determines a second salt value for downlink transmission between the first device and the second device using a second calculation method.

2. The method according to claim 1, characterized in that The first information includes one of a first port number of the first message, a first security parameter index SPI, a first Internet Protocol IP address, a first security algorithm list, and a first random number; and / or The second information is included in one of a second port number of the second message, a second security parameter index SPI, a second Internet Protocol IP address, a second security algorithm list, and a second random number.

3. The method according to claim 1 or 2, characterized in that: Determining the first salt value by using the first calculation method includes: calculating the first salt value using a first safety parameter, The first security parameter includes one or more of the following: a direction identifier of the uplink transmission, a direction identifier of the uplink transmission, an uplink port number of the first device and / or the second device, an uplink IP address of the first device and / or the second device, an uplink SPI of the first device and / or the second device, an uplink counter of the first device and / or the second device, and a random number of the first device and / or the second device; Determining the second salt value by using the second calculation method includes: calculating the second salt value using the second security parameter, Among them, the second security parameter includes one or more of the following: the direction identifier of the downlink transmission, the direction identifier of the downlink transmission, the downlink port number of the first device and / or the second device, the downlink IP address of the first device and / or the second device, the downlink SPI of the first device and / or the second device, the downlink counter of the first device and / or the second device, and the random number of the first device and / or the second device.

4. The method according to claim 3, characterized in that The method further comprises: The first device determines, using the first security parameter, a first vector for the uplink transmission, and / or determines, using the second security parameter, a second vector for the downlink transmission; The first device sends the first vector and / or the second vector to the second device.

5. A secure communication device, characterized in that: include: a transceiver unit, configured to send first information of the first device to a second device through a first message, wherein the first message includes one or more of a first port number, a first security parameter index SPI, a first Internet Protocol IP address, a first security algorithm list, and a first random number; The transceiver unit is further used to receive a second message including second information from the second device, where the second message includes one or more of a second port number, a second security parameter index SPI, a second Internet Protocol IP address, a second security algorithm list, and a second random number; A processing unit is used to determine a first salt value for uplink transmission between the first device and the second device using a first calculation method according to the first information and / or the second information, and / or to determine a second salt value for downlink transmission between the first device and the second device using a second calculation method.

6. The device according to claim 5, characterized in that The first information includes one of a first port number of the first message, a first security parameter index SPI, a first Internet Protocol IP address, a first security algorithm list, and a first random number; and / or The second information is included in one of a second port number of the second message, a second security parameter index SPI, a second Internet Protocol IP address, a second security algorithm list, and a second random number.

7. The device according to claim 5 or 6, characterized in that The processing unit is specifically configured to calculate the first salt value using the first security parameter, The first security parameter includes one or more of the following: a direction identifier of the uplink transmission, a direction identifier of the uplink transmission, an uplink port number of the first device and / or the second device, an uplink IP address of the first device and / or the second device, an uplink SPI of the first device and / or the second device, an uplink counter of the first device and / or the second device, and a random number of the first device and / or the second device; The processing unit is specifically configured to calculate the second salt value using the second security parameter, Among them, the second security parameter includes one or more of the following: the direction identifier of the downlink transmission, the direction identifier of the downlink transmission, the downlink port number of the first device and / or the second device, the downlink IP address of the first device and / or the second device, the downlink SPI of the first device and / or the second device, the downlink counter of the first device and / or the second device, and the random number of the first device and / or the second device.

8. The device according to claim 7, characterized in that The processing unit is further configured to determine a first vector for the uplink transmission using the first security parameter, and / or determine a second vector for the downlink transmission using the second security parameter; The transceiver unit is further configured to send the first vector and / or the second vector to the second device.

9. A secure communication device, comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to read the instructions stored in the memory, so that the secure conversation device implements the method according to any one of claims 1 to 4.

10. A computer-readable medium, characterized in that The invention comprises a computer program, which, when being executed on a secure session device, causes the secure session device to execute the method according to any one of claims 1 to 4.

11. A computer program product, characterized in that The computer program product includes a computer program code, wherein when the computer program code is executed on a secure session device, the secure session device is enabled to implement the method according to any one of claims 1 to 4 above.

Citation Information

Cited By

  • Secure communication method and apparatus

    WO2024235050A1