VPN communication link encryption method and device based on key negotiation and medium

Through signature and certificate identity authentication and key negotiation, an encrypted communication link is constructed, which solves the risks of forgery, tampering and replay of data transmission in the new load management system, improves the authenticity and security of data transmission, and prevents unauthorized access Modifications and Disclosures.

CN118590303APending Publication Date: 2024-09-03ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410843260.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

In new load management systems, communication links lack protection measures, and there is a risk of data being intercepted, forged, tampered with, and replayed. Malicious code intrusions cannot be effectively prevented, affecting the security and authenticity of data transmission.

Method used

By obtaining signatures and certificates for identity authentication, determine the legitimacy of access data, and use key exchange protocols to negotiate keys between the secure access gateway and business terminals, build encrypted communication links, optimize communication links, and use multi-channel Encrypted operations to reduce the risk of forgery, tampering, and replay.

Benefits of technology

By establishing a secure communication link, the security, confidentiality and non-repudiation of data are guaranteed, effectively preventing unauthorized modification and leakage, and improving the authenticity and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590303A
    Figure CN118590303A
Patent Text Reader

Abstract

The invention discloses a VPN communication link encryption method and device based on key negotiation and a medium, and the method comprises the following specific steps: obtaining a signature and a certificate, carrying out the identity authentication of access data, and determining the legality of the access data; if the access data is legal, obtaining a key exchange protocol to carry out key negotiation on the security access gateway and the service terminal, and constructing a communication link; monitoring external inflow data based on a CAL protocol message, and optimizing a communication link; and performing multi-channel encryption operation on the optimized communication link to obtain an encrypted communication link. According to the data transmission method, the communication link is constructed by performing multiple verification on the data, and the communication link is optimized and encrypted, so that the risks of counterfeiting, tampering and replaying in the data transmission process are reduced, and the authenticity of data transmission is improved. Transmission is carried out through a secure communication link, so that the security, confidentiality and non-repudiation of the data can be ensured, and unauthorized modification, replacement and leakage on the communication link are effectively prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of encrypted data processing, and in particular to a VPN communication link encryption method, device and medium based on key negotiation. Background Art

[0002] During the operation and use of virtual power plants, distributed photovoltaics and new energy storage access, the security of the new load management system is crucial to its operation. During the collection process of the new load management system, if it is attacked and data is leaked, it will seriously affect the normal electricity consumption of residents and enterprises. At present, the new load management system has used cryptographic machines and ESAM chips to perform application layer encryption protection on downlink control and parameter setting commands. Since the new load management system uses wireless networks as transmission channels between the master station and the terminal, the network is highly open, and the communication link between the master station and the terminal lacks protection measures, there is a risk of interception, forgery, and tampering of the transmitted data, and technical means are needed to encrypt and protect the transmission link.

[0003] When a terminal accesses the main station, attackers usually forge the terminal identity to access the main station, so terminal identity authentication is required. After data verification, there is a risk of downlink control, parameter setting or uplink acquisition data being forged, tampered with, or replayed during data transmission. If this is not possible, the dedicated State Grid Corporation security application layer protocol message can be stripped or encapsulated. When external data flows in, there is a risk of malicious code intrusion.

[0004] The present invention proposes a solution to the above-mentioned disadvantages as follows:

[0005] By obtaining signatures and certificates, the access data is authenticated to determine the legitimacy of the access data; if the access data is legitimate, the key exchange protocol is obtained to negotiate the key between the secure access gateway and the service terminal to build a communication link; based on the CAL protocol message, the external incoming data is monitored to optimize the communication link; the optimized communication link is multi-channel encrypted to obtain an encrypted communication link. By performing multiple verifications on the data, building a communication link, and optimizing and encrypting the communication link, the risk of forgery, tampering, and replay during data transmission is reduced, and the authenticity of data transmission is improved. Transmission through a secure communication link can ensure the security, confidentiality, and non-repudiation of data, and effectively prevent unauthorized modification, replacement, and leakage on the communication link. Summary of the invention

[0006] The technical problem to be solved by the present invention is that there is a risk of data being forged, tampered with, and replayed during the data transmission process, and the authenticity of the data transmission is poor. The purpose is to provide a VPN communication link encryption method, device and medium based on key negotiation. By judging the legitimacy of the access data, a key exchange protocol is obtained on this basis to negotiate the key between the secure access gateway and the service terminal, establish a communication link, and optimize and encrypt the communication link, thereby reducing the risk of data being forged, tampered with, and replayed during the data transmission process and improving the authenticity of the data transmission.

