Cryptographic algorithm security negotiation method and device, network function, equipment, storage medium and computer program product
By querying the status of the cryptographic suite and cryptographic algorithm, selecting unfailed cryptographic algorithms to establish communication channels, solving the problem that cryptographic algorithms in the prior art are susceptible to quantum computing attacks, and achieving security negotiation in the quantum computing era.
Patent Information
- Application Number
- CN202410903652.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-07-05
AI Technical Summary
The existing cryptographic algorithm mechanism is vulnerable to quantum computing attacks, and its security cannot be guaranteed. Moreover, the security of post-quantum cryptographic algorithms has not been fully demonstrated, and there is a risk of being cracked.
By receiving the request sent by the device, query whether the password suite and/or password algorithm are invalid, and return information based on the query results, determine the status of the password suite and/or password algorithm, select the unfailed password suite and/or password algorithm to establish a communication channel. , realize flexible and secure negotiation in the quantum computing era.
Effectively avoid the use of failed or insecure cryptographic algorithms, enhance the security of communication channels, and ensure flexibility and security in the cryptographic algorithm negotiation process in the era of quantum computing.
Smart Images

Figure CN119011130A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a cryptographic algorithm security negotiation method, apparatus, network function, device, storage medium and computer program product. Background Art
[0002] The development of quantum technology has significantly improved the computing power of computers, posing a huge threat to the cryptographic system. For example, the cryptographic algorithm mechanism used in the Transport Layer Security (TLS) protocol is vulnerable to quantum computing attacks and its security cannot be guaranteed. In addition, the security of post-quantum cryptographic algorithms has not been fully demonstrated and there is a risk of being cracked. Summary of the invention
[0003] To solve related technical problems, the embodiments of the present application provide a cryptographic algorithm security negotiation method, apparatus, network function, device, storage medium and computer program product.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The embodiment of the present application provides a cryptographic algorithm security negotiation method, which is applied to a first network function, and the method includes:
[0006] Receiving a first request sent by a first device; wherein the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid;
[0007] A first response is returned to the first device; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
[0008] In the above solution, a cryptographic suite includes one or more cryptographic algorithms; after receiving the first request sent by the first device, the method further includes:
[0009] determining a first state of the cryptographic algorithm, the first state indicating whether the cryptographic algorithm is invalid;
[0010] The first information is determined according to a first state of a cryptographic algorithm.
[0011] In the above solution, the first network function supports a first capability and / or a second capability, the first capability is used to determine the cryptographic algorithm included in the cryptographic suite, and the second capability is used to query whether the cryptographic algorithm is invalid.
[0012] In the above solution, the first information includes one or more of the following:
[0013] One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid;
[0014] one or more third information, one piece of third information indicating whether a cipher suite is invalid;
[0015] sign.
[0016] In the above solution, the second information includes the first value, and / or the third information includes the second value; wherein,
[0017] A first value indicates whether a cryptographic algorithm is invalid, and a second value indicates whether a cryptographic suite is invalid. The second value is obtained by performing an OR operation on the first values of all cryptographic algorithms included in the cryptographic suite.
[0018] In the above scheme, the method further comprises:
[0019] The first digest value is signed using the private key of the first network function to obtain the signature; wherein the first digest value is determined according to all the second information, or the first digest value is determined according to all the second information and all the third information.
[0020] The embodiment of the present application also provides a cryptographic algorithm security negotiation method, which is applied to a first device, and the method includes:
[0021] Sending a first request to the first network function; the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid;
[0022] A first response returned by the first network function is received; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
[0023] In the above solution, after receiving the first response returned by the first network function, the method further includes:
[0024] A non-expired cipher suite and / or cipher algorithm is selected according to the first information.
[0025] In the above solution, before sending the first request to the first network function, the method further includes:
[0026] Receiving a first message sent by a second device; the first message carries at least an identifier of the cryptographic suite and / or the cryptographic algorithm;
[0027] Generate the first request according to the first message.
[0028] In the above solution, the first information includes one or more of the following:
[0029] One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid;
[0030] one or more third information, one piece of third information indicating whether a cipher suite is invalid;
[0031] sign.
[0032] In the above scheme, the method further comprises:
[0033] Verifying the signature according to the public key of the first network function and the second digest value; wherein the second digest value is determined according to all the second information, or the second digest value is determined according to all the second information and all the third information;
[0034] When the signature verification passes, a non-expired cryptographic suite and / or cryptographic algorithm is selected according to the first information.
[0035] The embodiment of the present application also provides a cryptographic algorithm security negotiation device, including:
[0036] A first receiving unit, configured to receive a first request sent by a first device; wherein the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is configured to request whether the cryptographic suite and / or the cryptographic algorithm is invalid;
[0037] The first sending unit is used to return a first response to the first device; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
[0038] The embodiment of the present application also provides a cryptographic algorithm security negotiation device, including:
[0039] A second sending unit is configured to send a first request to the first network function; the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is configured to request whether the cryptographic suite and / or the cryptographic algorithm is invalid;
[0040] The second receiving unit is used to receive a first response returned by the first network function; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
[0041] The embodiment of the present application further provides a first network function, including: a first processor and a first communication interface; wherein,
[0042] The first communication interface is used to receive a first request sent by a first device; and is also used to return a first response to the first device; wherein the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; and the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not.
[0043] The embodiment of the present application further provides a first device, comprising: a second processor and a second communication interface; wherein,
[0044] The second communication interface is used to send a first request to the first network function; and is also used to receive a first response returned by the first network function; the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not.
[0045] The embodiment of the present application further provides a network function, including a first processor and a first memory for storing a computer program that can be run on the first processor.
[0046] Among them, when the first processor is used to run the computer program, it executes the steps of any method of the above-mentioned first network function side.
[0047] The embodiment of the present application further provides a first device, comprising a second processor and a second memory for storing a computer program that can be run on the second processor.
[0048] Wherein, the second processor is used to execute the steps of any one of the above-mentioned methods on the first device side when running the computer program.
[0049] An embodiment of the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any method on the first network function side or the steps of any method on the first device side are implemented.
[0050] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.
[0051] In the cryptographic algorithm security negotiation method, apparatus, network function, device, storage medium and computer program product provided in the embodiments of the present application, the first device sends a first request to the first network function; the first network function receives the first request sent by the first device and returns a first response to the first device; the first device receives the first response returned by the first network function; wherein the first request carries at least an identifier of the cryptographic suite and / or cryptographic algorithm, which is used to request whether the cryptographic suite and / or cryptographic algorithm is invalid; the first response carries first information, and the first information indicates whether the cryptographic suite and / or cryptographic algorithm is invalid or not. In the above scheme, the first device determines whether the cryptographic suite and / or cryptographic algorithm is invalid through the first network function, so that the cryptographic suite and / or cryptographic algorithm that is not invalid can be selected to establish a communication channel, thereby realizing flexible and secure cryptographic algorithm negotiation in the era of quantum computing. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 This is a schematic diagram of the architecture of the core network of related technologies;
[0053] Figure 2 A flowchart of a cryptographic algorithm security negotiation method according to an embodiment of the present application;
[0054] Figure 3 This is a schematic diagram of the core network architecture of an embodiment of the present application;
[0055] Figure 4 This is a schematic diagram of the structure of the first network function in an embodiment of the present application;
[0056] Figure 5 A flowchart of a cryptographic algorithm security negotiation method according to an embodiment of the present application;
[0057] Figure 6 A flowchart of a cryptographic algorithm security negotiation method according to an embodiment of the present application;
[0058] Figure 7 This is a schematic diagram of the structure of a cryptographic algorithm security negotiation device according to an embodiment of the present application;
[0059] Figure 8 This is a schematic diagram of the structure of a cryptographic algorithm security negotiation device according to an embodiment of the present application;
[0060] Fig. 9 This is a schematic diagram of the first network function structure of an embodiment of the present application;
[0061] Fig.10 This is a schematic diagram of the first device structure of an embodiment of the present application. DETAILED DESCRIPTION
[0062] The 3rd Generation Partnership Project (3GPP) requires that communications between network functions (NFs) in the core network of the communication network and between different network operators must follow the TLS protocol for transmission protection. The core network architecture is as follows: Figure 1 shown. Figure 1Different network functions of the core network communicate through service-based interfaces (SBI) or N32 interfaces. The network functions include: network slice selection function (NSSF), network slice selection authentication and authorization function (NSSAAF), network exposure function (NEF), authentication service function (AUSF), network storage function (NRF), access and mobility management function (AMF), policy control function (PCF), unified data management (UDM), session management function (SMF), application function (AF), service communication proxy (SCP), network slice admission control function (NSACF), edge application server discovery function (EASDF), security edge protection proxy (SEPP), etc. ProtectionProxy), visitor Security Edge Protection Proxy (vSEPP), home Security Edge Protection Proxy (hSEPP), public land mobile network (PLMN), home public land mobile network (hPLMN) and short message service function (SMSF).
[0063] With the rapid development of quantum computing, large-scale quantum computers that can crack traditional cryptographic algorithms may appear around 2030. Quantum computers can realize parallel computing based on the characteristics of quantum superposition, and their computing power is exponentially improved compared with traditional computers. It is possible to efficiently solve some problems that are "exponentially" difficult in the classical computing mode, thus posing a huge threat to the cryptographic system. For symmetric cryptographic systems, although the Grover algorithm can reduce the search complexity of disordered sets to the square root level, theoretically it can halve the security strength of symmetric cryptographic algorithms (e.g., block encryption) and hash functions, but by increasing the length of security parameters, such as doubling the key length of symmetric cryptography or doubling the output length of hash cryptography, the threat of quantum computing can be effectively dealt with; for public key cryptographic systems, the Shor algorithm can decompose large integers and solve discrete logarithms in polynomial time, and theoretically it can completely crack the currently widely used Rivest-Shamir-Adleman (RSA) algorithm and elliptic curve public key cryptographic algorithms. Therefore, the impact of the development of quantum technology on cryptographic systems is mainly reflected in the field of public key cryptography.
[0064] In the field of public key cryptography, all mandatory and recommended TLS cipher suites use public key cryptography mechanisms, such as ephemeral Elliptic Curve Diffie-Hellman (ECDHE) and ephemeral Diffie-Hellman (DHE) algorithms, for key negotiation and secure transmission. Using quantum computers, attackers can decrypt, spoof or tamper with sensitive data communicated through the SBI or N32 interface by using a store-first-then-decrypt attack method; sensitive data may include: subscription information stored in UDM, user information provided by UDM to other network functions (such as AUSF, AMF, SMF, SMSF) upon request, user subscription permanent identifier (SUPI) and / or user hidden identifier (SUCI) sent by UDM services to NF consumers through the interface, access and mobility subscription data, short message service (SMS) subscription data, slice selection subscription data, and location services control (LCS) privacy data.
[0065] In order to cope with the impact of quantum computing on the cracking of traditional cryptographic technology, the United States and other Western countries have already laid out post-quantum cryptography. The National Institute of Standards and Technology (NIST) of the United States has collected post-quantum cryptographic algorithm solutions worldwide, and has selected four public key post-quantum cryptographic standard algorithms such as CRYSTALS-KYBER. These post-quantum cryptographic standard algorithms are likely to be adopted by 3GPP, the International Telecommunication Union (ITU), etc. in the future. my country has also started research on post-quantum cryptography, and plans to start collecting in 2024. It is expected that the final release will take more than 5 years. Therefore, at this stage, it is necessary to build a flexible and replaceable cryptographic architecture to reserve a replacement mechanism for domestic post-quantum cryptography. When the domestic post-quantum cryptographic standard algorithm is launched, it can achieve smooth migration and strive for the initiative of communication security in the post-quantum era.
[0066] To sum up, with the rapid development of quantum computing, the problems with the cryptographic algorithm mechanisms currently used and the post-quantum cryptographic algorithms that are considered to be introduced in the future are as follows: the cryptographic algorithm mechanisms currently used in TLS are vulnerable to attacks from quantum computing, and their security cannot be guaranteed; the security of the post-quantum cryptographic algorithms that are considered to be introduced in the future has not been fully demonstrated and may be cracked at any time.
[0067] Based on this, in various embodiments of the present application, the first device sends a first request to the first network function; the first network function receives the first request sent by the first device and returns a first response to the first device; the first device receives the first response returned by the first network function; wherein the first request carries at least an identifier of a cryptographic suite and / or cryptographic algorithm, which is used to request whether the cryptographic suite and / or cryptographic algorithm is invalid; the first response carries first information, and the first information indicates whether the cryptographic suite and / or cryptographic algorithm is invalid or not. In the above scheme, the first device determines whether the cryptographic suite and / or cryptographic algorithm is invalid through the first network function, so that it can select a valid cryptographic suite and / or cryptographic algorithm to establish a communication channel, and realize flexible and secure cryptographic algorithm negotiation in the era of quantum computing.
[0068] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0069] The embodiment of the present application provides a cryptographic algorithm security negotiation method, which is applied to a first network function. The first network function can be understood as a network function that has the function of querying whether a cryptographic suite and / or a cryptographic algorithm is invalid. Figure 2 As shown, the method includes:
[0070] Step 201: Receive a first request sent by a first device.
[0071] The first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid.
[0072] Here, in the case of receiving the first request sent by the first device, according to the first request, it is queried whether the cryptographic suite and / or cryptographic algorithm carried in the first request is invalid. The first request may carry the identifiers of one or more cryptographic algorithms, which is used to request to query whether one or more cryptographic algorithms are invalid; the first request may carry one or more cryptographic suites, and a cryptographic suite may contain one or more cryptographic algorithms. The first request is used to request to query whether the cryptographic suite is invalid and / or whether the cryptographic algorithm contained in the cryptographic suite is invalid.
[0073] It should be noted that the first request may also carry a random number and a protocol version (such as a TLS protocol version) generated by the second device. The first request may carry different contents, and the first device and the second device may also be different; for example, when the first request carries one or more cipher suites, the first device may be a TLS server, or a device that deploys a TLS server, and the second device may be a TLS client or a device that deploys a TLS client; for another example, when the first request carries identifiers of multiple cryptographic algorithms, the first device may be an initiator of the Internet Security Protocol (IPSec), and the second device may be a responder of IPSec; for another example, when the first request carries an identifier of a cryptographic algorithm, the first device may be an AMF, and the second device may be a user equipment (UE). The failure of a cipher suite and / or a cipher algorithm may indicate that the cipher suite and / or the cipher algorithm are insecure, or may indicate that the cipher algorithm is replaced (unavailable) and / or that the cipher suite contains at least one replaced (unavailable) cipher algorithm; the failure or non-failure of a cipher suite and the failure or non-failure of a cipher algorithm may be represented by numerical values. For example, 1 is used to indicate that a cryptographic algorithm is invalid or in an invalid state or that the cryptographic algorithm is unavailable or that the cryptographic algorithm is unsafe; 0 is used to indicate that the cryptographic algorithm is not invalid or that the cryptographic algorithm is safe and available. For another example, 1 is used to indicate that a cryptographic suite is invalid or that the cryptographic suite is unavailable or that the cryptographic suite is unsafe, that is, the cryptographic suite contains at least one invalid, unavailable or unsafe cryptographic algorithm, or the cryptographic suite contains at least one invalid cryptographic algorithm; 0 is used to indicate that the cryptographic suite is not invalid or that the cryptographic suite is safe and available, that is, all the cryptographic algorithms contained in the cryptographic suite are not invalid and are safe and available. In other words, if there is at least one invalid cryptographic algorithm in a cryptographic suite, the cryptographic suite is invalid.
[0074] It should be noted that the first network function can be called a cryptographic algorithm expiration status query function (ARL, Algorithm Revocation List), which can be called by a network entity or a communication entity (such as a TLS function network element) in the communication network; ARL can be used as an independent functional network element or network function. At this time, the core network architecture is as follows Figure 3 As shown, ARL can also be combined with other network functions, for example, ARL is combined with PCF, and the first network function can be understood as a PCF with a cryptographic algorithm expiration status query function.
[0075] Step 202: Return a first response to the first device.
[0076] The first response carries first information, where the first information indicates whether the cipher suite and / or cipher algorithm is invalid or not invalid.
[0077] Here, when determining whether the cryptographic suite and / or cryptographic algorithm is invalid, first information is generated according to the determination result; a first response is generated based on the first information, and the first response is sent to the first device, so that the first device can select a safe and available cryptographic suite or a non-expired cryptographic suite according to the first information carried in the first response, establish a secure communication channel between the first device and the second device, and achieve communication security.
[0078] Wherein, in the case where the first request carries one or more cryptographic algorithms, the first information indicates that the corresponding one or more cryptographic algorithms are invalid or not invalid, that is, the first information indicates that all the cryptographic algorithms carried by the first request are invalid or not invalid. Wherein, in the case where the first request carries one or more cryptographic suites, the first information indicates that the corresponding one or more cryptographic suites are invalid or not invalid, that is, the first information indicates that all the cryptographic suites carried by the first request are invalid or not invalid.
[0079] In order to achieve flexible and secure cryptographic algorithm negotiation and enhance the security of the communication channel, in one embodiment, a cryptographic suite includes one or more cryptographic algorithms; after receiving the first request sent by the first device, the method further includes:
[0080] determining a first state of the cryptographic algorithm, the first state indicating whether the cryptographic algorithm is invalid;
[0081] The first information is determined according to a first state of a cryptographic algorithm.
[0082] Here, when the first request is received, the first request is parsed to obtain a parsing result, a first state of each cryptographic algorithm included in the parsing result is determined, and first information is determined according to the first state of each cryptographic algorithm included in the parsing result.
[0083] For example, in the case where the first request carries one or more cryptographic suites for requesting whether the cryptographic suite is invalid, the parsing result may include one or more cryptographic suites and all cryptographic algorithms contained in each cryptographic suite. The first network function determines the first state of all cryptographic algorithms contained in each cryptographic suite carried by the first request; determines whether each cryptographic suite carried by the first request is invalid according to the first state of all cryptographic algorithms contained in each cryptographic suite carried by the first request; determines the first information according to the first state of all cryptographic algorithms contained in each cryptographic suite carried by the first request and / or whether each cryptographic suite carried by the first request is invalid; the first information may include the invalidation status results of all cryptographic suites carried by the first request, the invalidation status results may be referred to as the status results or the second status, and the second status indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not; the invalidation status results of the cryptographic suite may be determined according to whether the cryptographic suite is invalid and / or whether the cryptographic algorithm contained in the cryptographic suite is invalid.
[0084] It should be noted that, when the cryptographic suite includes only one cryptographic algorithm, whether the cryptographic algorithm is invalid can be understood as whether the cryptographic suite is invalid, and the first information can be directly determined according to the first state of the cryptographic algorithm.
[0085] For another example, when the first request carries the identifier of one or more cryptographic algorithms for requesting whether the cryptographic algorithms are invalid, the parsing result includes the one or more cryptographic algorithms. The first network function determines the first status of all cryptographic algorithms carried in the first request; determines the first information based on the first status of all cryptographic algorithms carried in the first request; the first information may include the invalid status results of all cryptographic algorithms carried in the first request; the invalid status results of the cryptographic algorithms may be determined based on the first status of the cryptographic algorithms.
[0086] In order to facilitate other functional network elements in the core network to call the first network function, in one embodiment, the first network function supports a first capability and / or a second capability, the first capability is used to determine the cryptographic algorithm included in the cryptographic suite, and the second capability is used to query whether the cryptographic algorithm is invalid.
[0087] Here, the first network function supports the first capability and / or the second capability, and can determine the cryptographic algorithm included in the cryptographic suite by calling the first capability, and query whether the cryptographic algorithm is invalid by calling the second capability, that is, query the first state of the cryptographic algorithm; for example, the first network function may include a state library, and the second capability may be called to query the first state of the cryptographic algorithm in the state library; for another example, the second capability may be called to query the first state of the cryptographic algorithm in other devices or network functions. The first capability can be understood as the cryptographic suite status query capability or the cryptographic suite invalidation status query capability, and the second capability can be understood as the cryptographic algorithm status query capability or the cryptographic algorithm invalidation status query capability; the first network function can directly call the second capability, or call the second capability through the first capability; both the first capability and the second capability are deployed with corresponding capability interfaces for invocation by other functional network elements.
[0088] The state library may also be referred to as the cryptographic algorithm state library. Invalid cryptographic algorithms or the first state of cryptographic algorithms may be stored in the state library or other devices or other network functions. The state library may also store and maintain relevant information of cryptographic algorithms that have been verified to be unsafe (such as symmetric cryptographic algorithms, hash cryptographic algorithms, public key cryptographic algorithms, and post-quantum cryptographic algorithms), for example, the name, version, and key length of the cryptographic algorithm. In the case where an invalid cryptographic algorithm is stored in the state library or other devices or other network functions, the state library may be queried for a cryptographic algorithm that matches the identifier of the cryptographic algorithm according to the identifier of the cryptographic algorithm carried in the first request, thereby determining the first state corresponding to the identifier of the cryptographic algorithm carried in the first request; or the first state of the cryptographic algorithm included in the cryptographic suite may be determined by querying the state library for a cryptographic algorithm included in the cryptographic suite. When the first state of a cryptographic algorithm is stored in a state library or other device or other network function, it is possible to query the state library based on the identifier of the cryptographic algorithm carried in the first request to see whether there is a first state of the cryptographic algorithm that matches the identifier of the cryptographic algorithm, thereby determining the first state corresponding to the identifier of the cryptographic algorithm carried in the first request; or, it is possible to query the state library or other device or other network function for the first state of a cryptographic algorithm that matches the cryptographic algorithm included in the cryptographic suite, thereby determining the first states of all cryptographic algorithms included in the cryptographic suite.
[0089] It should be noted that the first network function may also support the cryptographic suite parsing capability, so as to parse the cryptographic suite and determine the cryptographic algorithm contained in the cryptographic suite; the cryptographic suite parsing capability may be called by the first capability. The first network function may also support the cryptographic algorithm state management capability to implement the addition, deletion, modification and query operations of the cryptographic algorithm or the related information of the cryptographic algorithm and the first state in the state library, so that the first state of the cryptographic algorithm can be obtained in real time through the state library. The structure of the first network function is as follows: Figure 4shown.
[0090] In order to facilitate the device that receives the first information to learn whether the cryptographic suite and / or cryptographic algorithm is invalid and enhance the security of the communication channel, in one embodiment, the first information includes one or more of the following:
[0091] One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid;
[0092] one or more third information, one piece of third information indicating whether a cipher suite is invalid;
[0093] sign.
[0094] Here, in the case where the first request carries the identification of one or more cryptographic algorithms, the first information may include at least one or more second information and may also include a signature; the number or number of the second information is the same as the number or number of the cryptographic algorithms. The signature is used to verify the integrity of the first information.
[0095] In the case where the first request carries one or more cryptographic suites, the first information includes at least one or more second information, and the number or number of pieces of the second information is the same as the number or number of cryptographic algorithms included in the cryptographic suite; the first information may also include one or more third information, and / or signatures.
[0096] In the case where the first information includes one or more second information, if a second information indicates a first state of a cryptographic algorithm included in a cryptographic suite carried by the first request, the first device can determine whether each cryptographic suite carried by the first request is invalid based on all the second information, thereby selecting a safe and available or non-expired cryptographic suite to establish a communication channel; if a second information indicates a first state of a cryptographic algorithm, the first device can determine the first state of the cryptographic algorithm based on the second information, and determine the first states corresponding to the identifiers of all cryptographic algorithms carried by the first request based on all the second information, thereby selecting a safe and available or non-expired cryptographic algorithm to communicate, or establish a communication channel.
[0097] In the case where the first information includes one or more third information, the first information or the third information indicates whether the cryptographic suite carried in the first request is invalid or not invalid, and the first device can directly select a secure, available or non-invalid cryptographic suite to establish a communication channel based on the first information or the third information.
[0098] In the case where the first information includes one or more second information and one or more third information, the first information indicates whether the cryptographic suite carried by the first request is invalid or not invalid and the first state of the cryptographic algorithm included in the cryptographic suite. The first device can select a safe and usable or non-expired cryptographic suite based on the first information, and determine the invalid cryptographic algorithm, or determine the non-expired or safe and usable cryptographic algorithm.
[0099] It should be noted that the third information corresponds one-to-one to the cryptographic suite carried in the first request; one third information corresponds to one or more second information; the second information corresponding to the third information corresponds one-to-one to the cryptographic algorithm contained in the cryptographic suite corresponding to the third information.
[0100] In order to enhance the security of the communication channel, in one embodiment, the second information includes the first value, and / or the third information includes the second value; wherein,
[0101] A first value indicates whether a cryptographic algorithm is invalid, and a second value indicates whether a cryptographic suite is invalid. The second value is obtained by performing an OR operation on the first values of all cryptographic algorithms included in the cryptographic suite.
[0102] Here, a second information includes a first numerical value, a first numerical value indicates that a first state of a cryptographic algorithm is invalid or not invalid, and the value of the first numerical value can be 1 or 0; a third information includes a second numerical value, a second numerical value indicates that a cryptographic suite is not invalid or the cryptographic suite contains an invalid cryptographic algorithm, and the value of the second numerical value can be 1 or 0. The second numerical value indicates that the cryptographic suite is invalid (such as the second numerical value corresponding to the cryptographic suite is 1), which can be understood as the cryptographic suite contains at least one invalid, unusable or insecure cryptographic algorithm (such as the first numerical value corresponding to at least one cryptographic algorithm contained in the cryptographic suite is 1); the second numerical value indicates that the cryptographic suite is not invalid (such as the second numerical value corresponding to the cryptographic suite is 0), which can be understood as all cryptographic algorithms contained in the cryptographic suite are not invalid and are safe and available (such as the first numerical values corresponding to all cryptographic algorithms contained in the cryptographic suite are 0).
[0103] In order to facilitate the device receiving the first information to verify the integrity of the first information, the first information includes a signature. Based on this, in one embodiment, the method further includes:
[0104] The first digest value is signed using the private key of the first network function to obtain the signature; wherein the first digest value is determined according to all the second information, or the first digest value is determined according to all the second information and all the third information.
[0105] Here, when the first request carries the identifier of one or more cryptographic algorithms but does not carry the cryptographic suite, a first digest value is determined based on all the second information, and the first digest value is signed using the private key of the first network function to obtain the signature included in the first information.
[0106] In the case where the first request carries one or more cryptographic suites, or the first request carries one or more cryptographic suites and cryptographic algorithm identifiers, the first digest value is determined based on all the second information and all the third information; the first digest value is signed using the private key of the first network function to obtain the signature included in the first information; all the second information refers to the second information corresponding to all the cryptographic algorithms in all the cryptographic suites carried by the first request, and all the third information refers to the third information corresponding to all the cryptographic suites carried by the first request. The algorithm used to determine the first digest value may be a secure, available or non-expired cryptographic hash algorithm, which is also called a digest algorithm; when the first digest value is signed using the private key of the first network function, the algorithm used may be a secure, available or non-expired signature algorithm; the cryptographic hash algorithm and signature algorithm used by the first network function may be agreed upon by the first network function and the first device, or may be determined based on the second information.
[0107] The embodiment of the present application also provides a cryptographic algorithm security negotiation method, which is applied to a first device. The first device can be a server, or a device that deploys a server, such as a TLS server and an IPSec server (initiator), or a network function that has a communication channel establishment function, such as AMF. Figure 5 As shown, the method includes:
[0108] Step 501: Send a first request to a first network function.
[0109] The first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid.
[0110] In order to enable the first device to establish a communication channel with the second device, in one embodiment, before sending the first request to the first network function, the method further includes:
[0111] Receiving a first message sent by a second device; the first message carries at least an identifier of the cryptographic suite and / or the cryptographic algorithm;
[0112] Generate the first request according to the first message.
[0113] Here, when the first device receives the first message sent by the second device, it parses the first message to obtain fourth information, where the fourth information at least includes an identifier of a cryptographic suite and / or a cryptographic algorithm; generates a first request based on the fourth information, and sends the first request to the first network function to request whether the cryptographic suite and / or the cryptographic algorithm is invalid.
[0114] The fourth information may also include a protocol version (such as a TLS protocol version) and a random number generated by the second device. In the case where the first device is a TLS server or a device that deploys a TLS server, the second device may be a TLS client or a device that deploys a TLS client, the communication channel may be a TLS channel, and the first message may be a Client Hello message; the first message may carry one or more cipher suites and / or cipher algorithm identifiers, or carry a cipher suite list and / or cipher algorithm identifier list, the cipher suite and / or cipher algorithm identifier carried by the first message is the cipher suite and / or cipher algorithm identifier supported by the second device, and is used for the first device to establish a communication channel; the cipher suite and / or cipher algorithm identifier carried by the first request is the cipher suite and / or cipher algorithm identifier carried by the first message.
[0115] Step 502: Receive a first response returned by the first network function.
[0116] The first response carries first information, where the first information indicates whether the cipher suite and / or cipher algorithm is invalid or not invalid.
[0117] In one embodiment, after receiving the first response returned by the first network function, the method further includes:
[0118] A secure cipher suite and / or cipher algorithm is selected according to the first information.
[0119] Here, when the first information indicates that the cryptographic algorithm is invalid or not, and the first request carries at least the identifier of the cryptographic algorithm, it is determined whether the cryptographic algorithms corresponding to the identifiers of all cryptographic algorithms carried in the first request are invalid according to the first information, and a safe and available or non-invalid cryptographic algorithm is selected for communication, or a communication channel is established.
[0120] When the first information indicates that the cryptographic algorithm is invalid or not invalid, and the first request carries at least a cryptographic suite, determine whether each cryptographic suite carried in the first request is invalid according to the first information, select a safe and available or non-invalid cryptographic suite to establish a communication channel, and determine an invalid or insecure or unavailable cryptographic algorithm to avoid using an invalid or insecure or unavailable cryptographic algorithm to communicate or establish a communication channel.
[0121] In the case that the first information indicates that the cipher suite is invalid or not invalid, a secure and available or non-expired cipher suite is directly selected according to the first information to establish a communication channel.
[0122] In the case where the first information indicates that the cryptographic suite and the cryptographic algorithm are invalid or not invalid, a secure and available or non-invalid cryptographic suite is directly selected according to the first information to establish a communication channel, and the invalid or insecure or unavailable cryptographic algorithm is determined according to the first information, or, in combination with the result that the cryptographic algorithm included in the cryptographic suite is invalid or not invalid, it is verified whether the result of the cryptographic suite being invalid or not invalid is credible.
[0123] It should be noted that the cryptographic suite and / or cryptographic algorithm indicated by the first information corresponds one-to-one to the cryptographic suite and / or cryptographic algorithm carried by the first request; the first information indicates that the cryptographic suite is invalid, which can be understood as the cryptographic suite contains at least one invalid cryptographic algorithm; the first information indicates that the cryptographic suite is not invalid, which can be understood as all cryptographic algorithms contained in the cryptographic suite are not invalid and are safe and available.
[0124] Before selecting a cryptographic suite and / or cryptographic algorithm for establishing a secure communication channel, the first device can confirm through the first network function whether the cryptographic suite and / or cryptographic algorithm supported by the second device is invalid, thereby selecting a safe and available or non-expired cryptographic suite and / or cryptographic algorithm to perform subsequent interactions with the second device (such as key negotiation, certificate authentication, and communication encryption). This can avoid the use of invalid or insecure or unavailable cryptographic algorithms, flexibly respond to security risks of cryptographic algorithms being cracked, and achieve resilient security of communication networks in the era of quantum computing.
[0125] In order to confirm the integrity of the first information and select a secure, available or non-expired cryptographic suite to establish a communication channel according to the first information, in one embodiment, the first information includes one or more of the following:
[0126] One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid;
[0127] one or more third information, one piece of third information indicating whether a cipher suite is invalid;
[0128] sign.
[0129] Here, in the case where the first information includes one or more second information, if a second information indicates whether a cryptographic algorithm included in a cryptographic suite carried by the first request is invalid, then it can be determined whether each cryptographic suite carried by the first request is invalid based on all the second information included in the first information, thereby selecting a safe and available or non-expired cryptographic suite to establish a communication channel; if a second information indicates whether a cryptographic algorithm is invalid, then it can be determined whether the cryptographic algorithm is invalid based on the second information, and it can be determined whether the cryptographic algorithms corresponding to all the cryptographic algorithm identifiers carried by the first request are invalid based on all the second information included in the first information, thereby selecting a safe and available or non-expired cryptographic algorithm to communicate, or to establish a communication channel.
[0130] In the case where the first information includes one or more third information, the first information or the third information indicates whether the cryptographic suite carried in the first request is invalid, and a secure, available or non-expired cryptographic suite can be directly selected according to the first information or the third information to establish a communication channel.
[0131] In the case where the first information includes one or more second information and one or more third information, the first information indicates whether the cryptographic suite carried by the first request is invalid and whether the cryptographic algorithm contained in the cryptographic suite is invalid. A safe and usable or non-expired cryptographic suite can be selected based on the first information, and an invalid, insecure or unavailable cryptographic algorithm can be determined to avoid using an invalid, insecure or unavailable cryptographic algorithm to communicate or establish a communication channel.
[0132] In the above three situations, if the first information also includes a signature, the integrity of the first information can be verified by the signature.
[0133] It should be noted that the third information corresponds one-to-one to the cryptographic suite carried in the first request; one third information corresponds to one or more second information; the second information corresponding to the third information corresponds one-to-one to the cryptographic algorithm contained in the cryptographic suite corresponding to the third information.
[0134] In order to verify the integrity of the first information, in one embodiment, the method further includes:
[0135] Verifying the signature according to the public key of the first network function and the second digest value; wherein the second digest value is determined according to all the second information, or the second digest value is determined according to all the second information and all the third information;
[0136] When the signature verification passes, a non-expired cryptographic suite and / or cryptographic algorithm is selected according to the first information.
[0137] Here, when the first request carries the identifier of one or more cryptographic algorithms but does not carry a cryptographic suite, the second digest value is determined based on all the second information; the signature included in the first information is verified based on the public key of the first network function and the second digest value; when the signature verification passes, it indicates that the first information has not been lost, modified or destroyed, and it can be determined whether the cryptographic algorithms corresponding to all the cryptographic algorithm identifiers carried by the first request are invalid based on all the second information included in the first information, so as to select a safe and available or non-invalid cryptographic algorithm for communication, or to establish a communication channel.
[0138] In the case where the first request carries one or more cryptographic suites, or the first request carries one or more cryptographic suites and identifiers of cryptographic algorithms, a second digest value is determined based on all the second information and all the third information; the signature included in the first information is verified based on the public key of the first network function and the second digest value; when the signature verification passes, it indicates that the first information has not been lost, modified or destroyed, and whether each cryptographic suite carried by the first request is invalid can be determined based on all the second information or all the third information included in the first information, so as to select a secure, available or non-invalid cryptographic suite to establish a secure communication channel; all the second information refers to the second information corresponding to all the cryptographic algorithms in all the cryptographic suites carried by the first request, and all the third information refers to the third information corresponding to all the cryptographic suites carried by the first request. The algorithm used when determining the first digest value may be a secure, available or non-expired cryptographic hash algorithm, which is also called a digest algorithm; the cryptographic hash algorithm used by the first device is the same as the cryptographic hash algorithm used by the first network function, which may be agreed upon by the first network function and the first device, or determined based on the second information; when verifying the signature, the algorithm used may be a secure, available or non-expired signature verification algorithm; the signature verification algorithm used by the first device matches the signature algorithm used by the first network function, which may be agreed upon by the first network function and the first device, or determined based on the second information; the public key of the first network function may be securely distributed to each network entity or communication entity (such as a TLS function network element) in the form of a certificate, and each network entity or communication entity includes the second device.
[0139] The present application is described in further detail below in conjunction with application examples.
[0140] like Figure 6 As shown, the cryptographic algorithm security negotiation method includes the following steps:
[0141] Step 1: The second device sends a first message to the first device.
[0142] Here, before establishing a communication channel between the first device and the second device, the second device needs to send a first message to the first device, and the first message carries at least a cipher suite and / or a cipher algorithm supported by the second device, so that the first device can select a safe, available or non-expired cipher suite and / or a cipher algorithm from the cipher suite and / or a cipher algorithm carried by the first message, thereby establishing a communication channel. In this embodiment, the first message at least carries a cipher suite supported by the second device as an example.
[0143] The first device may be a TLS server, the second device may be a TLS client, and the first message may be a ClientHello message. An example of the first message is given below:
[0144] GMTLSv1 Record Layer:Handshake Protocol:Client Hello
[0145] Content Type:Handshake(22)
[0146] Version:GMTLS(0x0101)
[0147] Length:119
[0148] Handshake Protocol:Client Hello
[0149] Handshake Type:Client Hello(1)
[0150] Length:115
[0151] Version:GMTLS(0x0101)
[0152] Random:
[0153] 537d140186895336d2971947166ab7275b2a9bec326440647776532753fbeaff
[0154] GMT Unix Time:May 22,2014 05:00:49.000000000China Standard Time
[0155] Random Bytes:
[0156] 86895336d2971947166ab7275b2a9bec326440647776532753fbeaff
[0157] Session ID Length:32
[0158] Session ID:
[0159] a1dfad9e4d068fa6be1a33ef47ccf031836abd3417d9edb38ce4c88443945afc
[0160] Cipher Suites Length:4
[0161] Cipher Suites(2suites)
[0162] Cipher Suite:
[0163] TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256(0xc02b)
[0164] Cipher Suite:
[0165] TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA(0xc013)
[0166] Compression Methods Length:1
[0167] Compression Methods(1method)
[0168] Extensions Length:38
[0169] Extension:server_name(len=29)
[0170] Extension:heartbeat(len=1)
[0171] [JA3 Fullstring:257,57363-57395,0-15,,]
[0172] [JA3:629a53373db50439339cd02aa5fdc72c]
[0173] Step 2: The first device sends a first request to the first network function.
[0174] Here, upon receiving the first message, the first device parses the first message to obtain fourth information, which may include a cipher suite, a protocol version, and a random number. For example, the protocol version included in the fourth information obtained by parsing the first message example is TLS protocol version GMTLS (0x0101), the random number is a random number 86895336d2971947166ab7275b2a9bec326440647776532753fbeaff generated by the second device, and there are two cipher suites, namely, cipher suite 1 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (0xc02b) and cipher suite 2 TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (0xc013).
[0175] The first device generates a first request according to the fourth information, and sends the first request to the first network function; the first request carries at least a cryptographic suite, for example, the first request carries cryptographic suite 1 and cryptographic suite 2.
[0176] Step 3: The first network function determines a first state of a cryptographic algorithm included in the cryptographic suite.
[0177] Here, when the first network function receives the first request, it parses each cipher suite carried by the first request to obtain the cipher algorithms contained in all cipher suites carried by the first request. Specifically, the cipher suite parsing capability can be called by the first capability to parse each cipher suite carried by the first request to obtain all the cipher algorithms contained in each cipher suite. For example, the cipher algorithms contained in the cipher suite 1 carried by the first request include: key agreement algorithm ECDHE, signature algorithm elliptic curve digital signature algorithm (ECDSA, Elliptic Curve Digital Signature Algorithm), cryptographic hash algorithm secure hash algorithm 256 bits (SHA256, Secure Hash Algorithm 256), and symmetric algorithm and / or key length and / or packet mode AES_128_GCM used for communication. AES_128_GCM indicates that the symmetric algorithm is Advanced Encryption Standard (AES, Advanced Encryption Standard), the key length is 128, and the packet mode is Galois / Counter Mode (GCM, Galois / Counter Mode). The cryptographic algorithms included in the cipher suite 2 carried by the first request include: key agreement algorithm ECDHE, signature algorithm RSA, cryptographic hash algorithm Secure Hash Algorithm 1 (SHA1, Secure Hash Algorithm 1), and the symmetric algorithm and / or key length and / or grouping mode AES_128_CBC used for communication. AES_128_CBC indicates that the symmetric algorithm is Advanced Encryption Standard (AES), the key length is 128, and the grouping mode is Cipher Block Chaining (CBC, Cipher Block Chaining).
[0178] The first network function determines the first state of all cryptographic algorithms contained in each cryptographic suite carried by the first request when determining the cryptographic algorithms contained in all cryptographic suites carried by the first request. Specifically, the second capability may be called to query whether the cryptographic algorithm contained in the cryptographic suite exists in the state library.
[0179] For example, when the cryptographic algorithm included in the cipher suite exists in the state library, the first state of the cryptographic algorithm can be represented as 1; when the cryptographic algorithm included in the cipher suite does not exist in the state library, the first state of the cryptographic algorithm can be represented as 0; the key agreement algorithm ECDHE, signature algorithm ECDSA, cryptographic hash algorithm SHA256, and the symmetric algorithm and / or key length and / or grouping mode AES_128_GCM used in communication included in the cipher suite 1 cannot be queried in the state library, that is, the first state of all cryptographic algorithms included in the cipher suite 1 is represented as 0 (the corresponding first numerical values are all 0); based on this, the first state of all cryptographic algorithms included in the cipher suite 1 can be represented as: {Revoked ECDHE , Revoked ECDSA , Revoked AES_128_GCM , Revoked SHA256}={0,0,0,0}. The key agreement algorithm ECDHE, signature algorithm RSA, and symmetric algorithm and / or key length and / or grouping mode AES_128_CBC used in communication included in Cipher Suite 2 cannot be queried in the state library, that is, the first state is represented as 0 (the corresponding first value is 0), and the cryptographic hash algorithm SHA1 can be queried in the state library, that is, the first state of SHA1 is represented as 1 (the corresponding first value is 1); based on this, the first state of all cryptographic algorithms included in Cipher Suite 1 can be expressed as: {Revoked ECDHE , Revoked RSA , Revoked AES_128_CBC , Revoked SHA1}={0,0,0,1}.
[0180] Step 4: The first network function determines first information according to a first state of a cryptographic algorithm included in the cryptographic suite.
[0181] Here, when the first network function determines the first state of all cryptographic algorithms included in each cryptographic suite carried by the first request, it respectively performs an OR operation on the first numerical values of all cryptographic algorithms included in each cryptographic suite carried by the first request to obtain a second numerical value, and the second numerical value indicates whether each cryptographic suite carried by the first request is invalid.
[0182] For example, the following formula can be used to determine whether cipher suite 1 is invalid:
[0183] Revoked TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 =Revoked ECDHE |Revoked ECDSA |
[0184] Revoked AES_128_GCM|Revoked SHA256 =0|0|0|0=0;
[0185] The failure status result of cipher suite 1 can be expressed as:
[0186] {Revoked TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,{Revoked ECDHE , Revoked ECDSA , Revoked AES_128_GCM , Revoked SHA256}}={0,{0,0,0,0}};
[0187] You can use the following formula to determine whether Cipher Suite 2 is invalid:
[0188] Revoked TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA1 =Revoked ECDHE |Revoked RSA |
[0189] Revoked AES_128_CBC |Revoked SHA1 =0|0|0|1=1;
[0190] The failure status result of cipher suite 2 can be expressed as:
[0191] {Revoked TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA1 ,{Revoked ECDHE , Revoked RSA , Revoked AES_128_CBC , Revoked SHA1}}={1,{0,0,0,1}};
[0192] The first information includes the invalidation status results of the cipher suite 1 and the cipher suite 2. The first information can be expressed as:
[0193] {{Revoked TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,{Revoked ECDHE , Revoked ECDSA , Revoked AES_128_GCM , Revoked SHA256}},
[0194] {Revoked TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA1 ,{Revoked ECDHE , Revoked RSA , Revoked AES_128_CBC , Revoked SHA1}}}
[0195] ={{0,{0,0,0,0}},{1,{0,0,0,1}}}.
[0196] Step 5: The first network function returns a first response to the first device.
[0197] Here, the first network function may construct a first response based on the first information, and return the first response to the first device.
[0198] Step 6: The first device selects a non-expired cryptographic suite according to the first information.
[0199] Here, when the first device receives the first response returned by the first network function, a non-revoked cipher suite is selected according to the first information carried in the first response. For example, the first information carried in the first response is: {{Revoked TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,{Revoked ECDHE , Revoked ECDSA , Revoked AES_128_GCM , Revoked SHA256}}, {Revoked TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA1 ,{Revoked ECDHE , Revoked RSA , Revoked AES_128_CBC , Revoked SHA1}}}={{0,{0,0,0,0}},{1,{0,0,0,1}}}, where {0,{0,0,0,0}} indicates that cipher suite 1 is secure and available or has not expired and all cryptographic algorithms included in cipher suite 1 have not expired, and {1,{0,0,0,1}} indicates that cipher algorithm 2 is invalid or insecure or unavailable and the invalid or insecure or unavailable cryptographic algorithm in cipher suite 2 is cryptographic hash algorithm SHA1. Therefore, the non-expired cipher suite 1 is selected to establish a communication channel.
[0200] In order to implement the method on the first network function side of the embodiment of the present application, the embodiment of the present application also provides a cryptographic algorithm security negotiation device, which is set on the first network function, such as Figure 7 As shown, the device comprises:
[0201] The first receiving unit 701 is configured to receive a first request sent by a first device; wherein the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is configured to request whether the cryptographic suite and / or the cryptographic algorithm is invalid;
[0202] The first sending unit 702 is configured to return a first response to the first device; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
[0203] In one embodiment, a cryptographic suite includes one or more cryptographic algorithms; the apparatus further includes:
[0204] A first determining unit, configured to determine a first state of the cryptographic algorithm, the first state indicating whether the cryptographic algorithm is invalid;
[0205] The second determining unit is used to determine the first information according to a first state of the cryptographic algorithm.
[0206] In one embodiment, the first network function supports a first capability and / or a second capability, the first capability is used to determine a cryptographic algorithm included in a cryptographic suite, and the second capability is used to query whether the cryptographic algorithm is invalid.
[0207] In one embodiment, the first information includes one or more of the following:
[0208] One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid;
[0209] one or more third information, one piece of third information indicating whether a cipher suite is invalid;
[0210] sign.
[0211] In one embodiment, the second information includes a first value, and / or the third information includes a second value; wherein,
[0212] A first value indicates whether a cryptographic algorithm is invalid, and a second value indicates whether a cryptographic suite is invalid. The second value is obtained by performing an OR operation on the first values of all cryptographic algorithms included in the cryptographic suite.
[0213] In one embodiment, the device further comprises:
[0214] A signing unit is used to sign a first digest value using a private key of the first network function to obtain the signature; wherein the first digest value is determined according to all the second information, or the first digest value is determined according to all the second information and all the third information.
[0215] In actual applications, the first receiving unit 701 and the first sending unit 702 can be implemented by a processor in a cryptographic algorithm security negotiation device combined with a communication interface; the first determination unit, the second determination unit and the signature unit can be implemented by a processor in a cryptographic algorithm security negotiation device.
[0216] In order to implement the method on the first device side of the embodiment of the present application, the embodiment of the present application also provides a cryptographic algorithm security negotiation device, which is set on the first device, such as Figure 8As shown, the device comprises:
[0217] The second sending unit 801 is used to send a first request to the first network function; the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid;
[0218] The second receiving unit 802 is used to receive a first response returned by the first network function; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
[0219] In one embodiment, the device further comprises:
[0220] The first selection unit is configured to select a non-expired cryptographic suite and / or cryptographic algorithm according to the first information.
[0221] In one embodiment, the device further comprises:
[0222] A third receiving unit, configured to receive a first message sent by a second device; the first message carries at least an identifier of the cryptographic suite and / or the cryptographic algorithm;
[0223] A generating unit is used to generate the first request according to the first message.
[0224] In one embodiment, the first information includes one or more of the following:
[0225] One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid;
[0226] one or more third information, one piece of third information indicating whether a cipher suite is invalid;
[0227] sign.
[0228] In one embodiment, the device further comprises:
[0229] a verification unit, configured to verify the signature according to a public key of the first network function and a second digest value; wherein the second digest value is determined according to all the second information, or the second digest value is determined according to all the second information and all the third information;
[0230] The second selection unit is configured to select a non-expired cryptographic suite and / or cryptographic algorithm according to the first information if the signature verification passes.
[0231] In actual applications, the second sending unit 801, the second receiving unit 802 and the third receiving unit can be implemented by a processor in a cryptographic algorithm security negotiation device in combination with a communication interface, and the first selection unit, the generation unit, the verification unit and the second selection unit can be implemented by a processor in a cryptographic algorithm security negotiation device.
[0232] It should be noted that: the above embodiment provides a cryptographic algorithm security negotiation device, and only uses the division of the above program modules as an example when performing cryptographic algorithm security negotiation. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the cryptographic algorithm security negotiation device and the cryptographic algorithm security negotiation method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0233] Based on the hardware implementation of the above program module, and in order to implement the method of the first network function side of the embodiment of the present application, the embodiment of the present application also provides a first network function, such as Fig. 9 As shown, the first network function 900 includes:
[0234] The first communication interface 901 can exchange information with other network nodes.
[0235] The first processor 902 is connected to the first communication interface 901 to implement information interaction with other network nodes, and is used to execute the methods provided by one or more technical solutions of the above-mentioned first network function side when running a computer program.
[0236] The first memory 903 is used to store a computer program that can be run on the first processor 902 .
[0237] Specifically, the first communication interface 901 is used to receive a first request sent by a first device; and is also used to return a first response to the first device; wherein the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; and the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not.
[0238] In one embodiment, a cryptographic suite includes one or more cryptographic algorithms; the first processor 902 is used to determine a first state of the cryptographic algorithm, the first state indicating whether the cryptographic algorithm is invalid; and determine the first information according to the first state of the cryptographic algorithm.
[0239] In one embodiment, the first network function supports a first capability and / or a second capability, the first capability is used to determine a cryptographic algorithm included in a cryptographic suite, and the second capability is used to query whether the cryptographic algorithm is invalid.
[0240] In one embodiment, the first information includes one or more of the following:
[0241] One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid;
[0242] one or more third information, one piece of third information indicating whether a cipher suite is invalid;
[0243] sign.
[0244] In one embodiment, the second information includes a first value, and / or the third information includes a second value; wherein,
[0245] A first value indicates whether a cryptographic algorithm is invalid, and a second value indicates whether a cryptographic suite is invalid. The second value is obtained by performing an OR operation on the first values of all cryptographic algorithms included in the cryptographic suite.
[0246] In one embodiment, the first processor 902 is further used to sign the first digest value using the private key of the first network function to obtain the signature; wherein the first digest value is determined based on all the second information, or the first digest value is determined based on all the second information and all the third information.
[0247] It should be noted that the specific processing process of the first processor 902 and the first communication interface 901 can be understood by referring to the above method.
[0248] Of course, in actual application, the various components in the first network function 900 are coupled together through the bus system 904. It can be understood that the bus system 904 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 904 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig. 9 Various buses are labeled as bus system 904.
[0249] The first memory 903 in the embodiment of the present application is used to store various types of data to support the operation of the first network function 900. Examples of such data include: any computer program used to operate on the first network function 900.
[0250] The method disclosed in the above embodiment of the present application can be applied to the first processor 902, or implemented by the first processor 902. The first processor 902 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the first processor 902. The above-mentioned first processor 902 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 902 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 903, and the first processor 902 reads the information in the first memory 903 and completes the steps of the above method in combination with its hardware.
[0251] In an exemplary embodiment, the first network function 900 can be implemented by one or more application-specific integrated circuits (ASIC), DSP, programmable logic device (PLD), field-programmable gate array (FPGA), general-purpose processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0252] Based on the hardware implementation of the above program module, and in order to implement the method on the first device side of the embodiment of the present application, the embodiment of the present application also provides a first device, such as Fig.10 As shown, the first device 1000 includes:
[0253] The second communication interface 1001 can exchange information with other network nodes.
[0254] The second processor 1002 is connected to the second communication interface 1001 to implement information interaction with other network nodes, and is used to execute the methods provided by one or more technical solutions on the first device side when running a computer program.
[0255] The second memory 1003 is used to store a computer program that can be run on the second processor 1002 .
[0256] Specifically, the second communication interface 1001 is used to send a first request to the first network function; and is also used to receive a first response returned by the first network function; the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not.
[0257] In one embodiment, the second processor 1002 is configured to select a non-expired cryptographic suite and / or cryptographic algorithm according to the first information.
[0258] In one embodiment, the second communication interface 1001 is further used to receive a first message sent by a second device; the first message carries at least an identifier of the cryptographic suite and / or cryptographic algorithm;
[0259] The second processor 1002 is further configured to generate the first request according to the first message.
[0260] In one embodiment, the first information includes one or more of the following:
[0261] One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid;
[0262] one or more third information, one piece of third information indicating whether a cipher suite is invalid;
[0263] sign.
[0264] In one embodiment, the second processor 1002 is further configured to verify the signature according to the public key of the first network function and the second digest value; wherein the second digest value is determined according to all the second information, or the second digest value is determined according to all the second information and all the third information;
[0265] When the signature verification passes, a non-expired cryptographic suite and / or cryptographic algorithm is selected according to the first information.
[0266] It should be noted that the specific processing process of the second processor 1002 and the second communication interface 1001 can be understood by referring to the above method.
[0267] Of course, in actual application, the various components in the first device 1000 are coupled together through the bus system 1004. It can be understood that the bus system 1004 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1004 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 1004 .
[0268] The second memory 1003 in the embodiment of the present application is used to store various types of data to support the operation of the first device 1000. Examples of such data include: any computer program used to operate on the first device 1000.
[0269] The method disclosed in the above embodiment of the present application can be applied to the second processor 1002, or implemented by the second processor 1002. The second processor 1002 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 1002. The above-mentioned second processor 1002 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 1002 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 1003, and the second processor 1002 reads the information in the second memory 1003 and completes the steps of the above method in combination with its hardware.
[0270] In an exemplary embodiment, the first device 1000 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.
[0271] It can be understood that the memory (first memory 903 and second memory 1003) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.
[0272] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 903 storing a computer program, and the computer program can be executed by the first processor 902 of the first network function 900 to complete the steps of the aforementioned first network function side method. For another example, a second memory 1003 storing a computer program can be executed by the second processor 1002 of the first device 1000 to complete the steps of the aforementioned first device side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0273] Exemplarily, an embodiment of the present application further provides a computer program product, including a computer program, which can be executed by the first processor 902 of the first network function 900 and the second processor 1002 of the first device 1000 to complete the steps of any of the aforementioned methods.
[0274] It should be noted that “first”, “second”, etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence; “multiple items” refers to two or more items.
[0275] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0276] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0277] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A cryptographic algorithm security negotiation method, characterized in that: Applied to a first network function, the method comprises: Receiving a first request sent by a first device; wherein the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; A first response is returned to the first device; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
2. The method according to claim 1, characterized in that A cryptographic suite includes one or more cryptographic algorithms; after receiving the first request sent by the first device, the method further includes: determining a first state of the cryptographic algorithm, the first state indicating whether the cryptographic algorithm is invalid; The first information is determined according to a first state of a cryptographic algorithm.
3. The method according to claim 1 or 2, characterized in that: The first network function supports a first capability and / or a second capability, the first capability is used to determine a cryptographic algorithm included in a cryptographic suite, and the second capability is used to query whether the cryptographic algorithm is invalid.
4. The method according to claim 1 or 2, characterized in that: The first information includes one or more of the following: One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid; one or more third information, one piece of third information indicating whether a cipher suite is invalid; sign.
5. The method according to claim 4, characterized in that The second information includes the first value, and / or the third information includes the second value; wherein, A first value indicates whether a cryptographic algorithm is invalid, and a second value indicates whether a cryptographic suite is invalid. The second value is obtained by performing an OR operation on the first values of all cryptographic algorithms included in the cryptographic suite.
6. The method according to claim 4, characterized in that The method further comprises: The first digest value is signed using the private key of the first network function to obtain the signature; wherein the first digest value is determined according to all the second information, or the first digest value is determined according to all the second information and all the third information.
7. A cryptographic algorithm security negotiation method, characterized in that: Applied to a first device, the method includes: Sending a first request to the first network function; the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; A first response returned by the first network function is received; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
8. The method according to claim 7, characterized in that After receiving the first response returned by the first network function, the method further includes: A non-expired cipher suite and / or cipher algorithm is selected according to the first information.
9. The method according to claim 7, characterized in that: Before sending the first request to the first network function, the method further includes: Receiving a first message sent by a second device; the first message carries at least an identifier of the cryptographic suite and / or the cryptographic algorithm; Generate the first request according to the first message.
10. The method according to any one of claims 7 to 9, characterized in that: The first information includes one or more of the following: One or more second information, one second information indicating whether a cryptographic algorithm included in a cryptographic suite is invalid, or one second information indicating whether a cryptographic algorithm is invalid; one or more third information, one piece of third information indicating whether a cipher suite is invalid; sign.
11. The method according to claim 10, characterized in that The method further comprises: Verifying the signature according to the public key of the first network function and the second digest value; wherein the second digest value is determined according to all the second information, or the second digest value is determined according to all the second information and all the third information; When the signature verification passes, a non-expired cryptographic suite and / or cryptographic algorithm is selected according to the first information.
12. A cryptographic algorithm security negotiation device, characterized in that: include: A first receiving unit, configured to receive a first request sent by a first device; wherein the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is configured to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; The first sending unit is used to return a first response to the first device; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not invalid.
13. A cryptographic algorithm security negotiation device, characterized in that: include: A second sending unit, configured to send a first request to the first network function; The first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; A second receiving unit, configured to receive a first response returned by the first network function; The first response carries first information, where the first information indicates whether the cipher suite and / or cipher algorithm is invalid or not invalid.
14. A first network function, characterized in that: include: A first processor and a first communication interface; wherein, The first communication interface is used to receive a first request sent by a first device; and is also used to return a first response to the first device; wherein the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; and the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not.
15. A first device, characterized in that: include: A second processor and a second communication interface; wherein, The second communication interface is used to send a first request to the first network function; It is also used to receive a first response returned by the first network function; the first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request whether the cryptographic suite and / or the cryptographic algorithm is invalid; the first response carries first information, and the first information indicates whether the cryptographic suite and / or the cryptographic algorithm is invalid or not.
16. A network function, characterized in that comprising a first processor and a first memory for storing a computer program capable of being executed on the first processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 6 are executed.
17. A first device, characterized in that: comprising a second processor and a second memory for storing a computer program executable on the second processor, Wherein, when the second processor is used to run the computer program, it executes the steps of the method described in any one of claims 7 to 11.
18. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented, or the steps of the method according to any one of claims 7 to 11 are implemented.
19. A computer program product comprising a computer program, characterized in that The computer program implements the method according to any one of claims 1 to 11 when executed by a processor.
Citation Information
Patent Citations
Confidential communication management
CN107251476A
Access authentication method and device, equipment and storage medium
CN114245377A
Encryption transmission method, device and system, electronic equipment and storage medium
CN117834125A
Identifying and mitigating vulnerable security policies
US11363072B1
