TLCP communication method and system for resisting quantum attack
By combining quantum-resistant cryptographic algorithms and traditional public-key cryptographic algorithms in TLCP communications to generate hybrid signatures and key exchange parameters, the security issues of traditional public-key cryptographic algorithms under quantum attacks are solved, and the security of traditional public-key cryptographic algorithms under quantum computer environments is achieved. Secure communications and progressive deployment.
Patent Information
- Application Number
- CN202410910794.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-09
AI Technical Summary
When existing TLCP communications face attacks from quantum computers, traditional public key cryptography algorithms are insecure and cannot resist quantum attacks, resulting in insecure communication between the client and the server.
Using a combination of quantum-resistant cryptography algorithms and traditional public-key cryptography algorithms, by generating hybrid signatures and dual certificates, verifying and constructing hybrid key exchange parameters, and generating hybrid pre-master keys as key seeds, ensuring communication security in a quantum attack environment .
It realizes secure communication under quantum computer attacks, provides double insurance against quantum attacks, is compatible with the existing TLCP protocol, supports the progressive deployment of anti-quantum cryptographic algorithms, and ensures communication security and compatibility.
Smart Images

Figure CN118631447A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and more particularly to a TLCP communication method and system for resisting quantum attacks. Background Art
[0002] With the rapid improvement of quantum computer computing power, traditional public key cryptographic algorithms based on mathematical problems will no longer be secure. At present, the existing TLCP mainly uses traditional public key cryptographic algorithms in the process of establishing communication between the client and the server. However, the existing TLCP does not have the ability to resist quantum attacks, and faces the security threats that quantum computers may pose to the current traditional public key cryptographic algorithms.
[0003] Therefore, how to ensure that a reliable path is established between the client and the server has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0004] In view of this, the present invention provides a TLCP communication method and system that are resistant to quantum attacks, which can ensure that the client and the server can securely establish communication under a quantum attack environment.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] In a first aspect, the present invention provides a TLCP communication method for resisting quantum attacks, comprising the following steps:
[0007] After receiving the communication request from the client, the server generates traditional key exchange parameters and hybrid signature, and sends them to the client along with the hybrid signature dual certificate;
[0008] The client verifies the hybrid signature dual certificate and the hybrid signature, constructs hybrid key exchange parameters and sends them to the server. At the same time, it generates a hybrid pre-master key as the key seed for subsequent key derivation.
[0009] The server decrypts the hybrid key exchange parameters and generates a hybrid pre-master key as the key seed for subsequent key derivation.
[0010] Furthermore, the process of generating traditional key exchange parameters and hybrid signatures on the server side includes:
[0011] The server constructs the traditional key exchange parameters ServerGMParams and uses its own quantum-resistant cryptographic algorithm to sign the private key ServerSK PQCsig Generate quantum-resistant signature sig for exchange parameters PQC =Sign PQC (ServerGMParams,ServerSK PQCsig); Use your own traditional public key cryptography algorithm to sign the private key ServerSK GMsig Generates a traditional public key cryptographic signature sig of the exchange parameters GM =Sign GM (ServerGMParams, ServerSK GMsig ); Generate a mixed signature Server_mixsig=sig PQC || sig GM ;
[0012] Send the traditional key exchange parameters ServerGMParams and the hybrid signature Server_mixsig to the client along with the hybrid signature dual certificates;
[0013] The hybrid signature dual certificate is a hybrid signature certificate and a hybrid encryption certificate with quantum-resistant cryptographic signature and traditional public key cryptographic signature that the server has applied for in advance from the certificate issuing authority. ServerGMParams represents the traditional public key cryptographic key exchange parameters of the existing TLCP server. PQC () indicates quantum-resistant cryptographic signature operation, Sign GM () represents the traditional public key cryptographic signature operation, || represents the connection operation, and Server_mixsig represents the server-side Server mixed signature.
[0014] Furthermore, the client verifies the hybrid signature dual certificate by using a certificate chain to verify the validity of the hybrid signature dual certificate.
[0015] Furthermore, the client verifies the hybrid signature in the following way:
[0016] Extract the server's quantum-resistant cryptographic signature public key ServerPK from the public key field of the hybrid signature certificate PQCsig With the traditional public key cryptography algorithm signature public key ServerPK GMsig ;
[0017] Extract the quantum-resistant signature sig of the mixed signature Server_mixsig PQC , using the traditional key exchange parameters ServerGMParams and the public key ServerPK PQCsig Fighting against quantum signatures PQC Verify and calculate a=Verify PQC (sig PQC , ServerGMParams, ServerPK PQCsig );
[0018] Extract the traditional public key cryptographic signature sig of the mixed signature Server_mixsig GM , using the traditional key exchange parameters ServerGMParams and the public key ServerPK SM2sig For traditional public key cryptographic signature sig GM Verify and calculate b=Verify GM (sig GM , ServerGMParams, ServerPK GMsig );
[0019] When a and b are both true, the verification is successful, otherwise, the client closes the connection with the server;
[0020] Among them, Verify PQC () indicates the verification operation of quantum-resistant cryptographic signature, Verify GM () represents the verification operation of traditional public key cryptographic signature.
[0021] Furthermore, the client constructs the hybrid key exchange parameters and the hybrid pre-master key in the following manner:
[0022] The client extracts the server's quantum-resistant cryptographic key encapsulation algorithm public key ServerPK from the public key field of the hybrid encryption certificate PQCenc Encrypting the public key ServerPK with the traditional public key cryptography algorithm GMenc , using the public key ServerPK PQCenc Perform quantum-resistant cryptographic key encapsulation operations to generate quantum-resistant cryptographic key encapsulation ciphertext c PQC Share the key ss with (c PQC, ss)=Enc PQC (ServerPK PQCenc );
[0023] Using the randomly selected pre-master key pms and public key ServerPK GMenc Generate traditional public key cryptographic ciphertext c GM =Enc GM (pms,ServerPK GMenc ), generate mixed key exchange parameters ClientMixParams=c PQC ||c GM with mixed pre-master key mixpms=ss||pms;
[0024] Among them, Enc PQC () indicates the quantum-resistant cryptographic key encapsulation operation, Enc GM() represents the traditional public key encryption operation, and ClientMixParams represents the client mixed key exchange parameters.
[0025] Furthermore, the process in which the server decrypts the hybrid key exchange parameters and generates the hybrid pre-master key includes:
[0026] The server first extracts the quantum-resistant cryptographic key encapsulation ciphertext c from the hybrid key exchange parameters PQC With the traditional public key ciphertext c GM , and then use its own quantum-resistant cryptographic key encapsulation algorithm private key ServerSK PQCenc Decapsulation c PQC Get the shared key ss=Dec PQC (c PQC , ServerSK PQCenc ); Use your own traditional public key cryptography to encrypt the private key ServerSK GMenc Decryptionc GM Get the pre-master key pms = Dec GM (c GM , ServerSK GMenc ), generate the mixed pre-master key mixpms=ss||pms;
[0027] Among them, Dec PQC () represents the quantum-resistant cryptographic key decapsulation operation, Dec GM () represents the traditional public key cryptographic decryption operation.
[0028] Furthermore, the traditional public key cryptographic signature algorithm used by the server is SM2, and the quantum-resistant cryptographic signature algorithm used is Dilithium; the quantum-resistant cryptographic key encapsulation algorithm used by the client is Kyber, and the traditional public key cryptographic encryption algorithm used is SM2.
[0029] In a second aspect, the present invention provides a dual-system TLCP communication method for resisting quantum attacks, comprising the following steps:
[0030] The client sends a communication request to the server. After receiving the communication request sent by the client, the server determines whether to execute the existing TLCP protocol or the quantum-resistant TLCP protocol; when executing the quantum-resistant TLCP protocol, it is executed according to the above-mentioned communication method for resisting quantum attacks.
[0031] In a third aspect, the present invention provides a TLCP communication system that resists quantum attacks, which is applicable to the above-mentioned TLCP communication method that resists quantum attacks; comprising: a signature module, a verification module and a decryption module;
[0032] The signature module is used to generate traditional key exchange parameters and hybrid signatures on the server side, and send them to the client side together with the hybrid signature dual certificates;
[0033] The verification module is used to verify the hybrid signature dual certificate and the hybrid signature on the client, and construct a hybrid key exchange parameter to send to the server, and at the same time, generate a hybrid pre-master key as a key seed for subsequent derivation of other keys;
[0034] The decryption module is used to decrypt the hybrid key exchange parameters at the server end and generate a hybrid pre-master key as a key seed for subsequent derivation of other keys.
[0035] In a fourth aspect, the present invention provides a dual-system TLCP communication system that resists quantum attacks, comprising: an existing TLCP protocol module, an anti-quantum TLCP protocol module, and a judgment module;
[0036] The existing TLCP protocol module is used to execute the existing TLCP protocol;
[0037] The quantum-resistant TLCP protocol module is used to execute the quantum-resistant TLCP protocol according to the communication method for resisting quantum attacks, and generate a hybrid pre-master key on the client and the server respectively;
[0038] The judgment module is used to judge whether to execute the existing TLCP protocol or the quantum-resistant TLCP protocol after the server receives the communication request sent by the client;
[0039] The existing TLCP protocol module is also used to use the hybrid pre-master key generated by the server and the client as a seed to derive other keys through the key derivation algorithm in the existing TLCP protocol.
[0040] It can be seen from the above technical solutions that, compared with the prior art, the present invention has the following beneficial effects:
[0041] 1. The present invention uses both the pre-master key derived from the traditional public key algorithm and the pre-master key derived from the quantum-resistant cryptographic algorithm to calculate a mixed pre-master key. The current TLCP is based on GB / T38636-2020, and the protocol in GB / T38636-2020 completely adopts the traditional public key cryptographic algorithm to derive the pre-master key. Relatively speaking, under quantum computing attacks, the pre-master key derived from the traditional public key algorithm is insecure, while the pre-master key derived from the quantum-resistant algorithm is secure, so that the mixed pre-master key is secure. Therefore, the quantum-resistant TLCP communication method of the present invention can resist the threat of quantum computers and ensure that the client and the server establish secure communication in the event of future quantum computer attacks.
[0042] 2. The quantum-resistant TLCP in the dual-system communication protocol of the present invention not only ensures the correctness of the traditional public key cryptographic algorithm, but also adds a quantum-resistant algorithm, which has the advantage of double insurance.
[0043] 3. The dual-system protocol of the present invention is compatible with the existing TLCP, which is conducive to the progressive deployment of quantum-resistant cryptographic algorithms in the future, making the transition of the existing TLCP and its applications to quantum-resistant TLCP safer and smoother. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0045] Figure 1 A flow chart of a TLCP communication method for resisting quantum attacks in Embodiment 1 provided by the present invention;
[0046] Figure 2 This is a flow chart for selecting a dual-system TLCP communication method for resisting quantum attacks in the second embodiment provided by the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] Embodiment 1:
[0049] like Figure 1 As shown, the embodiment of the present invention discloses a TLCP communication method for resisting quantum attacks, comprising the following steps:
[0050] S1. After receiving the communication request from the client, the server generates traditional key exchange parameters and hybrid signature, and sends them to the client together with the hybrid signature dual certificate;
[0051] S2. The client verifies the hybrid signature dual certificate and the hybrid signature, constructs hybrid key exchange parameters and sends them to the server. At the same time, it generates a hybrid pre-master key as the key seed for subsequent key derivation.
[0052] S3. The server decrypts the hybrid key exchange parameters and generates a hybrid pre-master key as a key seed for subsequent key derivation.
[0053] The above steps are further explained below.
[0054] S1. After receiving the client's request to establish communication, the server constructs the traditional key exchange parameters ServerGMParams and uses its own quantum-resistant cryptographic algorithm to sign the private key ServerSK PQCsig Generate quantum-resistant signature sig for exchange parameters PQC =Sign PQC (ServerGMParams, ServerSK PQCsig ); Use your own traditional public key cryptography algorithm to sign the private key ServerSK GMsig Generates a traditional public key cryptographic signature sig of the exchange parameters GM =Sign GM (ServerGMParams, ServerSK GMsig ); Generate a mixed signature Server_mixsig=sig PQC || sig GM ;
[0055] Send the traditional key exchange parameters ServerGMParams and the mixed signature Server_mixsig to the client along with the mixed signature dual certificates;
[0056] The hybrid signature dual certificate is a hybrid signature certificate and a hybrid encryption certificate with quantum-resistant cryptographic signature and traditional public key cryptographic signature that the server has applied for in advance from the certificate issuing authority; ServerGMParams represents the traditional public key cryptographic key exchange parameters of the existing TLCP server. PQC () indicates quantum-resistant cryptographic signature operation, Sign GM () represents the traditional public key cryptographic signature operation, || represents the connection operation, and Server_mixsig represents the server-side Server mixed signature.
[0057] S2. After the client receives the hybrid signature dual certificate, the traditional key exchange parameters ServerGMParams and the hybrid signature Server_mixsig, it first uses the certificate chain to verify the validity of the hybrid signature dual certificate.
[0058] After that, extract the server's quantum-resistant cryptographic signature public key ServerPK from the public key field of the hybrid signature certificate PQCsig With the traditional public key cryptography algorithm signature public key ServerPK GMsig ;
[0059] Extract the quantum-resistant signature sig of the mixed signature Server_mixsig PQC , using the traditional key exchange parameters ServerGMParams and the public key ServerPK PQCsig Fighting against quantum signatures PQC Verify and calculate a=Verify PQC (sig PQC , ServerGMParams, ServerPK PQCsig );
[0060] Extract the traditional public key cryptographic signature sig of the mixed signature Server_mixsig GM , using the traditional key exchange parameters ServerGMParams and the public key ServerPK SM2sig For traditional public key cryptographic signature sig GM Verify and calculate b=Verify GM (sig GM , ServerGMParams, ServerPK GMsig );
[0061] When both a and b are true, the verification succeeds and the client continues to execute the following steps; otherwise, the client closes the connection with the server and no longer executes the following steps.
[0062] Among them, Verify PQC () indicates the verification operation of quantum-resistant cryptographic signature, Verify GM () represents the verification operation of traditional public key cryptographic signature.
[0063] Next, the client extracts the server's quantum-resistant cryptographic key encapsulation algorithm public key ServerPK from the public key field of the hybrid encryption certificate. PQCenc Encrypting the public key ServerPK with the traditional public key cryptography algorithm GMenc , using the public key ServerPK PQCenc Perform quantum-resistant cryptographic key encapsulation operations to generate quantum-resistant cryptographic key encapsulation ciphertext c PQC Share the key ss with (c PQC, ss)=Enc PQC (ServerPK PQCenc );
[0064] Using the randomly selected pre-master key pms and public key ServerPK GMenc Generate traditional public key cryptographic ciphertext c GM =Enc GM (pms,ServerPK GMenc), generate mixed key exchange parameters ClientMixParams=c PQC ||c GM Mix the pre-master key mixpms=ss||pms; at the same time, the client uses the mixed pre-master key as a seed to derive other keys.
[0065] Among them, Enc PQC () indicates the quantum-resistant cryptographic key encapsulation operation, Enc GM () represents the traditional public key encryption operation, and ClientMixParams represents the client mixed key exchange parameters.
[0066] S3. After receiving the hybrid key exchange parameters sent by the client, the server first extracts the quantum-resistant cryptographic key encapsulation ciphertext c from the hybrid key exchange parameters. PQC With the traditional public key ciphertext c GM , and then use its own quantum-resistant cryptographic key encapsulation algorithm private key ServerSK PQCenc Decapsulation c PQC Get the shared key ss=Dec PQC (c PQC , ServerSK PQCenc ); Use your own traditional public key cryptography to encrypt the private key ServerSK GMenc Decryptionc GM Get the pre-master key pms = Dec GM (c GM ,ServerSK GMenc ), generate a mixed pre-master key mixpms=ss||pms; the server uses the mixed pre-master key as a seed to derive other keys.
[0067] Among them, Dec PQC () represents the quantum-resistant cryptographic key decapsulation operation, Dec GM () represents the traditional public key cryptographic decryption operation.
[0068] The following is a further description using the quantum-resistant cryptographic signature algorithm Dilithium, the quantum-resistant cryptographic key encapsulation algorithm Kyber, the traditional cryptographic national secret signature algorithm SM2, and the traditional cryptographic national secret encryption algorithm SM2 as examples.
[0069] S1. After receiving the ClientHello message from the client requesting to establish communication, the server sends a hybrid signature dual certificate to the client that has both the quantum-resistant Dilithium signature and the traditional public key SM2 signature, namely a hybrid signature certificate and a hybrid encryption certificate.
[0070] The server constructs the traditional public key cryptography SM2 key exchange parameters ServerSM2Params, and then uses its own quantum-resistant cryptography Dilithium signature private key ServerSK Dilithiumsig Generate quantum-resistant signature sig for exchange parameters Dilithium =Sign Dilithium (ServerSM2Params, ServerSK Dilithiumsig ), using its own traditional public key SM2 signature private key ServerSK SM2sig Generates a traditional public key cryptographic signature sig of the exchange parameters SM2 =Sign SM2 (ServerSM2Params,ServerSK SM2sig ), thereby generating a mixed signature Server_mixsig=sig Dilithium || sig SM2 , send ServerSM2Params and Server_mixsig together to the client.
[0071] Among them, ServerSM2Params represents the traditional public key SM2 key exchange parameters of the existing TLCP server side, Sign Dilithium () indicates the anti-quantum cryptography Dilithium signature operation, Sign SM2 () represents the traditional public key cryptography SM2 signature operation, || represents the connection operation, and Server_mixsig represents the server-side mixed signature.
[0072] S2. After receiving the hybrid signature dual certificate, traditional key exchange parameters and hybrid signature sent by the server, the client first uses the certificate chain to verify the validity of the hybrid signature dual certificate, and then extracts the server's quantum-resistant cryptographic signature public key ServerPK from the public key field of the signature certificate. DIlithiumsig ServerPK SM2sig , then extract the quantum-resistant signature sig of the mixed signature Server_mixsig Dilithium , using the traditional key exchange parameters ServerSM2Params and the public key ServerPK Dilithiumsig Fighting against quantum signatures Dilithium Verify and calculate a=Verify Dilithium (sig Dilithium , ServerSM2Params, ServerPK Dilithiumsig ), extract the traditional public key cryptographic signature sig of the mixed signature Server_mixsig SM2, using the traditional key exchange parameters ServerSM2Params and the public key ServerPK SM2sig For traditional public key cryptographic signature sig SM2 Verify and calculate b=Verify SM2 (sig SM2 , ServerSM2Params,ServerPK SM2sig ), only when a and b are true at the same time, the verification is passed, and the client continues to the following steps. Otherwise, the client closes the connection with the server and does not continue to execute the following steps.
[0073] Among them, Verify Dilithium () indicates the verification operation of the quantum-resistant Dilithium signature, Verify SM2 ()Verification operation of traditional public key cryptography SM2 signature.
[0074] Afterwards, the client extracts the server's quantum-resistant Kyber key-wrapped public key ServerPK from the public key field of the encryption certificate Kyberenc Encrypted public key ServerPK with traditional public key SM2 SM2enc , using the public key ServerPK Kyberenc Perform quantum-resistant cryptographic key encapsulation operations to generate quantum-resistant cryptographic key encapsulation ciphertext c Kyber Share the key ss with (c Kyber ,ss)=Enc Kyber (ServerPK Kyberenc ), using the randomly selected pre-master key pms and the public key ServerPK SM2enc , generate the traditional public key cryptographic ciphertext c SM2 =Enc SM2 (pms,ServerPK SM2enc ), thereby generating the mixed key exchange parameters ClientMixParams=c Kyber ||c SM2 The client uses the mixed pre-master key mixpms=ss||pms as a seed to derive other keys and sends the mixed key exchange parameters ClientMixParams to the server.
[0075] Among them, Enc Kyber () represents the quantum-resistant Kyber key encapsulation operation, Enc SM2 () represents the traditional SM2 encryption operation, and ClientMixParams represents the client-side hybrid key exchange parameters.
[0076] S3. After receiving the hybrid key exchange parameters from the client, the server first extracts the quantum-resistant cryptographic key encapsulation ciphertext c from the hybrid key exchange parameters. Kyber With the traditional public key ciphertext c SM2 , and then use its own quantum-resistant cryptographic Kyber key to encapsulate the private key ServerSK Kyberenc Decapsulation c PKyber Get the shared key ss=Dec Kyber (c Kyber ,ServerSK Kyberenc ), using its own traditional password SM2 to encrypt the private key ServerSK SM2enc Decryptionc SM2 Get the pre-master key pms = Dec SM2 (c SM2 , ServerSK SM2enc ). Thus, the mixed pre-master key mixpms=ss||pms is generated. The server uses the mixed pre-master key as a seed to derive other keys.
[0077] Among them, Dec Kyber () represents the quantum-resistant cryptographic Kyber key decapsulation operation, Dec SM2 () represents the traditional SM2 cipher decryption operation.
[0078] Embodiment 2:
[0079] The embodiment of the present invention provides a dual-system TLCP communication method for resisting quantum attacks, comprising the following steps:
[0080] A new quantum-resistant cipher suite is added on the basis of the existing TLCP. The client sends the selected cipher suite to the server as part of the communication request. After receiving the communication request sent by the client, the server determines whether to execute the existing TLCP protocol or the quantum-resistant TLCP protocol according to the cipher suite name. The selection process is as follows: Figure 2 As shown;
[0081] When executing the quantum-resistant TLCP protocol, the communication method for resisting quantum attacks described in Example 1 is followed to generate a hybrid pre-master key on the client and server, respectively;
[0082] The hybrid pre-master key generated by the server and the client is used as a seed to derive other keys through the key derivation algorithm in the existing TLCP protocol, where the existing TLCP complies with the GB / T38636-2020 standard.
[0083] Embodiment three:
[0084] The embodiment of the present invention further provides a TLCP communication system that resists quantum attacks, which is applicable to the TLCP communication method that resists quantum attacks described in the first embodiment; comprising: a signature module, a verification module and a decryption module;
[0085] The signature module is used to generate traditional key exchange parameters and hybrid signatures on the server side, and send them to the client side together with the hybrid signature dual certificates;
[0086] The verification module is used to verify the hybrid signature dual certificate and the hybrid signature on the client, and construct a hybrid key exchange parameter to send to the server, and at the same time, generate a hybrid pre-master key as a key seed for subsequent derivation of other keys;
[0087] The decryption module is used to decrypt the hybrid key exchange parameters at the server end and generate a hybrid pre-master key as a key seed for subsequent derivation of other keys.
[0088] Embodiment 4:
[0089] The embodiment of the present invention also provides a dual-system TLCP communication system that resists quantum attacks, including: an existing TLCP protocol module, an anti-quantum TLCP protocol module and a judgment module;
[0090] The existing TLCP protocol module is used to execute the existing TLCP protocol;
[0091] The quantum-resistant TLCP protocol module is used to execute the quantum-resistant TLCP protocol according to the communication method for resisting quantum attacks as described in the first embodiment, and generate a hybrid pre-master key on the client and the server respectively;
[0092] The judgment module is used to judge whether to execute the existing TLCP protocol or the quantum-resistant TLCP protocol after the server receives the communication request sent by the client;
[0093] The existing TLCP protocol module is also used to use the hybrid pre-master key generated by the server and the client as a seed to derive other keys through the key derivation algorithm in the existing TLCP protocol.
[0094] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0095] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A TLCP communication method that resists quantum attacks, It is characterized in that The following steps are involved: After receiving the communication request from the client, the server generates traditional key exchange parameters and hybrid signature, and sends them to the client along with the hybrid signature dual certificate; The client verifies the hybrid signature dual certificate and the hybrid signature, constructs hybrid key exchange parameters and sends them to the server. At the same time, it generates a hybrid pre-master key as the key seed for subsequent key derivation. The server decrypts the hybrid key exchange parameters and generates a hybrid pre-master key as the key seed for subsequent key derivation.
2. The TLCP communication method for resisting quantum attacks according to claim 1, It is characterized in that The process of generating traditional key exchange parameters and hybrid signatures on the server side includes: The server constructs the traditional key exchange parameters ServerGMParams and uses its own quantum-resistant cryptographic algorithm to sign the private key ServerSK PQCsig Generate quantum-resistant signature sig for exchange parameters PQC =Sign PQC (ServerGMParams,ServerSK PQCsig ); Use your own traditional public key cryptography algorithm to sign the private key ServerSK GMsig Generates a traditional public key cryptographic signature sig of the exchange parameters GM =Sign GM (ServerGMParams, ServerSK GMsig ); Generate a mixed signature Server_mixsig=sig PQC || sig GM ; Send the traditional key exchange parameters ServerGMParams and the hybrid signature Server_mixsig to the client along with the hybrid signature dual certificates; The hybrid signature dual certificate is a hybrid signature certificate and a hybrid encryption certificate with quantum-resistant cryptographic signature and traditional public key cryptographic signature that the server has applied for in advance from the certificate issuing authority; ServerGMParams represents the traditional public key cryptographic key exchange parameters of the existing TLCP server. PQC () indicates quantum-resistant cryptographic signature operation, Sign GM () represents the traditional public key cryptographic signature operation, || represents the connection operation, and Server_mixsig represents the server-side Server mixed signature.
3. The TLCP communication method for resisting quantum attacks according to claim 1, It is characterized in that The client verifies the hybrid signature dual certificate by using the certificate chain to verify the validity of the hybrid signature dual certificate.
4. The TLCP communication method for resisting quantum attacks according to claim 2, It is characterized in that The client verifies the hybrid signature in the following way: Extract the server's quantum-resistant cryptographic signature public key ServerPK from the public key field of the hybrid signature certificate PQCsig With the traditional public key cryptography algorithm signature public key ServerPK GMsig ; Extract the quantum-resistant signature sig of the mixed signature Server_mixsig PQC , using the traditional key exchange parameters ServerGMParams and the public key ServerPK PQCsig Fighting against quantum signatures PQC Verify and calculate a=Verify PQC (sig PQC , ServerGMParams, ServerPK PQCsig ); Extract the traditional public key cryptographic signature sig of the mixed signature Server_mixsig GM , using the traditional key exchange parameters ServerGMParams and the public key ServerPK SM2sig For traditional public key cryptographic signature sig GM Verify and calculate b=Verify GM (sig GM , ServerGMParams, ServerPK GMsig ); When a and b are both true, the verification is successful, otherwise, the client closes the connection with the server; Among them, Verify PQC () indicates the verification operation of quantum-resistant cryptographic signature, Verify GM () represents the verification operation of traditional public key cryptographic signature.
5. The TLCP communication method for resisting quantum attacks according to claim 4, It is characterized in that The client constructs the hybrid key exchange parameters and the hybrid pre-master key as follows: The client extracts the server's quantum-resistant cryptographic key encapsulation algorithm public key ServerPK from the public key field of the hybrid encryption certificate PQCenc Encrypting the public key ServerPK with the traditional public key cryptography algorithm GMenc , using the public key ServerPK PQCenc Perform quantum-resistant cryptographic key encapsulation operations to generate quantum-resistant cryptographic key encapsulation ciphertext c PQC Share the key ss with (c PQC, ss)=Enc PQC (ServerPK PQCenc ); Using the randomly selected pre-master key pms and public key ServerPK GMenc Generate traditional public key cryptographic ciphertext c GM =Enc GM (pms,ServerPK GMenc ), generate mixed key exchange parameters ClientMixParams=c PQC ||c GM with mixed pre-master key mixpms=ss||pms; Among them, Enc PQC () indicates the quantum-resistant cryptographic key encapsulation operation, Enc GM () represents the traditional public key encryption operation, and ClientMixParams represents the client mixed key exchange parameters.
6. The TLCP communication method for resisting quantum attacks according to claim 5, It is characterized in that The process by which the server decrypts the hybrid key exchange parameters and generates the hybrid pre-master key includes: The server first extracts the quantum-resistant cryptographic key encapsulation ciphertext c from the hybrid key exchange parameters PQC With the traditional public key ciphertext c GM , and then use its own quantum-resistant cryptographic key encapsulation algorithm private key ServerSK PQCenc Decapsulation c PQC Get the shared key ss=Dec PQC (c PQC , ServerSK PQCenc ); Use your own traditional public key cryptography to encrypt the private key ServerSK GMenc Decryptionc GM Get the pre-master key pms = Dec GM (c GM , ServerSK GMenc ), generate the mixed pre-master key mixpms=ss||pms; Among them, Dec PQC () represents the quantum-resistant cryptographic key decapsulation operation, Dec GM () represents the traditional public key cryptographic decryption operation.
7. The TLCP communication method for resisting quantum attacks according to claim 6, It is characterized in that The traditional public key cryptographic signature algorithm used on the server is SM2, and the quantum-resistant cryptographic signature algorithm used is Dilithium; the quantum-resistant cryptographic key encapsulation algorithm used on the client is Kyber, and the traditional public key cryptographic encryption algorithm used is SM2.
8. A dual-system TLCP communication method that resists quantum attacks. It is characterized in that The following steps are involved: The client sends a communication request to the server. After receiving the communication request sent by the client, the server determines whether to execute the existing TLCP protocol or the quantum-resistant TLCP protocol; when executing the quantum-resistant TLCP protocol, it is executed in accordance with the communication method for resisting quantum attacks as described in any one of claims 1 to 7.
9. A TLCP communication system resistant to quantum attacks, It is characterized in that It is applicable to the TLCP communication method for resisting quantum attacks as described in any one of claims 1 to 7; comprising: a signature module, a verification module and a decryption module; The signature module is used to generate traditional key exchange parameters and hybrid signatures on the server side, and send them to the client side together with the hybrid signature dual certificates; The verification module is used to verify the hybrid signature dual certificate and the hybrid signature on the client, and construct a hybrid key exchange parameter to send to the server, and at the same time, generate a hybrid pre-master key as a key seed for subsequent derivation of other keys; The decryption module is used to decrypt the hybrid key exchange parameters at the server end and generate a hybrid pre-master key as a key seed for subsequent derivation of other keys.
10. A dual-system TLCP communication system that resists quantum attacks. It is characterized in that include: Existing TLCP protocol module, anti-quantum TLCP protocol module and judgment module; The existing TLCP protocol module is used to execute the existing TLCP protocol; The quantum-resistant TLCP protocol module is used to execute the quantum-resistant TLCP protocol according to the communication method for resisting quantum attacks according to any one of claims 1 to 7, and generate a hybrid pre-master key on the client and the server respectively; The judgment module is used to judge whether to execute the existing TLCP protocol or the quantum-resistant TLCP protocol after the server receives the communication request sent by the client; The existing TLCP protocol module is also used to use the hybrid pre-master key generated by the server and the client as a seed to derive other keys through the key derivation algorithm in the existing TLCP protocol.
Citation Information
Patent Citations
Key-free authentication transmission method and system
CN106161449A
Secure transmission method and system based on quantum key encapsulation and negotiation after mixing
CN114629646A
Transmission processing method and system based on TLCP quantum security, and electronic equipment
CN117424761A
Hybrid key derivation to secure data
US20220209950A1
Cited By
National cryptographic SSH protocol supporting anti-quantum algorithm and cryptographic device
CN118984225A
Post-quantum and national secret hybrid dual-certificate SSL handshake method and device
CN119071075A
Session key generation method and related device
CN119276494A
Short message secure transmission method and system based on post-quantum algorithm, and electronic equipment
CN119766502A
Mobile communication method, mobile terminal and server
CN119767300A