[0007] The present invention is achieved through the following technical solutions:

[0008] The first aspect of the present invention provides a VPN communication link encryption method based on key negotiation, comprising the following specific steps:

[0009] Obtain signatures and certificates, authenticate access data, and determine the legitimacy of access data;

[0010] If the access data is legal, obtain the key exchange protocol to negotiate the key between the secure access gateway and the service terminal to establish a communication link;

[0011] The key negotiation specifically includes:

[0012] S1, obtain the CAL protocol to send a session request to the secure access gateway and generate user credentials;

[0013] S2. After receiving the session request, the secure access gateway starts authentication negotiation and checks the validity of the user credentials;

[0014] If the user credentials are valid, the terminal information is queried locally;

[0015] If the query fails, a first message is sent to the terminal;

[0016] If the query is successful, jump to S4;

[0017] S3. The terminal receives the first message, selects a random number, determines a random number credential based on the random number, and compares the random number credential with the user credential. If the credentials are consistent, the terminal encapsulates its own key information into a terminal basic information response message and sends it to the secure access gateway;

[0018] S4. The secure access gateway generates a session key material and a serial number according to the acquired basic information of the terminal, performs cryptographic operation on the session key material and the serial number, and then encapsulates the encapsulated session key material and the serial number into a second message and sends the message to the terminal;

[0019] S5. The terminal processes the second message and verifies the signature value;

[0020] S6. After verification, decryption is performed to generate session key material, and the session key check value is calculated based on the session key material;

[0021] Monitor external inflow data based on CAL protocol messages and optimize communication links;

[0022] Perform multi-path encryption operations on the optimized communication link to obtain an encrypted communication link.

[0023] The present invention determines the legitimacy of access data, obtains a key exchange protocol on this basis to negotiate keys between the secure access gateway and the service terminal, builds a communication link, and optimizes and encrypts the communication link, thereby reducing the risk of forgery, tampering, and replay during data transmission and improving the authenticity of data transmission. By establishing a secure communication link, all subsequent management data is transmitted through the secure communication link, which can ensure the security, confidentiality, and non-repudiation of the data and effectively prevent unauthorized modification, replacement, and leakage on the communication link.

[0024] Furthermore, the generating of user credentials specifically includes:

[0025] Get user parameters, verify the LDAP directory in the user parameters, and generate a SAML authentication response after successful verification;

[0026] Call the STS service through the SAML authentication response to generate user credentials;

[0027] The checking of the validity of the user credentials includes:

[0028] Define a policy file, access the user credential permissions according to the policy file, and judge the validity of the token value of the user credential. If the token value is valid, the user credential is valid.

[0029] Further, determining the random number certificate according to the random number specifically includes:

[0030] The terminal selects a random number and generates a private key, and uses the private key to construct a commitment value for auxiliary commitment signing, including:

[0031] Generate a random commitment value using the key and save the commitment value together with the original message;

[0032] Generate a signature using the original message, commitment value, and key, and verify the signature together with the original message, verifying the validity of the signature based on the public key;

[0033] If valid, the commitment value is used to calculate the digest of the original message

[0034] Compare the calculated digest with the digest of the original message. If they are consistent, the signature is valid and an auxiliary commitment signature is performed.

[0035] A random number pair is used to perform a deblinding operation based on the auxiliary commitment signature to obtain a random number certificate.

[0036] Furthermore, the key verification value calculation step includes:

[0037] Obtain the key component as an encryption key;

[0038] Use SM1 / SM4 cryptographic algorithm to encrypt 32 bytes of all-0 plaintext data;

[0039] The encryption result is used as the key verification value.

[0040] Furthermore, during the key negotiation process, the secure access gateway generates a multi-key structure to perform hierarchical protection on the key negotiation, and the multi-key structure includes:

[0041] Generate a local master key to protect the device key and sub-master key stored in the secure access gateway;

[0042] Device key, used for certificate issuance and key negotiation;

[0043] The secondary master key is used to protect the negotiation process of the session key;

[0044] Session key, used for security protection of access data.

[0045] Further, the optimized communication link includes:

[0046] Verify the correctness of the key exchange protocol. If the verification result is correct, strip or encapsulate the external data message flowing into the communication link;

[0047] The correctness verification of the key exchange protocol specifically includes:

[0048] Obtain the key data of SM1 stored in the secure access gateway to ensure correctness;

[0049] The secure access gateway periodically uses the key data to verify the correctness of the SM1 algorithm;

