Cryptographic algorithm security negotiation method, apparatus and device, network function, storage medium and computer program product
Through the cryptographic algorithm security negotiation method between the device and network functions, the threat of quantum computing to existing cryptographic algorithms is solved, the security of communication channels is ensured, and the verification and selection of the security status of cryptographic suites and algorithms is realized, ensuring that The smooth migration of communication security to the post-quantum era.
Patent Information
- Application Number
- CN202410903383.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-11-22
AI Technical Summary
The threat to existing cryptographic algorithms by quantum computing, especially the cryptographic algorithm mechanism used in Transport Layer Security Protocol (TLS), is vulnerable to attacks, and the security of post-quantum cryptographic algorithms has not been fully demonstrated, and there is a risk of being cracked.
Through a cryptographic algorithm security negotiation method, requests and responses are exchanged between devices and network functions to query and verify the security status of cryptographic suites and cryptographic algorithms, ensuring that secure cryptographic suites and algorithms are selected to establish communication channels. The method includes receiving a request, determining the security status of the cryptographic algorithm, generating and verifying a signature to ensure communication security.
It realizes flexible and secure cryptographic algorithm negotiation in the quantum computing era, enhances the security of communication channels, avoids the use of risky cryptographic algorithms, and ensures smooth migration of communication security to the post-quantum era.
Smart Images

