A quantum network data encryption method, system and device based on a cryptographic algorithm
By employing a quantum network data encryption method based on cryptographic algorithms, and utilizing session key negotiation and data encryption technologies, the security problem of data interaction in quantum networks is solved, thereby achieving effective control of quantum network devices and enhancing their resistance to quantum attacks.
Patent Information
- Application Number
- CN202411683930.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-11-22
AI Technical Summary
How to protect the security of data interaction between the network management center and devices in a quantum network, especially in the face of quantum computer attacks, to ensure data security and effective transmission of control commands.
A quantum network data encryption method based on cryptographic algorithms is adopted. A session key is generated by negotiating a session key with a proxy server, and the plaintext data is encrypted using this key to ensure the security of data transmission. At the same time, after the plaintext data is verified, the quantum network device is controlled according to the control instructions indicated in the plaintext.
This achievement ensures the security of quantum network data transmission and the efficient transmission of control commands, enhances the quantum network's resistance to quantum computer attacks, and guarantees the security and reliability of the data interaction process.
Smart Images

Figure CN119728092B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of quantum secure communication technology, and in particular to a quantum network data encryption method, system, and apparatus based on cryptographic algorithms. Background Technology
[0002] With the continuous development of quantum communication technology and the application of quantum key distribution technology, the scale of quantum network construction and service scope are constantly expanding, and more and more quantum service-related equipment requires management and maintenance. To counter current attacks on quantum computers, it is necessary to ensure the security of data in quantum networks from multiple perspectives, such as key management, device control, and data transmission. As quantum computing technology continues to develop, how to protect the security of data interaction between the network management center and devices in practical applications, and provide the system with quantum resistance capabilities, has become one of the key issues that need to be addressed. Summary of the Invention
[0003] To address the aforementioned issues, embodiments of the present invention disclose a quantum network data encryption method, apparatus, electronic device, and storage medium based on cryptographic algorithms.
[0004] In a first aspect, embodiments of the present invention provide a quantum network data encryption method based on cryptographic algorithms, applied in a network management center, the method comprising:
[0005] Negotiate the session key with the proxy server to obtain the session key;
[0006] The proxy server sends quantum network data, which includes plaintext and ciphertext. The ciphertext is obtained by encrypting the plaintext with the session key, so that the proxy server can verify the plaintext using the ciphertext. After the plaintext is verified, the proxy server controls the quantum network device according to the control instructions indicated in the plaintext.
[0007] Optionally, the step of negotiating a session key with the proxy server to obtain a session key includes:
[0008] A first negotiation key is generated using the cryptographic algorithm and the second key corresponding to the proxy server, and a key negotiation request is generated based on the first negotiation key.
[0009] Send a key negotiation request to the proxy server so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key;
[0010] Based on the key negotiation request response, verify the first negotiated key;
[0011] After the first negotiation key is verified, the first negotiation key will be used as the session key.
[0012] Optionally, before negotiating the session key with the proxy server, the method further includes:
[0013] Authenticate your identity with the proxy server;
[0014] The session key negotiation with the proxy server includes:
[0015] After authenticating with the proxy server, a session key negotiation is performed with the proxy server.
[0016] Optionally, the second key includes a second PQC encryption key (second post-quantum cryptography encryption key) and a second SM2 encryption key (second elliptic curve cryptography encryption key); the cryptographic algorithm includes the SM2 algorithm (elliptic curve cryptography algorithm), the PQC algorithm (post-quantum cryptography algorithm), and the SM3 algorithm (cryptographic hash algorithm); the step of generating a first negotiation key using the cryptographic algorithm and the second key corresponding to the proxy server, and generating a key negotiation request based on the first negotiation key, includes:
[0017] The first negotiation key is generated using the public key of the second PQC encryption key and the PQC algorithm;
[0018] Obtain the first random number corresponding to the network management center;
[0019] The first random number is obtained by encrypting the first random number using the public key of the second SM2 encryption key and the SM2 algorithm;
[0020] The first hash value is obtained by performing a hash operation on the first random number and the first negotiation key using the SM3 algorithm.
[0021] A key negotiation request is generated based on the first encrypted random number and the first hash value.
[0022] Optionally, the first key includes a first PQC encryption key (a first post-quantum cryptography encryption key) and a first SM2 encryption key (a first elliptic curve cryptography encryption key); the step of sending a key negotiation request to the proxy server, so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key, includes:
[0023] A key negotiation request is sent to the proxy server, so that the proxy server obtains the first random number and the first negotiation key based on the first encrypted random number and the first hash value, and returns the key negotiation request response to the network management center based on the first random number and the first negotiation key; the key negotiation request response carries a second encrypted random number and a second hash value; the second encrypted random number is obtained by encrypting the second random number corresponding to the proxy server using the public key of the first SM2 encryption key and the SM2 algorithm; the second hash value is obtained by performing a hash operation on the second negotiation key using the SM3 algorithm; the second negotiation key is obtained by the first random number, the second random number, and the first negotiation key.
[0024] Optionally, verifying the first negotiated key based on the key negotiation request response includes:
[0025] Based on the key negotiation request response, obtain the second encrypted random number and the second hash value;
[0026] The second encrypted random number is obtained by decrypting the second encrypted random number using the private key of the first SM2 encryption key;
[0027] The third negotiation key is obtained by using the first random number, the second random number, and the first negotiation key;
[0028] The third hash value is obtained by performing a hash operation on the third negotiation key using the SM3 algorithm.
[0029] If the second hash value is equal to the third hash value, the first negotiated key is determined to have been verified.
[0030] Optionally, the cryptographic algorithm includes the SM3_HMAC algorithm (Message Authentication Code Generation Algorithm); the step of sending quantum network data to the proxy server, the quantum network data including plaintext and ciphertext, wherein the ciphertext is obtained by encrypting the plaintext using the session key, so that the proxy server can verify the plaintext using the ciphertext, and after the plaintext is verified, control the quantum network device according to the control instructions indicated by the plaintext, including:
[0031] Obtain the first digest value corresponding to the plaintext and the ciphertext of the data; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the SM3_HMAC algorithm.
[0032] The quantum network data is generated based on the plaintext data and the first digest value;
[0033] The quantum network data is sent to the proxy server, so that the proxy server performs a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain a second digest value. If the first digest value is equal to the second digest value, the plaintext data is verified. After the plaintext data is verified, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext data.
[0034] Optionally, the authentication with the proxy server includes:
[0035] Send a first authentication request to the proxy server, so that the proxy server returns a first authentication response using the second key;
[0036] Based on the first authentication response and the first key, a second authentication request is sent to the proxy server to enable the proxy server to perform authentication.
[0037] Optionally, the second key includes a second PQC signing key (a second post-quantum cryptography signing key) and a second SM2 signing key (a second elliptic curve cryptography signing key); the step of sending a first authentication request to the proxy server, so that the proxy server returns a first authentication response using the second key, includes:
[0038] A first authentication request is sent to the proxy server. The first authentication request carries a third random number corresponding to the network management center, so that the proxy server signs the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain a first SM2 signature value and a first PQC signature value, and returns the first authentication response. The first authentication response carries a fourth random number corresponding to the proxy server, a second certificate corresponding to the proxy server, the first SM2 signature value, and the first PQC signature value.
[0039] Optionally, the first key includes a first PQC signing key and a first SM2 signing key; the step of sending a second authentication request to the proxy server based on the first authentication response and the first key, so that the proxy server performs authentication, includes:
[0040] The fourth random number is signed using the private key of the first PQC signature key and the private key of the first SM2 signature key to obtain the second SM2 signature value and the second PQC signature value.
[0041] A second authentication request is sent to the proxy server; the second authentication request carries the first PQC certificate corresponding to the network management center, the second SM2 signature value and the second PQC signature value, so that the proxy server can perform authentication.
[0042] Secondly, embodiments of the present invention provide a quantum network data encryption method based on cryptographic algorithms, applied to a proxy server, the method comprising:
[0043] Negotiate the session key with the network management center to obtain the session key;
[0044] The system receives quantum network data sent by the network management center. The quantum network data includes plaintext and ciphertext, and the ciphertext is obtained by encrypting the plaintext using the session key.
[0045] The plaintext data is verified using the encrypted data, and after the plaintext data is verified, the quantum network device is controlled according to the control instructions indicated by the plaintext data.
[0046] Optionally, the process of negotiating a session key with the network management center to obtain a session key includes:
[0047] Receive a key negotiation request sent by the network management center; the key negotiation request is generated based on a first negotiation key, which is generated by the cryptographic algorithm and a second key corresponding to the proxy server;
[0048] Based on the first key corresponding to the network management center and the first negotiation key, a key negotiation request response is returned to the network management center, so that the network management center can verify the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, the first negotiation key is used as the session key.
[0049] Optionally, before negotiating the session key with the network management center, the method further includes:
[0050] Authenticate your identity with the network management center;
[0051] The session key negotiation with the network management center includes:
[0052] After authenticating with the network management center, a session key negotiation is conducted with the network management center.
[0053] Optionally, the second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm;
[0054] The key negotiation request is generated based on a first encrypted random number and a first hash value; the first encrypted random number is obtained by encrypting the first random number corresponding to the network management center using the public key of the second SM2 encryption key and the SM2 algorithm; the first hash value is obtained by performing a hash operation on the first random number and the first negotiation key using the SM3 algorithm; the first negotiation key is generated using the public key of the second PQC encryption key and the PQC algorithm.
[0055] Optionally, the first key includes a first PQC encryption key and a first SM2 encryption key; the step of returning a key negotiation request response to the network management center based on the first key corresponding to the network management center and the first negotiation key, so that the network management center verifies the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, uses the first negotiation key as the session key, includes:
[0056] Based on the first encrypted random number and the first hash value, the first random number and the first negotiation key are obtained;
[0057] Obtain the second random number corresponding to the proxy server;
[0058] The second random number is obtained by encrypting the second random number using the public key of the first SM2 encryption key and the SM2 algorithm;
[0059] The second negotiation key is obtained by using the first random number, the second random number, and the first negotiation key;
[0060] The second negotiation key is hashed using the SM3 algorithm to obtain the second hash value;
[0061] Generate the key negotiation request response based on the second encrypted random number and the second hash value;
[0062] The key negotiation request response is returned to the network management center so that the network management center can verify the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, the first negotiation key is used as the session key.
[0063] Optionally, if the second hash value and the third hash value are equal, the network management center determines that the first negotiation key verification is successful; the third hash value is obtained by performing a hash operation on the third negotiation key using the SM3 algorithm; the third negotiation key is obtained by the first random number, the second random number, and the first negotiation key; the second random number is obtained by decrypting the second encrypted random number using the private key of the first SM2 encryption key; the second encrypted random number and the second hash value are obtained according to the key negotiation request response.
[0064] Optionally, the cryptographic algorithm includes the SM3_HMAC algorithm; the quantum network data is generated based on the first digest value corresponding to the plaintext and the ciphertext; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the SM3_HMAC algorithm; the step of verifying the plaintext using the ciphertext, and controlling the quantum network device according to the control command indicated by the plaintext after the plaintext verification is successful, includes:
[0065] The second digest value is obtained by performing a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm.
[0066] If the first digest value is equal to the second digest value, the plaintext data verification is determined to be successful. After the plaintext data verification is successful, the quantum network device is controlled according to the control command indicated by the plaintext data.
[0067] Optionally, the authentication with the network management center includes:
[0068] Receive the first authentication request sent by the network management center, and return the first authentication response to the network management center through the second key;
[0069] The system receives a second authentication request sent by the network management center based on the first authentication response and the first key, and performs authentication with the network management center through the second authentication request.
[0070] Optionally, the second key includes a second PQC signing key and a second SM2 signing key; the first authentication request carries a third random number corresponding to the network management center; receiving the first authentication request sent by the network management center and returning a first authentication response to the network management center using the second key includes:
[0071] The system receives a first authentication request from the network management center and signs the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain a first SM2 signature value and a first PQC signature value.
[0072] The first authentication response is returned to the network management center; the first authentication response carries the fourth random number corresponding to the proxy server, the second certificate corresponding to the proxy server, the first SM2 signature value and the first PQC signature value.
[0073] Optionally, the first key includes a first PQC signing key and a first SM2 signing key; the second authentication request carries the first PQC certificate, the second SM2 signature value, and the second PQC signature value corresponding to the network management center; the second SM2 signature value and the second PQC signature value are obtained by signing the fourth random number using the private key of the first PQC signing key and the private key of the first SM2 signing key.
[0074] Thirdly, embodiments of the present invention provide a quantum network data encryption system based on cryptographic algorithms, the system comprising: a network management center and a proxy server;
[0075] The network management center is used to negotiate a session key with the proxy server to obtain a session key; and to send quantum network data to the proxy server. The quantum network data includes plaintext data and ciphertext data, wherein the ciphertext data is obtained by encrypting the plaintext data using the session key.
[0076] The proxy server is used to negotiate a session key with the network management center to obtain a session key; receive quantum network data sent by the network management center; verify the plaintext data using the encrypted data; and control the quantum network device according to the control instructions indicated by the plaintext data after the plaintext data verification is successful.
[0077] Optionally, the network management center is configured to generate a first negotiation key using the cryptographic algorithm and the second key corresponding to the proxy server, and generate a key negotiation request based on the first negotiation key; and send the key negotiation request to the proxy server.
[0078] The proxy server is used to receive the key negotiation request sent by the network management center; and return a key negotiation request response to the network management center according to the first key corresponding to the network management center and the first negotiation key;
[0079] The network management center is used to verify the first negotiation key in response to the key negotiation request; after the first negotiation key is verified, the first negotiation key is used as the session key.
[0080] Optionally, the network management center is also used to authenticate with the proxy server; after authenticating with the proxy server, it negotiates a session key with the proxy server.
[0081] The proxy server is also used to authenticate its identity with the network management center; after authenticating its identity with the network management center, it negotiates a session key with the network management center.
[0082] Optionally, the second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm;
[0083] The network management center is configured to generate the first negotiation key using the public key of the second PQC encryption key and the PQC algorithm; obtain a first random number corresponding to the network management center; encrypt the first random number using the public key of the second SM2 encryption key and the SM2 algorithm to obtain a first encrypted random number; perform a hash operation on the first random number and the first negotiation key using the SM3 algorithm to obtain a first hash value; and generate a key negotiation request based on the first encrypted random number and the first hash value.
[0084] Optionally, the first key includes a first PQC encryption key and a first SM2 encryption key;
[0085] The proxy server is configured to: obtain the first random number and the first negotiation key based on the first encrypted random number and the first hash value; obtain the second random number corresponding to the proxy server; encrypt the second random number using the public key of the first SM2 encryption key and the SM2 algorithm to obtain the second encrypted random number; obtain the second negotiation key using the first random number, the second random number, and the first negotiation key; perform a hash operation on the second negotiation key using the SM3 algorithm to obtain the second hash value; generate the key negotiation request response based on the second encrypted random number and the second hash value; and return the key negotiation request response to the network management center.
[0086] Optionally, the network management center is configured to, based on the key negotiation request response, obtain the second encrypted random number and the second hash value; decrypt the second encrypted random number using the private key of the first SM2 encryption key to obtain the second random number; obtain the third negotiation key using the first random number, the second random number, and the first negotiation key; perform a hash operation on the third negotiation key using the SM3 algorithm to obtain the third hash value; and determine that the first negotiation key has been verified if the second hash value is equal to the third hash value.
[0087] Optionally, the cryptographic algorithm includes the SM3_HMAC algorithm;
[0088] The network management center is used to obtain the first digest value corresponding to the plaintext and ciphertext of the data; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the SM3_HMAC algorithm; generate the quantum network data based on the plaintext and the first digest value; and send the quantum network data to the proxy server.
[0089] The proxy server is configured to perform a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain a second digest value; if the first digest value is equal to the second digest value, it determines that the plaintext data verification is successful; and after the plaintext data verification is successful, it controls the quantum network device according to the control instructions indicated by the plaintext data.
[0090] Optionally, it also includes: a certificate authority, a first cryptographic machine, and a second cryptographic machine; the first cryptographic machine is associated with the network management center, and the second cryptographic machine is associated with the proxy server;
[0091] The first cryptographic machine is used to create the first key corresponding to the network management center; generate a first certificate request file based on the unique identifier of the network management center and the first key; and send the first certificate request file to the certificate issuing center.
[0092] The second cryptographic machine is used to create the second key corresponding to the proxy server; generate a second certificate request file based on the unique identifier of the proxy server and the second key; and send the second certificate request file to the certificate authority.
[0093] The certificate issuing center is configured to receive the first certificate request file sent by the first cryptographic machine, generate the first certificate corresponding to the network management center, and return the first certificate to the first cryptographic machine; receive the second certificate request file sent by the second cryptographic machine, generate the second certificate corresponding to the proxy server, and return the second certificate to the second cryptographic machine;
[0094] The network management center is configured to send a first authentication request to the proxy server, so that the proxy server returns a first authentication response using the second key; and send a second authentication request to the proxy server based on the first authentication response and the first key.
[0095] The proxy server is configured to receive a second authentication request sent by the network management center based on the first authentication response and the first key, and to authenticate with the network management center through the second authentication request.
[0096] Optionally, the second key includes a second PQC signing key and a second SM2 signing key; the first authentication request carries a third random number corresponding to the network management center;
[0097] The proxy server is configured to receive a first authentication request sent by the network management center, sign the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain a first SM2 signature value and a first PQC signature value; and return a first authentication response to the network management center. The first authentication response carries a fourth random number corresponding to the proxy server, the second certificate, the first SM2 signature value, and the first PQC signature value.
[0098] Optionally, the first key includes a first PQC signing key and a first SM2 signing key;
[0099] The network management center is used to sign the fourth random number using the private key of the first PQC signature key and the private key of the first SM2 signature key to obtain the second SM2 signature value and the second PQC signature value; and to send a second identity authentication request to the proxy server; the second identity authentication request carries the first certificate, the second SM2 signature value and the second PQC signature value.
[0100] The proxy server is used to receive the second identity authentication request sent by the network management center and perform identity authentication according to the second identity authentication request.
[0101] Fourthly, embodiments of the present invention provide a quantum network data encryption device based on cryptographic algorithms, applied in a network management center, the device comprising:
[0102] The first session key negotiation module is used to negotiate the session key with the proxy server to obtain the session key;
[0103] A quantum network data transmission module is used to send quantum network data to the proxy server. The quantum network data includes plaintext and ciphertext. The ciphertext is obtained by encrypting the plaintext using the session key, so that the proxy server can verify the plaintext using the ciphertext. After the plaintext is verified, the proxy server controls the quantum network device according to the control instructions indicated in the plaintext.
[0104] Optionally, the first session key negotiation module includes:
[0105] The key negotiation request generation submodule is used to generate a first negotiation key using the cryptographic algorithm and the second key corresponding to the proxy server, and to generate a key negotiation request based on the first negotiation key;
[0106] The key negotiation request sending submodule is used to send a key negotiation request to the proxy server, so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key.
[0107] The first negotiation key verification submodule is used to verify the first negotiation key according to the key negotiation request response;
[0108] The session key determination submodule is used to use the first negotiated key as the session key after the first negotiated key has been verified.
[0109] Optionally, prior to the first session key negotiation module, the apparatus further includes:
[0110] The first identity authentication module is used for identity authentication with the proxy server;
[0111] The first session key negotiation module includes:
[0112] The first session key negotiation submodule is used to negotiate a session key with the proxy server after authentication with the proxy server.
[0113] Optionally, the second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm; the key negotiation request generation submodule includes:
[0114] The first negotiation key generation unit is used to generate the first negotiation key using the public key of the second PQC encryption key and the PQC algorithm;
[0115] The first random number acquisition unit is used to acquire the first random number corresponding to the network management center;
[0116] The first random number encryption unit is used to encrypt the first random number using the public key of the second SM2 encryption key and the SM2 algorithm to obtain a first encrypted random number;
[0117] The first hash value operation unit is used to perform a hash operation on the first random number and the first negotiation key using the SM3 algorithm to obtain the first hash value;
[0118] The key negotiation request generation unit is used to generate a key negotiation request based on the first encrypted random number and the first hash value.
[0119] Optionally, the first key includes a first PQC encryption key and a first SM2 encryption key; the key negotiation request sending submodule includes:
[0120] A key negotiation request sending unit is configured to send a key negotiation request to the proxy server, so that the proxy server obtains the first random number and the first negotiation key based on the first encrypted random number and the first hash value, and returns the key negotiation request response to the network management center based on the first random number and the first negotiation key; the key negotiation request response carries a second encrypted random number and a second hash value; the second encrypted random number is obtained by encrypting the second random number corresponding to the proxy server using the public key of the first SM2 encryption key and the SM2 algorithm; the second hash value is obtained by performing a hash operation on the second negotiation key using the SM3 algorithm; the second negotiation key is obtained by the first random number, the second random number, and the first negotiation key.
[0121] Optionally, the first negotiated key verification submodule includes:
[0122] The second encrypted random number acquisition unit is used to acquire the second encrypted random number and the second hash value according to the key negotiation request response;
[0123] The second random number decryption unit is used to decrypt the second encrypted random number using the private key of the first SM2 encryption key to obtain the second random number;
[0124] The third negotiation key generation unit is used to obtain a third negotiation key using the first random number, the second random number, and the first negotiation key;
[0125] The third hash value operation unit is used to perform a hash operation on the third negotiation key using the SM3 algorithm to obtain the third hash value;
[0126] The first negotiation key verification unit is used to determine that the first negotiation key verification is successful when the second hash value is equal to the third hash value.
[0127] Optionally, the cryptographic algorithm includes the SM3_HMAC algorithm; the quantum network data transmission module includes:
[0128] The first digest value acquisition submodule is used to acquire the first digest value corresponding to the plaintext data and the ciphertext data; the first digest value is obtained by performing a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm.
[0129] A quantum network data generation submodule is used to generate the quantum network data based on the data plaintext and the first digest value;
[0130] The quantum network data transmission submodule is used to send the quantum network data to the proxy server, so that the proxy server performs a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain a second digest value. If the first digest value is equal to the second digest value, the plaintext data is verified as valid. After the plaintext data is verified as valid, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext data.
[0131] Optionally, the first identity authentication module includes:
[0132] The first authentication request sending submodule is used to send a first authentication request to the proxy server so that the proxy server returns a first authentication response through the second key;
[0133] The second authentication request sending submodule is used to send a second authentication request to the proxy server based on the first authentication response and the first key, so that the proxy server can perform authentication.
[0134] Optionally, the second key includes a second PQC signing key and a second SM2 signing key; the first authentication request sending submodule includes:
[0135] The first authentication request sending unit is configured to send a first authentication request to the proxy server. The first authentication request carries a third random number corresponding to the network management center, so that the proxy server signs the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain a first SM2 signature value and a first PQC signature value, and returns the first authentication response. The first authentication response carries a fourth random number corresponding to the proxy server, a second certificate corresponding to the proxy server, the first SM2 signature value, and the first PQC signature value.
[0136] Optionally, the first key includes a first PQC signing key and a first SM2 signing key; the second authentication request sending submodule includes:
[0137] The fourth random number signature unit is used to sign the fourth random number using the private key of the first PQC signature key and the private key of the first SM2 signature key to obtain the second SM2 signature value and the second PQC signature value.
[0138] The second authentication request sending unit is used to send a second authentication request to the proxy server; the second authentication request carries the first PQC certificate corresponding to the network management center, the second SM2 signature value and the second PQC signature value, so as to enable the proxy server to perform authentication.
[0139] Fifthly, embodiments of the present invention provide a quantum network data encryption device based on a cryptographic algorithm, applied to a proxy server, the device comprising:
[0140] The second session key negotiation module is used to negotiate session keys with the network management center to obtain the session key.
[0141] A quantum network data receiving module is used to receive quantum network data sent by the network management center. The quantum network data includes plaintext data and ciphertext data, and the ciphertext data is obtained by encrypting the plaintext data using the session key.
[0142] The quantum network device control module is used to verify the plaintext data using the encrypted data, and after the plaintext data is verified, to control the quantum network device according to the control instructions indicated by the plaintext data.
[0143] Optionally, the second session key negotiation module includes:
[0144] The key negotiation request receiving submodule is used to receive the key negotiation request sent by the network management center; the key negotiation request is generated based on a first negotiation key, which is generated by the cryptographic algorithm and a second key corresponding to the proxy server;
[0145] The second session key negotiation submodule is used to return a key negotiation request response to the network management center based on the first key corresponding to the network management center and the first negotiation key, so that the network management center can verify the first negotiation key based on the key negotiation request response, and use the first negotiation key as the session key after the first negotiation key is verified.
[0146] Optionally, prior to the second session key negotiation module, the apparatus further includes:
[0147] The second identity authentication module is used to authenticate with the network management center.
[0148] The second session key negotiation module includes:
[0149] The second identity authentication submodule is used to negotiate session keys with the network management center after identity authentication with the network management center.
[0150] Optionally, the second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm; the key negotiation request is generated based on a first encrypted random number and a first hash value; the first encrypted random number is obtained by encrypting the first random number corresponding to the network management center using the public key of the second SM2 encryption key and the SM2 algorithm; the first hash value is obtained by performing a hash operation on the first random number and the first negotiation key using the SM3 algorithm; the first negotiation key is generated using the public key of the second PQC encryption key and the PQC algorithm.
[0151] Optionally, the first key includes a first PQC encryption key and a first SM2 encryption key; the second session key negotiation submodule includes:
[0152] The first negotiation key acquisition unit is used to obtain the first random number and the first negotiation key based on the first encrypted random number and the first hash value;
[0153] The second random number acquisition unit is used to acquire the second random number corresponding to the proxy server;
[0154] The second random number encryption unit is used to encrypt the second random number using the public key of the first SM2 encryption key and the SM2 algorithm to obtain the second encrypted random number.
[0155] The second negotiation key generation unit is used to obtain a second negotiation key using the first random number, the second random number, and the first negotiation key;
[0156] The second hash value operation unit is used to perform a hash operation on the second negotiation key using the SM3 algorithm to obtain a second hash value;
[0157] A key negotiation request response generation unit is configured to generate the key negotiation request response based on the second encrypted random number and the second hash value;
[0158] The second session key negotiation unit is used to return the key negotiation request response to the network management center, so that the network management center can verify the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, use the first negotiation key as the session key.
[0159] Optionally, if the second hash value and the third hash value are equal, the network management center determines that the first negotiation key verification is successful; the third hash value is obtained by performing a hash operation on the third negotiation key using the SM3 algorithm; the third negotiation key is obtained by the first random number, the second random number, and the first negotiation key; the second random number is obtained by decrypting the second encrypted random number using the private key of the first SM2 encryption key; the second encrypted random number and the second hash value are obtained according to the key negotiation request response.
[0160] Optionally, the cryptographic algorithm includes the SM3_HMAC algorithm; the quantum network data is generated based on the first digest value corresponding to the plaintext and ciphertext; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the SM3_HMAC algorithm; the quantum network device control module includes:
[0161] The second digest value operation submodule is used to perform a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain the second digest value.
[0162] The quantum network device control submodule is used to determine that the plaintext data verification is successful when the first digest value is equal to the second digest value, and to control the quantum network device according to the control command indicated by the plaintext data after the plaintext data verification is successful.
[0163] Optionally, the second identity authentication module includes:
[0164] The first identity authentication request receiving submodule is used to receive the first identity authentication request sent by the network management center and return the first identity authentication response to the network management center through the second key;
[0165] The second identity authentication request receiving submodule is used to receive the second identity authentication request sent by the network management center based on the first identity authentication response and the first key, and to perform identity authentication with the network management center through the second identity authentication request.
[0166] Optionally, the second key includes a second PQC signing key and a second SM2 signing key; the first authentication request carries a third random number corresponding to the network management center; the first authentication request receiving submodule includes:
[0167] The third random number signature unit is used to receive the first identity authentication request sent by the network management center, and sign the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain the first SM2 signature value and the first PQC signature value.
[0168] The first identity authentication response return unit is used to return the first identity authentication response to the network management center; the first identity authentication response carries the fourth random number corresponding to the proxy server, the second certificate corresponding to the proxy server, the first SM2 signature value and the first PQC signature value.
[0169] Optionally, the first key includes a first PQC signing key and a first SM2 signing key; the second authentication request carries the first PQC certificate, the second SM2 signature value, and the second PQC signature value corresponding to the network management center; the second SM2 signature value and the second PQC signature value are obtained by signing the fourth random number using the private key of the first PQC signing key and the private key of the first SM2 signing key.
[0170] In a sixth aspect, the present invention discloses an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described quantum network data encryption method based on a cryptographic algorithm.
[0171] In a seventh aspect, the present invention discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described quantum network data encryption method based on a cryptographic algorithm.
[0172] The embodiments of the present invention have the following advantages:
[0173] This invention provides a quantum network data encryption method, system, and apparatus based on cryptographic algorithms, applied to a network management center. After authentication with a proxy server, the network management center can negotiate a session key with the proxy server to obtain a session key. The session key is generated based on a cryptographic algorithm and a cryptographic machine. Both the network management center and the proxy server can be associated with cryptographic machines for cryptographic operations and key management, thus completely decoupling the business system from the cryptographic logic. Furthermore, the cryptographic algorithm of this invention offers higher security and economic advantages compared to traditional encryption methods. In addition, the negotiated session key can be stored in the cryptographic machine, and the key negotiation mechanism of this invention improves the success rate of key negotiation and protects the security of the negotiated key. The network management center can send quantum network data to the proxy server. The quantum network data includes plaintext and ciphertext. The ciphertext is obtained by encrypting the plaintext with a session key, so that the proxy server can verify the plaintext using the ciphertext. After the plaintext is verified, the proxy server controls the quantum network device according to the control instructions indicated in the plaintext. Verifying the plaintext with ciphertext prevents the plaintext from being tampered with during transmission, thereby ensuring the security of data interaction between the network management center, the proxy server, and the quantum network device. Attached Figure Description
[0174] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0175] Figure 1 This is a flowchart illustrating the steps of a quantum network data encryption method based on a cryptographic algorithm according to an embodiment of the present invention.
[0176] Figure 2 This is a flowchart illustrating the steps of another quantum network data encryption method based on cryptographic algorithms according to an embodiment of the present invention.
[0177] Figure 3 This is a structural block diagram of a quantum network data encryption system based on cryptographic algorithms according to an embodiment of the present invention;
[0178] Figure 4 This is a structural block diagram of a quantum network data encryption device based on a cryptographic algorithm according to an embodiment of the present invention;
[0179] Figure 5 This is a structural block diagram of another quantum network data encryption device based on cryptographic algorithms according to an embodiment of the present invention.
[0180] Explanation of reference numerals in the attached figures:
[0181] Quantum network data encryption system 30, network management center 31, proxy server 32, quantum network equipment 33, certificate issuing center 34, first cryptographic machine 35, second cryptographic machine 36. Detailed Implementation
[0182] This invention proposes a quantum network data encryption method based on cryptographic algorithms, including: PQC (Post-Quantum Cryptography), SM2 (Elliptic Curve PublicKey Cryptography Algorithm), SM3 (SM3 Cryptographic Hash Algorithm), and SM3_HMAC (SM3 Hash-based Message Authentication Code). The aim is to provide security for data interaction between the network management center, proxy server, and devices in two types of networks. To achieve this goal, embodiments of this invention negotiate a session key between the network management center and the proxy server using cryptographic algorithms. Ciphertext is generated using this session key and transmitted along with plaintext data to verify whether the plaintext data has been tampered with, thereby ensuring the security of data interaction between the network management center, proxy server, and quantum network devices.
[0183] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0184] Reference Figure 1 The diagram illustrates a flowchart of a quantum network data encryption method based on a cryptographic algorithm according to an embodiment of the present invention. The method may specifically include the following steps:
[0185] Step 101: Negotiate the session key with the proxy server to obtain the session key;
[0186] In one embodiment, before negotiating the session key with the proxy server, the method further includes: authenticating with the proxy server; the step of authenticating with the proxy server may further include the following sub-steps:
[0187] Sub-step S11: Send a first authentication request to the proxy server so that the proxy server returns a first authentication response using the second key;
[0188] The second key includes a second PQC signing key and a second SM2 signing key. Sending a first authentication request to the proxy server, so that the proxy server returns a first authentication response using the second key, includes: sending a first authentication request to the proxy server, the first authentication request carrying a third random number corresponding to the network management center, so that the proxy server signs the third random number using the private key of the second PQC signing key and the private key of the second SM2 signing key to obtain a first SM2 signature value and a first PQC signature value, and returns the first authentication response; the first authentication response carries a fourth random number corresponding to the proxy server, a second certificate corresponding to the proxy server, the first SM2 signature value, and the first PQC signature value.
[0189] Sub-step S12: Based on the first authentication response and the first key, send a second authentication request to the proxy server so that the proxy server can perform authentication.
[0190] The first key includes a first PQC signature key and a first SM2 signature key. The step of sending a second authentication request to the proxy server based on the first authentication response and the first key, so that the proxy server performs authentication, includes: signing the fourth random number using the private keys of the first PQC signature key and the first SM2 signature key to obtain a second SM2 signature value and a second PQC signature value; sending the second authentication request to the proxy server; the second authentication request carries the first PQC certificate corresponding to the network management center, the second SM2 signature value, and the second PQC signature value, so that the proxy server performs authentication.
[0191] In this embodiment of the invention, before the network management center and the proxy server negotiate the session key, it is necessary to obtain the first key and first certificate corresponding to the network management center, and the second key and second certificate corresponding to the proxy server. The specific certificate application process is as follows:
[0192] (1) The network management center sends a first digital certificate application request carrying the unique identifier of the network management center to its corresponding first cryptographic machine through the SDK (Software Development Kit) security interface;
[0193] (2) The first cryptographic machine creates the first key corresponding to the network management center, including the first PQC signature key, the first SM2 signature key, the first PQC encryption key, and the first SM2 encryption key; based on the unique identifier of the network management center, the public key of the first PQC signature key, the public key of the first PQC encryption key, and the public key of the first SM2 signature key, it generates a first certificate request file, which can be a P10 certificate request file; and sends the first certificate request file to the certificate authority.
[0194] (3) The proxy server sends a second digital certificate application request carrying the unique identifier of the proxy server to its corresponding second cryptographic machine through the SDK security interface;
[0195] (4) The second cryptographic machine creates a second key corresponding to the proxy server, including a second PQC signature key, a second SM2 signature key, a second PQC encryption key, and a second SM2 encryption key; based on the unique identifier of the proxy server, the public key of the second PQC signature key, the public key of the second PQC encryption key, and the public key of the second SM2 signature key, it generates a second certificate request file, which can also be a P10 certificate request file; and sends the second certificate request file to the certificate authority.
[0196] (5) The Certificate Authority verifies the domain name, identity code, and organization code of the applicant of the Network Management Center according to the P10 certificate request file; after successful verification, it generates the first certificate corresponding to the Network Management Center; the first certificate includes the first PQC certificate, the first SM2 encryption certificate, and the first SM2 signature certificate. The first SM2 encryption certificate includes the public key of the first PQC encryption key, and the first SM2 signature certificate includes the public key of the first PQC signature key; the first certificate is sent to the first cryptographic machine;
[0197] (6) The Certificate Authority verifies the domain name, identity code, and organization code of the applicant for the proxy server based on the P10 certificate request file; after successful verification, it generates a second certificate corresponding to the proxy server; the second certificate includes a second PQC certificate, a second SM2 encryption certificate, and a second SM2 signature certificate. The second SM2 encryption certificate includes the public key of the second PQC encryption key, and the second SM2 signature certificate includes the public key of the second PQC signature key; the second certificate is sent to the second cryptographic machine.
[0198] At this point, the certificate application and issuance for both the network management center and the proxy server are complete. After the certificate application is completed, the network management center and the proxy server still need to perform identity authentication. The specific identity authentication process is as follows:
[0199] (1) The network management center obtains the first certificate and third random number corresponding to the network management center from the first cryptographic machine through the SDK security interface; and sends a first identity authentication request carrying the third random number to the proxy server;
[0200] (2) The proxy server receives the first identity authentication request sent by the network management center; obtains the second certificate corresponding to the proxy server from the second cryptographic machine through the SDK security interface; signs the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key through the second cryptographic machine to obtain the first SM2 signature value and the first PQC signature value; and sends the first identity authentication response to the network management center; the first identity authentication response carries the fourth random number, the second certificate, the first SM2 signature value, and the first PQC signature value corresponding to the proxy server.
[0201] For example, the message format of the first authentication response can be as follows:
[0202] SM2_singcert_B||SM2_cryptocert_B||PQC_crytocert_B||SignB_PQC(RA)||SignB_SM2(RA)||RB
[0203] Where || is the string concatenation operator, SM2_singcert_B is the second SM2 signing certificate, SM2_cryptocert_B is the second SM2 encryption certificate, PQC_crytocert_B is the second PQC encryption certificate, SignB_PQC(RA) is the first PQC signature value, SignB_SM2(RA) is the first SM2 signature value, and RB is the fourth random number.
[0204] (3) The network management center receives the first identity authentication response sent by the proxy server; it decrypts and verifies the first PQC signature value using the public key of the second PQC signature key stored locally by the proxy server and the PQC algorithm, and decrypts and verifies the first SM2 signature value using the public key of the second SM2 signature key stored locally by the proxy server and the SM2 algorithm. If both verifications are successful, the network management center successfully authenticates the proxy server's identity; if the verification is successful, it signs the fourth random number using the private key of the first PQC signature key and the private key of the first SM2 signature key to obtain the second SM2 signature value and the second PQC signature value; and sends a second identity authentication request to the proxy server; the second identity authentication request carries the first certificate, the second SM2 signature value, and the second PQC signature value.
[0205] For example, the message format for a second authentication request can be as follows:
[0206] SM2_singcert_A||SM2_cryptocert_A||PQC_crytocert_A||SignA_PQC(RB)||SignA_SM2(RB)
[0207] Where || is the string concatenation operator, SM2_singcert_A is the first SM2 signing certificate, SM2_cryptocert_A is the first SM2 encryption certificate, PQC_crytocert_A is the first PQC encryption certificate, SignA_PQC(RB) is the second PQC signature value, SignA_SM2(RB) is the second SM2 signature value, and RA is the third random number.
[0208] (4) The proxy server receives the second identity authentication request sent by the network management center; verifies the first certificate, the second SM2 signature value and the second PQC signature value according to the agreed method; if both are successfully verified, the proxy server successfully authenticates the identity of the network management center.
[0209] At this point, authentication between the network management center and the proxy server is successful. After successful authentication, the network management center can negotiate a session key with the proxy server to obtain a session key, which can then be used to encrypt communication.
[0210] In one embodiment, the step of negotiating a session key with the proxy server to obtain a session key may further include the following sub-steps:
[0211] Sub-step S21: After authenticating with the proxy server, a first negotiation key is generated using the cryptographic algorithm and the second key corresponding to the proxy server, and a key negotiation request is generated based on the first negotiation key;
[0212] The second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm; the step of generating a first negotiation key using the cryptographic algorithm and the second key corresponding to the proxy server, and generating a key negotiation request based on the first negotiation key, includes: generating the first negotiation key using the public key of the second PQC encryption key and the PQC algorithm; obtaining a first random number corresponding to the network management center; encrypting the first random number using the public key of the second SM2 encryption key and the SM2 algorithm to obtain a first encrypted random number; performing a hash operation on the first random number and the first negotiation key using the SM3 algorithm to obtain a first hash value; and generating a key negotiation request based on the first encrypted random number and the first hash value.
[0213] Sub-step S22: Send a key negotiation request to the proxy server so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key;
[0214] The first key includes a first PQC encryption key and a first SM2 encryption key. Sending a key negotiation request to the proxy server, so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key, includes: sending a key negotiation request to the proxy server, so that the proxy server obtains the first random number and the first negotiation key based on the first encrypted random number and the first hash value, and returns the key negotiation request response to the network management center based on the first random number and the first negotiation key; the key negotiation request response carries a second encrypted random number and a second hash value; the second encrypted random number is obtained by encrypting the second random number corresponding to the proxy server using the public key of the first SM2 encryption key and the SM2 algorithm; the second hash value is obtained by performing a hash operation on the second negotiation key using the SM3 algorithm; the second negotiation key is obtained using the first random number, the second random number, and the first negotiation key.
[0215] Sub-step S23: Verify the first negotiated key according to the key negotiation request response;
[0216] The step of verifying the first negotiation key according to the key negotiation request response includes: obtaining the second encrypted random number and the second hash value according to the key negotiation request response; decrypting the second encrypted random number using the private key of the first SM2 encryption key to obtain the second random number; obtaining the third negotiation key using the first random number, the second random number, and the first negotiation key; performing a hash operation on the third negotiation key using the SM3 algorithm to obtain the third hash value; and determining that the first negotiation key has been verified if the second hash value is equal to the third hash value.
[0217] Sub-step S24: After the first negotiation key is verified, the first negotiation key is used as the session key.
[0218] In this embodiment of the invention, the specific process for the network management center and the proxy server to negotiate the session key is as follows:
[0219] (1) The network management center obtains the first random number from the first cryptographic machine through the SDK security interface; encrypts the first random number using the public key of the second SM2 encryption key and the SM2 algorithm to obtain the first encrypted random number; generates the first negotiation key and ciphertext using the public key of the second PQC encryption key and the PQC algorithm; performs a hash operation on the first random number and the first negotiation key using the SM3 algorithm to obtain the first hash value; generates a key negotiation request based on the first encrypted random number and the first hash value; and sends the key negotiation request to the proxy server.
[0220] For example, the message format for a key negotiation request can be as follows:
[0221] CT||Esm2(RA)||SM3_hash(RA||RAB)
[0222] Where || is the string concatenation operator, CT is the ciphertext, Esm2(RA) is the first encrypted random number, RA is the first random number, RAB is the first negotiation key, and SM3_hash(RA||RAB) is the first hash value.
[0223] (2) The proxy server receives the key negotiation request sent by the network management center; parses the key negotiation request to obtain the first random number and the first negotiation key; obtains the second random number corresponding to the proxy server from the second cryptographic machine through the SDK security interface; encrypts the second random number using the public key of the first SM2 encryption key and the SM2 algorithm to obtain the second encrypted random number; obtains the second negotiation key using the first random number, the second random number, and the first negotiation key; performs a hash operation on the second negotiation key using the SM3 algorithm to obtain the second hash value; generates a key negotiation request response based on the second encrypted random number and the second hash value; and returns the key negotiation request response to the network management center.
[0224] For example, the message format of a key negotiation request response can be as follows:
[0225] Esm2(RB)||SM3_hash(Kab)
[0226] Where || is the string concatenation operator, Esm2(RB) is the second encrypted random number, RB is the second random number, SM3_hash(Kab) is the second hash value, and Kab is the second negotiation key. The specific calculation steps for generating the second negotiation key Kab are as follows:
[0227] 1) Xab = XOR(RA||RB, RAB);
[0228] 2)Kab=XOR(Slice_Left(Xab, 16), Slice_Right(Xab, 16));
[0229] The calculation functions used include: XOR(A, B), Slice_Left(A, len), and Slice_Right(A, len). In step 1), RA||RB concatenates the first and second random numbers, XOR(RA||RB, RAB) performs an XOR operation on RA||RB and RAB, and Xab is the string after the XOR operation. In step 2), Slice_Left(Xab, 16) extracts the first 16 bytes (L_16 bits) of Xab, Slice_Right(Xab, 16) extracts the last 16 bytes (R_16 bits) of Xab, and XOR(L_16bit, R_16bit) performs an XOR operation on L_16bit and R_16bit, ultimately obtaining the second negotiation key Kab.
[0230] (3) The network management center receives the key negotiation request response returned by the proxy server; according to the key negotiation request response, it obtains the second encrypted random number and the second hash value; it decrypts the second encrypted random number using the private key of the first SM2 encryption key to obtain the second random number; it obtains the third negotiation key using the first random number, the second random number and the first negotiation key; it performs a hash operation on the third negotiation key using the SM3 algorithm to obtain the third hash value; if the second hash value and the third hash value are equal, it determines that the first negotiation key has been verified.
[0231] For example, the specific process for generating the third negotiation key is as follows: The strings of the first and second random numbers are concatenated to obtain RA||RB. RA||RB is then XORed with RAB. The first 16 bytes (L_16 bits) and the last 16 bytes (R_16 bits) are truncated and XORed again to obtain the third negotiation key. The third negotiation key is then hashed using the SM3 algorithm to obtain the third hash value. If the second hash value and the third hash value are equal, the first negotiation key verification is confirmed to be successful.
[0232] In this embodiment of the invention, the first negotiated key can be used as the session key after successful verification. The session key is generated based on a cryptographic algorithm and a cryptographic machine. The network management center and the proxy server can each be associated with a cryptographic machine for cryptographic operations and key management, thus completely decoupling the business system from the cryptographic logic. Furthermore, the cryptographic algorithm of this embodiment offers higher security and economic advantages compared to traditional encryption methods. In addition, the negotiated session key can be stored in the cryptographic machine, and the key negotiation mechanism of this embodiment can improve the success rate of key negotiation and protect the security of the negotiated key.
[0233] Step 102: Send quantum network data to the proxy server. The quantum network data includes plaintext and ciphertext. The ciphertext is obtained by encrypting the plaintext with the session key, so that the proxy server can verify the plaintext with the ciphertext. After the plaintext is verified, the proxy server controls the quantum network device according to the control instructions indicated in the plaintext.
[0234] In one embodiment, the cryptographic algorithm includes the SM3_HMAC algorithm; the step of sending quantum network data to the proxy server, the quantum network data including plaintext and ciphertext, wherein the ciphertext is obtained by encrypting the plaintext using the session key, so that the proxy server can verify the plaintext using the ciphertext, and after the plaintext is verified, control the quantum network device according to the control instructions indicated by the plaintext, may further include the following sub-steps:
[0235] Sub-step S31: Obtain the first digest value corresponding to the plaintext and the ciphertext; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the SM3_HMAC algorithm;
[0236] Sub-step S32: Generate the quantum network data based on the data plaintext and the first digest value;
[0237] Sub-step S33: Send the quantum network data to the proxy server so that the proxy server can perform a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain a second digest value. If the first digest value is equal to the second digest value, it is determined that the plaintext data has been verified. After the plaintext data has been verified, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext data.
[0238] In this embodiment of the invention, the specific process for data transmission between the network management center and the proxy server is as follows:
[0239] (1) The network management center sends a data encryption request to the first cryptographic machine; the data encryption request carries the session key and the plaintext message.
[0240] (2) The first cryptographic machine receives the data encryption request sent by the network management center; generates the data plaintext according to the index of the session key, the message plaintext, the unique identifier of the network management center and the unique identifier of the proxy server; performs cryptographic hash operation on the session key and the data plaintext to obtain the first digest value corresponding to the network management center; and sends the first digest value, the data plaintext and the index of the session key to the network management center.
[0241] For example, the specific calculation steps for generating the first digest value are as follows:
[0242] 1)data=Index||IDSender||IDreceiver||Msg
[0243] 2)ESM3_data_Sender=SM3_HMAC(Keyindex, data)
[0244] Where || is the string concatenation operator, data is the plaintext data, Index is the index of the session key, IDSender is the unique identifier of the network management center, IDreceiver is the unique identifier of the proxy server, Msg is the plaintext message, ESM3_data_Sender is the first digest value, SM3_HMAC(Key, X) indicates that the SM3 cryptographic hash algorithm with key Key is used to perform cryptographic hash operation on X, and Keyindex represents the session key with index Index.
[0245] (3) The network management center generates quantum network data based on the first digest value, the plaintext data, and the index of the session key; and sends the quantum network data to the proxy server.
[0246] For example, the message format of quantum network data can be as follows:
[0247] Index||ESM3_data_Sender||data
[0248] Where || is the string concatenation operator, Index is the index of the session key, ESM3_data_Sender is the first digest value, and data is the plaintext data.
[0249] (4) The proxy server receives quantum network data sent by the network management center; obtains the session key from the second cryptographic machine according to the index of the session key; performs a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain the second digest value; verifies the second digest value using the first digest value, and compares whether the values of IDSender and IDreceiver in the data are consistent with the values stored in the local database; if the first digest value and the second digest value are equal, and the values of IDSender and IDreceiver are consistent with the values stored in the local database, it is determined that the plaintext data verification is successful; and controls the quantum network device according to the control instructions indicated by the plaintext data.
[0250] In this embodiment of the invention, the network management center can simultaneously send plaintext and ciphertext data to the proxy server. After receiving the quantum network data, the proxy server can encrypt the plaintext data using the same method as generating the first digest value to obtain a second digest value. The first and second digest values are then compared. If the plaintext data is intercepted and modified during transmission, the second digest value generated from the modified plaintext will inevitably be different from the first digest value. The proxy server can then discard the modified plaintext data, thereby ensuring the security of data interaction between the network management center, the proxy server, and the quantum network devices. If the first and second digest values are equal, it indicates that the plaintext data has not been tampered with during transmission, and the proxy server can control the quantum network devices according to the control commands indicated in the plaintext data.
[0251] In this embodiment of the invention, the network management center can, after authenticating with the proxy server, negotiate a session key with the proxy server to obtain a session key. The session key is generated based on a cryptographic algorithm and a cryptographic machine. Both the network management center and the proxy server can be associated with cryptographic machines for cryptographic operations and key management, thus completely decoupling the business system from the cryptographic logic. Furthermore, the cryptographic algorithm of this embodiment offers higher security and economic advantages compared to traditional encryption methods. In addition, the negotiated session key can be stored in the cryptographic machine. The key negotiation mechanism of this embodiment improves the success rate of key negotiation and protects the security of the negotiated key. The network management center can send quantum network data to the proxy server. The quantum network data includes plaintext and ciphertext. The ciphertext is obtained by encrypting the plaintext using the session key. This allows the proxy server to verify the plaintext using the ciphertext. After successful verification, the proxy server controls the quantum network devices according to the control commands indicated in the plaintext. Verifying the plaintext with ciphertext prevents tampering during transmission, thereby ensuring the security of data interaction between the network management center, the proxy server, and the quantum network devices.
[0252] Reference Figure 2 This paper illustrates a flowchart of another quantum network data encryption method based on cryptographic algorithms according to an embodiment of the present invention, applied to a proxy server. The method may specifically include the following steps:
[0253] Step 201: Negotiate the session key with the network management center to obtain the session key;
[0254] In one embodiment, before negotiating the session key with the network management center, the method further includes: authenticating with the network management center; the step of authenticating with the network management center may further include the following sub-steps:
[0255] Sub-step S41: Receive the first authentication request sent by the network management center, and return the first authentication response to the network management center through the second key;
[0256] The second key includes a second PQC signature key and a second SM2 signature key; the first authentication request carries a third random number corresponding to the network management center; receiving the first authentication request sent by the network management center and returning a first authentication response to the network management center using the second key includes: receiving the first authentication request sent by the network management center, signing the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain a first SM2 signature value and a first PQC signature value; returning the first authentication response to the network management center; the first authentication response carries a fourth random number corresponding to the proxy server, a second certificate corresponding to the proxy server, the first SM2 signature value, and the first PQC signature value.
[0257] Sub-step S42: Receive the second authentication request sent by the network management center based on the first authentication response and the first key, and authenticate with the network management center through the second authentication request.
[0258] The first key includes a first PQC signature key and a first SM2 signature key; the second authentication request carries the first PQC certificate, the second SM2 signature value, and the second PQC signature value corresponding to the network management center; the second SM2 signature value and the second PQC signature value are obtained by signing the fourth random number using the private key of the first PQC signature key and the private key of the first SM2 signature key.
[0259] In this embodiment of the invention, before the proxy server negotiates the session key with the network management center, it is necessary to obtain the first key and first certificate corresponding to the network management center, as well as the second key and second certificate corresponding to the proxy server. The specific certificate application process is as follows:
[0260] The network management center sends a first digital certificate application request carrying the network management center's unique identifier to its corresponding first cryptographic machine through the SDK (Software Development Kit) security interface;
[0261] The first cryptographic machine creates the first key corresponding to the network management center, including the first PQC signature key, the first SM2 signature key, the first PQC encryption key, and the first SM2 encryption key; based on the unique identifier of the network management center, the public key of the first PQC signature key, the public key of the first PQC encryption key, and the public key of the first SM2 signature key, it generates a first certificate request file, which can be a P10 certificate request file; and sends the first certificate request file to the certificate authority.
[0262] The proxy server sends a second digital certificate request carrying the unique identifier of the proxy server to its corresponding second cryptographic machine through the SDK security interface;
[0263] The second cryptographic machine creates a second key corresponding to the proxy server, including a second PQC signature key, a second SM2 signature key, a second PQC encryption key, and a second SM2 encryption key; based on the unique identifier of the proxy server, the public key of the second PQC signature key, the public key of the second PQC encryption key, and the public key of the second SM2 signature key, it generates a second certificate request file, which can also be a P10 certificate request file; and sends the second certificate request file to the certificate authority.
[0264] The Certificate Authority (CA) verifies the domain name, identity code, and organization code of the applicant for the Network Management Center (NMC) based on the P10 certificate request file. Upon successful verification, the CA generates the first certificate corresponding to the NMC. The first certificate includes a first PQC certificate, a first SM2 encryption certificate, and a first SM2 signature certificate. The first SM2 encryption certificate includes the public key of the first PQC encryption key, and the first SM2 signature certificate includes the public key of the first PQC signature key. The first certificate is then sent to the first cryptographic machine.
[0265] The Certificate Authority (CA) verifies the domain name, identity code, and organization code of the applicant for the proxy server based on the P10 certificate request file. Upon successful verification, a second certificate corresponding to the proxy server is generated. The second certificate includes a second PQC certificate, a second SM2 encryption certificate, and a second SM2 signature certificate. The second SM2 encryption certificate includes the public key of the second PQC encryption key, and the second SM2 signature certificate includes the public key of the second PQC signature key. The second certificate is then sent to the second cryptographic machine.
[0266] At this point, the certificate application and issuance for both the network management center and the proxy server are complete. After the certificate application is completed, the network management center and the proxy server still need to perform identity authentication. The specific identity authentication process is as follows:
[0267] The network management center obtains the first certificate and third random number corresponding to the network management center from the first cryptographic machine through the SDK security interface; and sends a first identity authentication request carrying the third random number to the proxy server.
[0268] The proxy server receives the first authentication request sent by the network management center; obtains the second certificate corresponding to the proxy server from the second cryptographic machine through the SDK security interface; signs the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key through the second cryptographic machine to obtain the first SM2 signature value and the first PQC signature value; and sends the first authentication response to the network management center; the first authentication response carries the fourth random number corresponding to the proxy server, the second certificate, the first SM2 signature value, and the first PQC signature value.
[0269] For example, the message format of the first authentication response can be as follows:
[0270] SM2_singcert_B||SM2_cryptocert_B||PQC_crytocert_B||SignB_PQC(RA)||SignB_SM2(RA)||RB
[0271] Where || is the string concatenation operator, SM2_singcert_B is the second SM2 signing certificate, SM2_cryptocert_B is the second SM2 encryption certificate, PQC_crytocert_B is the second PQC encryption certificate, SignB_PQC(RA) is the first PQC signature value, SignB_SM2(RA) is the first SM2 signature value, and RB is the fourth random number.
[0272] The network management center receives the first authentication response from the proxy server; it decrypts and verifies the first PQC signature value using the public key of the second PQC signature key stored locally by the proxy server and the PQC algorithm; it also decrypts and verifies the first SM2 signature value using the public key of the second SM2 signature key stored locally by the proxy server and the SM2 algorithm. If both verifications are successful, the network management center successfully authenticates the proxy server; in the case of successful verification, it signs the fourth random number using the private key of the first PQC signature key and the private key of the first SM2 signature key to obtain the second SM2 signature value and the second PQC signature value; and sends a second authentication request to the proxy server; the second authentication request carries the first certificate, the second SM2 signature value, and the second PQC signature value.
[0273] For example, the message format for a second authentication request can be as follows:
[0274] SM2_singcert_A||SM2_cryptocert_A||PQC_crytocert_A||SignA_PQC(RB)||SignA_SM2(RB)
[0275] Where || is the string concatenation operator, SM2_singcert_A is the first SM2 signing certificate, SM2_cryptocert_A is the first SM2 encryption certificate, PQC_crytocert_A is the first PQC encryption certificate, SignA_PQC(RB) is the second PQC signature value, SignA_SM2(RB) is the second SM2 signature value, and RA is the third random number.
[0276] The proxy server receives the second authentication request sent by the network management center; it verifies the first certificate, the second SM2 signature value, and the second PQC signature value according to the agreed method; if both verifications are successful, the proxy server successfully authenticates the network management center's identity.
[0277] At this point, authentication between the proxy server and the network management center is successful. After successful authentication, the proxy server can negotiate a session key with the network management center to obtain a session key, which can then be used to encrypt communication.
[0278] The step of negotiating the session key with the network management center to obtain the session key may further include the following sub-steps:
[0279] Sub-step S51: After authenticating with the network management center, receive a key negotiation request sent by the network management center; the key negotiation request is generated based on a first negotiation key, which is generated by the cryptographic algorithm and the second key corresponding to the proxy server;
[0280] The second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm; the key negotiation request is generated based on a first encrypted random number and a first hash value; the first encrypted random number is obtained by encrypting the first random number corresponding to the network management center using the public key of the second SM2 encryption key and the SM2 algorithm; the first hash value is obtained by performing a hash operation on the first random number and the first negotiation key using the SM3 algorithm; the first negotiation key is generated using the public key of the second PQC encryption key and the PQC algorithm.
[0281] Sub-step S52: Based on the first key corresponding to the network management center and the first negotiation key, return a key negotiation request response to the network management center, so that the network management center can verify the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, use the first negotiation key as the session key.
[0282] The first key includes a first PQC encryption key and a first SM2 encryption key. The step of returning a key negotiation request response to the network management center based on the first key corresponding to the network management center and the first negotiation key, so that the network management center verifies the first negotiation key based on the key negotiation request response, and uses the first negotiation key as a session key after successful verification, includes: obtaining the first random number and the first negotiation key based on the first encrypted random number and the first hash value; obtaining the second random number corresponding to the proxy server; encrypting the second random number using the public key of the first SM2 encryption key and the SM2 algorithm to obtain a second encrypted random number; obtaining the second negotiation key using the first random number, the second random number, and the first negotiation key; performing a hash operation on the second negotiation key using the SM3 algorithm to obtain a second hash value; generating the key negotiation request response based on the second encrypted random number and the second hash value; and returning the key negotiation request response to the network management center, so that the network management center verifies the first negotiation key based on the key negotiation request response, and uses the first negotiation key as a session key after successful verification.
[0283] If the second hash value and the third hash value are equal, the network management center determines that the first negotiation key verification is successful; the third hash value is obtained by performing a hash operation on the third negotiation key using the SM3 algorithm; the third negotiation key is obtained by the first random number, the second random number, and the first negotiation key; the second random number is obtained by decrypting the second encrypted random number using the private key of the first SM2 encryption key; the second encrypted random number and the second hash value are obtained according to the key negotiation request response.
[0284] In this embodiment of the invention, the specific process for the proxy server and the network management center to negotiate the session key is as follows:
[0285] The network management center obtains a first random number from the first cryptographic machine through the SDK security interface; encrypts the first random number using the public key of the second SM2 encryption key and the SM2 algorithm to obtain a first encrypted random number; generates a first negotiation key and ciphertext using the public key of the second PQC encryption key and the PQC algorithm; performs a hash operation on the first random number and the first negotiation key using the SM3 algorithm to obtain a first hash value; generates a key negotiation request based on the first encrypted random number and the first hash value; and sends the key negotiation request to the proxy server.
[0286] For example, the message format for a key negotiation request can be as follows:
[0287] CT||Esm2(RA)||SM3_hash(RA||RAB)
[0288] Where || is the string concatenation operator, CT is the ciphertext, Esm2(RA) is the first encrypted random number, RA is the first random number, RAB is the first negotiation key, and SM3_hash(RA||RAB) is the first hash value.
[0289] The proxy server receives a key negotiation request from the network management center; parses the key negotiation request to obtain a first random number and a first negotiation key; obtains a second random number corresponding to the proxy server from the second cryptographic machine through the SDK security interface; encrypts the second random number using the public key of the first SM2 encryption key and the SM2 algorithm to obtain a second encrypted random number; obtains a second negotiation key using the first random number, the second random number, and the first negotiation key; performs a hash operation on the second negotiation key using the SM3 algorithm to obtain a second hash value; generates a key negotiation request response based on the second encrypted random number and the second hash value; and returns the key negotiation request response to the network management center.
[0290] For example, the message format of a key negotiation request response can be as follows:
[0291] Esm2(RB)||SM3_hash(Kab)
[0292] Where || is the string concatenation operator, Esm2(RB) is the second encrypted random number, RB is the second random number, SM3_hash(Kab) is the second hash value, and Kab is the second negotiation key. The specific calculation steps for generating the second negotiation key Kab are as follows:
[0293] 1) Xab = XOR(RA||RB, RAB);
[0294] 2)Kab=XOR(Slice_Left(Xab, 16), Slice_Right(Xab, 16));
[0295] The calculation functions used include: XOR(A, B), Slice_Left(A, len), and Slice_Right(A, len). In step 1), RA||RB concatenates the first and second random numbers, XOR(RA||RB, RAB) performs an XOR operation on RA||RB and RAB, and Xab is the string after the XOR operation. In step 2), Slice_Left(Xab, 16) extracts the first 16 bytes (L_16 bits) of Xab, Slice_Right(Xab, 16) extracts the last 16 bytes (R_16 bits) of Xab, and XOR(L_16bit, R_16bit) performs an XOR operation on L_16bit and R_16bit, ultimately obtaining the second negotiation key Kab.
[0296] The network management center receives the key negotiation request response from the proxy server; based on the key negotiation request response, it obtains the second encrypted random number and the second hash value; it decrypts the second encrypted random number using the private key of the first SM2 encryption key to obtain the second random number; it obtains the third negotiation key using the first random number, the second random number, and the first negotiation key; it performs a hash operation on the third negotiation key using the SM3 algorithm to obtain the third hash value; if the second hash value and the third hash value are equal, it determines that the first negotiation key has been verified.
[0297] For example, the specific process for generating the third negotiation key is as follows: The strings of the first and second random numbers are concatenated to obtain RA||RB. RA||RB is then XORed with RAB. The first 16 bytes (L_16 bits) and the last 16 bytes (R_16 bits) are truncated and XORed again to obtain the third negotiation key. The third negotiation key is then hashed using the SM3 algorithm to obtain the third hash value. If the second hash value and the third hash value are equal, the first negotiation key verification is confirmed to be successful.
[0298] In this embodiment of the invention, the first negotiated key can be used as the session key after successful verification. The session key is generated based on a cryptographic algorithm and a cryptographic machine. The network management center and the proxy server can each be associated with a cryptographic machine for cryptographic operations and key management, thus completely decoupling the business system from the cryptographic logic. Furthermore, the cryptographic algorithm of this embodiment offers higher security and economic advantages compared to traditional encryption methods. In addition, the negotiated session key can be stored in the cryptographic machine, and the key negotiation mechanism of this embodiment can improve the success rate of key negotiation and protect the security of the negotiated key.
[0299] Step 202: Receive quantum network data sent by the network management center. The quantum network data includes plaintext data and ciphertext data. The ciphertext data is obtained by encrypting the plaintext data using the session key.
[0300] Step 203: Verify the plaintext data using the encrypted data, and after the plaintext data is verified, control the quantum network device according to the control instructions indicated by the plaintext data.
[0301] In one embodiment, the cryptographic algorithm includes the SM3_HMAC algorithm; the quantum network data is generated based on a first digest value corresponding to the plaintext and the ciphertext; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the SM3_HMAC algorithm; the step of verifying the plaintext using the ciphertext, and controlling the quantum network device according to the control command indicated by the plaintext after the plaintext verification is successful, may further include the following sub-steps:
[0302] Sub-step S61: The second digest value is obtained by performing a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm;
[0303] Sub-step S62: If the first digest value is equal to the second digest value, the plaintext data verification is determined to be successful. After the plaintext data verification is successful, the quantum network device is controlled according to the control command indicated by the plaintext data.
[0304] In this embodiment of the invention, the specific process for data transmission between the network management center and the proxy server is as follows:
[0305] The network management center sends a data encryption request to the first cryptographic machine; the data encryption request carries the session key and the plaintext message.
[0306] The first cryptographic machine receives a data encryption request sent by the network management center; generates plaintext data based on the session key index, the message plaintext, the unique identifier of the network management center, and the unique identifier of the proxy server; performs a cryptographic hash operation on the session key and the plaintext data to obtain the first digest value corresponding to the network management center; and sends the first digest value, the plaintext data, and the session key index to the network management center.
[0307] For example, the specific calculation steps for generating the first digest value are as follows:
[0308] 1)data=Index||IDSender||IDreceiver||Msg
[0309] 2)ESM3_data_Sender=SM3_HMAC(Keyindex, data)
[0310] Where || is the string concatenation operator, data is the plaintext data, Index is the index of the session key, IDSender is the unique identifier of the network management center, IDreceiver is the unique identifier of the proxy server, Msg is the plaintext message, ESM3_data_Sender is the first digest value, SM3_HMAC(Key, X) indicates that the SM3 cryptographic hash algorithm with key Key is used to perform cryptographic hash operation on X, and Keyindex represents the session key with index Index.
[0311] The network management center generates quantum network data based on the first digest value, the plaintext data, and the index of the session key; and sends the quantum network data to the proxy server.
[0312] For example, the message format of quantum network data can be as follows:
[0313] Index||ESM3_data_Sender||data
[0314] Where || is the string concatenation operator, Index is the index of the session key, ESM3_data_Sender is the first digest value, and data is the plaintext data.
[0315] The proxy server receives quantum network data sent by the network management center; retrieves the session key from the second cryptographic machine according to the index corresponding to the session key; performs a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain a second digest value; verifies the second digest value using the first digest value, and compares whether the values of IDSender and IDreceiver in the data are consistent with those stored in the local database; if the first digest value and the second digest value are equal, and the values of IDSender and IDreceiver are consistent with those stored in the local database, the plaintext data verification is deemed successful; and controls the quantum network devices according to the control commands indicated by the plaintext data.
[0316] In this embodiment of the invention, the proxy server can simultaneously receive plaintext and ciphertext data sent by the network management center. It then encrypts the plaintext data using the same method as generating the first digest value to obtain a second digest value. The first and second digest values are compared. If the plaintext data is intercepted and modified during transmission, the second digest value generated from the modified plaintext will necessarily be different from the first digest value. The proxy server can then discard the modified plaintext data, thereby ensuring the security of data interaction between the network management center, the proxy server, and the quantum network device. If the first and second digest values are equal, it indicates that the plaintext data has not been tampered with during transmission, and the proxy server can control the quantum network device according to the control commands indicated in the plaintext data.
[0317] In this embodiment of the invention, the proxy server can, after authentication with the network management center, negotiate a session key with the network management center to obtain a session key. The session key is generated based on a cryptographic algorithm and a cryptographic machine. Both the network management center and the proxy server can be associated with cryptographic machines for cryptographic operations and key management, thus completely decoupling the business system from the cryptographic logic. Furthermore, the cryptographic algorithm of this embodiment offers higher security and economic advantages compared to traditional encryption methods. In addition, the negotiated session key can be stored in the cryptographic machine. The key negotiation mechanism of this embodiment improves the success rate of key negotiation and protects the security of the negotiated key. The proxy server can receive quantum network data sent by the network management center. This quantum network data includes plaintext and ciphertext, with the ciphertext obtained by encrypting the plaintext using the session key. The proxy server verifies the plaintext using the ciphertext, and after successful verification, controls the quantum network devices according to the control commands indicated in the plaintext. Verifying the plaintext with ciphertext prevents tampering during transmission, thereby ensuring the security of data interaction between the network management center, the proxy server, and the quantum network devices.
[0318] For the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0319] Reference Figure 3 The diagram shows a structural block diagram of a quantum network data encryption system based on cryptographic algorithms provided by an embodiment of the present invention. The quantum network data encryption system 30 includes: a network management center 31, a proxy server 32, and a quantum network device 33.
[0320] The network management center 31 is used to negotiate a session key with the proxy server 32 to obtain a session key; and to send quantum network data to the proxy server 32. The quantum network data includes plaintext data and ciphertext data, and the ciphertext data is obtained by encrypting the plaintext data using the session key.
[0321] The proxy server 32 is used to negotiate a session key with the network management center 31 to obtain a session key; receive quantum network data sent by the network management center 31; verify the plaintext data through the encrypted data; and control the quantum network device 33 according to the control instructions indicated by the plaintext data after the plaintext data verification is successful.
[0322] In this embodiment of the invention, the network management center 31 is used to generate a first negotiation key using the cryptographic algorithm and the second key corresponding to the proxy server, and generate a key negotiation request based on the first negotiation key; and send the key negotiation request to the proxy server 32.
[0323] The proxy server 32 is used to receive the key negotiation request sent by the network management center 31; and return a key negotiation request response to the network management center 31 according to the first key corresponding to the network management center 31 and the first negotiation key.
[0324] The network management center 31 is used to verify the first negotiation key according to the key negotiation request response; after the first negotiation key is verified, the first negotiation key is used as the session key.
[0325] In this embodiment of the invention, the network management center 31 is further configured to perform identity authentication with the proxy server 32; and after performing identity authentication with the proxy server 32, to negotiate session keys with the proxy server 32.
[0326] The proxy server 32 is also used to authenticate with the network management center 31; after authenticating with the network management center 31, it negotiates a session key with the network management center 31.
[0327] In this embodiment of the invention, the second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm.
[0328] The network management center 31 is configured to generate the first negotiation key using the public key of the second PQC encryption key and the PQC algorithm; obtain a first random number corresponding to the network management center 31; encrypt the first random number using the public key of the second SM2 encryption key and the SM2 algorithm to obtain a first encrypted random number; perform a hash operation on the first random number and the first negotiation key using the SM3 algorithm to obtain a first hash value; and generate a key negotiation request based on the first encrypted random number and the first hash value.
[0329] In this embodiment of the invention, the first key includes a first PQC encryption key and a first SM2 encryption key;
[0330] The proxy server 32 is configured to: obtain the first random number and the first negotiation key based on the first encrypted random number and the first hash value; obtain the second random number corresponding to the proxy server 32; encrypt the second random number using the public key of the first SM2 encryption key and the SM2 algorithm to obtain the second encrypted random number; obtain the second negotiation key using the first random number, the second random number, and the first negotiation key; perform a hash operation on the second negotiation key using the SM3 algorithm to obtain the second hash value; generate the key negotiation request response based on the second encrypted random number and the second hash value; and return the key negotiation request response to the network management center 31.
[0331] In this embodiment of the invention, the network management center 31 is configured to, in response to the key negotiation request, obtain the second encrypted random number and the second hash value; decrypt the second encrypted random number using the private key of the first SM2 encryption key to obtain the second random number; obtain the third negotiation key using the first random number, the second random number, and the first negotiation key; perform a hash operation on the third negotiation key using the SM3 algorithm to obtain the third hash value; and determine that the first negotiation key has been verified if the second hash value is equal to the third hash value.
[0332] In this embodiment of the invention, the cryptographic algorithm includes the SM3_HMAC algorithm;
[0333] The network management center 31 is used to obtain the first digest value corresponding to the plaintext and the ciphertext of the data; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the SM3_HMAC algorithm; generate the quantum network data based on the plaintext and the first digest value; and send the quantum network data to the proxy server 32.
[0334] The proxy server 32 is configured to perform a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain a second digest value; if the first digest value is equal to the second digest value, it determines that the plaintext data verification is successful; and after the plaintext data verification is successful, it controls the quantum network device 33 according to the control instructions indicated by the plaintext data.
[0335] In this embodiment of the invention, it further includes: a certificate issuing center 34, a first cryptographic machine 35 and a second cryptographic machine 36; the first cryptographic machine 35 is associated with the network management center 31, and the second cryptographic machine 36 is associated with the proxy server 32;
[0336] The first cryptographic machine 35 is used to create the first key corresponding to the network management center 31; generate a first certificate request file based on the unique identifier of the network management center 31 and the first key; and send the first certificate request file to the certificate issuing center 34.
[0337] The second cryptographic machine 36 is used to create the second key corresponding to the proxy server 32; generate a second certificate request file based on the unique identifier of the proxy server and the second key; and send the second certificate request file to the certificate authority 34.
[0338] The certificate issuing center 34 is configured to receive the first certificate request file sent by the first cryptographic machine 35, generate the first certificate corresponding to the network management center 31, and return the first certificate to the first cryptographic machine 35; receive the second certificate request file sent by the second cryptographic machine 36, generate the second certificate corresponding to the proxy server 32, and return the second certificate to the second cryptographic machine 36.
[0339] The network management center 31 is configured to send a first authentication request to the proxy server 32, so that the proxy server 32 returns a first authentication response using the second key; and send a second authentication request to the proxy server 32 based on the first authentication response and the first key.
[0340] The proxy server 32 is used to receive the second identity authentication request sent by the network management center 31 based on the first identity authentication response and the first key, and to perform identity authentication with the network management center 31 through the second identity authentication request.
[0341] In this embodiment of the invention, the second key includes a second PQC signature key and a second SM2 signature key; the first authentication request carries a third random number corresponding to the network management center 31;
[0342] The proxy server 32 is used to receive the first identity authentication request sent by the network management center 31, and to sign the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain the first SM2 signature value and the first PQC signature value; and to return the first identity authentication response to the network management center 31; the first identity authentication response carries the fourth random number corresponding to the proxy server 32, the second certificate, the first SM2 signature value and the first PQC signature value.
[0343] In this embodiment of the invention, the first key includes a first PQC signature key and a first SM2 signature key;
[0344] The network management center 31 is used to sign the fourth random number using the private key of the first PQC signature key and the private key of the first SM2 signature key to obtain the second SM2 signature value and the second PQC signature value; and to send a second identity authentication request to the proxy server 32; the second identity authentication request carries the first certificate, the second SM2 signature value and the second PQC signature value.
[0345] The proxy server 32 is used to receive the second identity authentication request sent by the network management center 31 and perform identity authentication according to the second identity authentication request.
[0346] In this embodiment of the invention, the network management center can, after authenticating with the proxy server, negotiate a session key with the proxy server to obtain a session key. The session key is generated based on a cryptographic algorithm and a cryptographic machine. Both the network management center and the proxy server can be associated with cryptographic machines for cryptographic operations and key management, thus completely decoupling the business system from the cryptographic logic. Furthermore, the cryptographic algorithm of this embodiment offers higher security and economic advantages compared to traditional encryption methods. In addition, the negotiated session key can be stored in the cryptographic machine. The key negotiation mechanism of this embodiment improves the success rate of key negotiation and protects the security of the negotiated key. The network management center can send quantum network data to the proxy server. The quantum network data includes plaintext and ciphertext. The ciphertext is obtained by encrypting the plaintext using the session key. This allows the proxy server to verify the plaintext using the ciphertext. After successful verification, the proxy server controls the quantum network devices according to the control commands indicated in the plaintext. Verifying the plaintext with ciphertext prevents tampering during transmission, thereby ensuring the security of data interaction between the network management center, the proxy server, and the quantum network devices.
[0347] Reference Figure 4This diagram illustrates a structural block diagram of a quantum network data encryption device based on a cryptographic algorithm, provided by an embodiment of the present invention. Applied to a network management center, it may specifically include the following modules:
[0348] The first session key negotiation module 401 is used to negotiate the session key with the proxy server to obtain the session key;
[0349] The quantum network data transmission module 402 is used to send quantum network data to the proxy server. The quantum network data includes plaintext data and ciphertext data. The ciphertext data is obtained by encrypting the plaintext data using the session key, so that the proxy server can verify the plaintext data using the ciphertext data. After the plaintext data is verified, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext data.
[0350] In this embodiment of the invention, the first session key negotiation module 401 includes:
[0351] The key negotiation request generation submodule is used to generate a first negotiation key using the cryptographic algorithm and the second key corresponding to the proxy server, and to generate a key negotiation request based on the first negotiation key;
[0352] The key negotiation request sending submodule is used to send a key negotiation request to the proxy server, so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key.
[0353] The first negotiation key verification submodule is used to verify the first negotiation key according to the key negotiation request response;
[0354] The session key determination submodule is used to use the first negotiated key as the session key after the first negotiated key has been verified.
[0355] In this embodiment of the invention, before the first session key negotiation module 401, the device further includes:
[0356] The first identity authentication module is used for identity authentication with the proxy server;
[0357] The first session key negotiation module 401 includes:
[0358] The first session key negotiation submodule is used to negotiate a session key with the proxy server after authentication with the proxy server.
[0359] In this embodiment of the invention, the second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm; the key negotiation request generation submodule includes:
[0360] The first negotiation key generation unit is used to generate the first negotiation key using the public key of the second PQC encryption key and the PQC algorithm;
[0361] The first random number acquisition unit is used to acquire the first random number corresponding to the network management center;
[0362] The first random number encryption unit is used to encrypt the first random number using the public key of the second SM2 encryption key and the SM2 algorithm to obtain a first encrypted random number;
[0363] The first hash value operation unit is used to perform a hash operation on the first random number and the first negotiation key using the SM3 algorithm to obtain the first hash value;
[0364] The key negotiation request generation unit is used to generate a key negotiation request based on the first encrypted random number and the first hash value.
[0365] In this embodiment of the invention, the first key includes a first PQC encryption key and a first SM2 encryption key; the key negotiation request sending submodule includes:
[0366] A key negotiation request sending unit is configured to send a key negotiation request to the proxy server, so that the proxy server obtains the first random number and the first negotiation key based on the first encrypted random number and the first hash value, and returns the key negotiation request response to the network management center based on the first random number and the first negotiation key; the key negotiation request response carries a second encrypted random number and a second hash value; the second encrypted random number is obtained by encrypting the second random number corresponding to the proxy server using the public key of the first SM2 encryption key and the SM2 algorithm; the second hash value is obtained by performing a hash operation on the second negotiation key using the SM3 algorithm; the second negotiation key is obtained by the first random number, the second random number, and the first negotiation key.
[0367] In this embodiment of the invention, the first negotiation key verification submodule includes:
[0368] The second encrypted random number acquisition unit is used to acquire the second encrypted random number and the second hash value according to the key negotiation request response;
[0369] The second random number decryption unit is used to decrypt the second encrypted random number using the private key of the first SM2 encryption key to obtain the second random number;
[0370] The third negotiation key generation unit is used to obtain a third negotiation key using the first random number, the second random number, and the first negotiation key;
[0371] The third hash value operation unit is used to perform a hash operation on the third negotiation key using the SM3 algorithm to obtain the third hash value;
[0372] The first negotiation key verification unit is used to determine that the first negotiation key verification is successful when the second hash value is equal to the third hash value.
[0373] In this embodiment of the invention, the cryptographic algorithm includes the SM3_HMAC algorithm; the quantum network data transmission module 402 includes:
[0374] The first digest value acquisition submodule is used to acquire the first digest value corresponding to the plaintext data and the ciphertext data; the first digest value is obtained by performing a hash operation on the plaintext data and the session key using the SM3 HMAC algorithm.
[0375] A quantum network data generation submodule is used to generate the quantum network data based on the data plaintext and the first digest value;
[0376] The quantum network data transmission submodule is used to send the quantum network data to the proxy server, so that the proxy server performs a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain a second digest value. If the first digest value is equal to the second digest value, the plaintext data is verified as valid. After the plaintext data is verified as valid, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext data.
[0377] In this embodiment of the invention, the first identity authentication module includes:
[0378] The first authentication request sending submodule is used to send a first authentication request to the proxy server so that the proxy server returns a first authentication response through the second key;
[0379] The second authentication request sending submodule is used to send a second authentication request to the proxy server based on the first authentication response and the first key, so that the proxy server can perform authentication.
[0380] In this embodiment of the invention, the second key includes a second PQC signature key and a second SM2 signature key; the first authentication request sending submodule includes:
[0381] The first authentication request sending unit is configured to send a first authentication request to the proxy server. The first authentication request carries a third random number corresponding to the network management center, so that the proxy server signs the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain a first SM2 signature value and a first PQC signature value, and returns the first authentication response. The first authentication response carries a fourth random number corresponding to the proxy server, a second certificate corresponding to the proxy server, the first SM2 signature value, and the first PQC signature value.
[0382] In this embodiment of the invention, the first key includes a first PQC signature key and a first SM2 signature key; the second authentication request sending submodule includes:
[0383] The fourth random number signature unit is used to sign the fourth random number using the private key of the first PQC signature key and the private key of the first SM2 signature key to obtain the second SM2 signature value and the second PQC signature value.
[0384] The second authentication request sending unit is used to send a second authentication request to the proxy server; the second authentication request carries the first PQC certificate corresponding to the network management center, the second SM2 signature value and the second PQC signature value, so as to enable the proxy server to perform authentication.
[0385] In this embodiment of the invention, the network management center can, after authenticating with the proxy server, negotiate a session key with the proxy server to obtain a session key. The session key is generated based on a cryptographic algorithm and a cryptographic machine. Both the network management center and the proxy server can be associated with cryptographic machines for cryptographic operations and key management, thus completely decoupling the business system from the cryptographic logic. Furthermore, the cryptographic algorithm of this embodiment offers higher security and economic advantages compared to traditional encryption methods. In addition, the negotiated session key can be stored in the cryptographic machine. The key negotiation mechanism of this embodiment improves the success rate of key negotiation and protects the security of the negotiated key. The network management center can send quantum network data to the proxy server. The quantum network data includes plaintext and ciphertext. The ciphertext is obtained by encrypting the plaintext using the session key. This allows the proxy server to verify the plaintext using the ciphertext. After successful verification, the proxy server controls the quantum network devices according to the control commands indicated in the plaintext. Verifying the plaintext with ciphertext prevents tampering during transmission, thereby ensuring the security of data interaction between the network management center, the proxy server, and the quantum network devices.
[0386] Reference Figure 5 This diagram illustrates a structural block diagram of another quantum network data encryption device based on a cryptographic algorithm provided by an embodiment of the present invention. Applied to a proxy server, it may specifically include the following modules:
[0387] The second session key negotiation module 501 is used to negotiate the session key with the network management center to obtain the session key.
[0388] The quantum network data receiving module 502 is used to receive quantum network data sent by the network management center. The quantum network data includes plaintext data and ciphertext data, and the ciphertext data is obtained by encrypting the plaintext data using the session key.
[0389] The quantum network device control module 503 is used to verify the plaintext data using the encrypted data, and after the plaintext data is verified, to control the quantum network device according to the control instructions indicated by the plaintext data.
[0390] In this embodiment of the invention, the second session key negotiation module 501 includes:
[0391] The key negotiation request receiving submodule is used to receive the key negotiation request sent by the network management center; the key negotiation request is generated based on a first negotiation key, which is generated by the cryptographic algorithm and a second key corresponding to the proxy server;
[0392] The second session key negotiation submodule is used to return a key negotiation request response to the network management center based on the first key corresponding to the network management center and the first negotiation key, so that the network management center can verify the first negotiation key based on the key negotiation request response, and use the first negotiation key as the session key after the first negotiation key is verified.
[0393] In this embodiment of the invention, before the second session key negotiation module 501, the device further includes:
[0394] The second identity authentication module is used to authenticate with the network management center.
[0395] The second session key negotiation module 501 includes:
[0396] The second identity authentication submodule is used to negotiate session keys with the network management center after identity authentication with the network management center.
[0397] In this embodiment of the invention, the second key includes a second PQC encryption key and a second SM2 encryption key; the cryptographic algorithm includes the SM2 algorithm, the PQC algorithm, and the SM3 algorithm; the key negotiation request is generated based on a first encrypted random number and a first hash value; the first encrypted random number is obtained by encrypting the first random number corresponding to the network management center using the public key of the second SM2 encryption key and the SM2 algorithm; the first hash value is obtained by performing a hash operation on the first random number and the first negotiation key using the SM3 algorithm; the first negotiation key is generated using the public key of the second PQC encryption key and the PQC algorithm.
[0398] In this embodiment of the invention, the first key includes a first PQC encryption key and a first SM2 encryption key; the second session key negotiation submodule includes:
[0399] The first negotiation key acquisition unit is used to obtain the first random number and the first negotiation key based on the first encrypted random number and the first hash value;
[0400] The second random number acquisition unit is used to acquire the second random number corresponding to the proxy server;
[0401] The second random number encryption unit is used to encrypt the second random number using the public key of the first SM2 encryption key and the SM2 algorithm to obtain the second encrypted random number.
[0402] The second negotiation key generation unit is used to obtain a second negotiation key using the first random number, the second random number, and the first negotiation key;
[0403] The second hash value operation unit is used to perform a hash operation on the second negotiation key using the SM3 algorithm to obtain a second hash value;
[0404] A key negotiation request response generation unit is configured to generate the key negotiation request response based on the second encrypted random number and the second hash value;
[0405] The second session key negotiation unit is used to return the key negotiation request response to the network management center, so that the network management center can verify the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, use the first negotiation key as the session key.
[0406] In this embodiment of the invention, the network management center determines that the first negotiation key verification is successful when the second hash value and the third hash value are equal; the third hash value is obtained by performing a hash operation on the third negotiation key using the SM3 algorithm; the third negotiation key is obtained by the first random number, the second random number, and the first negotiation key; the second random number is obtained by decrypting the second encrypted random number using the private key of the first SM2 encryption key; the second encrypted random number and the second hash value are obtained according to the key negotiation request response.
[0407] In this embodiment of the invention, the cryptographic algorithm includes the SM3_HMAC algorithm; the quantum network data is generated based on the first digest value corresponding to the plaintext and the ciphertext; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the SM3_HMAC algorithm; the quantum network device control module 503 includes:
[0408] The second digest value operation submodule is used to perform a hash operation on the plaintext data and the session key using the SM3_HMAC algorithm to obtain the second digest value.
[0409] The quantum network device control submodule is used to determine that the plaintext data verification is successful when the first digest value is equal to the second digest value, and to control the quantum network device according to the control command indicated by the plaintext data after the plaintext data verification is successful.
[0410] In this embodiment of the invention, the second identity authentication module includes:
[0411] The first identity authentication request receiving submodule is used to receive the first identity authentication request sent by the network management center and return the first identity authentication response to the network management center through the second key;
[0412] The second identity authentication request receiving submodule is used to receive the second identity authentication request sent by the network management center based on the first identity authentication response and the first key, and to perform identity authentication with the network management center through the second identity authentication request.
[0413] In this embodiment of the invention, the second key includes a second PQC signature key and a second SM2 signature key; the first authentication request carries a third random number corresponding to the network management center; the first authentication request receiving submodule includes:
[0414] The third random number signature unit is used to receive the first identity authentication request sent by the network management center, and sign the third random number using the private key of the second PQC signature key and the private key of the second SM2 signature key to obtain the first SM2 signature value and the first PQC signature value.
[0415] The first identity authentication response return unit is used to return the first identity authentication response to the network management center; the first identity authentication response carries the fourth random number corresponding to the proxy server, the second certificate corresponding to the proxy server, the first SM2 signature value and the first PQC signature value.
[0416] In this embodiment of the invention, the first key includes a first PQC signature key and a first SM2 signature key; the second authentication request carries the first PQC certificate, the second SM2 signature value, and the second PQC signature value corresponding to the network management center; the second SM2 signature value and the second PQC signature value are obtained by signing the fourth random number using the private key of the first PQC signature key and the private key of the first SM2 signature key.
[0417] In this embodiment of the invention, the proxy server can, after authentication with the network management center, negotiate a session key with the network management center to obtain a session key. The session key is generated based on a cryptographic algorithm and a cryptographic machine. Both the network management center and the proxy server can be associated with cryptographic machines for cryptographic operations and key management, thus completely decoupling the business system from the cryptographic logic. Furthermore, the cryptographic algorithm of this embodiment offers higher security and economic advantages compared to traditional encryption methods. In addition, the negotiated session key can be stored in the cryptographic machine. The key negotiation mechanism of this embodiment improves the success rate of key negotiation and protects the security of the negotiated key. The proxy server can receive quantum network data sent by the network management center. This quantum network data includes plaintext and ciphertext, with the ciphertext obtained by encrypting the plaintext using the session key. The proxy server verifies the plaintext using the ciphertext, and after successful verification, controls the quantum network devices according to the control commands indicated in the plaintext. Verifying the plaintext with ciphertext prevents tampering during transmission, thereby ensuring the security of data interaction between the network management center, the proxy server, and the quantum network devices.
[0418] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0419] This invention also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described quantum network data encryption method based on a cryptographic algorithm.
[0420] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described quantum network data encryption method based on a cryptographic algorithm.
[0421] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0422] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products embodied on one or more machine-readable media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0423] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0424] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0425] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0426] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0427] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0428] The present invention provides a detailed description of a quantum network data encryption method, system, and apparatus based on cryptographic algorithms. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A quantum network data encryption method based on cryptographic algorithms, characterized in that, Applied to network management centers, the method includes: The cryptographic algorithm includes a first cryptographic algorithm and a second cryptographic algorithm. Negotiate the session key with the proxy server to obtain the session key; Quantum network data is sent to the proxy server. The quantum network data includes plaintext and ciphertext. The ciphertext is obtained by encrypting the plaintext with the session key, so that the proxy server can verify the plaintext with the ciphertext. After the plaintext is verified, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext. The step of negotiating a session key with the proxy server to obtain the session key includes: A first negotiation key is generated using the first cryptographic algorithm and the second key corresponding to the proxy server, and a key negotiation request is generated based on the first negotiation key. Send a key negotiation request to the proxy server so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key; Based on the key negotiation request response, verify the first negotiated key; After the first negotiated key is verified, the first negotiated key will be used as the session key; The second key includes a second post-quantum cryptography encryption key and a second elliptic curve cryptography encryption key; the first cryptographic algorithm includes an elliptic curve cryptography algorithm, a post-quantum cryptography algorithm, and a cryptographic hash algorithm; the step of generating a first negotiation key using the cryptographic algorithm and the second key corresponding to the proxy server, and generating a key negotiation request based on the first negotiation key, includes: The first negotiation key is generated using the public key of the second post-quantum cryptography encryption key and the post-quantum cryptography algorithm; Obtain the first random number corresponding to the network management center; The first random number is encrypted using the public key of the second elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm to obtain the first encrypted random number; The first hash value is obtained by performing a hash operation on the first random number and the first negotiation key using the cryptographic hash algorithm. Generate a key negotiation request based on the first encrypted random number and the first hash value; The first key includes a first post-quantum cryptography encryption key and a first elliptic curve cryptography encryption key; the step of sending a key negotiation request to the proxy server, so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key, includes: A key negotiation request is sent to the proxy server, so that the proxy server obtains the first random number and the first negotiation key based on the first encrypted random number and the first hash value, and returns the key negotiation request response to the network management center based on the first random number and the first negotiation key; the key negotiation request response carries a second encrypted random number and a second hash value; the second encrypted random number is obtained by encrypting the second random number corresponding to the proxy server using the public key of the first elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm; the second hash value is obtained by performing a hash operation on the second negotiation key using the cryptographic hash algorithm; the second negotiation key is obtained by the first random number, the second random number, and the first negotiation key; The step of verifying the first negotiated key based on the key negotiation request response includes: Based on the key negotiation request response, obtain the second encrypted random number and the second hash value; The second encrypted random number is obtained by decrypting the second encrypted random number using the private key of the first elliptic curve cryptography encryption key; The third negotiation key is obtained by using the first random number, the second random number, and the first negotiation key; The third negotiation key is hashed using the cryptographic hash algorithm to obtain the third hash value; If the second hash value is equal to the third hash value, the first negotiated key verification is deemed successful. The second cryptographic algorithm includes a message authentication code generation algorithm; the step of sending quantum network data to the proxy server, the quantum network data including plaintext and ciphertext, wherein the ciphertext is obtained by encrypting the plaintext using the session key, so that the proxy server can verify the plaintext using the ciphertext, and after the plaintext verification is successful, control the quantum network device according to the control instructions indicated by the plaintext, including: Obtain the first digest value corresponding to the plaintext and the ciphertext of the data; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the message authentication code generation algorithm; The quantum network data is generated based on the plaintext data and the first digest value; The quantum network data is sent to the proxy server, so that the proxy server performs a hash operation on the plaintext data and the session key using the message authentication code generation algorithm to obtain a second digest value. If the first digest value is equal to the second digest value, the plaintext data is verified as valid. After the plaintext data is verified as valid, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext data.
2. The method according to claim 1, characterized in that, Prior to the session key negotiation with the proxy server, the method further includes: Authenticate your identity with the proxy server; The session key negotiation with the proxy server includes: After authenticating with the proxy server, a session key negotiation is performed with the proxy server.
3. The method according to claim 2, characterized in that, The authentication process with the proxy server includes: Send a first authentication request to the proxy server, so that the proxy server returns a first authentication response using the second key; Based on the first authentication response and the first key, a second authentication request is sent to the proxy server to enable the proxy server to perform authentication.
4. The method according to claim 3, characterized in that, The second key includes a second post-quantum cryptography signature key and a second elliptic curve cryptography signature key; the step of sending a first authentication request to the proxy server, so that the proxy server returns a first authentication response using the second key, includes: A first authentication request is sent to the proxy server. The first authentication request carries a third random number corresponding to the network management center, so that the proxy server signs the third random number using the private key of the second post-quantum cryptography signature key and the private key of the second elliptic curve cryptography signature key to obtain a first elliptic curve cryptography signature value and a first post-quantum cryptography signature value, and returns the first authentication response. The first authentication response carries a fourth random number corresponding to the proxy server, a second certificate corresponding to the proxy server, the first elliptic curve cryptography signature value, and the first post-quantum cryptography signature value.
5. The method according to claim 4, characterized in that, The first key includes a first post-quantum cryptography signature key and a first elliptic curve cryptography signature key; the step of sending a second authentication request to the proxy server based on the first authentication response and the first key, so that the proxy server performs authentication, includes: The fourth random number is signed using the private key of the first post-quantum cryptography signature key and the private key of the first elliptic curve cryptography signature key to obtain the second elliptic curve cryptography signature value and the second post-quantum cryptography signature value. A second authentication request is sent to the proxy server; the second authentication request carries the first post-quantum cryptography certificate corresponding to the network management center, the second elliptic curve cryptography signature value, and the second post-quantum cryptography signature value, so that the proxy server can perform authentication.
6. A quantum network data encryption method based on cryptographic algorithms, characterized in that, Applied to a proxy server, the method includes: Negotiate the session key with the network management center to obtain the session key; The system receives quantum network data sent by the network management center. The quantum network data includes plaintext and ciphertext, and the ciphertext is obtained by encrypting the plaintext using the session key. The plaintext data is verified by the encrypted data, and after the plaintext data is verified, the quantum network device is controlled according to the control instructions indicated by the plaintext data. The cryptographic algorithm includes a first cryptographic algorithm and a second cryptographic algorithm. The process of negotiating a session key with the network management center to obtain the session key includes: Receive a key negotiation request sent by the network management center; the key negotiation request is generated based on a first negotiation key, which is generated by the first cryptographic algorithm and a second key corresponding to the proxy server; Based on the first key corresponding to the network management center and the first negotiation key, a key negotiation request response is returned to the network management center, so that the network management center can verify the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, the first negotiation key is used as the session key. The second key includes a second post-quantum cryptography encryption key and a second elliptic curve cryptography encryption key; the first cryptographic algorithm includes an elliptic curve cryptography algorithm, a post-quantum cryptography algorithm, and a cryptographic hash algorithm. The key negotiation request is generated based on a first encrypted random number and a first hash value; the first encrypted random number is obtained by encrypting the first random number corresponding to the network management center using the public key of the second elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm; the first hash value is obtained by performing a hash operation on the first random number and the first negotiation key using the cryptographic hash algorithm; the first negotiation key is generated using the public key of the second post-quantum cryptography encryption key and the post-quantum cryptography algorithm. The first key includes a first post-quantum cryptography encryption key and a first elliptic curve cryptography encryption key; the step of returning a key negotiation request response to the network management center based on the first key corresponding to the network management center and the first negotiation key, so that the network management center verifies the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, uses the first negotiation key as the session key, including: Based on the first encrypted random number and the first hash value, the first random number and the first negotiation key are obtained; Obtain the second random number corresponding to the proxy server; The second random number is obtained by encrypting the second random number using the public key of the first elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm; The second negotiation key is obtained by using the first random number, the second random number, and the first negotiation key; The second negotiation key is hashed using the cryptographic hash algorithm to obtain the second hash value; Generate the key negotiation request response based on the second encrypted random number and the second hash value; The key negotiation request response is returned to the network management center so that the network management center can verify the first negotiation key according to the key negotiation request response, and after the first negotiation key is verified, the first negotiation key is used as the session key; Specifically, the network management center determines that the first negotiation key verification is successful when the second hash value and the third hash value are equal; the third hash value is obtained by performing a hash operation on the third negotiation key using the cryptographic hash algorithm; the third negotiation key is obtained by using the first random number, the second random number, and the first negotiation key; the second random number is obtained by decrypting the second encrypted random number using the private key of the first elliptic curve cryptography encryption key; the second encrypted random number and the second hash value are obtained according to the key negotiation request response; The second cryptographic algorithm includes a message authentication code generation algorithm; the quantum network data is generated based on a first digest value corresponding to the plaintext and the ciphertext; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the message authentication code generation algorithm; the step of verifying the plaintext using the ciphertext, and controlling the quantum network device according to the control command indicated by the plaintext after the plaintext verification is successful, includes: The second digest value is obtained by performing a hash operation on the plaintext data and the session key using the message authentication code generation algorithm. If the first digest value is equal to the second digest value, the plaintext data verification is determined to be successful. After the plaintext data verification is successful, the quantum network device is controlled according to the control command indicated by the plaintext data.
7. The method according to claim 6, characterized in that, Before negotiating the session key with the network management center, the method further includes: Authenticate your identity with the network management center; The session key negotiation with the network management center includes: After authenticating with the network management center, a session key negotiation is conducted with the network management center.
8. The method according to claim 7, characterized in that, The identity authentication with the network management center includes: Receive the first authentication request sent by the network management center, and return the first authentication response to the network management center through the second key; The system receives a second authentication request sent by the network management center based on the first authentication response and the first key, and performs authentication with the network management center through the second authentication request.
9. The method according to claim 8, characterized in that, The second key includes a second post-quantum cryptography signature key and a second elliptic curve cryptography signature key; the first authentication request carries a third random number corresponding to the network management center; The step of receiving the first authentication request sent by the network management center and returning the first authentication response to the network management center using the second key includes: The system receives a first identity authentication request sent by the network management center, and signs the third random number using the private key of the second post-quantum cryptography signature key and the private key of the second elliptic curve cryptography signature key to obtain a first elliptic curve cryptography signature value and a first post-quantum cryptography signature value. The first authentication response is returned to the network management center; the first authentication response carries the fourth random number corresponding to the proxy server, the second certificate corresponding to the proxy server, the first elliptic curve cryptography signature value, and the first post-quantum cryptography signature value.
10. The method according to claim 9, characterized in that, The first key includes a first post-quantum cryptography signature key and a first elliptic curve cryptography signature key; the second authentication request carries the first post-quantum cryptography certificate, the second elliptic curve cryptography signature value, and the second post-quantum cryptography signature value corresponding to the network management center; the second elliptic curve cryptography signature value and the second post-quantum cryptography signature value are obtained by signing the fourth random number using the private key of the first post-quantum cryptography signature key and the private key of the first elliptic curve cryptography signature key.
11. A quantum network data encryption system based on cryptographic algorithms, characterized in that, include: Network management center and proxy server; The network management center is used to negotiate a session key with the proxy server to obtain a session key. Quantum network data is sent to the proxy server. The quantum network data includes plaintext data and ciphertext data, wherein the ciphertext data is obtained by encrypting the plaintext data using the session key. The proxy server is used to negotiate the session key with the network management center to obtain the session key; Receive quantum network data sent by the network management center; The plaintext data is verified by the encrypted data, and after the plaintext data is verified, the quantum network device is controlled according to the control instructions indicated by the plaintext data. The cryptographic algorithm includes a first cryptographic algorithm and a second cryptographic algorithm. The network management center is configured to generate a first negotiation key using the first cryptographic algorithm and the second key corresponding to the proxy server, and generate a key negotiation request based on the first negotiation key; and send the key negotiation request to the proxy server. The proxy server is used to receive the key negotiation request sent by the network management center; and return a key negotiation request response to the network management center according to the first key corresponding to the network management center and the first negotiation key; The network management center is used to verify the first negotiation key according to the key negotiation request response; after the first negotiation key is verified, the first negotiation key is used as the session key. The second key includes a second post-quantum cryptography encryption key and a second elliptic curve cryptography encryption key; the first cryptographic algorithm includes an elliptic curve cryptography algorithm, a post-quantum cryptography algorithm, and a cryptographic hash algorithm. The network management center is configured to: generate a first negotiation key using the public key of the second post-quantum cryptography encryption key and the post-quantum cryptography algorithm; obtain a first random number corresponding to the network management center; encrypt the first random number using the public key of the second elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm to obtain a first encrypted random number; perform a hash operation on the first random number and the first negotiation key using the cryptographic hash algorithm to obtain a first hash value; and generate a key negotiation request based on the first encrypted random number and the first hash value. The first key includes a first post-quantum cryptography encryption key and a first elliptic curve cryptography encryption key; The proxy server is configured to: obtain the first random number and the first negotiation key based on the first encrypted random number and the first hash value; obtain a second random number corresponding to the proxy server; encrypt the second random number using the public key of the first elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm to obtain a second encrypted random number; obtain a second negotiation key using the first random number, the second random number, and the first negotiation key; perform a hash operation on the second negotiation key using the cryptographic hash algorithm to obtain a second hash value; generate the key negotiation request response based on the second encrypted random number and the second hash value; and return the key negotiation request response to the network management center. The network management center is configured to: obtain the second encrypted random number and the second hash value according to the key negotiation request response; decrypt the second encrypted random number using the private key of the first elliptic curve cryptography encryption key to obtain the second random number; obtain a third negotiation key using the first random number, the second random number, and the first negotiation key; perform a hash operation on the third negotiation key using the cryptographic hash algorithm to obtain a third hash value; and determine that the first negotiation key has been verified if the second hash value is equal to the third hash value. The second cryptographic algorithm includes a message authentication code generation algorithm; The network management center is used to obtain the first digest value corresponding to the plaintext and the ciphertext of the data; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the message authentication code generation algorithm; generate the quantum network data based on the plaintext and the first digest value; and send the quantum network data to the proxy server. The proxy server is configured to perform a hash operation on the plaintext data and the session key using the message authentication code generation algorithm to obtain a second digest value; if the first digest value is equal to the second digest value, it determines that the plaintext data verification is successful; and after the plaintext data verification is successful, it controls the quantum network device according to the control instructions indicated by the plaintext data.
12. The system according to claim 11, characterized in that, The network management center is also used to authenticate with the proxy server; after authenticating with the proxy server, it negotiates a session key with the proxy server. The proxy server is also used to authenticate its identity with the network management center; after authenticating its identity with the network management center, it negotiates a session key with the network management center.
13. The system according to claim 12, characterized in that, Also includes: A certificate issuing center, a first cryptographic machine, and a second cryptographic machine; the first cryptographic machine is associated with the network management center, and the second cryptographic machine is associated with the proxy server; The first cryptographic machine is used to create the first key corresponding to the network management center; Generate a first certificate request file based on the unique identifier of the network management center and the first key; Send the first certificate request file to the certificate authority. The second cryptographic machine is used to create the second key corresponding to the proxy server; and to generate a second certificate request file based on the unique identifier of the proxy server and the second key. Send the second certificate request file to the certificate authority. The certificate issuing center is used to receive the first certificate request file sent by the first cryptographic machine, generate the first certificate corresponding to the network management center, and return the first certificate to the first cryptographic machine; Receive the second certificate request file sent by the second cryptographic machine, generate the second certificate corresponding to the proxy server, and return the second certificate to the second cryptographic machine; The network management center is configured to send a first authentication request to the proxy server, so that the proxy server returns a first authentication response using the second key; and send a second authentication request to the proxy server based on the first authentication response and the first key. The proxy server is configured to receive a second authentication request sent by the network management center based on the first authentication response and the first key, and to authenticate with the network management center through the second authentication request.
14. The system according to claim 13, characterized in that, The second key includes a second post-quantum cryptography signature key and a second elliptic curve cryptography signature key; the first authentication request carries a third random number corresponding to the network management center; The proxy server is configured to receive a first authentication request sent by the network management center, and sign the third random number using the private key of the second post-quantum cryptography signature key and the private key of the second elliptic curve cryptography signature key to obtain a first elliptic curve cryptography signature value and a first post-quantum cryptography signature value; and return a first authentication response to the network management center; the first authentication response carries a fourth random number corresponding to the proxy server, the second certificate, the first elliptic curve cryptography signature value, and the first post-quantum cryptography signature value.
15. The system according to claim 14, characterized in that, The first key includes a first post-quantum cryptography signature key and a first elliptic curve cryptography signature key; The network management center is used to sign the fourth random number using the private key of the first post-quantum cryptography signature key and the private key of the first elliptic curve cryptography signature key to obtain the second elliptic curve cryptography signature value and the second post-quantum cryptography signature value; and to send a second identity authentication request to the proxy server. The second authentication request carries the first certificate, the second elliptic curve cryptography signature value, and the second post-quantum cryptography signature value; The proxy server is used to receive the second identity authentication request sent by the network management center and perform identity authentication according to the second identity authentication request.
16. A quantum network data encryption device based on cryptographic algorithms, characterized in that, The device, used in a network management center, includes: The first session key negotiation module is used to negotiate the session key with the proxy server to obtain the session key; A quantum network data transmission module is used to send quantum network data to the proxy server. The quantum network data includes plaintext data and ciphertext data. The ciphertext data is obtained by encrypting the plaintext data using the session key, so that the proxy server can verify the plaintext data using the ciphertext data. After the plaintext data is verified, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext data. The cryptographic algorithm includes a first cryptographic algorithm and a second cryptographic algorithm. The first session key negotiation module includes: The key negotiation request generation submodule is used to generate a first negotiation key using the first cryptographic algorithm and the second key corresponding to the proxy server, and to generate a key negotiation request based on the first negotiation key; The key negotiation request sending submodule is used to send a key negotiation request to the proxy server, so that the proxy server returns a key negotiation request response based on the first key corresponding to the network management center and the first negotiation key. The first negotiation key verification submodule is used to verify the first negotiation key according to the key negotiation request response; The session key determination submodule is used to use the first negotiated key as the session key after the first negotiated key has been verified. The second key includes a second post-quantum cryptography encryption key and a second elliptic curve cryptography encryption key; the first cryptographic algorithm includes an elliptic curve cryptography algorithm, a post-quantum cryptography algorithm, and a cryptographic hash algorithm; the key negotiation request generation submodule includes: The first negotiation key generation unit is used to generate the first negotiation key using the public key of the second post-quantum cryptography encryption key and the post-quantum cryptography algorithm; The first random number acquisition unit is used to acquire the first random number corresponding to the network management center; The first random number encryption unit is used to encrypt the first random number using the public key of the second elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm to obtain a first encrypted random number. The first hash value operation unit is used to perform a hash operation on the first random number and the first negotiation key using the cryptographic hash algorithm to obtain the first hash value; A key negotiation request generation unit is configured to generate a key negotiation request based on the first encrypted random number and the first hash value; The first key includes a first post-quantum cryptography encryption key and a first elliptic curve cryptography encryption key; the key negotiation request sending submodule includes: A key negotiation request sending unit is configured to send a key negotiation request to the proxy server, so that the proxy server obtains the first random number and the first negotiation key based on the first encrypted random number and the first hash value, and returns the key negotiation request response to the network management center based on the first random number and the first negotiation key; the key negotiation request response carries a second encrypted random number and a second hash value; the second encrypted random number is obtained by encrypting the second random number corresponding to the proxy server using the public key of the first elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm; the second hash value is obtained by performing a hash operation on the second negotiation key using the cryptographic hash algorithm; the second negotiation key is obtained by the first random number, the second random number, and the first negotiation key; The first negotiation key verification submodule includes: The second encrypted random number acquisition unit is used to acquire the second encrypted random number and the second hash value according to the key negotiation request response; The second random number decryption unit is used to decrypt the second encrypted random number using the private key of the first elliptic curve cryptography encryption key to obtain the second random number; The third negotiation key generation unit is used to obtain a third negotiation key using the first random number, the second random number, and the first negotiation key; The third hash value operation unit is used to perform a hash operation on the third negotiation key using the cryptographic hash algorithm to obtain the third hash value; The first negotiation key verification unit is used to determine that the first negotiation key verification is successful when the second hash value is equal to the third hash value; The second cryptographic algorithm includes a message authentication code generation algorithm; the quantum network data transmission module includes: The first digest value acquisition submodule is used to acquire the first digest value corresponding to the plaintext data and the ciphertext data; the first digest value is obtained by performing a hash operation on the plaintext data and the session key through the message authentication code generation algorithm. A quantum network data generation submodule is used to generate the quantum network data based on the data plaintext and the first digest value; The quantum network data transmission submodule is used to send the quantum network data to the proxy server, so that the proxy server performs a hash operation on the plaintext data and the session key using the message authentication code generation algorithm to obtain a second digest value. If the first digest value is equal to the second digest value, the plaintext data is verified as valid. After the plaintext data is verified as valid, the proxy server controls the quantum network device according to the control instructions indicated by the plaintext data.
17. A quantum network data encryption device based on cryptographic algorithms, characterized in that, Applied to a proxy server, the device includes: The second session key negotiation module is used to negotiate session keys with the network management center to obtain the session key. A quantum network data receiving module is used to receive quantum network data sent by the network management center. The quantum network data includes plaintext data and ciphertext data, and the ciphertext data is obtained by encrypting the plaintext data using the session key. A quantum network device control module is used to verify the plaintext data using the encrypted data, and after the plaintext data is verified, to control the quantum network device according to the control instructions indicated by the plaintext data; The cryptographic algorithm includes a first cryptographic algorithm and a second cryptographic algorithm. The second session key negotiation module includes: The key negotiation request receiving submodule is used to receive the key negotiation request sent by the network management center; the key negotiation request is generated based on the first negotiation key, which is generated by the first cryptographic algorithm and the second key corresponding to the proxy server; The second session key negotiation submodule is used to return a key negotiation request response to the network management center based on the first key corresponding to the network management center and the first negotiation key, so that the network management center can verify the first negotiation key based on the key negotiation request response, and use the first negotiation key as the session key after the first negotiation key is verified. The second key includes a second post-quantum cryptography encryption key and a second elliptic curve cryptography encryption key; the first cryptographic algorithm includes an elliptic curve cryptography algorithm, a post-quantum cryptography algorithm, and a cryptographic hash algorithm; the key negotiation request is generated based on a first encrypted random number and a first hash value; the first encrypted random number is obtained by encrypting the first random number corresponding to the network management center using the public key of the second elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm; the first hash value is obtained by performing a hash operation on the first random number and the first negotiation key using the cryptographic hash algorithm; the first negotiation key is generated using the public key of the second post-quantum cryptography encryption key and the post-quantum cryptography algorithm. The first key includes a first post-quantum cryptography encryption key and a first elliptic curve cryptography encryption key; the second session key negotiation submodule includes: The first negotiation key acquisition unit is used to obtain the first random number and the first negotiation key based on the first encrypted random number and the first hash value; The second random number acquisition unit is used to acquire the second random number corresponding to the proxy server; The second random number encryption unit is used to encrypt the second random number using the public key of the first elliptic curve cryptography encryption key and the elliptic curve cryptography algorithm to obtain the second encrypted random number. The second negotiation key generation unit is used to obtain a second negotiation key using the first random number, the second random number, and the first negotiation key; The second hash value operation unit is used to perform a hash operation on the second negotiation key using the cryptographic hash algorithm to obtain a second hash value; A key negotiation request response generation unit is configured to generate the key negotiation request response based on the second encrypted random number and the second hash value; The second session key negotiation unit is used to return the key negotiation request response to the network management center, so that the network management center can verify the first negotiation key according to the key negotiation request response, and use the first negotiation key as the session key after the first negotiation key is verified. Specifically, the network management center determines that the first negotiation key verification is successful when the second hash value and the third hash value are equal; the third hash value is obtained by performing a hash operation on the third negotiation key using the cryptographic hash algorithm; the third negotiation key is obtained by using the first random number, the second random number, and the first negotiation key; the second random number is obtained by decrypting the second encrypted random number using the private key of the first elliptic curve cryptography encryption key; the second encrypted random number and the second hash value are obtained according to the key negotiation request response; The second cryptographic algorithm includes a message authentication code generation algorithm; the quantum network data is generated based on a first digest value corresponding to the plaintext and ciphertext; the first digest value is obtained by performing a hash operation on the plaintext and the session key using the message authentication code generation algorithm; the quantum network device control module includes: The second digest value calculation submodule is used to perform a hash operation on the plaintext data and the session key using the message authentication code generation algorithm to obtain the second digest value. The quantum network device control submodule is used to determine that the plaintext data verification is successful when the first digest value is equal to the second digest value, and to control the quantum network device according to the control command indicated by the plaintext data after the plaintext data verification is successful.
18. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of a quantum network data encryption method based on a cryptographic algorithm as described in any one of claims 1-5 or 6-10.
19. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of a quantum network data encryption method based on a cryptographic algorithm as described in any one of claims 1-5 or 6-10.
Citation Information
Patent Citations
Authenticating Plaintext And Ciphertext In A Vehicle-To-Everything (V2X) Message
US20220295274A1
Service processing method and apparatus
WO2016141513A1