[0050] When the correctness verification of the cryptographic algorithm fails, the communication link will be stopped and an alarm message will be generated.

[0051] Further, the stripping or encapsulating of the communication link access data message specifically includes:

[0052] Identify the access data, obtain the corresponding CAL protocol message, and strip or encapsulate the access data;

[0053] Check external incoming data and discard messages that do not comply with the CAL protocol or are malformed.

[0054] Furthermore, the multi-channel encryption operation specifically includes:

[0055] Use multiple PC I password cards to perform password operations simultaneously;

[0056] It also monitors multiple PC I password cards. When any password card works abnormally, the gateway will automatically dispatch the password calculation task to the password card that works normally.

[0057] A second aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a VPN communication link encryption method based on key negotiation is implemented.

[0058] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a VPN communication link encryption method based on key negotiation.

[0059] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0060] By judging the legitimacy of access data, the key exchange protocol is obtained on this basis to negotiate keys between the secure access gateway and the service terminal, build a communication link, and optimize and encrypt the communication link to reduce the risk of forgery, tampering, and replay during data transmission, and improve the authenticity of data transmission;

[0061] By establishing a secure communication link, all subsequent management data is transmitted through the secure communication link, which can ensure the security, confidentiality and non-repudiation of the data and effectively prevent unauthorized modification, replacement and leakage on the communication link. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 The figure is a flow chart of a VPN communication link encryption method in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0064] The preferred implementation methods of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these implementation methods are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0065] like Figure 1 As shown, the first aspect of this embodiment provides a VPN communication link encryption method based on key negotiation, including the following specific steps:

[0066] Obtain signatures and certificates, authenticate access data, and determine the legitimacy of access data;

[0067] If the access data is legal, obtain the key exchange protocol to negotiate the key between the secure access gateway and the service terminal to establish a communication link;

[0068] The key negotiation specifically includes:

[0069] S1, obtain the CAL protocol to send a session request to the secure access gateway and generate user credentials;

[0070] S2. After receiving the session request, the secure access gateway starts the authentication negotiation and checks the validity of the user credentials. After receiving the session request sent by the user, the secure access gateway uses the IDP public key and public parameters to verify the validity of the user credentials, that is, to verify the password hash value and the user's biometric key hash value. If the verification is successful, it means that the user has the corresponding password and biometric key in the credential. When the user credential is verified to be valid, the terminal information is queried locally.

[0071] If the query fails, a first message is sent to the terminal to request to establish a communication connection;

[0072] If the query is successful, jump to S4;

[0073] S3. The terminal receives the first message, selects a random number, determines a random number credential based on the random number, and compares the random number credential with the user credential. If the credentials are consistent, the terminal encapsulates its own key information into a terminal basic information response message and sends it to the secure access gateway;

[0074] S4. The secure access gateway generates a session key material and a serial number according to the acquired basic information of the terminal, performs cryptographic operation on the session key material and the serial number, and then encapsulates the encapsulated session key material and the serial number into a second message and sends the message to the terminal;

[0075] S5. The terminal processes the second message and verifies the signature value;

[0076] S6. After verification, decryption is performed to generate session key material, and the session key check value is calculated based on the session key material;

[0077] Monitor external inflow data based on CAL protocol messages and optimize communication links;

[0078] Perform multi-path encryption operations on the optimized communication link to obtain an encrypted communication link.

[0079] This embodiment determines the legitimacy of the access data, obtains the key exchange protocol on this basis to negotiate the key between the secure access gateway and the service terminal, builds a communication link, and optimizes and encrypts the communication link, reduces the risk of forgery, tampering, and replay during data transmission, and improves the authenticity of data transmission. After accessing the data, firstly, the identity is authenticated between the client and the secure access gateway by using the identity of the administrator, and after authentication, the key negotiation is performed according to the key exchange protocol. During the key negotiation process, the communication data is verified multiple times, and the random number certificate is used for verification to ensure the confidentiality of the verification process. After the verification is passed, a secure communication link is established. All subsequent management data is transmitted through the secure communication link, which can ensure the security, confidentiality and non-repudiation of the data, and effectively prevent unauthorized modification, replacement and leakage on the communication link. By taking a variety of security protection measures to ensure the security of the secure access gateway, in the process of use, once a security threat occurs, the secure access gateway can protect the security of the new load management system acquisition business system and reduce the security threat and damage to the entire business system.

[0080] The first message is a synchronization message sent by the terminal to the secure access gateway for establishing a connection, and includes a synchronization sequence number.

