A data security transmission system and method based on national secret algorithm
Through a data security transmission system based on the national secret algorithm, digital certificate authentication and quantum key distribution technology are used to solve the problem that quantum key distribution technology cannot perform identity authentication and ensure the security of data transmission.
Patent Information
- Application Number
- CN202211084212.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-06
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-06
AI Technical Summary
Quantum key distribution technology cannot authenticate the identities of communicating parties in the network, resulting in security flaws in data transmission.
Adopting a data security transmission system based on the national secret algorithm, through the cooperation between the first quantum security gateway and the second quantum security gateway and the digital certificate certification authority CA, the national secret algorithm is used to generate and verify digital certificates, perform two-way identity authentication, and pass the quantum Key distribution determines the quantum keys of both communicating parties.
The identity authentication of a trusted third-party CA ensures the security of data transmission and solves the problem that quantum key distribution technology cannot perform identity authentication.
Smart Images

Figure CN115442146B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data encryption, and in particular to a data security transmission system and method based on a national encryption algorithm. Background Art
[0002] Quantum key distribution (QKD) uses the properties of quantum mechanics to ensure communication security. By transmitting information through quantum superposition or quantum entanglement, the communication system can detect whether there is eavesdropping.
[0003] At present, various quantum key distributions are based on the principle of quantum mechanics measurement, using the polarization state of photons as an information carrier to transmit keys, which can ensure the security of data transmission. However, quantum key distribution technology cannot authenticate the identities of the communicating parties in the network, resulting in security defects in data transmission. Summary of the invention
[0004] The purpose of the present invention is to solve the problems of the above-mentioned background technology and to propose a data security transmission system and method based on national secret algorithm.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] In a first aspect of an embodiment of the present invention, a data security transmission system based on a national secret algorithm is first provided, comprising a first quantum security gateway, a second quantum security gateway and a digital certificate authentication authority CA; the first quantum security gateway is connected to a sender Alice, and the second quantum security gateway is connected to a receiver Bob; the first quantum security gateway comprises a first identity authentication module and a first quantum encryption module; the second quantum security gateway comprises a second identity authentication module and a second quantum encryption module;
[0007] The CA is used to receive digital certificate applications from the sender Alice and the receiver Bob, and generate a first digital certificate of the sender Alice and a second digital certificate of the receiver Bob using a national secret algorithm;
[0008] The first identity authentication module and the second identity authentication module are used to verify the second digital certificate and the first digital certificate respectively, so as to authenticate the receiver Bob and the sender Alice respectively;
[0009] The first quantum encryption module and the second quantum encryption module are used to perform quantum key distribution to determine the quantum key for data communication between the sender Alice and the receiver Bob after the sender Alice and the receiver Bob pass the two-way authentication;
[0010] The first quantum security gateway and the second quantum security gateway are used to perform data encryption communication using the quantum key.
[0011] Optionally, the CA includes a national encryption algorithm module, a visa module, and an audit module; the digital certificate application includes identity information of a target client; the target client is any one of the sender Alice and the receiver Bob;
[0012] The national secret algorithm module is used to generate an SM2 public-private key pair using the SM2 national secret algorithm;
[0013] The audit module is used to audit the target client according to the identity information;
[0014] The visa module is used to generate a target digital certificate based on the identity information and the CA's issuance information using the SM2 public-private key pair if the review is passed; the issuance information includes the information of the issuing agency CA, the validity period and the certificate serial number.
[0015] Optionally, the visa module includes a plaintext generation submodule, a first digest generation submodule, a signature generation submodule and a certificate generation submodule:
[0016] The plaintext generation submodule is used to generate a target certificate plaintext according to the identity information and the issuance information of the CA if the target client passes the review;
[0017] The first summary generation submodule is used to generate a target certificate summary of the target certificate plaintext using the SM3 national encryption algorithm;
[0018] The signature generation submodule is used to encrypt the target certificate digest using the private key of the SM2 public and private keys to obtain the target certificate signature;
[0019] The certificate generation submodule is used to combine the target certificate plaintext and the target certificate signature into the target digital certificate.
[0020] Optionally, the target identity authentication module includes a decryption module, a second digest generation submodule and a verification module; when the target client is the sender Alice, the target identity authentication module is the second identity authentication module, or when the target client is the receiver Bob, the target identity authentication module is the first identity authentication module;
[0021] The verification module is used to verify the legitimacy of the target digital certificate according to the plain text of the target certificate when the target digital certificate is received;
[0022] The decryption module is used to decrypt the target certificate signature using the public key of the SM2 public-private key to obtain the target certificate digest if the target digital certificate is legal;
[0023] The second summary generation submodule is used to generate a comparison certificate summary of the current target certificate plaintext using the SM3 national encryption algorithm;
[0024] The verification module is further configured to compare the target certificate digest with the comparison certificate digest to authenticate the target client.
[0025] In a second aspect of an embodiment of the present invention, a data security transmission method based on a national secret algorithm is further provided, which is applied to a first quantum security gateway; the first target terminal connected to the first quantum security gateway is a sender Alice or a receiver Bob; the first quantum security gateway includes a first identity authentication module and a first quantum encryption module; the method includes:
[0026] Sending a first digital certificate to a second quantum security gateway; so that a second identity authentication module of the second quantum security gateway verifies the first digital certificate; the first digital certificate is a digital certificate of the first target terminal generated by a CA using a national secret algorithm; if the first target terminal is a sender Alice, the second target terminal connected to the second quantum security gateway is a receiver Bob, and if the first target terminal is a receiver Bob, the second target terminal is a sender Alice;
[0027] Receive a second digital certificate sent by the second quantum security gateway, and use the first identity authentication module to verify the second digital certificate; the second digital certificate is a digital certificate of the second target terminal generated by the CA using a national secret algorithm;
[0028] After the first target terminal and the second target terminal pass the two-way authentication, the first quantum encryption module and the second quantum encryption module of the second quantum security gateway are used to perform quantum key distribution to determine the quantum key for data communication between the first target terminal and the second target terminal;
[0029] Use the quantum key to perform data encryption communication with the second quantum security gateway.
[0030] Optionally, before sending the first digital certificate to the second quantum security gateway, the method further includes:
[0031] Sending a digital certificate application including the identity information of the first target client to the CA; allowing the CA to review the target client based on the identity information, and if the review is passed, using the SM2 public-private key pair to generate the first digital certificate based on the identity information and the CA's issuance information; the issuance information includes the information of the issuing agency CA, the validity period, and the certificate serial number;
[0032] Receive the first digital certificate issued by the CA.
[0033] Optionally, the first digital certificate includes a target certificate plaintext and a target certificate signature; the target certificate plaintext is the plaintext data generated by the CA based on the identity information and the issuance information of the CA; the target certificate signature is the signature data obtained by the CA encrypting the target certificate summary using the private key of the SM2 public and private keys; the target certificate summary is the summary data generated by the CA using the SM3 national encryption algorithm to calculate the target certificate plaintext.
[0034] Optionally, the process of authenticating the second target terminal is:
[0035] Verifying the legitimacy of the second digital certificate according to the plain text of the second digital certificate;
[0036] If the second digital certificate is legal, use the public key of the SM2 public-private key to decrypt the certificate signature of the second digital certificate to obtain the certificate summary of the second digital certificate;
[0037] Generate a comparison certificate digest of the plain text of the second digital certificate using the SM3 national encryption algorithm;
[0038] The second target terminal is authenticated by comparing the certificate digest with the compared certificate digest.
[0039] The embodiment of the present invention provides a data security transmission system based on a national secret algorithm, comprising a first quantum security gateway, a second quantum security gateway and a digital certificate certification authority CA; the first quantum security gateway is connected to a sender Alice, and the second quantum security gateway is connected to a receiver Bob; the first quantum security gateway comprises a first identity authentication module and a first quantum encryption module; the second quantum security gateway comprises a second identity authentication module and a second quantum encryption module; the CA is used to receive digital certificate applications from a sender Alice and a receiver Bob, and use a national secret algorithm to generate a first digital certificate of the sender Alice and a second digital certificate of the receiver Bob; the first identity authentication module and the second identity authentication module are respectively used to verify the second digital certificate and the first digital certificate, so as to authenticate the receiver Bob and the sender Alice respectively; the first quantum encryption module and the second quantum encryption module are used to perform quantum key distribution to determine a quantum key for data communication between the sender Alice and the receiver Bob after the sender Alice and the receiver Bob pass the two-way authentication; the first quantum security gateway and the second quantum security gateway are used to perform data encryption communication using quantum keys.
[0040] The receiver Bob and the sender Alice are first authenticated by a trusted third-party CA using a national secret algorithm. After the two-way authentication is passed, the quantum key is determined using quantum key distribution technology to ensure the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The present invention will be further described below in conjunction with the accompanying drawings.
[0042] Figure 1 A system block diagram of a data security transmission system based on a national encryption algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] 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.
[0044] The embodiment of the present invention provides a data security transmission system based on the national encryption algorithm. Figure 1 , Figure 1A system block diagram of a data security transmission system based on a national secret algorithm provided in an embodiment of the present invention. It includes a first quantum security gateway, a second quantum security gateway and a CA (Certificate Authority); the first quantum security gateway is connected to the sender Alice, and the second quantum security gateway is connected to the receiver Bob; the first quantum security gateway includes a first identity authentication module and a first quantum encryption module; the second quantum security gateway includes a second identity authentication module and a second quantum encryption module;
[0045] CA, used to receive digital certificate applications from sender Alice and receiver Bob, and use the national secret algorithm to generate the first digital certificate of sender Alice and the second digital certificate of receiver Bob;
[0046] The first identity authentication module and the second identity authentication module are used to verify the second digital certificate and the first digital certificate respectively, so as to authenticate the receiver Bob and the sender Alice respectively;
[0047] The first quantum encryption module and the second quantum encryption module are used to perform quantum key distribution to determine the quantum key for data communication between the sender Alice and the receiver Bob after the sender Alice and the receiver Bob have passed the two-way authentication;
[0048] The first quantum security gateway and the second quantum security gateway are used for data encryption communication using quantum keys.
[0049] Based on a data security transmission system based on a national secret algorithm provided by an embodiment of the present invention, a trusted third-party CA uses a national secret algorithm to first authenticate the identities of the receiver Bob and the sender Alice. After the two-way authentication is passed, the quantum key is determined by the quantum key distribution technology, thereby ensuring the security of data transmission.
[0050] In one implementation, quantum key distribution between sender Alice and receiver Bob can adopt any one of the BB84 protocol, B92 protocol and E91 protocol.
[0051] In one embodiment, the CA includes a national secret algorithm module, a visa module, and an audit module; the digital certificate application includes the identity information of the target client; the target client is any one of the sender Alice and the receiver Bob;
[0052] The national secret algorithm module is used to generate SM2 public and private key pairs using the SM2 national secret algorithm;
[0053] An audit module, used to audit the target client according to identity information;
[0054] The visa module is used to generate a target digital certificate based on the identity information and CA's issuance information using the SM2 public and private key pair if the review is passed; the issuance information includes the information of the issuing agency CA, the validity period and the certificate serial number.
[0055] In one implementation, after the national encryption algorithm module generates the SM2 public-private key pair (SM2 private key and SM2 public key), the CA saves the SM2 private key, and sends the SM2 public key to the target client for storage when the target client completes registration with the CA.
[0056] In one embodiment, the visa module includes a plaintext generation submodule, a first digest generation submodule, a signature generation submodule, and a certificate generation submodule:
[0057] The plain text generation submodule is used to generate the target certificate plain text according to the identity information and CA issuance information if the target client passes the review;
[0058] The first summary generation submodule is used to generate a target certificate summary of a target certificate plaintext using the SM3 national encryption algorithm;
[0059] The signature generation submodule is used to encrypt the target certificate digest using the private key of the SM2 public and private keys to obtain the target certificate signature;
[0060] The certificate generation submodule is used to combine the target certificate plaintext and the target certificate signature into a target digital certificate.
[0061] In one embodiment, the target identity authentication module includes a decryption module, a second digest generation submodule and a verification module; when the target client is the sender Alice, the target identity authentication module is the second identity authentication module, or when the target client is the receiver Bob, the target identity authentication module is the first identity authentication module;
[0062] The verification module is used to verify the legitimacy of the target digital certificate according to the plain text of the target certificate when receiving the target digital certificate;
[0063] The decryption module is used to decrypt the target certificate signature using the public key of the SM2 public and private keys to obtain the target certificate summary if the target digital certificate is legitimate;
[0064] The second summary generation submodule is used to generate a comparison certificate summary of the current target certificate plaintext using the SM3 national encryption algorithm;
[0065] The verification module is also used to compare the target certificate digest with the comparison certificate digest to authenticate the target client.
[0066] In one implementation, the legitimacy of the target digital certificate is verified through the information of the issuing authority CA, the validity period, and the certificate serial number clearly recorded in the target certificate.
[0067] In one implementation, if the target certificate digest and the comparison certificate digest are the same, the target client is successfully authenticated, otherwise the authentication fails.
[0068] Based on the same inventive concept, the embodiment of the present invention also provides a data security transmission method based on the national secret algorithm, which is applied to the first quantum security gateway. The first target terminal connected to the first quantum security gateway is the sender Alice or the receiver Bob; the first quantum security gateway includes a first identity authentication module and a first quantum encryption module; the method includes:
[0069] Step 1: Send the first digital certificate to the second quantum security gateway; so that the second identity authentication module of the second quantum security gateway verifies the first digital certificate; the first digital certificate is the digital certificate of the first target terminal generated by the CA using the national secret algorithm; if the first target terminal is the sender Alice, the second target terminal connected to the second quantum security gateway is the receiver Bob, and if the first target terminal is the receiver Bob, the second target terminal is the sender Alice;
[0070] Step 2: Receive the second digital certificate sent by the second quantum security gateway, and use the first identity authentication module to verify the second digital certificate; the second digital certificate is the digital certificate of the second target terminal generated by the CA using the national secret algorithm;
[0071] Step 3: After the first target terminal and the second target terminal have passed the two-way authentication, the first quantum encryption module and the second quantum encryption module of the second quantum security gateway are used to distribute quantum keys to determine the quantum key for data communication between the first target terminal and the second target terminal;
[0072] Step 4: Use the quantum key to encrypt data communication with the second quantum security gateway.
[0073] Based on a data security transmission method based on a national secret algorithm provided by an embodiment of the present invention, a trusted third-party CA uses a national secret algorithm to first authenticate the identity of the receiver Bob and the sender Alice. After the two-way authentication is passed, the quantum key is determined by the quantum key distribution technology, thereby ensuring the security of data transmission.
[0074] In one embodiment, before sending the first digital certificate to the second quantum security gateway, the method further includes:
[0075] Step 1: Send a digital certificate application including the identity information of the first target client to the CA; so that the CA can review the target client according to the identity information. If the review is passed, the SM2 public-private key pair is used to generate a first digital certificate according to the identity information and the CA's issuance information; the issuance information includes the information of the issuing agency CA, the validity period, and the certificate serial number;
[0076] Step 2: Receive the first digital certificate issued by the CA.
[0077] In one embodiment, the first digital certificate includes a target certificate plaintext and a target certificate signature; the target certificate plaintext is plaintext data generated by the CA based on identity information and CA's issuance information; the target certificate signature is signature data obtained by CA encrypting the target certificate summary using the private key of the SM2 public and private keys; the target certificate summary is summary data generated by CA calculating the target certificate plaintext using the SM3 national encryption algorithm.
[0078] In one embodiment, the process of authenticating the second target terminal is:
[0079] Step 1, verifying the legitimacy of the second digital certificate according to the plain text of the second digital certificate;
[0080] Step 2: If the second digital certificate is legal, use the public key of SM2's public and private keys to decrypt the certificate signature of the second digital certificate to obtain the certificate summary of the second digital certificate;
[0081] Step 3: Use the SM3 national encryption algorithm to generate a comparison certificate digest of the plain text of the second digital certificate;
[0082] Step 4: Compare the certificate digest with the comparison certificate digest to authenticate the second target terminal.
[0083] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A data security transmission system based on national secret algorithm, characterized in that: It includes a first quantum security gateway, a second quantum security gateway and a digital certificate certification authority CA; the first quantum security gateway is connected to the sender Alice, and the second quantum security gateway is connected to the receiver Bob; the first quantum security gateway includes a first identity authentication module and a first quantum encryption module; The second quantum security gateway includes a second identity authentication module and a second quantum encryption module; The CA is used to receive digital certificate applications from the sender Alice and the receiver Bob, and generate a first digital certificate of the sender Alice and a second digital certificate of the receiver Bob using a national secret algorithm; The first identity authentication module and the second identity authentication module are used to verify the second digital certificate and the first digital certificate respectively, so as to authenticate the receiver Bob and the sender Alice respectively; The first quantum encryption module and the second quantum encryption module are used to perform quantum key distribution to determine the quantum key for data communication between the sender Alice and the receiver Bob after the sender Alice and the receiver Bob pass the two-way authentication; The first quantum security gateway and the second quantum security gateway are used to perform data encryption communication using the quantum key; The CA includes a national secret algorithm module, a visa module, and an audit module; The digital certificate application includes the identity information of the target client; the target client is any one of the sender Alice and the receiver Bob; The national secret algorithm module is used to generate an SM2 public-private key pair using the SM2 national secret algorithm; The audit module is used to audit the target client according to the identity information; The visa module is used to generate a target digital certificate based on the identity information and the CA's issuance information using the SM2 public-private key pair if the review is passed; the issuance information includes the information of the issuing agency CA, the validity period and the certificate serial number; The visa module includes a plaintext generation submodule, a first summary generation submodule, a signature generation submodule and a certificate generation submodule: The plaintext generation submodule is used to generate a target certificate plaintext according to the identity information and the issuance information of the CA if the target client passes the review; The first summary generation submodule is used to generate a target certificate summary of the target certificate plaintext using the SM3 national encryption algorithm; The signature generation submodule is used to encrypt the target certificate digest using the private key of the SM2 public and private keys to obtain the target certificate signature; The certificate generation submodule is used to combine the target certificate plaintext and the target certificate signature into the target digital certificate.
2. A data security transmission system based on a national secret algorithm according to claim 1, characterized in that: The target identity authentication module includes a decryption module, a second digest generation submodule and a verification module; when the target client is the sender Alice, the target identity authentication module is the second identity authentication module, or when the target client is the receiver Bob, the target identity authentication module is the first identity authentication module; The verification module is used to verify the legitimacy of the target digital certificate according to the plain text of the target certificate when the target digital certificate is received; The decryption module is used to decrypt the target certificate signature using the public key of the SM2 public-private key to obtain the target certificate digest if the target digital certificate is legal; The second summary generation submodule is used to generate a comparison certificate summary of the current target certificate plaintext using the SM3 national encryption algorithm; The verification module is further configured to compare the target certificate digest with the comparison certificate digest to authenticate the target client.
3. A data security transmission method based on a national secret algorithm, characterized in that: Applied to a first quantum security gateway; the first target terminal connected to the first quantum security gateway is a sender Alice or a receiver Bob; the first quantum security gateway includes a first identity authentication module and a first quantum encryption module; the method includes: Sending a first digital certificate to a second quantum security gateway; so that a second identity authentication module of the second quantum security gateway verifies the first digital certificate; the first digital certificate is a digital certificate of the first target terminal generated by a CA using a national secret algorithm; if the first target terminal is a sender Alice, the second target terminal connected to the second quantum security gateway is a receiver Bob, and if the first target terminal is a receiver Bob, the second target terminal is a sender Alice; Receive a second digital certificate sent by the second quantum security gateway, and use the first identity authentication module to verify the second digital certificate; the second digital certificate is a digital certificate of the second target terminal generated by the CA using a national secret algorithm; After the first target terminal and the second target terminal pass the two-way authentication, the first quantum encryption module and the second quantum encryption module of the second quantum security gateway are used to perform quantum key distribution to determine the quantum key for data communication between the first target terminal and the second target terminal; Use the quantum key to perform data encryption communication with the second quantum security gateway; Before sending the first digital certificate to the second quantum security gateway, the method further includes: Sending a digital certificate application including the identity information of the first target client to the CA; allowing the CA to review the target client based on the identity information, and if the review is passed, using the SM2 public-private key pair to generate the first digital certificate based on the identity information and the CA's issuance information; the issuance information includes the information of the issuing agency CA, the validity period, and the certificate serial number; Receiving the first digital certificate issued by the CA; The first digital certificate includes the target certificate plaintext and the target certificate signature; the target certificate plaintext is the plaintext data generated by the CA based on the identity information and the issuance information of the CA; the target certificate signature is the signature data obtained by the CA encrypting the target certificate summary using the private key of the SM2 public and private keys; the target certificate summary is the summary data generated by the CA using the SM3 national encryption algorithm to calculate the target certificate plaintext.
4. A data security transmission method based on a national secret algorithm according to claim 3, characterized in that: The process of authenticating the second target terminal is as follows: Verifying the legitimacy of the second digital certificate according to the plain text of the second digital certificate; If the second digital certificate is legal, use the public key of the SM2 public-private key to decrypt the certificate signature of the second digital certificate to obtain the certificate summary of the second digital certificate; Generate a comparison certificate digest of the plain text of the second digital certificate using the SM3 national encryption algorithm; The second target terminal is authenticated by comparing the certificate digest with the compared certificate digest.
Citation Information
Patent Citations
Two-way authority key agreement method and system based on lattice password
CN108234129A
Implicit certificate key generation method based on SM2 digital signature
CN112367175A
