Cryptographic algorithm processing method and device, communication equipment and readable storage medium
By negotiating and using multiple cryptographic algorithm suites during the establishment process of the access layer security mode, the problem of only supporting AES in the existing technology is solved, and the compatibility and interconnection of the AS security mode are achieved.
Patent Information
- Application Number
- CN202311231298.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-09-22
AI Technical Summary
In the existing technology, the access layer (Access Stratum, AS) security mode establishment process only supports the Advanced Encryption Standard (AES) cryptographic algorithm and is incompatible with cryptographic algorithms other than AES. As a result, the AS security mode establishment fails and cannot meet the needs of interconnection and interoperability. needs.
Support status negotiation through cryptographic algorithms between terminal equipment and network elements, determine the cryptographic algorithm suite used in authentication and key derivation, support the negotiation and use of multiple cryptographic algorithm suites, and ensure the smoothness of the AS security mode establishment process. compatibility.
It achieves compatibility with multiple cryptographic algorithms, ensures the successful establishment of AS security mode, meets the needs for interconnection, and improves the flexibility and security of the network.
Smart Images

Figure CN118827014A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication security technology, and specifically relates to a cryptographic algorithm processing method, apparatus, communication equipment and readable storage medium. Background Art
[0002] In the related technology, the cryptographic algorithm used for key calculation in the process of establishing the access stratum (AS) security mode only supports the Advanced Encryption Standard (AES), and the protocol layer does not support multiple cryptographic algorithms and multiple cryptographic algorithm negotiation. In this case, since there are many network elements involved in the process of establishing the AS security mode, some of them may use cryptographic algorithms other than AES, which will cause the AS security mode to be unable to be established, thereby failing to meet the interconnection requirements. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a cryptographic algorithm processing method, apparatus, communication equipment and readable storage medium to solve the problem that the cryptographic algorithm processing method in the related art cannot meet the requirements of interconnection and interoperability.
[0004] In order to solve the above technical problems, this application is implemented as follows:
[0005] In a first aspect, a cryptographic algorithm processing method is provided, comprising:
[0006] The terminal device sends first information, where the first information is used to indicate the cryptographic algorithm support status of the terminal device;
[0007] The terminal device receives second information sent by the first network element, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation, where the first cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element;
[0008] The terminal device performs key derivation and authentication according to the first cryptographic algorithm suite.
[0009] In a second aspect, a cryptographic algorithm processing method is provided, comprising:
[0010] The first network element obtains the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element;
[0011] The first network element determines a first cryptographic algorithm suite used in authentication and key derivation according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element;
[0012] The first network element sends second information to the terminal device and the second network element respectively, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation.
[0013] In a third aspect, a cryptographic algorithm processing method is provided, comprising:
[0014] The terminal device receives a radio resource control RRC connection reconfiguration message sent by the base station; wherein the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate the activation of the user plane UP integrity protection and / or UP encryption of the data radio bearer DRB, and the fourth information is used to indicate the third cryptographic algorithm suite used in the key derivation of the access layer AS interaction;
[0015] After activating UP integrity protection of DRB according to the first indication, the terminal device generates a first password according to the third cryptographic algorithm suite, and uses the first password to perform UP integrity protection on DRB; and / or, after activating UP encryption of DRB according to the first indication, the terminal device generates a second password according to the third cryptographic algorithm suite, and uses the second password to perform UP encryption on DRB.
[0016] In a fourth aspect, a cryptographic algorithm processing method is provided, comprising:
[0017] The base station sends an RRC connection reconfiguration message to the terminal device; wherein the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate activation of UP integrity protection and / or UP encryption of the DRB, and the fourth information is used to indicate a third cryptographic algorithm suite used in key derivation of AS interaction;
[0018] After activating UP integrity protection of DRB according to the first indication, the base station generates a first password according to the third cryptographic algorithm suite, and uses the first password to perform UP integrity protection on DRB; and / or, after activating UP encryption of DRB according to the first indication, the base station generates a second password according to the third cryptographic algorithm suite, and uses the second password to perform UP encryption on DRB.
[0019] A fifth aspect provides a cryptographic algorithm processing method, comprising:
[0020] The terminal device receives a first switching command message sent by the base station; wherein the first switching command message is used to instruct execution of a switching within a centralized unit CU of the base station, and the first switching command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction;
[0021] The terminal device generates a third password according to the fourth cryptographic algorithm suite, and uses the third password to encrypt data between the terminal device and the base station.
[0022] A sixth aspect provides a cryptographic algorithm processing method, comprising:
[0023] The base station sends a first switching command message to the terminal device; wherein the first switching command message is used to instruct execution of intra-CU switching of the base station, and the first switching command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction;
[0024] The base station generates a third password according to the fourth cryptographic algorithm suite, and encrypts data between the base station and the terminal device according to the third password.
[0025] In a seventh aspect, a cryptographic algorithm processing method is provided, comprising:
[0026] The terminal device receives a second handover command message sent by the source base station; wherein the second handover command message is used to instruct the execution of Xn handover, and the second handover command message includes sixth information, and the sixth information is used to indicate a fifth cryptographic algorithm suite used in the key derivation of AS interaction;
[0027] The terminal device generates a fourth password according to the fifth cryptographic algorithm suite, and encrypts data between the terminal device and the target base station according to the fourth password.
[0028] In an eighth aspect, a cryptographic algorithm processing method is provided, comprising:
[0029] The source base station sends a handover request message to the target base station, where the handover request message includes seventh information, where the seventh information is used to indicate a cryptographic algorithm support status of the terminal device;
[0030] The source base station receives a handover request response message sent by the target base station, where the handover request response message includes sixth information, where the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation for AS interaction, where the fifth cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station;
[0031] The source base station sends a second switching command message to the terminal device, where the second switching command message is used to instruct execution of Xn switching, and the second switching command message includes the sixth information.
[0032] A ninth aspect provides a cryptographic algorithm processing method, comprising:
[0033] The target base station receives a handover request message sent by the source base station, where the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of the terminal device;
[0034] The target base station determines, according to the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the target base station, a fifth cryptographic algorithm suite used in key derivation for AS interaction;
[0035] The target base station sends a handover request response message to the source base station, where the handover request response message includes sixth information, where the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation of AS interaction.
[0036] In a tenth aspect, a cryptographic algorithm processing method is provided, comprising:
[0037] The third network element receives a path switching request message sent by the target base station;
[0038] The third network element derives a new initial key from a key in the NAS security context according to a second cryptographic algorithm suite used in key derivation of NAS interaction;
[0039] The third network element sends a path switching request response message to the target base station, wherein the path switching request response message includes the new initial key, and the new initial key is used for encrypting data between the target base station and the terminal device.
[0040] In an eleventh aspect, a cryptographic algorithm processing device is provided, comprising:
[0041] A first sending module, used for sending first information, where the first information is used for indicating the cryptographic algorithm support status of the terminal device;
[0042] A first receiving module, configured to receive second information sent by a first network element, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation, where the first cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element;
[0043] The first execution module is used to perform key derivation and authentication according to the first cryptographic algorithm suite.
[0044] In a twelfth aspect, a cryptographic algorithm processing device is provided, comprising:
[0045] An acquisition module, used to acquire the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element;
[0046] A first determination module, configured to determine a first cryptographic algorithm suite used in authentication and key derivation according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element;
[0047] The second sending module is used to send second information to the terminal device and the second network element respectively, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation.
[0048] In a thirteenth aspect, a cryptographic algorithm processing device is provided, comprising:
[0049] A second receiving module is configured to receive an RRC connection reconfiguration message sent by a base station; the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate the activation of UP integrity protection and / or UP encryption of a data radio bearer DRB, and the fourth information is used to indicate a third cryptographic algorithm suite used in key derivation of access layer AS interaction;
[0050] A second execution module is used to generate a first password according to the third cryptographic algorithm suite after activating UP integrity protection of DRB according to the first indication, and use the first password to perform UP integrity protection on DRB; and / or, after activating UP encryption of DRB according to the first indication, generate a second password according to the third cryptographic algorithm suite, and use the second password to perform UP encryption on DRB.
[0051] In a fourteenth aspect, a cryptographic algorithm processing device is provided, comprising:
[0052] A third sending module, configured to send an RRC connection reconfiguration message to the terminal device; wherein the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate activation of UP integrity protection and / or UP encryption of the DRB, and the fourth information is used to indicate a third cryptographic algorithm suite used in key derivation of AS interaction;
[0053] A third execution module is used to generate a first password according to the third cryptographic algorithm suite after activating UP integrity protection of DRB according to the first indication, and use the first password to perform UP integrity protection on DRB; and / or, after activating UP encryption of DRB according to the first indication, generate a second password according to the third cryptographic algorithm suite, and use the second password to perform UP encryption on DRB.
[0054] In a fifteenth aspect, a cryptographic algorithm processing device is provided, comprising:
[0055] A third receiving module is configured to receive a first handover command message sent by a base station; wherein the first handover command message is used to instruct execution of a handover within a centralized unit CU of the base station, and the first handover command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation for AS interaction;
[0056] The fourth execution module is used to generate a third password according to the fourth cryptographic algorithm suite, and use the third password to encrypt data between the terminal device and the base station.
[0057] In a sixteenth aspect, a cryptographic algorithm processing device is provided, comprising:
[0058] a fourth sending module, configured to send a first switching command message to the terminal device; wherein the first switching command message is used to instruct execution of intra-CU switching of the base station, and the first switching command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction;
[0059] The fifth execution module is used to generate a third password according to the fourth cryptographic algorithm suite, and encrypt the data between the base station and the terminal device according to the third password.
[0060] In a seventeenth aspect, a cryptographic algorithm processing device is provided, comprising:
[0061] A fourth receiving module, configured to receive a second handover command message sent by a source base station; wherein the second handover command message is used to instruct execution of an Xn handover, and the second handover command message includes sixth information, and the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation of AS interaction;
[0062] The sixth execution module is used to generate a fourth password according to the fifth cryptographic algorithm suite, and encrypt data between the terminal device and the target base station according to the fourth password.
[0063] In an eighteenth aspect, a cryptographic algorithm processing device is provided, comprising:
[0064] a fifth sending module, configured to send a handover request message to a target base station, wherein the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of a terminal device;
[0065] a fifth receiving module, configured to receive a handover request response message sent by the target base station, the handover request response message including sixth information, the sixth information being used to indicate a fifth cryptographic algorithm suite used in key derivation for AS interaction, the fifth cryptographic algorithm suite being determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station;
[0066] The sixth sending module is used to send a second switching command message to the terminal device, where the second switching command message is used to instruct to perform Xn switching, and the second switching command message includes the sixth information.
[0067] In a nineteenth aspect, a cryptographic algorithm processing device is provided, comprising:
[0068] a sixth receiving module, configured to receive a handover request message sent by a source base station, wherein the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of a terminal device;
[0069] A second determination module, configured to determine a fifth cryptographic algorithm suite used in key derivation for AS interaction according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station;
[0070] The seventh sending module is used to send a switching request response message to the source base station, wherein the switching request response message includes sixth information, and the sixth information is used to indicate the fifth cryptographic algorithm suite used in the key derivation of AS interaction.
[0071] In a twentieth aspect, a cryptographic algorithm processing device is provided, comprising:
[0072] A seventh receiving module, configured to receive a path switching request message sent by a target base station;
[0073] a seventh execution module, configured to derive a new initial key from a key in a NAS security context according to a second cryptographic algorithm suite used in key derivation of NAS interaction;
[0074] An eighth sending module is used to send a path switching request response message to the target base station, wherein the path switching request response message includes the new initial key, and the new initial key is used to encrypt data between the target base station and the terminal device.
[0075] In the twenty-first aspect, a communication device is provided, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the cryptographic algorithm processing method as described above.
[0076] In the twenty-second aspect, a readable storage medium is provided, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the cryptographic algorithm processing method as described above are implemented.
[0077] In an embodiment of the present application, key derivation algorithm negotiation between multiple devices / network elements can be supported based on the cryptographic algorithm support status of the network and terminal devices, so that each device / network element confirms the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] Figure 1 is a schematic diagram of a list of encryption algorithms in an embodiment of the present application;
[0079] Figure 2 It is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application;
[0080] Figure 3 It is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application;
[0081] Figure 4 is a flowchart of another cryptographic algorithm processing method provided in an embodiment of the present application;
[0082] Figure 5 is a flowchart of another cryptographic algorithm processing method provided in an embodiment of the present application;
[0083] Figure 6 is a flowchart of the AS UP security activation process in an embodiment of the present application;
[0084] Figure 7 is a flowchart of another cryptographic algorithm processing method provided in an embodiment of the present application;
[0085] Figure 8 is a flowchart of another cryptographic algorithm processing method provided in an embodiment of the present application;
[0086] Fig. 9 It is a flowchart of the intra-gNB-CU switching process in an embodiment of the present application;
[0087] Fig.10 is a flowchart of another cryptographic algorithm processing method provided in an embodiment of the present application;
[0088] Fig.11 is a flowchart of another cryptographic algorithm processing method provided in an embodiment of the present application;
[0089] Fig.12 is a flowchart of another cryptographic algorithm processing method provided in an embodiment of the present application;
[0090] Fig.13 is a flowchart of another cryptographic algorithm processing method provided in an embodiment of the present application;
[0091] Fig.14 is a flowchart of the Xn switching process in an embodiment of the present application;
[0092] Fig.15 It is a structural diagram of a cryptographic algorithm processing device provided in an embodiment of the present application;
[0093] Fig.16 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0094] Fig.17 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0095] Fig.18 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0096] Fig.19 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0097] Fig. 20 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0098] Fig.21 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0099] Fig. 22 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0100] Fig.23 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0101] Fig.24 It is a structural diagram of another cryptographic algorithm processing device provided in an embodiment of the present application;
[0102] Fig.25 It is a structural diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0103] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0104] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0105] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency Division Multiple Access (SC-FDMA) and other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the above-mentioned systems and radio technologies, as well as other systems and radio technologies, such as the 5th Generation (5G) communication system, the 6th Generation (6G) communication system, etc.
[0106] In order to facilitate understanding of the embodiments of the present application, the following contents are first described.
[0107] User Equipment (UE): A general term for Mobile Equipment (ME) and Universal Subscriber Identity Module (USIM).
[0108] Mobile equipment ME: also known as terminal equipment, works with USIM to complete network authentication.
[0109] Security Anchor Functionality (SEAF): Mainly used to authenticate UE when accessing the network.
[0110] Access and Mobility Management Function (AMF): Mainly used to access network equipment, authenticate UE, and support encryption and integrity protection of NAS signaling.
[0111] gNB: base station for access layer communications, such as a 5G base station.
[0112] The upgraded devices in this application solution refer to devices that have been implemented in accordance with this solution, including but not limited to UE, AMF, gNB, etc., which can support multiple cryptographic algorithm suites, such as cryptographic algorithm suite 1, cryptographic algorithm suite 2, cryptographic algorithm suite 3, etc. Generally speaking, all devices support a basic cryptographic algorithm suite, which is defined as cryptographic algorithm suite 1 here. For example, in 5G, international cryptographic algorithms AES-128 and SHA-256 are used. The non-upgraded devices in this application solution refer to currently implemented devices that support a basic cryptographic algorithm suite.
[0113] The cryptographic algorithm support status of the relevant devices in this application solution (including but not limited to ME_AS, AMF_AS, etc.) indicates the algorithms supported by the device in authentication and key derivation. Upgraded devices can generate corresponding XX_AS and recognize XX_AS of other devices. Non-upgraded devices may not be able to generate XX_AS and may not be able to recognize XX_AS of other devices. If XX_AS does not exist, it means that the corresponding device is a non-upgraded device and only supports cryptographic algorithm suite 1. The implementation methods of the cryptographic algorithm support status include but are not limited to the following methods:
[0114] (1) Algorithm list method: XX_AS consists of two parts, one is the supported encryption algorithm list EAS, and the other is the supported hash algorithm list IAS, such as Figure 1 This method can support negotiation of multiple cryptographic algorithms.
[0115] 1) Supported encryption algorithm list EAS: For example, a bit array can be used to mark all available encryption algorithms. For example, bit 0 indicates whether encryption algorithm 1 (such as AES, etc.) is supported, bit 1 indicates whether encryption algorithm 2 (such as SM4, etc.) is supported, etc. If a bit is 1, it means that the corresponding algorithm is supported, and if a bit is 0, it means that the corresponding algorithm is not supported. Figure 1 shown.
[0116] 2) List of supported hash algorithms IAS: For example, a bit array can be used to mark all available hash algorithms, including HASH algorithms and corresponding HMAC algorithms. For example, bit 0 indicates whether hash algorithm 1 (such as SHA256 and HMAC_SHA256) is supported, and bit 1 indicates whether hash algorithm 2 (such as SM3 and HMAC_SM3) is supported. If a bit is 1, it means that the corresponding algorithm is supported, and if a bit is 0, it means that the corresponding algorithm is not supported. Figure 1 shown.
[0117] (2) Indication method based on bit information: For example, XX_AS can be represented by one bit: 1 indicates support for commercial encryption (i.e., commercial encryption), and 0 indicates non-support for commercial encryption. This method can only support negotiation of two encryption algorithms, which can reduce the difficulty of upgrading and transformation.
[0118] AKA_AS is used to indicate the cryptographic algorithm suite used for authentication and key derivation in the Authentication and Key Agreement (AKA) protocol, for example, the index value of the cryptographic algorithm suite.
[0119] NAS_AS is used to indicate the cryptographic algorithm suite used for non-access stratum (NAS) key derivation, for example, the index value of the cryptographic algorithm suite.
[0120] AS_AS is used to indicate the cryptographic algorithm suite used for access stratum (AS) key derivation, for example, the index value of the cryptographic algorithm suite.
[0121] Definition of Key Derivation Function (KDF): Refer to the definition of KDF in existing protocols, and can be implemented using the hash HMAC algorithm corresponding to the cryptographic algorithm suite X, for example: the commercial secret algorithm HMAC-SM3, the international cryptographic algorithm HMAC-SHA-256, and other HMAC algorithms can be used.
[0122] Definition of HASH: It can be implemented using the hash algorithm corresponding to the cryptographic algorithm suite X, for example: the commercial cryptographic algorithm SM3, the international cryptographic algorithm SHA256 and other HASH algorithms can be used.
[0123] Algorithm priority strategy: The network can define the cryptographic algorithm to be used first according to the policy, for example, it can define the algorithm (such as the commercial encryption algorithm, etc.) that should be used first by the upgraded device (such as supporting commercial encryption, etc.). The commercial encryption algorithm calculation used in the present application is only one embodiment, and other algorithms can also be used.
[0124] In order to solve the problem that the cryptographic algorithm processing method in the related technology cannot meet the needs of interoperability, the solution in this application can support the key derivation algorithm negotiation between multiple devices / network elements according to the cryptographic algorithm support status of the network and terminal equipment, so that the AS security mode establishment process can be adaptively compatible with commercial and international cryptographic algorithms to meet the needs of interoperability. Specifically, the ME can adaptively select the encryption key K through the protocol UPenc , integrity key K NASint And the new K gNB The cryptographic algorithm suite that should be used for key derivation. The gNB can adaptively select the encryption key K through the protocol UPenc , integrity key K NASint And the new K gNB The cryptographic algorithm suite that should be used for key derivation. AMF can select a new K through protocol adaptive gNB The cryptographic algorithm suite that should be used for NH and NH key derivation, respectively.
[0125] The cryptographic algorithm processing method, apparatus, communication device and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0126] See also Figure 2 , Figure 2 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a terminal device, such as Figure 2 As shown, the method comprises the following steps:
[0127] Step 21: The terminal device sends first information, where the first information is used to indicate the cryptographic algorithm support status of the terminal device;
[0128] Step 22: The terminal device receives second information sent by the first network element, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation, where the first cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element;
[0129] Step 23: The terminal device performs key derivation and authentication according to the first cryptographic algorithm suite.
[0130] Here, steps 21 to 23 are mainly applicable to the AKA process.
[0131] The first information is, for example, ME_AS, which indicates the cryptographic algorithm support status parameter of the terminal device. The second information is, for example, AKA_AS, which is used to indicate the cryptographic algorithm suite used for AKA authentication and key derivation.
[0132] The first network element may be a unified data management function (UDM) or an authentication credential repository and processing function (ARPF), etc. The second network element includes but is not limited to AMF, SEAF, authentication server function (AUSF), etc.
[0133] Therefore, according to the cryptographic algorithm support status of the network and terminal devices, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0134] Optionally, the above step 21 may include:
[0135] The terminal device sends the first information by initializing the registration request; the first information includes at least one of the following: a reserved field in the initialization registration request, and a newly added field in the initialization registration request.
[0136] That is, the terminal device may send the first information (eg, ME_AS) through a reserved field and / or a newly added field in the initialization registration request.
[0137] Optionally, the cryptographic algorithm support status is implemented in at least one of the following ways:
[0138] List of supported encryption algorithms;
[0139] List of supported hash algorithms;
[0140] Indicates support or non-support of commercial encryption based on bit information.
[0141] Optionally, after the authentication is completed, the cryptographic algorithm processing method may further include:
[0142] The terminal device receives third information, where the third information is used to indicate a second cryptographic algorithm suite used by the terminal device in key derivation for NAS interaction; the third information is, for example, NAS_AS;
[0143] The terminal device derives the NAS key according to the second cryptographic algorithm suite.
[0144] In this way, the NAS security mode can be established.
[0145] See also Figure 3 , Figure 3 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a first network element, such as Figure 3 As shown, the method comprises the following steps:
[0146] Step 31: The first network element obtains the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element;
[0147] Step 32: The first network element determines a first cryptographic algorithm suite used in authentication and key derivation according to the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element;
[0148] Step 33: The first network element sends second information to the terminal device and the second network element respectively, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation.
[0149] In this embodiment, the second information is, for example, AKA_AS, which is used to indicate the cryptographic algorithm suite used for AKA authentication and key derivation.
[0150] The first network element may be UDM, ARPF, etc. The second network element includes but is not limited to AMF, SEAF, AUSF, etc.
[0151] Therefore, according to the cryptographic algorithm support status of the network and terminal devices, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0152] Optionally, the above step 32 may include:
[0153] The first network element determines the cryptographic algorithm suite supported by both the terminal device and the second network element as the first cryptographic algorithm suite used in authentication and key derivation according to the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element.
[0154] For example, taking the 5G communication system as an example, after the 5G AKA protocol is completed, the authentication is completed between the UE and the AMF (or SEAF) in the access network, and K is shared. SEAF , and through K SEAF Deducing K AMF , the K AMF Used for security interaction between UE and AMF; AMF then AMF Derived K gNB , the K gNB Used for security interaction between UE and gNB and security activation of AS User Plane (UP). During the AKA protocol process, gNB can obtain the UE security status (UE security capability) through the Registration Request message.
[0155] If the ME is an upgraded device, the ME needs to generate the ME algorithm support status parameter ME_AS according to the cryptographic algorithm support of the device when starting the registration and authentication process. ME_AS can be used as a new parameter for the initial registration request, or the reserved field in the initial registration request can be used. For example, if the reserved field is used, the ME_AS can be saved in the reserved field of the UE security capability of the Registration Request message, such as the 7th to 9th bytes of the UEsecurity capability; or the ME_AS can be saved in a fixed position in the reserved field according to the implementation method of ME_AS. Afterwards, the ME can send the ME_AS to the SEAF through the gNB via the Initial Registration Request message. If the gNB is an upgraded device, the gNB should obtain and save the ME_AS.
[0156] If the ME is a non-upgraded device, the registration request message may not include ME_AS.
[0157] The solution in this application can be adapted to the 5G AKA authentication process. UDM can select or negotiate the appropriate cryptographic algorithm suite AKA_AS according to the cryptographic algorithm support status (or cryptographic algorithm suite support status) of ME, AMF / SEAF, AUSF, etc., and according to the policy, such as cryptographic algorithm suite 2 supported by all devices. The AKA_AS is used to indicate the cryptographic algorithm suite that ME, SEAF, AUSF and other devices should use in authentication and key derivation. UDM can send AKA_AS to ME, gNB, AMF / SEAF, AUSF and other devices; gNB deletes the old AS_AS. ME, gNB, AMF / SEAF, AUSF and other devices can calculate authentication parameters and derive keys based on the cryptographic algorithm suite indicated by AKA_AS.
[0158] The solution in this application can be adapted to the completion of 5G AKA. AMF can select or negotiate a suitable cryptographic algorithm suite NAS_AS for the NAS layer based on the cryptographic algorithm support status of ME and according to the policy, such as cryptographic algorithm suite 2 supported by all devices, etc. The NAS_AS is used to indicate the cryptographic algorithm suite that should be used in the key derivation of the interaction between ME and AMF at the NAS layer. AMF can send NAS_AS to ME. ME and AMF can calculate / derive the key of the NAS layer based on the cryptographic algorithm suite indicated by NAS_AS.
[0159] Based on the above content, the scheme in this application upgrades and transforms gNB, AMF, etc., so that the relevant key derivation in the process of establishing the AS security mode supports multiple cryptographic algorithm suites; according to the needs of network security policies and the cryptographic algorithm support status of ME, the appropriate AS key derivation cryptographic algorithm suite can be selected to resist the risks brought to the network by the cracking of the cryptographic algorithm, and at the same time meet the needs of interconnection and interoperability. In addition, the ME has been upgraded and transformed so that the ME can support multiple AS key derivation cryptographic algorithm suites, and can use the corresponding AS key derivation cryptographic algorithm suite according to the cryptographic algorithm suite index value synchronized on the network side.
[0160] In addition, by introducing AKA_AS, NAS_AS and AS_AS, each device / network element can adaptively adopt the corresponding cryptographic algorithm suite according to the cryptographic algorithm support status of other devices / network elements in the network, so that it can be compatible with commercial cryptographic algorithms and international cryptographic algorithms.
[0161] In addition to the above solutions, the present application can also be adapted to the user plane (UP) security activation process of the access layer, as described below.
[0162] See also Figure 4 , Figure 4is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a terminal device, such as Figure 4 As shown, the method comprises the following steps:
[0163] Step 41: The terminal device receives an RRC connection reconfiguration message sent by the base station; wherein the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate activation of UP integrity protection and / or UP encryption of the DRB, and the fourth information is used to indicate a third cryptographic algorithm suite used in key derivation of AS interaction;
[0164] Step 42: After activating UP integrity protection of the DRB according to the first indication, the terminal device generates a first password according to the third cryptographic algorithm suite, and uses the first password to perform UP integrity protection on the DRB; and / or, after activating UP encryption of the DRB according to the first indication, the terminal device generates a second password according to the third cryptographic algorithm suite, and uses the second password to perform UP encryption on the DRB.
[0165] In this embodiment, the fourth information is, for example, AS_AS. The first password and the second password may be the same key generated according to the third cryptographic algorithm suite.
[0166] Optionally, the third cryptographic algorithm suite may be determined according to at least one of the following strategies:
[0167] Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as a third cryptographic algorithm suite;
[0168] When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, select the cryptographic algorithm suite with the highest security as the third cryptographic algorithm suite;
[0169] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the third cryptographic algorithm suite.
[0170] Therefore, according to the cryptographic algorithm support status of the base station and terminal equipment, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0171] See also Figure 5 , Figure 5 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a base station, such as Figure 5 As shown, the method comprises the following steps:
[0172] Step 51: The base station sends an RRC connection reconfiguration message to the terminal device; the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate activation of UP integrity protection and / or UP encryption of the DRB, and the fourth information is used to indicate a third cryptographic algorithm suite used in key derivation of AS interaction;
[0173] Step 52: After activating UP integrity protection of DRB according to the first indication, the base station generates a first password according to the third cryptographic algorithm suite, and uses the first password to perform UP integrity protection on the DRB; and / or, after activating UP encryption of DRB according to the first indication, the base station generates a second password according to the third cryptographic algorithm suite, and uses the second password to perform UP encryption on the DRB.
[0174] In this embodiment, the fourth information is, for example, AS_AS. The first password and the second password may be the same key generated according to the third cryptographic algorithm suite.
[0175] Optionally, before the above step 51, the cryptographic algorithm processing method in this embodiment further includes:
[0176] The base station determines the third cryptographic algorithm suite according to at least one of the following strategies:
[0177] Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the third cryptographic algorithm suite;
[0178] Selecting the cryptographic algorithm suite with the highest security from multiple cryptographic algorithm suites supported by both the terminal device and the base station as the third cryptographic algorithm suite;
[0179] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the third cryptographic algorithm suite.
[0180] Therefore, according to the cryptographic algorithm support status of the base station and terminal equipment, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0181] Combine the following Figure 6 The AS UP security activation process in the embodiment of the present application is described.
[0182] Step 01: Execute the main authentication AKA. UE, gNB, AMF, AUSF, UDM and other devices / network elements share AKA_AS. The specific process can be described in the above embodiment.
[0183] Step 02: Execute NAS security mode establishment, UE and AMF share NAS_AS, the specific process can be described in the above embodiment.
[0184] The above steps 01 and 02 are prerequisites. The following is the specific AS UP security activation process.
[0185] Step 1a: The gNB activates Radio Resource Control (RRC) security during the AS SMC process, i.e., activates RRC encryption and RRC integrity protection. The RRC connection reconfiguration process for adding a data radio bearer (DRB) is performed only after RRC security is activated during the AS SMC process.
[0186] Step 1b: The gNB sends an RRC Connection Reconfiguration message to the UE to activate UP security, which contains an indication to activate UP integrity protection and ciphering for each DRB according to the security policy.
[0187] If the gNB is not an upgraded device, the basic cryptographic algorithm suite (such as cryptographic algorithm suite 1) is used to perform the above steps 1a and 1b, that is, to generate a password for exchanging data between the gNB and the UE;
[0188] If the gNB is an upgraded device, then if AS_AS does not exist, the gNB selects the cryptographic algorithm suite used by the AS layer according to the policy and generates AS_AS. The selection policy of AS_AS includes but is not limited to the following methods:
[0189] Cryptographic algorithm selection strategy 1: Select the cryptographic algorithm suite supported by both gNB and ME, and give priority to the cryptographic algorithm suite with higher security to generate AS_AS; for example, if both gNB and ME support cryptographic algorithm suite 2, AS_AS indicates the use of cryptographic algorithm suite 2;
[0190] Cryptographic algorithm selection strategy 2: If AKA_AS exists and the gNB supports the cryptographic algorithm suite indicated by the AKA_AS, AS_AS is set to the cryptographic algorithm suite indicated by AKA_AS, otherwise AS_AS is set to cryptographic algorithm suite 1; for example, if AKA_AS indicates cryptographic algorithm suite 2, AS_AS indicates the use of cryptographic algorithm suite 2.
[0191] Optionally, if AS_AS is generated, the RRC connection reconfiguration message sent by the gNB to the UE includes AS_AS. The AS_AS can be used as a new parameter or a reserved field in the message.
[0192] Step 1c: After the gNB activates the UP integrity protection of the DRB according to the instruction of the RRC connection reconfiguration message, it starts the uplink UP integrity protection and downlink UP integrity verification. If there is no K in the gNB UPint , then generate K UPint and performs UP integrity protection on the DRB; and, after activating UP encryption of the DRB as indicated by the RRC connection reconfiguration message, starts uplink UP encryption and downlink UP decryption, where if there is no K in the gNB UPenc , then generate K UPenc And start UP encryption of the above DRB.
[0193] If the gNB is not upgraded, the basic cryptographic algorithm suite (such as cryptographic algorithm suite 1) is used to generate K. UPint and K UPenc ;
[0194] If the gNB is an upgraded device, the following processing is performed: K is calculated using the cryptographic algorithm suite indicated by AS_AS UPint and K UPenc Otherwise, K is calculated using cryptographic algorithm suite 1. UPint and K UPenc .
[0195] The UE verifies the RRC connection reconfiguration message. If the verification is successful, it performs the following operations:
[0196] Step 2a: After the UE activates UP integrity protection of DRB as indicated by the RRC connection reconfiguration message, the UE starts uplink UP integrity protection and downlink UP integrity verification. If there is no KUPint in the UE, KUPint is generated and UP integrity protection is performed on the DRB; and, after activating UP encryption of DRB as indicated by the RRC connection reconfiguration message, the UE starts uplink UP encryption and downlink UP decryption. If there is no KUPenc in the UE, KUPenc is generated and UP encryption / decryption is performed on the DRB.
[0197] If the UE is not an upgraded device, the basic cryptographic algorithm suite (such as cryptographic algorithm suite 1) is used to generate K UPint and K UPenc ;
[0198] If the UE is an upgraded device, the following processing is performed: obtain and save AS_AS from the RRC connection reconfiguration message, and use the cryptographic algorithm suite indicated by AS_AS to calculate K UPint and K UPenc Otherwise, K is calculated using cryptographic algorithm suite 1. UPint and K UPenc .
[0199] Step 2b: If the UE successfully verifies the integrity of the RRC Connection Reconfiguration message, it sends an RRC Connection Reconfiguration Complete message to the gNB.
[0200] Optionally, if UP integrity protection is not activated for DRBs, the gNB and UE shall not perform integrity protection on the traffic of these DRBs and shall not place the integrity protection Message Authentication Code for Integrity (MAC-I) in the Packet Data Convergence Protocol (PDCP) packets. If UP ciphering is not activated for DRBs, the gNB and UE shall not cipher the traffic of these DRBs.
[0201] In addition to the above solutions, the present application can also be adapted to switching within the centralized unit (CU) of the gNB, as described below.
[0202] See also Figure 7 , Figure 7 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a terminal device, such as Figure 7 As shown, the method comprises the following steps:
[0203] Step 71: The terminal device receives a first handover command message sent by the base station; the first handover command message is used to instruct execution of intra-CU handover of the base station, and the first handover command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction;
[0204] Step 72: The terminal device generates a third password according to the fourth cryptographic algorithm suite, and uses the third password to encrypt data between the terminal device and the base station.
[0205] In this embodiment, the fifth information is, for example, AS_AS, which is used to indicate the cryptographic algorithm suite used in key derivation of AS interaction.
[0206] Optionally, the fourth cryptographic algorithm suite may be determined according to at least one of the following strategies:
[0207] Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as a fourth cryptographic algorithm suite;
[0208] When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, select the cryptographic algorithm suite with the highest security as the fourth cryptographic algorithm suite;
[0209] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the fourth cryptographic algorithm suite.
[0210] Therefore, according to the cryptographic algorithm support status of the base station and terminal equipment, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0211] See also Figure 8 , Figure 8 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a base station, such as Figure 8 As shown, the method comprises the following steps:
[0212] Step 81: The base station sends a first handover command message to the terminal device; the first handover command message is used to instruct execution of intra-CU handover of the base station, and the first handover command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction;
[0213] Step 82: The base station generates a third password according to the fourth cryptographic algorithm suite, and encrypts data between the base station and the terminal device according to the third password.
[0214] In this embodiment, the fifth information is, for example, AS_AS, which is used to indicate the cryptographic algorithm suite used in key derivation of AS interaction.
[0215] Optionally, before the above step 81, the cryptographic algorithm processing method in this embodiment further includes:
[0216] The base station determines the fourth cryptographic algorithm suite according to at least one of the following strategies:
[0217] Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the fourth cryptographic algorithm suite;
[0218] When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, select the cryptographic algorithm suite with the highest security as the fourth cryptographic algorithm suite;
[0219] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the fourth cryptographic algorithm suite.
[0220] Therefore, according to the cryptographic algorithm support status of the base station and terminal equipment, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0221] Combine the following Fig. 9 The intra-gNB-CU switching process in the embodiment of the present application is described.
[0222] In the embodiment of the present application, the gNB has a relevant strategy for determining which gNB-CU intra-switching can retain K gNB , which gNB-CU switching needs to derive a new K gNB During the intra-gNB-CU handover process, the gNB can indicate to the UE in the HO command message whether to update K gNB Or keep the current K gNB . Keep the current K gNB Limited to handover within gNB-CU.
[0223] If you need to update the current K gNB , the gNB and UE can use the target physical cell identifier (PCI), its frequency ARFCN-DL, and the next hop (NH) or the current K gNB , K is derived according to the following principle gNB *: If there is an unused {NH, NCC} pair in the gNB, the gNB uses the NH to derive K gNB * (also called vertical key derivation), otherwise if there is no unused {NH, NCC} pair in the gNB, the gNB uses the current K gNB Derived K gNB *(also called horizontal key derivation). gNB can use the key used to derive K gNB *NCC is sent to the UE via the HO command message. After the handover, the gNB and UE will use K gNB *As K gNB .
[0224] like Fig. 9 As shown, the intra-gNB-CU switching process in this embodiment includes:
[0225] Step 01: Execute the main authentication AKA. UE, gNB, AMF, AUSF, UDM and other devices / network elements share AKA_AS. The specific process can be described in the above embodiment.
[0226] Step 02: Execute NAS security mode establishment, UE and AMF share NAS_AS, the specific process can be described in the above embodiment.
[0227] The above steps 01 and 02 are prerequisites. The following is the specific intra-gNB-CU switching process.
[0228] Step 1: UE reports measurement report to gNB.
[0229] Step 2: gNB determines whether to update K based on the strategy gNB , if it needs to be updated, then according to K gNB Derived K gNB *.
[0230] Among them, if the gNB is not an upgraded device, the basic cryptographic algorithm suite (such as cryptographic algorithm suite 1) is used to perform the above steps, that is, to derive the relevant passwords;
[0231] If the gNB is an upgrade device, if you want to update the current K gNB , then the following processing is performed:
[0232] 1) If AS_AS does not exist, select the cryptographic algorithm suite used by the AS layer according to the policy to generate AS_AS; the selection strategy of AS_AS includes but is not limited to the following methods:
[0233] Cryptographic algorithm selection strategy 1: Select the cryptographic algorithm suite supported by both gNB and ME, and give priority to the cryptographic algorithm suite with higher security to generate AS_AS; for example, if both gNB and ME support cryptographic algorithm suite 2, AS_AS indicates the use of cryptographic algorithm suite 2;
[0234] Cryptographic algorithm selection strategy 2: If AKA_AS exists and the gNB supports the cryptographic algorithm suite indicated by the AKA_AS, AS_AS is set to the cryptographic algorithm suite indicated by AKA_AS, otherwise AS_AS is set to cryptographic algorithm suite 1; for example, if AKA_AS indicates cryptographic algorithm suite 2, AS_AS indicates the use of cryptographic algorithm suite 2.
[0235] 2) Use the cryptographic algorithm suite indicated by AS_AS to calculate / derive K gNB *, otherwise the calculation is done using cryptographic algorithm suite 1.
[0236] Step 3: The gNB sends a HO command message to the UE, which includes AS_AS. The AS_AS can be used as a new parameter or a reserved field in the message.
[0237] Step 4: After receiving the HO command message, the UE updates K according to the policy gNB .
[0238] If the gNB is not upgraded, the basic cryptographic algorithm suite (such as cryptographic algorithm suite 1) is used to derive K gNB *.
[0239] If the gNB is an upgraded device, the following processing is performed: Calculate / derive K using the cryptographic algorithm suite indicated by AS_AS gNB *, otherwise use cryptographic algorithm suite 1 to derive K gNB *.
[0240] Step 5: The UE sends an RRC connection reconfiguration complete message to the gNB.
[0241] In addition, if you want to keep the current K gNB , the gNB and UE shall continue to use the current K gNB When the gNB is implemented as a single unit, i.e. when the gNB is not divided into CU and DU, the above scheme for key update is also applicable.
[0242] User plane (UP) security activation process at the access layer
[0243] In addition to the above solutions, the present application can also be adapted to Xn switching, that is, switching between a source base station and a target base station, as described below.
[0244] See also Fig.10 , Fig.10 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a terminal device, such as Fig.10 As shown, the method comprises the following steps:
[0245] Step 101: The terminal device receives a second handover command message sent by a source base station; the second handover command message is used to instruct to perform an Xn handover, and the second handover command message includes sixth information, and the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation of AS interaction;
[0246] Step 102: The terminal device generates a fourth password according to the fifth cryptographic algorithm suite, and encrypts data between the terminal device and the target base station according to the fourth password.
[0247] In this embodiment, the sixth information is, for example, AS_AS, which is used to indicate the cryptographic algorithm suite used in key derivation of AS interaction.
[0248] Optionally, the fifth cryptographic algorithm suite may be determined according to at least one of the following strategies:
[0249] Selecting a cryptographic algorithm suite supported by both the terminal device and the target base station as a fourth cryptographic algorithm suite;
[0250] When there are multiple cryptographic algorithm suites supported by both the terminal device and the target base station, select the cryptographic algorithm suite with the highest security as the fourth cryptographic algorithm suite;
[0251] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the target base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the fourth cryptographic algorithm suite.
[0252] Therefore, according to the cryptographic algorithm support status of the base station and terminal equipment, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0253] See also Fig.11 , Fig.11 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a source base station, such as Fig.11 As shown, the method comprises the following steps:
[0254] Step 111: The source base station sends a handover request message to the target base station, where the handover request message includes seventh information, and the seventh information is used to indicate the cryptographic algorithm support status of the terminal device;
[0255] Step 112: The source base station receives a handover request response message sent by the target base station, where the handover request response message includes sixth information, where the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation for AS interaction, where the fifth cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station;
[0256] Step 113: The source base station sends a second switching command message to the terminal device, where the second switching command message is used to instruct execution of Xn switching, and the second switching command message includes the sixth information.
[0257] In this embodiment, the sixth information is, for example, AS_AS, which is used to indicate the cryptographic algorithm suite used in key derivation of AS interaction.
[0258] Optionally, before the above step 111, the cryptographic algorithm processing method in this embodiment further includes:
[0259] The source base station generates a fifth password according to the cryptographic algorithm suite used in the key derivation of AS interaction, and encrypts data between the source base station and the target base station according to the fifth password.
[0260] Therefore, according to the cryptographic algorithm support status of the base station and terminal equipment, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0261] See also Fig.12 , Fig.12 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a target base station, such as Fig.12 As shown, the method comprises the following steps:
[0262] Step 121: The target base station receives a handover request message sent by the source base station, where the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of the terminal device;
[0263] Step 122: The target base station determines a fifth cryptographic algorithm suite used in key derivation for AS interaction according to the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the target base station;
[0264] Step 123: The target base station sends a handover request response message to the source base station, where the handover request response message includes sixth information, where the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation for AS interaction.
[0265] In this embodiment, the sixth information is, for example, AS_AS, which is used to indicate the cryptographic algorithm suite used in key derivation of AS interaction.
[0266] Optionally, a cryptographic algorithm suite supported by both the terminal device and the target base station may be determined as the fifth cryptographic algorithm suite used in key derivation of AS interaction.
[0267] Therefore, according to the cryptographic algorithm support status of the base station and terminal equipment, key derivation algorithm negotiation between multiple devices / network elements can be supported, so that each device / network element can confirm the cryptographic algorithm that should be used for key derivation and calculation, thereby meeting the needs of interconnection and interoperability.
[0268] Optionally, when the target base station and the terminal device complete the handover signaling, the method further includes:
[0269] The target base station sends a path switching request message to the third network element;
[0270] The target base station receives a path switching request response message sent by the third network element, wherein the path switching request response message includes a new initial key, and the new initial key is derived based on the second cryptographic algorithm suite used in the key derivation of the NAS interaction, and is used for encrypting data between the target base station and the terminal device.
[0271] For example, the third network element includes but is not limited to AMF, SEAF, AUSF, etc.
[0272] See also Fig.13 , Fig.13 is a flowchart of a cryptographic algorithm processing method provided in an embodiment of the present application, the method is applied to a third network element, such as Fig.13 As shown, the method comprises the following steps:
[0273] Step 131: The third network element receives a path switching request message sent by the target base station;
[0274] Step 132: The third network element derives a new initial key from the key in the NAS security context according to the second cryptographic algorithm suite used in the key derivation of the NAS interaction;
[0275] Step 133: The third network element sends a path switching request response message to the target base station, wherein the path switching request response message includes the new initial key, and the new initial key is used for encrypting data between the target base station and the terminal device.
[0276] In this way, the secure transmission of data between the target base station and the terminal device can be guaranteed.
[0277] Combine the following Fig.14 The Xn switching process in the embodiment of the present application is described.
[0278] In the embodiment of the present application, in Xn handover, if the source gNB has an unused {NH, NCC} pair, the source gNB shall perform vertical key derivation. The source gNB shall first perform vertical key derivation based on the target PCI, its frequency ARFCN-DL, and the currently active K in the horizontal key derivation method. gNB Or NH in the vertical key derivation method, calculate K gNB* .
[0279] like Fig.14 As shown, the Xn switching process in this embodiment includes:
[0280] Step 01: Execute the main authentication AKA. UE, gNB, AMF, AUSF, UDM and other devices / network elements share AKA_AS. The specific process can be described in the above embodiment.
[0281] Step 02: Execute NAS security mode establishment, UE and AMF share NAS_AS, the specific process can be described in the above embodiment.
[0282] The above steps 01 and 02 are prerequisites. The following is the specific intra-gNB-CU switching process.
[0283] Step 1: The UE reports a measurement report to the source gNB.
[0284] Step 2: The source gNB uses the strategy and K gNB and NH to derive K gNB* .
[0285] If the source gNB is not an upgraded device, the above steps are performed using the basic cryptographic algorithm suite (such as cryptographic algorithm suite 1), that is, the relevant cryptographic codes are derived;
[0286] If the source gNB is an upgraded device, the following processing is performed: Use the cryptographic algorithm suite indicated by AS_AS to calculate / derive K gNB *, otherwise the calculation is done using cryptographic algorithm suite 1.
[0287] Step 3: The source gNB sends a handover request message to the target base station, which carries K gNB *, NCC and ME_AS.
[0288] Step 4: The target gNB uses the received K gNB* Directly as K gNB Used with the UE and compares the NCC value received from the source gNB with K gNB In addition, the target gNB may include the received NCC in a prepared HO command message, which is sent to the source gNB in a transparent container and forwarded by the source gNB to the UE.
[0289] If the target gNB is a non-upgraded device, the above steps are performed using a basic cryptographic algorithm suite (such as cryptographic algorithm suite 1), i.e., deriving the relevant cryptography;
[0290] If the target gNB is an upgraded device, the following processing is performed: ME_AS is obtained from the received handover request message, and the cryptographic algorithm suite used by the AS layer is selected according to the policy to generate AS_AS; for example, a cryptographic algorithm suite supported by both the target gNB and ME is selected, and a cryptographic algorithm suite with higher security is given priority to generate AS_AS; for example, if both the target gNB and ME support cryptographic algorithm suite 2, AS_AS indicates the use of cryptographic algorithm suite 2. If ME_AS does not exist, AS_AS is set to cryptographic algorithm suite 1.
[0291] Step 5: The target gNB sends a Handover Request Response message to the source gNB, which contains AS_AS.
[0292] Step 6: The source gNB sends a HO command message to the UE, which contains AS_AS.
[0293] Step 7: After receiving the HO command message, the UE updates K according to the policy gNB .
[0294] Among them, if the UE is a non-upgraded device, a basic cryptographic algorithm suite (such as cryptographic algorithm suite 1) is used to derive relevant passwords.
[0295] If the gNB is an upgrade device and the current K gNB , the following processing is performed: Get AS_AS from the HO command message, and use the cryptographic algorithm suite indicated by AS_AS to calculate and derive K gNB* Otherwise, use cryptographic algorithm suite 1 to calculate / derive K gNB* .
[0296] Step 8: The UE sends an RRC connection reconfiguration complete message to the target gNB.
[0297] Step 9: When the target gNB and the UE have completed the handover signaling, the target gNB sends a path switch request (NGAP PATH SWITCH REQUEST) message to the AMF.
[0298] Step 10: Upon receipt of the NGAP PATH SWITCH REQUEST message, the AMF increases its locally stored NCC value by 1 and calculates a new NH from its stored data using the defined function; alternatively, it may use the K in the currently active NAS security context. AMF to derive a new NH; the newly calculated {NH, NCC} pair may then be sent to the target gNB in a path switch request acknowledgment (NGAP PATH SWITCHREQUEST ACKNOWLEDGE) message; the target gNB shall store the received {NH, NCC} pair for further switching and delete other existing unused {NH, NCC} pairs (if any) originally stored.
[0299] Step 11: AMF sends a path switch request confirmation (NGAP PATH SWITCH REQUESTACKNOWLEDGE) message to the target gNB.
[0300] Among them, if the AMF is a non-upgraded device, the basic cryptographic algorithm suite (such as cryptographic algorithm suite 1) is used to perform the above steps, that is, to derive the relevant password;
[0301] If the AMF is an upgraded device, the following processing is performed: If NAS_AS exists, the cryptographic algorithm suite specified by NAS_AS is used to select K AMF to derive the new NH, otherwise use cryptographic algorithm suite 1 to calculate it.
[0302] In addition, if the AMF has used the new K AMFIf a new 5G NAS security context is activated, which is different from the 5G NAS security context based on the currently active 5G AS security context, but the UE Context Modification procedure has not been successfully performed, the NGAP PATH SWITCH REQUEST ACKNOWLEDGE message sent shall also contain the NSCI (New Security Context Indicator). In this case, the AMF shall retrieve the NSCI from the new K in the most recent NAS SMC Complete. AMF and the uplink NAS COUNT to derive a new initial K gNB AMF should derive the new initial K gNB is associated with a new NCC value equal to zero. The AMF shall then use the new initial K derived from gNB , a new NCC value initialized to zero} pair as the newly derived {NH, NCC} pair to be sent in the NGAP PATH SWITCH REQUESTACKNOWLEDGE message. In this case, the gNB may set the value of the keyChangeIndicator field to true in further handovers. In this case, the gNB may immediately perform an intra-gNB-CU handover and send an appropriate response to the AMF.
[0303] Among them, if the AMF is not an upgraded device, the basic cryptographic algorithm suite (such as cryptographic algorithm suite 1) is used to derive the relevant password;
[0304] If the AMF is an upgraded device, the following processing is performed: If NAS_AS exists, the cryptographic algorithm suite specified by NAS_AS is used to re-initialize K AMF To derive a new initial K gNB , otherwise the cryptographic algorithm suite 1 is used for calculation.
[0305] It is important to note that since the NGAP PATH SWITCH REQUEST message is sent after the radio link switch, it can only be used to provide key material for the next handover procedure. Therefore, for Xn handover, key separation occurs only after two hops, since the source gNB knows the target gNB key. Once the new NH reaches the target gNB via the PATH SWITCH REQUEST ACKNOWLEDGE message, the target gNB can immediately initiate an intra-gNB-CU handover to use the new NH.
[0306] Based on the above content, this solution has at least the following effects: 1) This solution is compatible with the original access layer security mode establishment protocol, can support multiple cryptographic algorithm suites, and adaptively compatible with commercial cryptographic algorithms and international cryptographic algorithms; 2) This solution supports various scenarios. The authentication protocol can also operate normally without supporting commercial cryptography in the network elements involved (such as UE, source gNB, target gNB, etc.), ensuring the interconnection and interoperability of protocols in various scenarios; 3) The cryptographic algorithm suite negotiation during the AS layer security mode establishment process can support non-upgraded UE and gNB, with high compatibility; 4) The cryptographic algorithm suite negotiation during the AS layer Xn-based switching process can support non-upgraded UE, gNB and AMF, with high compatibility; 5) Supports cryptographic algorithm suite negotiation in the case of multi-network element interaction and gNB switching, and supports interconnection and interoperability.
[0307] It should be noted that the cryptographic algorithm processing method provided in the embodiment of the present application can be executed by a cryptographic algorithm processing device, or a control module in the cryptographic algorithm processing device for executing the cryptographic algorithm processing method. In the embodiment of the present application, the cryptographic algorithm processing device provided in the embodiment of the present application is illustrated by taking the cryptographic algorithm processing device executing the cryptographic algorithm processing method as an example.
[0308] See also Fig.15 , Fig.15 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a terminal device, such as Fig.15 As shown, the cryptographic algorithm processing device 150 includes:
[0309] A first sending module 151, used to send first information, where the first information is used to indicate the cryptographic algorithm support status of the terminal device;
[0310] A first receiving module 152 is used to receive second information sent by the first network element, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation, where the first cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element;
[0311] The first execution module 153 is used to perform key derivation and authentication according to the first cryptographic algorithm suite.
[0312] Optionally, after the authentication is completed, the first receiving module 152 is further used to: receive third information, where the third information is used to indicate a second cryptographic algorithm suite used by the terminal device in key derivation for non-access stratum NAS interaction;
[0313] The first execution module 153 is further configured to: derive a NAS key according to the second cryptographic algorithm suite.
[0314] Optionally, the first sending module 151 is further used to: send the first information through an initialization registration request; the first information includes at least one of the following: a reserved field in the initialization registration request, and a newly added field in the initialization registration request.
[0315] Optionally, the cryptographic algorithm support status is implemented in at least one of the following ways:
[0316] List of supported encryption algorithms;
[0317] List of supported hash algorithms;
[0318] Indicates support or non-support of commercial encryption based on bit information.
[0319] The cryptographic algorithm processing device 150 of the embodiment of the present application can implement the above Figure 2 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0320] See also Fig.16 , Fig.16 1 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, and the device is applied to a first network element, such as a UDM, an ARPF, etc. Fig.16 As shown, the cryptographic algorithm processing device 160 includes:
[0321] An acquisition module 161, configured to acquire a cryptographic algorithm support status of a terminal device and a cryptographic algorithm support status of a second network element;
[0322] A first determination module 162, configured to determine a first cryptographic algorithm suite used in authentication and key derivation according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element;
[0323] The second sending module 163 is used to send second information to the terminal device and the second network element respectively, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation.
[0324] Optionally, the first determination module 162 is specifically used to determine the cryptographic algorithm suite supported by both the terminal device and the second network element as the first cryptographic algorithm suite according to the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element.
[0325] The cryptographic algorithm processing device 160 of the embodiment of the present application can implement the above Figure 3 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0326] See also Fig.17 , Fig.17 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a terminal device, such as Fig.17 As shown, the cryptographic algorithm processing device 170 includes:
[0327] The second receiving module 171 is used to receive an RRC connection reconfiguration message sent by the base station; the RRC connection reconfiguration message includes a first indication and a fourth information, the first indication is used to indicate the activation of UP integrity protection and / or UP encryption of the DRB, and the fourth information is used to indicate the third cryptographic algorithm suite used in the key derivation of the access layer AS interaction;
[0328] The second execution module 172 is used to generate a first password according to the third cryptographic algorithm suite after activating UP integrity protection of the DRB according to the first indication, and use the first password to perform UP integrity protection on the DRB; and / or, after activating UP encryption of the DRB according to the first indication, generate a second password according to the third cryptographic algorithm suite, and use the second password to perform UP encryption on the DRB.
[0329] Optionally, the third cryptographic algorithm suite is determined according to at least one of the following strategies:
[0330] Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the third cryptographic algorithm suite;
[0331] When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, selecting the cryptographic algorithm suite with the highest security as the third cryptographic algorithm suite;
[0332] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the third cryptographic algorithm suite.
[0333] The cryptographic algorithm processing device 170 of the embodiment of the present application can implement the above Figure 4 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0334] See also Fig.18 , Fig.18 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a base station, such as Fig.18 As shown, the cryptographic algorithm processing device 180 includes:
[0335] The third sending module 181 is used to send an RRC connection reconfiguration message to the terminal device; wherein the RRC connection reconfiguration message includes a first indication and a fourth information, the first indication is used to indicate the activation of UP integrity protection and / or UP encryption of the DRB, and the fourth information is used to indicate the third cryptographic algorithm suite used in the key derivation of the AS interaction;
[0336] The third execution module 182 is used to generate a first password according to the third cryptographic algorithm suite after activating UP integrity protection of the DRB according to the first indication, and use the first password to perform UP integrity protection on the DRB; and / or, after activating UP encryption of the DRB according to the first indication, generate a second password according to the third cryptographic algorithm suite, and use the second password to perform UP encryption on the DRB.
[0337] Optionally, the third execution module 182 is further configured to: before sending the RRC connection reconfiguration message to the terminal device, determine the third cryptographic algorithm suite according to at least one of the following strategies:
[0338] Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the third cryptographic algorithm suite;
[0339] Selecting a cryptographic algorithm suite with the highest security from a plurality of cryptographic algorithm suites supported by both the terminal device and the base station as the third cryptographic algorithm suite;
[0340] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the third cryptographic algorithm suite.
[0341] The cryptographic algorithm processing device 180 of the embodiment of the present application can implement the above Figure 5 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0342] See also Fig.19 , Fig.19 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a terminal device, such as Fig.19 As shown, the cryptographic algorithm processing device 190 includes:
[0343] The third receiving module 191 is configured to receive a first handover command message sent by a base station; wherein the first handover command message is used to instruct execution of a handover within a centralized unit CU of the base station, and the first handover command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation for AS interaction;
[0344] The fourth execution module 192 is used to generate a third password according to the fourth cryptographic algorithm suite, and use the third password to encrypt data between the terminal device and the base station.
[0345] Optionally, the fourth cryptographic algorithm suite is determined according to at least one of the following strategies:
[0346] Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the fourth cryptographic algorithm suite;
[0347] When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, selecting the cryptographic algorithm suite with the highest security as the fourth cryptographic algorithm suite;
[0348] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the fourth cryptographic algorithm suite.
[0349] The cryptographic algorithm processing device 190 of the embodiment of the present application can implement the above Figure 7 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0350] See also Fig. 20 , Fig. 20 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a base station, such as Fig. 20 As shown, the cryptographic algorithm processing device 200 includes:
[0351] A fourth sending module 201 is configured to send a first switching command message to a terminal device; wherein the first switching command message is used to instruct execution of intra-CU switching of the base station, and the first switching command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction;
[0352] The fifth execution module 202 is used to generate a third password according to the fourth cryptographic algorithm suite, and encrypt data between the base station and the terminal device according to the third password.
[0353] Optionally, the fifth execution module 202 is further configured to: before sending the first switching command message to the terminal device, determine the fourth cryptographic algorithm suite according to at least one of the following strategies:
[0354] Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the fourth cryptographic algorithm suite;
[0355] When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, selecting the cryptographic algorithm suite with the highest security as the fourth cryptographic algorithm suite;
[0356] When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the fourth cryptographic algorithm suite.
[0357] The cryptographic algorithm processing device 200 of the embodiment of the present application can implement the above Figure 8 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0358] See also Fig.21 , Fig.21 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a terminal device, such as Fig.21 As shown, the cryptographic algorithm processing device 210 includes:
[0359] A fourth receiving module 211 is configured to receive a second handover command message sent by a source base station; the second handover command message is used to instruct to perform an Xn handover, and the second handover command message includes sixth information, and the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation of AS interaction;
[0360] The sixth execution module 212 is used to generate a fourth password according to the fifth cryptographic algorithm suite, and encrypt data between the terminal device and the target base station according to the fourth password.
[0361] The cryptographic algorithm processing device 210 of the embodiment of the present application can implement the above Fig.10 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0362] See also Fig. 22 , Fig. 22 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a source base station, such as Fig. 22 As shown, the cryptographic algorithm processing device 220 includes:
[0363] A fifth sending module 221, configured to send a handover request message to a target base station, wherein the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of a terminal device;
[0364] a fifth receiving module 222, configured to receive a handover request response message sent by the target base station, wherein the handover request response message includes sixth information, wherein the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation for AS interaction, wherein the fifth cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station;
[0365] The sixth sending module 223 is used to send a second switching command message to the terminal device, where the second switching command message is used to instruct to perform Xn switching, and the second switching command message includes the sixth information.
[0366] Optionally, the cryptographic algorithm processing device 220 further includes:
[0367] A processing module is used to generate a fifth password according to the cryptographic algorithm suite used in the key derivation of AS interaction before sending a switching request message to the target base station, and encrypt the data between the source base station and the target base station according to the fifth password.
[0368] The cryptographic algorithm processing device 220 of the embodiment of the present application can implement the above Fig.11 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0369] See also Fig.23 , Fig.23 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a target base station, such as Fig.23 As shown, the cryptographic algorithm processing device 230 includes:
[0370] A sixth receiving module 231 is configured to receive a handover request message sent by a source base station, wherein the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of a terminal device;
[0371] A second determination module 232, configured to determine a fifth cryptographic algorithm suite used in key derivation for AS interaction according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station;
[0372] The seventh sending module 233 is used to send a handover request response message to the source base station, where the handover request response message includes sixth information, and the sixth information is used to indicate the fifth cryptographic algorithm suite used in the key derivation of AS interaction.
[0373] Optionally, when the target base station completes the handover signaling with the terminal device,
[0374] The seventh sending module 233 is further used to: send a path switching request message to the third network element;
[0375] The sixth receiving module 231 is also used to: receive a path switching request response message sent by the third network element, the path switching request response message including a new initial key, the new initial key is derived based on the second cryptographic algorithm suite used in the key derivation of NAS interaction, and is used for encrypting data between the target base station and the terminal device.
[0376] The cryptographic algorithm processing device 230 of the embodiment of the present application can implement the above Fig.12 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0377] See also Fig.24 , Fig.24 is a schematic diagram of the structure of a cryptographic algorithm processing device provided in an embodiment of the present application, the device is applied to a source base station, such as Fig.24 As shown, the cryptographic algorithm processing device 240 includes:
[0378] The seventh receiving module 241 is used to receive a path switching request message sent by the target base station;
[0379] A seventh execution module 242, configured to derive a new initial key from the key in the NAS security context according to a second cryptographic algorithm suite used in key derivation of NAS interaction;
[0380] The eighth sending module 243 is used to send a path switching request response message to the target base station, wherein the path switching request response message includes the new initial key, and the new initial key is used to encrypt data between the target base station and the terminal device.
[0381] The cryptographic algorithm processing device 240 of the embodiment of the present application can implement the above Fig.13 The various processes of the method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0382] Optional, such as Fig.25 As shown, an embodiment of the present application also provides a communication device 250, including a processor 251, a memory 252, and a program or instruction stored in the memory 252 and executable on the processor 251. When the program or instruction is executed by the processor 251, each process of the above-mentioned cryptographic algorithm processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0383] An embodiment of the present application also provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned cryptographic algorithm processing method embodiment can be implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0384] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0385] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0386] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0387] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a service classification device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0388] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A cryptographic algorithm processing method, It is characterized in that include: The terminal device sends first information, where the first information is used to indicate the cryptographic algorithm support status of the terminal device; The terminal device receives second information sent by the first network element, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation, where the first cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element; The terminal device performs key derivation and authentication according to the first cryptographic algorithm suite.
2. The method according to claim 1, It is characterized in that After the authentication is completed, the method further includes: The terminal device receives third information, where the third information is used to indicate a second cryptographic algorithm suite used by the terminal device in key derivation for non-access stratum NAS interaction; The terminal device derives the NAS key according to the second cryptographic algorithm suite.
3. The method according to claim 1, It is characterized in that The terminal device sends first information, including: The terminal device sends the first information by initializing a registration request; wherein the first information includes at least one of the following: a reserved field in the initialization registration request, and a newly added field in the initialization registration request.
4. The method according to any one of claims 1 to 3, It is characterized in that The cryptographic algorithm support status is implemented in at least one of the following ways: List of supported encryption algorithms; List of supported hash algorithms; Indicates support or non-support of commercial encryption based on bit information.
5. A cryptographic algorithm processing method, It is characterized in that include: The first network element obtains the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element; The first network element determines a first cryptographic algorithm suite used in authentication and key derivation according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element; The first network element sends second information to the terminal device and the second network element respectively, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation.
6. The method according to claim 5, It is characterized in that The first network element determines, according to the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element, a first cryptographic algorithm suite used in authentication and key derivation, including: The first network element determines a cryptographic algorithm suite supported by both the terminal device and the second network element as the first cryptographic algorithm suite according to the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element.
7. A cryptographic algorithm processing method, It is characterized in that include: The terminal device receives a radio resource control RRC connection reconfiguration message sent by the base station; wherein the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate the activation of the user plane UP integrity protection and / or UP encryption of the data radio bearer DRB, and the fourth information is used to indicate the third cryptographic algorithm suite used in the key derivation of the access layer AS interaction; After activating UP integrity protection of DRB according to the first indication, the terminal device generates a first password according to the third cryptographic algorithm suite, and uses the first password to perform UP integrity protection on DRB; and / or, after activating UP encryption of DRB according to the first indication, the terminal device generates a second password according to the third cryptographic algorithm suite, and uses the second password to perform UP encryption on DRB.
8. The method according to claim 7, It is characterized in that The third cryptographic algorithm suite is determined according to at least one of the following strategies: Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the third cryptographic algorithm suite; When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, selecting the cryptographic algorithm suite with the highest security as the third cryptographic algorithm suite; When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the third cryptographic algorithm suite.
9. A cryptographic algorithm processing method, It is characterized in that include: The base station sends an RRC connection reconfiguration message to the terminal device; wherein the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate activation of UP integrity protection and / or UP encryption of the DRB, and the fourth information is used to indicate a third cryptographic algorithm suite used in key derivation of AS interaction; After activating UP integrity protection of DRB according to the first indication, the base station generates a first password according to the third cryptographic algorithm suite, and uses the first password to perform UP integrity protection on DRB; and / or, after activating UP encryption of DRB according to the first indication, the base station generates a second password according to the third cryptographic algorithm suite, and uses the second password to perform UP encryption on DRB.
10. The method according to claim 9, It is characterized in that Before the base station sends the RRC connection reconfiguration message to the terminal device, the method further includes: The base station determines the third cryptographic algorithm suite according to at least one of the following strategies: Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the third cryptographic algorithm suite; Selecting a cryptographic algorithm suite with the highest security from a plurality of cryptographic algorithm suites supported by both the terminal device and the base station as the third cryptographic algorithm suite; When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the third cryptographic algorithm suite.
11. A cryptographic algorithm processing method, It is characterized in that include: The terminal device receives a first switching command message sent by the base station; wherein the first switching command message is used to instruct execution of a switching within a centralized unit CU of the base station, and the first switching command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction; The terminal device generates a third password according to the fourth cryptographic algorithm suite, and uses the third password to encrypt data between the terminal device and the base station.
12. The method according to claim 11, It is characterized in that The fourth cryptographic algorithm suite is determined according to at least one of the following strategies: Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the fourth cryptographic algorithm suite; When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, selecting the cryptographic algorithm suite with the highest security as the fourth cryptographic algorithm suite; When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the fourth cryptographic algorithm suite.
13. A cryptographic algorithm processing method, It is characterized in that include: The base station sends a first switching command message to the terminal device; wherein the first switching command message is used to instruct execution of intra-CU switching of the base station, and the first switching command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction; The base station generates a third password according to the fourth cryptographic algorithm suite, and encrypts data between the base station and the terminal device according to the third password.
14. The method according to claim 13, It is characterized in that Before the base station sends the first switching command message to the terminal device, the method further includes: The base station determines the fourth cryptographic algorithm suite according to at least one of the following strategies: Selecting a cryptographic algorithm suite supported by both the terminal device and the base station as the fourth cryptographic algorithm suite; When there are multiple cryptographic algorithm suites supported by both the terminal device and the base station, selecting the cryptographic algorithm suite with the highest security as the fourth cryptographic algorithm suite; When there is a first cryptographic algorithm suite used in authentication and key derivation, and the base station supports the first cryptographic algorithm suite, the first cryptographic algorithm suite is selected as the fourth cryptographic algorithm suite.
15. A cryptographic algorithm processing method, It is characterized in that include: The terminal device receives a second handover command message sent by the source base station; wherein the second handover command message is used to instruct the execution of Xn handover, and the second handover command message includes sixth information, and the sixth information is used to indicate a fifth cryptographic algorithm suite used in the key derivation of AS interaction; The terminal device generates a fourth password according to the fifth cryptographic algorithm suite, and encrypts data between the terminal device and the target base station according to the fourth password.
16. A cryptographic algorithm processing method, It is characterized in that include: The source base station sends a handover request message to the target base station, where the handover request message includes seventh information, where the seventh information is used to indicate a cryptographic algorithm support status of the terminal device; The source base station receives a handover request response message sent by the target base station, where the handover request response message includes sixth information, where the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation for AS interaction, where the fifth cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station; The source base station sends a second switching command message to the terminal device, where the second switching command message is used to instruct execution of Xn switching, and the second switching command message includes the sixth information.
17. The method according to claim 16, It is characterized in that Before sending the handover request message to the target base station, the method further includes: The source base station generates a fifth password according to the cryptographic algorithm suite used in key derivation of AS interaction, and encrypts data between the source base station and the target base station according to the fifth password.
18. A cryptographic algorithm processing method, It is characterized in that include: The target base station receives a handover request message sent by the source base station, where the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of the terminal device; The target base station determines, according to the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the target base station, a fifth cryptographic algorithm suite used in key derivation for AS interaction; The target base station sends a handover request response message to the source base station, where the handover request response message includes sixth information, where the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation of AS interaction.
19. The method according to claim 18, It is characterized in that When the target base station and the terminal device complete the handover signaling, the method further includes: The target base station sends a path switching request message to the third network element; The target base station receives a path switching request response message sent by the third network element, where the path switching request response message includes a new initial key, where the new initial key is derived based on a second cryptographic algorithm suite used in key derivation for NAS interaction, and is used for encrypting data between the target base station and the terminal device.
20. A cryptographic algorithm processing method, It is characterized in that include: The third network element receives a path switching request message sent by the target base station; The third network element derives a new initial key from a key in the NAS security context according to a second cryptographic algorithm suite used in key derivation of NAS interaction; The third network element sends a path switching request response message to the target base station, wherein the path switching request response message includes the new initial key, and the new initial key is used for encrypting data between the target base station and the terminal device.
21. A cryptographic algorithm processing device, It is characterized in that include: A first sending module, used to send first information, where the first information is used to indicate the cryptographic algorithm support status of the terminal device; A first receiving module, configured to receive second information sent by a first network element, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation, where the first cryptographic algorithm suite is determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element; The first execution module is used to perform key derivation and authentication according to the first cryptographic algorithm suite.
22. A cryptographic algorithm processing device, It is characterized in that include: An acquisition module, used to acquire the cryptographic algorithm support status of the terminal device and the cryptographic algorithm support status of the second network element; A first determination module, configured to determine a first cryptographic algorithm suite used in authentication and key derivation according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the second network element; The second sending module is used to send second information to the terminal device and the second network element respectively, where the second information is used to indicate a first cryptographic algorithm suite used in authentication and key derivation.
23. A cryptographic algorithm processing device, It is characterized in that include: A second receiving module, used to receive an RRC connection reconfiguration message sent by the base station; The RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate the activation of UP integrity protection and / or UP encryption of the data radio bearer DRB, and the fourth information is used to indicate the third cryptographic algorithm suite used in the key derivation of the access layer AS interaction; A second execution module is used to generate a first password according to the third cryptographic algorithm suite after activating UP integrity protection of DRB according to the first indication, and use the first password to perform UP integrity protection on DRB; and / or, after activating UP encryption of DRB according to the first indication, generate a second password according to the third cryptographic algorithm suite, and use the second password to perform UP encryption on DRB.
24. A cryptographic algorithm processing device, It is characterized in that include: A third sending module, configured to send an RRC connection reconfiguration message to the terminal device; wherein the RRC connection reconfiguration message includes a first indication and fourth information, the first indication is used to indicate activation of UP integrity protection and / or UP encryption of the DRB, and the fourth information is used to indicate a third cryptographic algorithm suite used in key derivation of AS interaction; A third execution module is used to generate a first password according to the third cryptographic algorithm suite after activating UP integrity protection of DRB according to the first indication, and use the first password to perform UP integrity protection on DRB; and / or, after activating UP encryption of DRB according to the first indication, generate a second password according to the third cryptographic algorithm suite, and use the second password to perform UP encryption on DRB.
25. A cryptographic algorithm processing device, It is characterized in that include: A third receiving module is configured to receive a first handover command message sent by a base station; wherein the first handover command message is used to instruct execution of a handover within a centralized unit CU of the base station, and the first handover command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation for AS interaction; The fourth execution module is used to generate a third password according to the fourth cryptographic algorithm suite, and use the third password to encrypt data between the terminal device and the base station.
26. A cryptographic algorithm processing device, It is characterized in that include: a fourth sending module, configured to send a first switching command message to the terminal device; wherein the first switching command message is used to instruct execution of intra-CU switching of the base station, and the first switching command message includes fifth information, and the fifth information is used to indicate a fourth cryptographic algorithm suite used in key derivation of AS interaction; The fifth execution module is used to generate a third password according to the fourth cryptographic algorithm suite, and encrypt the data between the base station and the terminal device according to the third password.
27. A cryptographic algorithm processing device, It is characterized in that include: A fourth receiving module, configured to receive a second handover command message sent by a source base station; wherein the second handover command message is used to instruct execution of an Xn handover, and the second handover command message includes sixth information, and the sixth information is used to indicate a fifth cryptographic algorithm suite used in key derivation of AS interaction; The sixth execution module is used to generate a fourth password according to the fifth cryptographic algorithm suite, and encrypt data between the terminal device and the target base station according to the fourth password.
28. A cryptographic algorithm processing device, It is characterized in that include: a fifth sending module, configured to send a handover request message to a target base station, wherein the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of a terminal device; a fifth receiving module, configured to receive a handover request response message sent by the target base station, the handover request response message including sixth information, the sixth information being used to indicate a fifth cryptographic algorithm suite used in key derivation for AS interaction, the fifth cryptographic algorithm suite being determined according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station; The sixth sending module is used to send a second switching command message to the terminal device, where the second switching command message is used to instruct to perform Xn switching, and the second switching command message includes the sixth information.
29. A cryptographic algorithm processing device, It is characterized in that include: a sixth receiving module, configured to receive a handover request message sent by a source base station, wherein the handover request message includes seventh information, and the seventh information is used to indicate a cryptographic algorithm support status of a terminal device; A second determination module, configured to determine a fifth cryptographic algorithm suite used in key derivation for AS interaction according to a cryptographic algorithm support status of the terminal device and a cryptographic algorithm support status of the target base station; The seventh sending module is used to send a switching request response message to the source base station, wherein the switching request response message includes sixth information, and the sixth information is used to indicate the fifth cryptographic algorithm suite used in the key derivation of AS interaction.
30. A cryptographic algorithm processing device, It is characterized in that include: A seventh receiving module, configured to receive a path switching request message sent by a target base station; a seventh execution module, configured to derive a new initial key from a key in a NAS security context according to a second cryptographic algorithm suite used in key derivation of NAS interaction; An eighth sending module is used to send a path switching request response message to the target base station, wherein the path switching request response message includes the new initial key, and the new initial key is used to encrypt data between the target base station and the terminal device.
31. A communication device, It is characterized in that It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the cryptographic algorithm processing method as described in any one of claims 1 to 20.
32. A readable storage medium, It is characterized in that The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the steps of the cryptographic algorithm processing method as described in any one of claims 1 to 20 are implemented.
Citation Information
Patent Citations
Method and device for requesting connection recovery
CN109803259A
Network equipment switching method and device
CN115066930A
Switching key determination method, switching method and device
CN116782211A
Handling radio link failure in a narrow bandwidth internet of things control plane
US20190320318A1
Key generation method and related devices
WO2018201381A1