[0081] In some possible embodiments, when a terminal accesses the main station, the device needs to use the terminal's identity certificate and key, and adopt an identity authentication mechanism based on digital signatures to verify the legitimacy of the access data, allowing only legitimate terminals to access, thereby reducing the possibility of attackers forging terminal identities to access the main station.

[0082] In some possible embodiments, generating user credentials specifically includes: obtaining user parameters, verifying the LDAP directory in the user parameters, and generating a SAML authentication response after successful verification; calling an STS service through the SAML authentication response to generate user credentials;

[0083] The checking of the validity of the user credentials includes: defining a policy file, accessing the user credential authority according to the policy file, and judging the validity of the token value of the user credential. If the token value is valid, the user credential is valid.

[0084] In some possible embodiments, determining a random number credential based on a random number specifically includes: the terminal selects a random number and generates a private key, and uses the private key to construct a commitment value for an auxiliary commitment signature, specifically including: using the key to generate a random commitment value, and saving the commitment value together with the original message; using the original message, the commitment value and the key to generate a signature, and verifying the signature together with the original message, and verifying the validity of the signature based on the public key; if valid, using the commitment value to calculate the digest of the original message; comparing the calculated digest with the digest of the original message, if they are consistent, the signature is valid, and an auxiliary commitment signature is performed; using a random number pair to perform a de-blinding operation based on the auxiliary commitment signature to obtain a random number credential.

[0085] In some possible embodiments, the secure access gateway VPN uses the SM1, SM2, SM3 and SM4 algorithms approved by the National Cryptography Bureau. Symmetric cryptographic algorithms (SM1 / SM4) are used to implement data encryption, decryption, message code authentication, and key distribution protection based on symmetric cryptographic algorithms; asymmetric cryptographic algorithm SM2 is used to implement signature, verification, and key exchange protection; and hash cryptographic algorithm SM3 is used to implement data integrity protection. In addition, the correctness of each cryptographic algorithm will be automatically detected in the self-check at each startup of the secure access gateway. The self-check program uses the standard data of the SM1, SM2, SM3, and SM4 cryptographic algorithms to call the algorithm of the cryptographic operation module to verify its correctness. Only when all cryptographic algorithms pass the correctness check will the secure access gateway provide cryptographic services to the business system. If the correctness of any algorithm fails to pass the check, the secure access gateway will stop the cryptographic service after recording the abnormal log.

[0086] In some possible embodiments, during the key negotiation process, the secure access gateway generates a multi-key structure to perform hierarchical protection on the key negotiation, and the multi-key structure includes: generating a local master key for protecting the device key and secondary master key stored in the secure access gateway; the device key is used for certificate issuance and key negotiation; the secondary master key is used to protect the negotiation process of the session key; and the session key is used for the security protection of access data.

[0087] In some possible embodiments, the key negotiation between the secure access gateway and the service terminal specifically includes:

[0088] S1. Obtain the CAL protocol and send a login message to the secure access gateway;

[0089] S2. After receiving the session request, the secure access gateway starts the authentication negotiation and checks the validity of the user credentials. After receiving the session request sent by the user, the secure access gateway uses the IDP public key and public parameters to verify the validity of the user credentials, that is, to verify the password hash value and the user's biometric key hash value. If the verification is successful, it means that the user has the corresponding password and biometric key in the credential. When the user credential is verified to be valid, the terminal information is queried locally.

[0090] If the query fails, a "get basic terminal information" message is sent to the terminal;

[0091] If the query is successful, jump to S4;

[0092] S3. When the terminal receives the "Get Terminal Basic Information" message, the terminal selects a random number, determines the random number credential based on the random number, and compares the random number credential with the user credential. If the credentials are consistent, the terminal encapsulates its own key information into a terminal basic information response message and sends it to the secure access gateway; wherein determining the random number credential based on the random number specifically includes: the terminal selects a random number and generates a private key, uses the private key to construct an auxiliary commitment for signing, obtains a blind signature, uses a random number to perform a blind operation on the blind signature, and obtains a random number credential.

[0093] S4. The secure access gateway generates a session key material and a serial number based on the acquired terminal basic information, performs cryptographic operations on the session key material and the serial number, and encapsulates them into an "obtain terminal basic information" message, which is sent to the terminal.

[0094] The secure access gateway obtains the serial number by obtaining the basic information of the terminal, and participates in the negotiation after adding 1 to the serial number. After the terminal receives the negotiation request message sent by the gateway, it checks whether the serial number value is greater than the serial number value maintained locally by the terminal. If it is not greater than the local serial number value of the terminal, the negotiation is rejected and the corresponding error code is returned. After the negotiation is successful, the terminal serial number value is increased by 1;