Figure CN119011129A_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, device, equipment, network function, 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, device, network function, storage medium and computer program product.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application embodiment provides a cryptographic algorithm security negotiation method, which is applied to a first network function, and the method includes:
[0006] 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 used to request a query on a security status of the cryptographic suite and / or the cryptographic algorithm;
[0007] A first response is returned to the first device; the first response carries first information, and the first information indicates a security status of a cryptographic suite and / or a cryptographic algorithm.
[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] Determine the security status of cryptographic algorithms;
[0010] The first information is determined according to a security status 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 the security status of the cryptographic algorithm.
[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 a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm;
[0014] one or more third information, each third information indicating a security status of a cipher suite;
[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 a security status of a cryptographic algorithm, and a second value indicates a security status of a cryptographic suite, wherein the second value is obtained by performing an AND operation on the first values of all cryptographic algorithms included in the cryptographic suite.
[0018] In the above scheme, the method further includes:
[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 the cryptographic suite and / or the cryptographic algorithm, and is used to request a query on the security status of the cryptographic suite and / or the cryptographic algorithm;
[0022] A first response returned by the first network function is received; the first response carries first information, where the first information indicates a security status of a cryptographic suite and / or a cryptographic algorithm.
[0023] In the above solution, after receiving the first response returned by the first network function, the method further includes:
[0024] A secure 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 a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm;
[0030] one or more third information, each third information indicating a security status of a cipher suite;
[0031] sign.
[0032] In the above scheme, the method further includes:
[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 secure 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 a query on a security status of the cryptographic suite and / or the cryptographic algorithm;
[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 a security status of a cryptographic suite and / or a cryptographic algorithm.
[0038] The embodiment of the present application also provides a cryptographic algorithm security negotiation device, including:
[0039] A second sending unit is used to send a first request to the first network function; the first request carries at least an identifier of the cryptographic suite and / or the cryptographic algorithm, and is used to request to query the security status of the cryptographic suite and / or the cryptographic algorithm;
[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 a security status of a cryptographic suite and / or a cryptographic algorithm.
[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 a query on the security status of the cryptographic suite and / or the cryptographic algorithm; and the first response carries first information, and the first information indicates the security status of the cryptographic suite and / or the cryptographic algorithm.
[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 a query on the security status of the cryptographic suite and / or the cryptographic algorithm; the first response carries first information, and the first information indicates the security status of the cryptographic suite and / or the cryptographic algorithm.
[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, device, network function, 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 a cryptographic suite and / or cryptographic algorithm, which is used to request a query of the security status of the cryptographic suite and / or cryptographic algorithm; the first response carries first information, and the first information indicates the security status of the cryptographic suite and / or cryptographic algorithm. In the above scheme, the first device obtains the security status of the cryptographic suite and / or cryptographic algorithm through the first network function, so that it can select a secure cryptographic suite and / or cryptographic algorithm 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), 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 a query of the security status of the cryptographic suite and / or cryptographic algorithm; the first response carries first information, and the first information indicates the security status of the cryptographic suite and / or cryptographic algorithm. In the above scheme, the first device obtains the security status of the cryptographic suite and / or cryptographic algorithm through the first network function, so that it can select a secure 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 online querying the status or security status of a cryptographic suite and / or a cryptographic algorithm. 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 a query on the security status of the cryptographic suite and / or the cryptographic algorithm.
[0072] Here, in the case of receiving the first request sent by the first device, according to the first request, the security status of the cryptographic suite and / or cryptographic algorithm carried in the first request is queried, or whether the cryptographic suite and / or cryptographic algorithm is secure or at risk is queried. The first request may carry one or more cryptographic algorithm identifiers, which are used to request a query on the security status of one or more cryptographic algorithms; 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 a query on the security status of the cryptographic suite and / or the security status of the cryptographic algorithms contained in the cryptographic suite.
[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 cryptographic 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 security status of the cryptographic suite indicates whether the cryptographic algorithm contained in the cryptographic suite is at risk of being cracked. The security status of the cryptographic suite and the security status of the cryptographic algorithm can both be represented by numerical values. For example, 1 indicates that the cryptographic algorithm is secure or that there is no risk of the cryptographic algorithm being cracked; 0 indicates that the cryptographic algorithm is insecure or that there is a risk of the cryptographic algorithm being cracked. For another example, 1 is used to indicate that the cipher suite is secure, that is, all cryptographic algorithms included in the cipher suite are secure cryptographic algorithms and there is no risk of being cracked; 0 is used to indicate that the cipher suite is insecure, that is, the cipher suite contains at least one insecure cryptographic algorithm, or the cipher suite contains at least one cryptographic algorithm that is at risk of being cracked. In other words, if there is at least one insecure cryptographic algorithm in a cipher suite, the cipher suite is insecure.
[0074] It should be noted that the security status can be referred to as the status, which is used to indicate whether it is secure or whether there is a risk, or a request to query the security status of a cryptographic suite and / or cryptographic algorithm can be described as: requesting to query whether the cryptographic suite and / or cryptographic algorithm is secure or whether there is a risk. The first network function can be called an online cryptographic algorithm security status query function (OASP, Online Algorithm Status Protocol), which can be called by a network entity or a communication entity (such as a TLS functional network element) in a communication network, and supports online query of the security status of a cryptographic algorithm; OASP 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, OASP may also be co-located with other network functions, for example, OASP may be co-located with PCF, and the first network function may be understood as PCF having an online cryptographic algorithm security 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 a security status of a cryptographic suite and / or a cryptographic algorithm.
[0077] Here, when the security status of the cryptographic suite and / or the cryptographic algorithm is queried, first information is generated according to the security status of the cryptographic suite and / or the cryptographic algorithm; 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 secure 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 the security status of the corresponding one or more cryptographic algorithms, that is, the first information indicates the security status of all cryptographic algorithms carried by the first request. In the case where the first request carries one or more cryptographic suites, the first information indicates the security status of the corresponding one or more cryptographic suites, that is, the first information indicates the security status of all cryptographic suites carried by the first request.
[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] Determine the security status of cryptographic algorithms;
[0081] The first information is determined according to a security status of a cryptographic algorithm.
[0082] Here, when the first request is received, the first request is parsed to obtain a parsing result, the security status of each cryptographic algorithm included in the parsing result is determined, and the first information is determined according to the security status 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 to query the security status of the cryptographic suites, the parsing result may include one or more cryptographic suites and all cryptographic algorithms included in each cryptographic suite. The first network function determines the security status of all cryptographic algorithms included in each cryptographic suite carried by the first request; determines the security status of each cryptographic suite carried by the first request based on the security status of all cryptographic algorithms included in each cryptographic suite carried by the first request; determines the first information based on the security status of all cryptographic algorithms included in each cryptographic suite carried by the first request and / or the security status of each cryptographic suite carried by the first request; the first information may include the security status results of all cryptographic suites carried by the first request; the security status results of the cryptographic suites may be determined based on the security status of the cryptographic suites and / or the security status of the cryptographic algorithms included in the cryptographic suites.
[0084] It should be noted that, when the cryptographic suite includes only one cryptographic algorithm, the security status of the cryptographic algorithm can be understood as the security status of the cryptographic suite, and the first information can be directly determined according to the security status of the cryptographic algorithm.
[0085] For another example, when the first request carries the identifier of one or more cryptographic algorithms and is used to request to query the security status of the cryptographic algorithms, the parsing result includes the one or more cryptographic algorithms. The first network function determines the security status of all cryptographic algorithms carried in the first request; determines the first information based on the security status of all cryptographic algorithms carried in the first request; the first information may include the security status results of all cryptographic algorithms carried in the first request; and the security status results of the cryptographic algorithms may be determined based on the security 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 the security status of the cryptographic algorithm.
[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 the security status of the cryptographic algorithm by calling the second capability; for example, the first network function may include a state library, and the second capability may be called to query the security status of the cryptographic algorithm in the state library; for another example, the second capability may be called to query the security status 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 security status query capability, and the second capability can be understood as the cryptographic algorithm status query capability or the cryptographic algorithm security 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 other functional network elements to call.
[0088] The state library may also be referred to as the cryptographic algorithm state library. The state library or other devices or other network functions may store secure cryptographic algorithms or the security status of cryptographic algorithms. The state library may also store and maintain relevant information of the cryptographic algorithms (such as symmetric cryptographic algorithms, hash cryptographic algorithms, public key cryptography, and post-quantum cryptographic algorithms) used by the communication network, for example, the name, version, and key length of the cryptographic algorithm. In the case where a secure 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 by the first request, thereby determining the security status corresponding to the identifier of the cryptographic algorithm carried by the first request; or, the security status of the cryptographic algorithm contained in the cryptographic suite may be determined by querying the state library for a cryptographic algorithm contained in the cryptographic suite. When the security status of the 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 security status of the cryptographic algorithm that matches the identifier of the cryptographic algorithm, thereby determining the security status corresponding to the identifier of the cryptographic algorithm carried in the first request; alternatively, it is possible to query the state library or other device or other network function for the security status of the cryptographic algorithm that matches the cryptographic algorithm included in the cryptographic suite, thereby determining the security status 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 algorithms 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 update of the state library and information query; for example, add, delete, modify and query the cryptographic algorithms or the related information and security status of the cryptographic algorithms in the state library, so that the real-time cryptographic algorithm security status can be obtained through the state library. The structure of the first network function is as follows: Figure 4shown.
[0090] In order to facilitate the device receiving the first information to learn the security status of the cryptographic suite and / or cryptographic algorithm 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 a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm;
[0092] one or more third information, each third information indicating a security status of a cipher suite;
[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 the security status of a cryptographic algorithm included in a cryptographic suite carried by the first request, then the first device can determine the security status of each cryptographic suite carried by the first request based on all the second information, thereby selecting a secure cryptographic suite to establish a communication channel; if a second information indicates the security status of a cryptographic algorithm, then the first device can determine the security status of the cryptographic algorithm based on the second information, and determine the security status corresponding to the identifiers of all cryptographic algorithms carried by the first request based on all the second information, thereby selecting a secure 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 the security status of the cryptographic suite carried in the first request, and the first device can directly select a secure cryptographic suite to establish a communication channel according to 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 the security status of the cryptographic suite carried by the first request and the security status of the cryptographic algorithms included in the cryptographic suite. The first device can select a secure cryptographic suite based on the first information and determine a risky cryptographic algorithm, or determine a risk-free or secure 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 a security status of a cryptographic algorithm, and a second value indicates a security status of a cryptographic suite, wherein the second value is obtained by performing an AND 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 the security status of a cryptographic algorithm is secure or risky, 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 the security status of a cryptographic suite is secure or that the cryptographic suite includes risky cryptographic algorithms, and the value of the second numerical value can be 1 or 0. The second numerical value indicates that the security status of the cryptographic suite is secure (such as the second numerical value corresponding to the cryptographic suite is 1), which can be understood as all cryptographic algorithms included in the cryptographic suite are secure (such as the first numerical values corresponding to all cryptographic algorithms included in the cryptographic suite are 1); the second numerical value indicates that the security status of the cryptographic suite is insecure or that the cryptographic suite is risky (such as the second numerical value corresponding to the cryptographic suite is 0), which can be understood as that the cryptographic suite includes at least one insecure cryptographic algorithm or a cryptographic algorithm that is at risk of being cracked (such as the first numerical value corresponding to at least one cryptographic algorithm included in the cryptographic suite is 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, a first summary value is determined based on all the second information and all the third information; the first summary value is signed using the private key of the first network function to obtain a 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 summary value may be a secure cryptographic hash algorithm, which is also called a digest algorithm; when the first summary value is signed using the private key of the first network function, the algorithm used may be a secure signature algorithm; the secure cryptographic hash algorithm and the secure signature algorithm 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. The first request carries at least an identifier of a cryptographic suite and / or a cryptographic algorithm, and is used to request a query of a security status of the cryptographic suite and / or the cryptographic algorithm.
[0109] 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:
[0110] 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;
[0111] Generate the first request according to the first message.
[0112] 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 the cryptographic suite and / or the cryptographic algorithm; generates a first request based on the fourth information, and sends the first request to the first network function to request a query on the security status of the cryptographic suite and / or the cryptographic algorithm.
[0113] 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.
[0114] Step 502: Receive a first response returned by the first network function. The first response carries first information, and the first information indicates a security status of a cryptographic suite and / or a cryptographic algorithm.
[0115] In one embodiment, after receiving the first response returned by the first network function, the method further includes:
[0116] A secure cipher suite and / or cipher algorithm is selected according to the first information.
[0117] Here, when the first information indicates the security status of the cryptographic algorithm and the first request carries at least the identifier of the cryptographic algorithm, the security status corresponding to the identifiers of all cryptographic algorithms carried by the first request is determined according to the first information, and a secure cryptographic algorithm is selected for communication, or a communication channel is established.
[0118] When the first information indicates the security status of the cryptographic algorithm and the first request carries at least a cryptographic suite, the security status of each cryptographic suite carried in the first request is determined based on the first information, a secure cryptographic suite is selected to establish a communication channel, and a risky cryptographic algorithm is determined to avoid using the risky cryptographic algorithm for communication or establishing a communication channel.
[0119] In the case where the first information indicates the security status of the cipher suite, a secure cipher suite is directly selected according to the first information to establish a communication channel.
[0120] In the case where the first information indicates the security status of the cryptographic suite and the cryptographic algorithm, a secure cryptographic suite is directly selected to establish a communication channel according to the security status of the cryptographic suite indicated by the first information, and a risky cryptographic algorithm is determined according to the security status of the cryptographic algorithm indicated by the first information, or, whether the security status of the cryptographic suite is credible is verified in combination with the security status of the cryptographic algorithm included in the cryptographic suite.
[0121] It should be noted that the security status of the cryptographic suite and / or cryptographic algorithm indicated by the first information is the security status of the cryptographic suite and / or cryptographic algorithm carried by the first request; the first information indicates that the security status of the cryptographic suite is secure, which can be understood as the security status of all cryptographic algorithms included in the cryptographic suite is secure; the first information indicates that the security status of the cryptographic suite is insecure, which can be understood as the cryptographic suite contains at least one cryptographic algorithm that is at risk of being cracked.
[0122] Before selecting a cryptographic suite and / or cryptographic algorithm for establishing a secure communication channel, the first device can query the security status of the cryptographic suite and / or cryptographic algorithm supported by the second device online through the first network function, thereby selecting a secure cryptographic suite and / or cryptographic algorithm for subsequent interaction with the second device (such as key negotiation, certificate authentication, and communication encryption). This can avoid the use of risky 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.
[0123] In order to confirm the integrity of the first information and select a secure 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:
[0124] One or more second information, one second information indicating a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm;
[0125] one or more third information, each third information indicating a security status of a cipher suite;
[0126] sign.
[0127] Here, in the case that the first information includes one or more second information, if a second information indicates the security status of a cryptographic algorithm included in a cryptographic suite carried by the first request, then the security status of each cryptographic suite carried by the first request can be determined based on all the second information included in the first information, thereby selecting a secure cryptographic suite to establish a communication channel; if a second information indicates the security status of a cryptographic algorithm, then the security status of the cryptographic algorithm can be determined based on the second information, and the security status corresponding to all the cryptographic algorithm identifiers carried by the first request can be determined based on all the second information included in the first information, thereby selecting a secure cryptographic algorithm for communication, or establishing a communication channel.
[0128] In the case where the first information includes one or more third information, the first information or the third information indicates the security status of the cryptographic suite carried in the first request, and a secure cryptographic suite can be directly selected according to the first information or the third information to establish a communication channel.
[0129] In the case where the first information includes one or more second information and one or more third information, the first information indicates the security status of the cryptographic suite carried by the first request and the security status of the cryptographic algorithm contained in the cryptographic suite. A secure cryptographic suite can be selected based on the first information, and risky or insecure cryptographic algorithms can be determined to avoid using risky cryptographic algorithms for communication or establishing communication channels.
[0130] 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.
[0131] 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.
[0132] In order to verify the integrity of the first information, in one embodiment, the method further includes:
[0133] 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;
[0134] When the signature verification passes, a secure cryptographic suite and / or cryptographic algorithm is selected according to the first information.
[0135] 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 the security status corresponding to all the cryptographic algorithm identifiers carried by the first request can be determined based on all the second information included in the first information, so as to select a secure cryptographic algorithm for communication or establish a communication channel.
[0136] 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 the security status of each cryptographic suite carried by the first request 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 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 cryptographic hash algorithm, which is also called a digest algorithm; the secure cryptographic hash algorithm is the same as the 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 signature verification algorithm; the secure signature verification algorithm 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.
[0137] The present application is described in further detail below in conjunction with application examples.
[0138] like Figure 6 As shown, the cryptographic algorithm security negotiation method includes the following steps:
[0139] Step 1: The second device sends a first message to the first device.
[0140] 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 secure 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.
[0141] 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:
[0142] GMTLSv1 Record Layer:Handshake Protocol:Client Hello
[0143] Content Type:Handshake(22)
[0144] Version:GMTLS(0x0101)
[0145] Length:119
[0146] Handshake Protocol:Client Hello
[0147] Handshake Type:Client Hello(1)
[0148] Length:115
[0149] Version:GMTLS(0x0101)
[0150] Random:
[0151] 537d140186895336d2971947166ab7275b2a9bec326440647776532753fbeaff
[0152] GMT Unix Time:May 22,2014 05:00:49.000000000China Standard TimeRandom Bytes:
[0153] 86895336d2971947166ab7275b2a9bec326440647776532753fbeaff
[0154] Session ID Length:32
[0155]
[0156] Step 2: The first device sends a first request to the first network function.
[0157] 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).
[0158] 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.
[0159] Step 3: The first network function determines the security status of the cryptographic algorithms included in the cryptographic suite.
[0160] 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).
[0161] The first network function determines the security status 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 the security status of the cryptographic algorithm in the status library according to the cryptographic algorithm contained in the cryptographic suite.
[0162] For example, when the cryptographic algorithm is secure, the security status of the cryptographic algorithm can be expressed as 1; when the cryptographic algorithm is insecure, the security status of the cryptographic algorithm can be expressed as 0; the security status of the key agreement algorithm ECDHE, the security status of the signature algorithm ECDSA, the security status of the cryptographic hash algorithm SHA256, and the security status of the symmetric algorithm and / or key length and / or grouping mode AES_128_GCM used in communication contained in the cipher suite 1 are all expressed as 1, that is, the first values corresponding to all the cryptographic algorithms contained in the cipher suite 1 are 1; based on this, the security status of all the cryptographic algorithms contained in the cipher suite 1 can be expressed as: {Status ECDHE , Status ECDSA , Status AES_128_GCM , Status SHA256}={1,1,1,1}. The query obtains that the security status of the key agreement algorithm ECDHE, the security status of the signature algorithm RSA, and the security status of the symmetric algorithm and / or key length and / or grouping mode AES_128_CBC used in communication contained in the cipher suite 2 are all represented as 1 (that is, the corresponding first values are all 1), and the security status of the cryptographic hash algorithm SHA1 is represented as 0 (that is, the corresponding first value is 0); based on this, the security status of all cryptographic algorithms contained in the cipher suite 1 can be expressed as: {Status ECDHE , Status RSA , Status AES_128_CBC , Status SHA1}={1,1,1,0}.
[0163] Step 4: The first network function determines the first information according to the security status of the cryptographic algorithm included in the cryptographic suite.
[0164] Here, when the first network function determines the security status of all cryptographic algorithms included in each cryptographic suite carried by the first request, it performs an AND 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, where the second numerical value represents the security status of each cryptographic suite carried by the first request.
[0165] For example, the security status of cipher suite 1 can be determined by the following formula:
[0166] Status TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 =Status ECDHE &Status ECDSA &Status AES_128_GCM &Status SHA256 =1&1&1&1=1;
[0167] The resulting security status of Cipher Suite 1 can be expressed as:
[0168] {Status TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,{Status ECDHE , Status ECDSA , Status AES_128_GCM , Status SHA256}} = {1, {1, 1, 1, 1}};
[0169] The security status of Cipher Suite 2 can be determined by the following formula:
[0170] Status TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA1 =Status ECDHE &Status RSA &Status AES_128_CBC &Status SHA1 =1&1&1&0=0;
[0171] The resulting security status of Cipher Suite 2 can be expressed as:
[0172] {Status TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA1 ,{Status ECDHE , Status RSA , Status AES_128_CBC , Status SHA1}} = {0, {1, 1, 1, 0}};
[0173] The first information includes the security status results of the cipher suite 1 and the cipher suite 2. The first information can be expressed as:
[0174] {{Status TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,{Status ECDHE , Status ECDSA , Status AES_128_GCM , Status SHA256}}, {Status TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA1 ,{Status ECDHE , Status RSA ,,Status AES_128_CBC , Status SHA1}}}={{1,{1,1,1,1}},{0,{1,1,1,0}}}.
[0175] Step 5: The first network function returns a first response to the first device.
[0176] Here, the first network function may construct a first response based on the first information, and return the first response to the first device.
[0177] Step 6: The first device selects a secure cryptographic suite according to the first information.
[0178] Here, when the first device receives the first response returned by the first network function, a secure 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: {{Status TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 ,{Status ECDHE , Status ECDSA , Status AES_128_GCM , Status SHA256}}, {Status TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA1 ,{Status ECDHE , Status RSA , Status AES_128_CBC , Status SHA1}}}={{1,{1,1,1,1}},{0,{1,1,1,0}}}, where {1,{1,1,1,1}} indicates that cipher suite 1 is secure and all cryptographic algorithms included in cipher suite 1 are secure, and {0,{1,1,1,0}} indicates that cipher algorithm 2 is insecure and the risky cryptographic algorithm in cipher suite 2 is cryptographic hash algorithm SHA1. Therefore, the secure cipher suite 1 is selected to establish a communication channel.
[0179] 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:
[0180] 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 a query on a security status of the cryptographic suite and / or the cryptographic algorithm;
[0181] 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 a security status of a cryptographic suite and / or a cryptographic algorithm.
[0182] In one embodiment, a cryptographic suite includes one or more cryptographic algorithms; the apparatus further includes:
[0183] A first determining unit, used to determine the security status of the cryptographic algorithm;
[0184] The second determining unit is used to determine the first information according to the security status of the cryptographic algorithm.
[0185] 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 a security status of the cryptographic algorithm.
[0186] In one embodiment, the first information includes one or more of the following:
[0187] One or more second information, one second information indicating a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm;
[0188] one or more third information, each third information indicating a security status of a cipher suite;
[0189] sign.
[0190] In one embodiment, the second information includes a first value, and / or the third information includes a second value; wherein,
[0191] A first value indicates a security status of a cryptographic algorithm, and a second value indicates a security status of a cryptographic suite, wherein the second value is obtained by performing an AND operation on the first values of all cryptographic algorithms included in the cryptographic suite.
[0192] In one embodiment, the device further comprises:
[0193] 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.
[0194] 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.
[0195] 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 8 As shown, the device comprises:
[0196] 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 to query the security status of the cryptographic suite and / or the cryptographic algorithm;
[0197] 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 a security status of a cryptographic suite and / or a cryptographic algorithm.
[0198] In one embodiment, the device further comprises:
[0199] The first selection unit is configured to select a secure cryptographic suite and / or cryptographic algorithm according to the first information.
[0200] In one embodiment, the device further comprises:
[0201] 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;
[0202] A generating unit is used to generate the first request according to the first message.
[0203] In one embodiment, the first information includes one or more of the following:
[0204] One or more second information, one second information indicating a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm;
[0205] one or more third information, each third information indicating a security status of a cipher suite;
[0206] sign.
[0207] In one embodiment, the device further comprises:
[0208] 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;
[0209] The second selection unit is configured to select a secure cryptographic suite and / or cryptographic algorithm according to the first information if the signature verification passes.
[0210] 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.
[0211] 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.
[0212] 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:
[0213] The first communication interface 901 can exchange information with other network nodes.
[0214] 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.
[0215] The first memory 903 is used to store a computer program that can be run on the first processor 902 .
[0216] 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 a query on the security status of the cryptographic suite and / or the cryptographic algorithm; and the first response carries first information, and the first information indicates the security status of the cryptographic suite and / or the cryptographic algorithm.
[0217] In one embodiment, a cryptographic suite includes one or more cryptographic algorithms; the first processor 902 is used to determine a security status of the cryptographic algorithm; and determine the first information according to the security status of the cryptographic algorithm.
[0218] 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 a security status of the cryptographic algorithm.
[0219] In one embodiment, the first information includes one or more of the following:
[0220] One or more second information, one second information indicating a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm;
[0221] one or more third information, each third information indicating a security status of a cipher suite;
[0222] sign.
[0223] In one embodiment, the second information includes a first value, and / or the third information includes a second value; wherein,
[0224] A first value indicates a security status of a cryptographic algorithm, and a second value indicates a security status of a cryptographic suite, wherein the second value is obtained by performing an AND operation on the first values of all cryptographic algorithms included in the cryptographic suite.
[0225] 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.
[0226] 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.
[0227] 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.
[0228] 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.
[0229] 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.
[0230] 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.
[0231] 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:
[0232] The second communication interface 1001 can exchange information with other network nodes.
[0233] 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.
[0234] The second memory 1003 is used to store a computer program that can be run on the second processor 1002 .
[0235] 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 a query on the security status of the cryptographic suite and / or the cryptographic algorithm; the first response carries first information, and the first information indicates the security status of the cryptographic suite and / or the cryptographic algorithm.
[0236] In one embodiment, the second processor 1002 is configured to select a secure cryptographic suite and / or cryptographic algorithm according to the first information.
[0237] 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;
[0238] The second processor 1002 is further configured to generate the first request according to the first message.
[0239] In one embodiment, the first information includes one or more of the following:
[0240] One or more second information, one second information indicating a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm;
[0241] one or more third information, each third information indicating a security status of a cipher suite;
[0242] sign.
[0243] 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;
[0244] When the signature verification passes, a secure cryptographic suite and / or cryptographic algorithm is selected according to the first information.
[0245] 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.
[0246] 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 .
[0247] 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.
[0248] 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.
[0249] 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.
[0250] 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.
[0251] 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.
[0252] 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.
[0253] 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.
[0254] 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.
[0255] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0256] 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, It is characterized in that Applied to a first network function, the method comprises: 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 used to request a query on a security status of the cryptographic suite and / or the cryptographic algorithm; A first response is returned to the first device; the first response carries first information, and the first information indicates a security status of a cryptographic suite and / or a cryptographic algorithm.
2. The method according to claim 1, It is 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: Determine the security status of cryptographic algorithms; The first information is determined according to the security status of the cryptographic algorithm.
3. The method according to claim 1 or 2, It is 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 a security status of the cryptographic algorithm.
4. The method according to claim 1 or 2, It is characterized in that The first information includes one or more of the following: One or more second information, one second information indicating a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm; one or more third information, each third information indicating a security status of a cipher suite; sign.
5. The method according to claim 4, It is characterized in that The second information includes the first value, and / or the third information includes the second value; wherein, A first value indicates a security status of a cryptographic algorithm, and a second value indicates a security status of a cryptographic suite. The second value is obtained by performing an AND operation on the first values of all cryptographic algorithms included in the cryptographic suite.
6. The method according to claim 4, It is 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, It is 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 the cryptographic suite and / or the cryptographic algorithm, and is used to request a query on the security status of the cryptographic suite and / or the cryptographic algorithm; A first response returned by the first network function is received; the first response carries first information, where the first information indicates a security status of a cryptographic suite and / or a cryptographic algorithm.
8. The method according to claim 7, It is characterized in that After receiving the first response returned by the first network function, the method further includes: A secure cipher suite and / or cipher algorithm is selected according to the first information.
9. The method according to claim 7, It is 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, It is characterized in that The first information includes one or more of the following: One or more second information, one second information indicating a security status of a cryptographic algorithm included in a cryptographic suite, or one second information indicating a security status of a cryptographic algorithm; one or more third information, each third information indicating a security status of a cipher suite; sign.
11. The method according to claim 10, It is 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 secure cryptographic suite and / or cryptographic algorithm is selected according to the first information.
12. A cryptographic algorithm security negotiation device, It is 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 a query on a security status of the cryptographic suite and / or the cryptographic algorithm; 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 a security status of a cryptographic suite and / or a cryptographic algorithm.
13. A cryptographic algorithm security negotiation device, It is 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 a query on a security status of the cryptographic suite and / or the cryptographic algorithm; 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 a security status of a cryptographic suite and / or a cryptographic algorithm.
14. A first network function, It is 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 a query on the security status of the cryptographic suite and / or the cryptographic algorithm; and the first response carries first information, and the first information indicates the security status of the cryptographic suite and / or the cryptographic algorithm.
15. A first device, It is 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 a query on the security status of the cryptographic suite and / or the cryptographic algorithm; the first response carries first information, and the first information indicates the security status of the cryptographic suite and / or the cryptographic algorithm.
16. A network function, It is 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, It is 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, It is 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, It is characterized in that The computer program implements the steps of the method according to any one of claims 1 to 11 when executed by a processor.
Citation Information
Patent Citations
Method for achieving symmetric cipher service based on intelligent card chip operating system (COS)
CN102752104A
Data transmission method and terminal and system
CN106657142A
National password SSL protocol luring and detecting method and system, and storage medium
CN115396240A
Dynamically managing, from a centralized service, valid cipher suites allowed for secured sessions
US20180115521A1
Secure transport channel using multiple cipher suites
US9923923B1
Cited By
Internet of Things system password application security assessment method and system based on large model
CN120217357A