[0095] S5. The terminal processes the "obtain terminal basic information" message and verifies the signature value;

[0096] S6. After verification, decryption is performed to generate session key material, and the session key check value is calculated based on the session key material;

[0097] The session key material includes a 32-byte random number generated by the gateway and a 32-byte random number generated by the terminal. The session key material must be regenerated for each negotiation.

[0098] The key check value calculation steps include: obtaining the key component as the encryption key; using the SM1 / SM4 cryptographic algorithm to perform encryption operation on the 32-byte all-0 plaintext data; and using the encryption result as the key check value. The key check value is used for key component entry / import and key synthesis, and is calculated by the secure access gateway and displayed to the administrator for record or comparison confirmation to determine whether the imported component or synthesized key is correct.

[0099] In some possible embodiments, optimizing the communication link includes:

[0100] The key exchange protocol is verified for correctness. If the verification result is correct, the external incoming data message of the communication link is stripped or encapsulated.

[0101] In some possible embodiments, during the data access process, in order to ensure the stability and reliability of the accessed data and the integrity of the key information and configuration information, the self-checking measures are used to check the correctness of the key exchange protocol. The correctness verification of the key exchange protocol specifically includes:

[0102] The security access gateway stores a key data of SM1 with guaranteed correctness, and obtains the key data of SM1 with guaranteed correctness stored in the security access gateway;

[0103] The secure access gateway periodically uses the key data to verify the correctness of the SM1 algorithm;

[0104] When the correctness verification of the cryptographic algorithm fails, the communication link will be stopped and an alarm message will be generated.

[0105] In some possible embodiments, key management is also included. Key management is the core security function of the secure access gateway. The secure access gateway is designed with complete key management measures, and the protection of keys covers the entire life cycle of the keys.

[0106] In some possible embodiments, the secure access gateway has three states: initial state, management state, and working state. When the device leaves the factory, it is in the initial state by default; after using a dedicated management tool to generate a local master key and create an administrator, the device is in the management state; when the device configuration is completed, the authorized administrator can switch the device to the working state through the management software.

[0107] The secure access gateway provides security services for the business only when it is in working state. In the working state, the secure access gateway will parse the user business data according to the CAL protocol. The data packets that comply with the protocol will be processed by key negotiation, encryption and decryption, etc., and the data packets that do not comply with the protocol will be discarded. Therefore, the stripping or encapsulation of the communication link access data message specifically includes: identifying the access data, obtaining the corresponding CAL protocol (security application layer protocol) message, stripping or encapsulating the data; checking the external inflow data, and discarding the messages that do not comply with the CAL protocol or the malformed messages.

[0108] In some possible embodiments, the multi-channel encryption operation specifically includes:

[0109] Use multiple PC I password cards to perform password operations simultaneously;

[0110] It also monitors multiple PCI password cards. When any password card works abnormally, the gateway will automatically dispatch the password calculation tasks to the password card that is working normally. The secure access gateway can support up to three PCI self-developed password cards to provide password calculation processing for the gateway at the same time. The password calculation is automatically scheduled by the gateway and load balanced to each PCI password card. This design not only improves the password calculation capability of the secure access gateway, but also, through real-time monitoring of the working status of the PCI password card, when any one or two password cards work abnormally, the gateway automatically dispatches the password calculation tasks to the password card that is working normally, thereby improving the ability of the secure access gateway to continue to provide services to applications.

[0111] In some possible embodiments, the secure access gateway adopts a dual-stress emergency protection mechanism to more comprehensively protect the security of internally stored keys and sensitive information. The secure access gateway supports both active and passive key destruction methods. First, the user can actively destroy keys and other information when necessary; second, when the secure access gateway is physically disassembled, the device sensor will be triggered to quickly destroy the keys and sensitive information stored internally.

[0112] A second aspect of this embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a VPN communication link encryption method based on key negotiation is implemented.

[0113] A third aspect of this embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a VPN communication link encryption method based on key negotiation is implemented.

[0114] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0115] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and rules of the present invention shall be included in the protection scope of the present invention.

Claims

1. A VPN communication link encryption method based on key negotiation, It is characterized in that The specific steps include: Obtain signatures and certificates, authenticate access data, and determine the legitimacy of access data; If the access data is legal, obtain the key exchange protocol to negotiate the key between the secure access gateway and the service terminal to establish a communication link; The key negotiation specifically includes: S1, obtain the CAL protocol to send a session request to the secure access gateway and generate user credentials; S2. After receiving the session request, the secure access gateway starts authentication negotiation and checks the validity of the user credentials; If the user credentials are valid, the terminal information is queried locally; If the query fails, a first message is sent to the terminal; If the query is successful, jump to S4; S3. The terminal receives the first message, selects a random number, determines a random number credential based on the random number, and compares the random number credential with the user credential. If the credentials are consistent, the terminal encapsulates its own key information into a terminal basic information response message and sends it to the secure access gateway; S4. The secure access gateway generates a session key material and a serial number according to the acquired basic information of the terminal, performs cryptographic operation on the session key material and the serial number, and then encapsulates the encapsulated session key material and the serial number into a second message and sends the message to the terminal; S5. The terminal processes the second message and verifies the signature value; S6. After verification, decryption is performed to generate session key material, and the session key check value is calculated based on the session key material; Monitor external inflow data based on CAL protocol messages and optimize communication links; Perform multi-path encryption operations on the optimized communication link to obtain an encrypted communication link.

2. The VPN communication link encryption method based on key negotiation according to claim 1, It is characterized in that Generating user credentials specifically includes: Get user parameters, verify the LDAP directory in the user parameters, and generate a SAML authentication response after successful verification; Call the STS service through the SAML authentication response to generate user credentials; The checking of the validity of the user credentials includes: Define a policy file, access the user credential permissions according to the policy file, and judge the validity of the token value of the user credential. If the token value is valid, the user credential is valid.

3. The VPN communication link encryption method based on key negotiation according to claim 1, It is characterized in that Determining the random number certificate according to the random number specifically includes: The terminal selects a random number and generates a private key, and uses the private key to construct a commitment value for auxiliary commitment signing, including: Generate a random commitment value using the key and save the commitment value together with the original message; Generate a signature using the original message, commitment value, and key, and verify the signature together with the original message, verifying the validity of the signature based on the public key; If valid, the commitment value is used to calculate the digest of the original message; Compare the calculated digest with the digest of the original message. If they are consistent, the signature is valid and an auxiliary commitment signature is performed. A random number pair is used to perform a deblinding operation based on the auxiliary commitment signature to obtain a random number certificate.

4. The VPN communication link encryption method based on key negotiation according to claim 1, It is characterized in that The key verification value calculation step comprises: Obtain the key component as an encryption key; Use SM1 / SM4 cryptographic algorithm to encrypt 32 bytes of all-0 plaintext data; The encryption result is used as the key verification value.

5. The VPN communication link encryption method based on key negotiation according to claim 1, It is characterized in that During the key negotiation process, the secure access gateway generates a multi-key structure to perform hierarchical protection on the key negotiation, and the multi-key structure includes: Generate a local master key to protect the device key and sub-master key stored in the secure access gateway; Device key, used for certificate issuance and key negotiation; The secondary master key is used to protect the negotiation process of the session key; Session key, used for security protection of access data.

6. The VPN communication link encryption method based on key negotiation according to claim 1, It is characterized in that The optimized communication link comprises: Verify the correctness of the key exchange protocol. If the verification result is correct, strip or encapsulate the external data message flowing into the communication link; The correctness verification of the key exchange protocol specifically includes: Obtain the key data of SM1 stored in the secure access gateway to ensure correctness; The secure access gateway periodically uses the key data to verify the correctness of the SM1 algorithm; When the correctness verification of the cryptographic algorithm fails, the communication link will be stopped and an alarm message will be generated.

7. The VPN communication link encryption method based on key negotiation according to claim 5, It is characterized in that The stripping or encapsulating of the communication link access data message specifically includes: Identify the access data, obtain the corresponding CAL protocol message, and strip or encapsulate the access data; Check external incoming data and discard messages that do not comply with the CAL protocol or are malformed.

8. The VPN communication link encryption method based on key negotiation according to claim 1, It is characterized in that The multi-channel encryption operation specifically includes: Use multiple PCI password cards to perform password operations simultaneously; It also monitors multiple PCI password cards. When any password card works abnormally, the gateway will automatically dispatch the password calculation task to the password card that works normally.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the VPN communication link encryption method based on key negotiation as described in any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the VPN communication link encryption method based on key negotiation as described in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Data storage device based on quantum random number in intranet and encryption implementation method thereof

    CN119966608A

  • Data transmission method and device and related equipment

    CN121193687A