Internet of Vehicles secure communication method, user side, equipment and medium

Through the implicit certificate key negotiation process, the symmetric key is negotiated in the Internet of Vehicles for encryption and decryption, which solves the problem of low efficiency of public key encryption in the existing technology and improves the efficiency of secure communication in the Internet of Vehicles.

CN118870352AActive Publication Date: 2024-10-29TSINGHUA UNIVERSITY

Patent Information

Application Number
CN202411079997.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-29
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Public key encryption technology in existing Internet of Vehicles secure communications requires a large amount of calculation, resulting in low efficiency.

Method used

The symmetric key is obtained through the implicit certificate key agreement process, and the message is encrypted and decrypted.

Benefits of technology

It improves the efficiency of secure communication in the Internet of Vehicles and saves time on message encryption and decryption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118870352A_ABST
    Figure CN118870352A_ABST
Patent Text Reader

Abstract

The invention provides an Internet of Vehicles secure communication method, a user side, equipment and a medium, and the method comprises the steps: a request user side negotiates an obtained symmetric key with a response user side according to an implicit certificate key negotiation process; the request user side sends a first encrypted message obtained through symmetric key encryption and an identifier of the request user side to a response user side; the response user side determines the request user side according to the identifier of the request user side, and decrypts the first encrypted message according to the symmetric key to obtain a first message; responding to a second message corresponding to the first message generated by the user side, and encrypting the obtained second encrypted message through the symmetric key; the response user side sends the second encrypted message to the request user side; and the request user side decrypts the second encrypted message according to the symmetric key to obtain a second message. According to the scheme of the invention, the shared key authenticated by the two parties is established based on the implicit certificate, and the efficiency of secure communication of the Internet of Vehicles is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle networking, and in particular to a vehicle networking secure communication method, user terminal, device and medium. Background Art

[0002] Vehicle to Everything (V2X) technology has attracted much attention. The communication scenarios of V2X include secure communication between vehicles, between vehicles and roads, and between vehicles and devices. In practical applications, secure communication of V2X requires signing and encrypting messages to ensure the confidentiality, integrity, and non-repudiation of message transmission during the communication process.

[0003] Among them, confidentiality requires that the message sent by the message sender can only be known to the designated recipient; authenticity requires that the information received by the message recipient is authentic; message integrity requires that the message has not been illegally replaced, added, deleted, etc. during the transmission process; non-repudiation requires that the message sender can prove that the message was sent by himself.

[0004] In some example technologies, messages are signed and encrypted through V2X implicit certificates to ensure confidentiality, integrity and non-repudiation of message transmission during communication. Currently, the message encryption technology of V2X implicit certificates uses public key encryption, which has a large amount of calculation and low efficiency in secure communication of vehicle networks. Summary of the invention

[0005] The present invention provides a method, user terminal, device and medium for secure communication in an Internet of Vehicles, which are used to solve the defect of low efficiency of secure communication in an Internet of Vehicles in the prior art. The message is encrypting and decrypting using a symmetric key obtained through an implicit certificate key negotiation process, thereby improving the efficiency of secure communication in an Internet of Vehicles.

[0006] The present invention provides a method for secure communication in an Internet of Vehicles, which is applied to a requesting user end, and the method comprises: the requesting user end obtains a symmetric key through negotiation with a responding user end according to an implicit certificate key negotiation process; the requesting user end encrypts a first message according to the symmetric key to obtain a first encrypted message; the requesting user end sends the first encrypted message and an identifier of the requesting user end to the responding user end, so that the responding user end determines the requesting user end according to the identifier of the requesting user end, and decrypts the first encrypted message according to the symmetric key to obtain the first message; the requesting user end receives a second encrypted message sent by the responding user end, the second encrypted message is obtained by the responding user end encrypting the second message according to the symmetric key, and the second message is generated by the responding user end based on the first message; the requesting user end decrypts the second encrypted message according to the symmetric key to obtain the second message.

[0007] According to a secure communication method for an Internet of Vehicles provided by the present invention, the requesting user end negotiates with the responding user end to obtain a symmetric key according to an implicit certificate key negotiation process, including: the requesting user end obtains a public key of a certificate authentication center; the requesting user end sends a first certificate application to the certificate authentication center; the requesting user end receives a first implicit certificate and a first declared private key sent by the certificate authentication center; the requesting user end calculates and obtains a private key of the requesting user end and a public key of the requesting user end according to the first implicit certificate, the first declared private key and the public key of the certificate authentication center; the requesting user end selects a first random number, and calculates a temporary public key of the requesting user end according to the first random number and the private key of the requesting user end; the requesting user end generates a first signature value according to the temporary public key of the requesting user end and the first implicit certificate; the requesting user end sends the first signature value, the temporary public key of the requesting user end and the first implicit certificate to the responding user end, so that the responding user end calculates the public key of the requesting user end based on the first implicit certificate and the public key of the certificate authentication center, and verifies the first signature value based on the public key of the requesting user end ; and, after the first signature value is verified, the responding user terminal performs a hash calculation based on the private key of the responding user terminal, the public key of the requesting user terminal, the temporary private key of the responding user terminal, the temporary public key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key; the requesting user terminal receives the second signature value, the temporary public key of the responding user terminal, and the second implicit certificate sent by the responding user terminal; wherein the second signature value is the result of the responding user terminal using the private key of the responding user terminal to calculate the temporary public key of the requesting user terminal, the temporary public key of the responding user terminal, and the ID of the responding user terminal. The second signature value is obtained by signing the temporary public key of the client and the second implicit certificate; the requesting user end calculates the public key of the responding user end according to the second implicit certificate and the public key of the certificate authentication center, and verifies the second signature value by the public key of the responding user end; after the second signature value is verified, the requesting user end performs a hash calculation based on the private key of the requesting user end, the public key of the responding user end, the temporary public key of the responding user end, the temporary private key of the requesting user end, the ID of the requesting user end, and the ID of the responding user end to obtain the negotiated key.

[0008] According to a secure communication method for the Internet of Vehicles provided by the present invention, before the requesting user terminal selects a first random number and calculates a temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal, the method also includes: the requesting user terminal verifies whether the relationship between the private key of the requesting user terminal and the public key of the requesting user terminal on the elliptic curve holds; the requesting user terminal selects a first random number and calculates the temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal, specifically including: if the relationship between the private key of the requesting user terminal and the public key of the requesting user terminal on the elliptic curve is verified, the requesting user terminal selects a first random number and calculates the temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal.

[0009] The present invention also provides a method for secure communication in an Internet of Vehicles, which is applied to a responding user end, and the method includes: the responding user end negotiates with a requesting user end to obtain a symmetric key according to an implicit certificate key negotiation process; the responding user end receives a first encrypted message sent by the requesting user end and an identifier of the requesting user end, the first encrypted message being obtained by the requesting user end encrypting the first message according to the symmetric key; the responding user end determines the requesting user end according to the identifier of the requesting user end; the responding user end decrypts the first encrypted message according to the symmetric key to obtain the first message; the responding user end generates a second message based on the first message, and encrypts the second message according to the symmetric key to obtain a second encrypted message; the responding user end sends the second encrypted message to the requesting user end, so that the requesting user end decrypts the second encrypted message according to the symmetric key to obtain the second message.

[0010] According to a secure communication method for an internet of vehicles provided by the present invention, the responding user end negotiates with the requesting user end to obtain a symmetric key according to an implicit certificate key negotiation process, including: the responding user end obtains the public key of a certificate authentication center; the responding user end sends a second certificate application to the certificate authentication center; the responding user end receives a second implicit certificate and a second declared private key sent by the certificate authentication center; the responding user end calculates and obtains the private key of the responding user end and the public key of the responding user end based on the second implicit certificate, the second declared private key and the public key of the certificate authentication center; the responding user end selects a second random number, and calculates a temporary public key of the responding user end based on the second random number and the private key of the responding user end; the responding user end receives a first signature value sent by the requesting user end, the temporary public key of the requesting user end and the first implicit certificate; the responding user end calculates and obtains the public key of the requesting user end based on the first implicit certificate and the public key of the certificate authentication center, and verifies the first signature value based on the public key of the requesting user end; the responding user end verifies the first signature value After passing, a hash calculation is performed based on the private key of the responding user terminal, the public key of the requesting user terminal, the temporary private key of the responding user terminal, the temporary public key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key; the responding user terminal signs the temporary public key of the requesting user terminal, the temporary public key of the responding user terminal, and the second implicit certificate by the private key of the responding user terminal to obtain a second signature value; the responding user terminal sends the second signature value, the temporary public key of the responding user terminal, and the second implicit certificate to the requesting user terminal, so that the requesting user terminal calculates the public key of the responding user terminal according to the second implicit certificate and the public key of the certificate authentication center, and verifies the second signature value by the public key of the responding user terminal; and, after the second signature value is verified, the requesting user terminal performs a hash calculation based on the private key of the requesting user terminal, the public key of the responding user terminal, the temporary public key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key.

[0011] According to a secure communication method for an internet of vehicles provided by the present invention, before the responding user terminal selects a second random number and calculates a temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal, the method further includes: the responding user terminal verifies whether the relationship between the private key of the responding user terminal and the public key of the responding user terminal on the elliptic curve holds; the responding user terminal selects a second random number and calculates the temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal, specifically including: if the relationship between the private key of the responding user terminal and the public key of the responding user terminal on the elliptic curve is verified, the responding user terminal selects a second random number and calculates the temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal.

[0012] The present invention also provides a requesting user end, comprising: a first negotiation module, used to negotiate with a responding user end to obtain a symmetric key according to an implicit certificate key negotiation process; a first encryption module, used to encrypt a first message according to the symmetric key to obtain a first encrypted message; a first sending module, used to send the first encrypted message and an identifier of the requesting user end to the responding user end, so that the responding user end determines the requesting user end according to the identifier of the requesting user end, and decrypts the first encrypted message according to the symmetric key to obtain the first message; a first receiving module, used to receive a second encrypted message sent by the responding user end, the second encrypted message is obtained by the responding user end encrypting the second message according to the symmetric key, and the second message is generated by the responding user end based on the first message; a first decryption module, used to decrypt the second encrypted message according to the symmetric key to obtain the second message.

[0013] The present invention also provides a responding user terminal, including: a second negotiation module, used to negotiate with a requesting user terminal to obtain a symmetric key according to an implicit certificate key negotiation process; a second receiving module, used to receive a first encrypted message sent by the requesting user terminal and an identifier of the requesting user terminal, the first encrypted message being obtained by the requesting user terminal encrypting the first message according to the symmetric key; a determination module, used to determine the requesting user terminal according to the identifier of the requesting user terminal; a second decryption module, used to decrypt the first encrypted message according to the symmetric key to obtain the first message; a generation module, used to generate a second message based on the first message; a second encryption module, used to encrypt the second message according to the symmetric key to obtain a second encrypted message; and a second sending module, used to send the second encrypted message to the requesting user terminal, so that the requesting user terminal decrypts the second encrypted message according to the symmetric key to obtain the second message.

[0014] The present invention also 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, the vehicle network safety communication method described above is implemented.

[0015] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the vehicle network security communication method as described in any one of the above is implemented.

[0016] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned vehicle network security communication methods.

[0017] In the user end, device and medium of the vehicle network security communication method provided by the present invention, during the vehicle network security communication process, the symmetric key obtained through the implicit certificate key negotiation process is used to encrypt and decrypt the message. Compared with the public key encryption and decryption method, the time for message encryption and decryption is saved and the efficiency of vehicle network security communication is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 This is one of the flow charts of the vehicle network security communication method provided by the present invention.

[0020] Figure 2 This is the second flow chart of the vehicle network security communication method provided by the present invention.

[0021] Figure 3 This is the third flow chart of the vehicle network security communication method provided by the present invention.

[0022] Figure 4 This is the fourth flow chart of the vehicle network security communication method provided by the present invention.

[0023] Figure 5 It is an interactive flow chart of the vehicle network security communication method provided by the present invention.

[0024] Figure 6 It is a structural diagram of a requesting user terminal provided by the present invention.

[0025] Figure 7 It is a structural diagram of the response user terminal provided by the present invention.

[0026] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Figure 1-Figure 4 The invention describes the vehicle network security communication method.

[0029] Figure 1 It is one of the flow charts of the vehicle networking security communication method provided by the present invention, such as Figure 1 As shown, the method includes the following steps 101 to 105.

[0030] In practical applications, the execution subject of the vehicle networking safety communication method can be a requesting user end, and there are many ways to implement the requesting user end, for example, it can be implemented through a computer program, such as application software, etc.; or, for example, a chip, etc. It can also be implemented as a medium storing relevant computer programs, such as a USB flash drive, a cloud disk, etc.; or, it can also be implemented through a physical device that integrates or installs relevant computer programs, such as a server, etc.

[0031] Step 101: The requesting client negotiates with the responding client to obtain a symmetric key according to the implicit certificate key negotiation process.

[0032] In practical applications, Vehicle to Everything (V2X) refers to an open mobile self-organizing network with vehicles, roadside units and pedestrians as nodes in a traffic environment. The V2X combines the global positioning system and wireless communication technologies, such as wireless LAN and cellular networks, to establish wireless multi-hop connections, providing high-speed data access services for vehicles in high-speed mobile states, so as to realize information interaction between vehicles and other devices. By integrating diverse information, the V2X can develop personalized applications for different users and provide travelers with more convenient and safe transportation services.

[0033] In this embodiment, the requesting user end refers to the user end that initiates communication, and the responding user end is the user end that communicates with the requesting user end. In one example, the requesting user end may be a vehicle, and the responding user end may be a vehicle, a road unit, a mobile device, a cloud network, etc. In another example, the requesting user end may be a road unit, another vehicle, a mobile device, a cloud network, etc., and the responding user end may be a vehicle.

[0034] Among them, the implicit certificate (Elliptic Curve Qu-Vanstone Implicit Certificate, referred to as ECQV) has the characteristics of small data volume and fast processing speed. It can be understood that the requesting user end negotiates with the responding user end according to the implicit certificate key negotiation process to obtain the symmetric key , and in the communication process between the requesting user end and the responding user end, according to the symmetric key Encrypting and decrypting messages can ensure the security of secure communications in the Internet of Vehicles.

[0035] In practical applications, symmetric keys It refers to the key obtained through negotiation between the requesting user end and the responding user end according to the implicit certificate key negotiation process, and the requesting user end and the responding user end use the same key. It can be understood that during the secure communication of the Internet of Vehicles, the requesting user end and the responding user end use the symmetric key. Encrypting or decrypting messages can reduce the amount of encryption and decryption computations during secure communications in the Internet of Vehicles. Compared with public key encryption and decryption, it saves the time for message encryption and decryption and improves the efficiency of secure communications in the Internet of Vehicles.

[0036] It should be noted that the requesting user end and the responding user end in this embodiment are only used as examples of a communication process. Combined with the above description, during the vehicle network security communication process, the vehicle can communicate with multiple devices, such as road units, other vehicles, mobile devices, etc. In practical applications, vehicles, road units, other vehicles and mobile devices can be used as both requesting user ends and responding user ends.

[0037] Step 102: Request the user end to encrypt the first message according to the symmetric key to obtain a first encrypted message.

[0038] Specifically, the requesting user terminal generates or obtains a first message based on the current communication demand. As an example, the first message is represented by M. Further, the requesting user terminal generates or obtains a first message based on the symmetric key Encrypt the first message M to obtain a first encrypted message .

[0039] Step 103: The requesting user terminal sends the first encrypted message and the identifier of the requesting user terminal to the responding user terminal, so that the responding user terminal determines the requesting user terminal according to the identifier of the requesting user terminal, and decrypts the first encrypted message according to the symmetric key to obtain the first message.

[0040] The identifier of the requesting user terminal uniquely represents the requesting user terminal and is used by other users to identify the requesting user terminal. For example, the identifier of the requesting user terminal is represented as It is understandable that the responding user terminal responds to the requesting user terminal's identifier The requesting user end can be determined, that is, the user end of the current communication can be determined.

[0041] Combined with the above description, the requesting client negotiates with the responding client to obtain the symmetric key according to the implicit certificate key negotiation process , so the responding client also has the symmetric key Specifically, the user terminal is requested to send the first encrypted message and the requesting client's identifier After sending it to the responding client, the responding client responds to the requesting client based on its ID. The requesting client can be identified; the responding client can be identified based on the symmetric key For the first encrypted message Decryption is performed to obtain the first message M.

[0042] Optionally, in order to further ensure the reliability of secure communication in the Internet of Vehicles, in one example, the first encrypted message and the requesting client's identifier The requesting user terminal sends the first message data to the responding user terminal. Correspondingly, after receiving the first message data, the responding user terminal parses the first message data to obtain a first encrypted message. and the requesting client's identifier The client responds based on the symmetric key For the first encrypted message Decryption is performed to obtain the first message M.

[0043] Step 104: The requesting user terminal receives a second encrypted message sent by the responding user terminal. The second encrypted message is obtained by the responding user terminal encrypting the second message according to the symmetric key. The second message is generated by the responding user terminal based on the first message.

[0044] In actual applications, the responding user end uses the symmetric key For the first encrypted message After decryption and obtaining the first message M, the current communication demand can be determined according to the first message M, and the second message N can be generated or obtained based on the first message M. It can be understood that the first message M corresponds to the second message N. For example, the first message M is an access request, and the second message N is a reply of granting access or a reply of denying access. For another example, the first message M is a request for obtaining data, and the second message N is the data to be obtained.

[0045] Further, the responding user terminal uses the symmetric key Encrypt the second message N to obtain a second encrypted message In combination with the above description, the responding user terminal can determine the requesting user terminal of the current communication according to the identifier of the requesting user terminal. Further, the requesting user terminal receives the second encrypted message sent by the responding user terminal. .

[0046] Step 105: Request the user end to decrypt the second encrypted message according to the symmetric key to obtain a second message.

[0047] Combined with the above description, the requesting client negotiates with the responding client to obtain the symmetric key according to the implicit certificate key negotiation process Specifically, the client is requested to use the symmetric key The second encrypted message Decrypt and obtain the second message N.

[0048] Optionally, in order to further ensure the reliability of secure communication in the Internet of Vehicles, in one example, the user terminal sends the second encrypted message The responding user terminal sends the second message data to the requesting user terminal. Correspondingly, after receiving the second message data, the requesting user terminal parses the second message data to obtain a second encrypted message. . Request the client to use the symmetric key The second encrypted message Decrypt and obtain the second message N.

[0049] In this embodiment, during the secure communication of the Internet of Vehicles, the symmetric key obtained through the implicit certificate key negotiation process is used to encrypt and decrypt messages, which can ensure the security of the secure communication of the Internet of Vehicles. In addition, compared with the public key encryption and decryption method, it saves the time for message encryption and decryption and improves the efficiency of secure communication of the Internet of Vehicles.

[0050] In addition, for the implicit certificate key negotiation process, in a possible implementation, Figure 2 This is a second flow chart of the vehicle networking security communication method provided by the present invention, such as Figure 2 As shown, the above step 101 includes: steps 201 to 209.

[0051] Step 201: Request the client to obtain the public key of the certificate authority.

[0052] Step 202: Request the user terminal to send a first certificate application to a certificate authentication center.

[0053] Step 203: Request the user end to receive the first implicit certificate and the first declared private key sent by the certificate authentication center.

[0054] In actual applications, the public key of the pre-made certificate authentication center is used by the requesting client and the responding client. Specifically, the requesting user terminal sends a first certificate application to a certificate authentication center to receive a first implicit certificate and a first declared private key sent by the certificate authentication center. As an example, the first certificate request includes an identifier of the requesting user terminal. and request a random point of the elliptic curve generated by the client In actual applications, the user is requested to generate a random number , request the user end to use the random number Generate random points on elliptic curve , , where G is the base point of the elliptic curve. Correspondingly, the certificate authentication center Identify the requesting client and use random points based on the elliptic curve Generate the first declaration public key , , where k is a random number on a non-zero n-order finite field selected by the certificate authentication center. , first declared public key , the certificate authentication center's identifier, the certificate authentication center's information, and generate the first implicit certificate Furthermore, the certificate authority authenticates the first implicit certificate Perform hash calculation to obtain the first implicit certificate The corresponding hash value , Furthermore, the certificate authority uses the hash value and the private key of the certificate authority Generate the first declaration private key , , where n is the order of the elliptic curve base point G. Further, the certificate authority sends the first implicit certificate and the first declared private key Correspondingly, the requesting client receives the first implicit certificate sent by the certificate authentication center. and the first declared private key .

[0055] Step 204: The requesting user terminal calculates and obtains the private key and the public key of the requesting user terminal according to the first implicit certificate, the first declared private key and the public key of the certificate authentication authority.

[0056] Specifically, the client is requested to provide the first implicit certificate By performing hash calculation, the first implicit certificate can be determined The corresponding hash value . Request the client to provide the first implicit certificate Decode and obtain the first declared public key , . Further, the user terminal is requested to declare the public key according to the first , the first implicit certificate The corresponding hash value and the public key of the certificate authority , calculate and determine the public key of the requesting user , request the client's public key The expression is . Request the client to authenticate the user based on the first implicit certificate The corresponding hash value , random numbers and the first declared private key , calculate and obtain the private key of the requesting user , .

[0057] Step 205: The requesting user terminal selects a first random number, and calculates a temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal.

[0058] Specifically, the requesting user terminal selects a first random number a, and calculates the elliptic curve point corresponding to the requesting user terminal according to the first random number a. . Calculate the temporary public key X of the requesting user, ,in, To request the client's private key The hash value corresponding to the first random number a, .

[0059] Step 206: The requesting client generates a first signature value according to the temporary public key of the requesting client and the first implicit certificate.

[0060] Specifically, the requesting client uses the requesting client's private key The temporary public key X of the requesting client and the first implicit certificate Sign and get the first signature value .

[0061] Step 207: The requesting user terminal sends the first signature value, the temporary public key of the requesting user terminal, and the first implicit certificate to the responding user terminal, so that the responding user terminal calculates the public key of the requesting user terminal based on the first implicit certificate and the public key of the certificate authentication center, and verifies the first signature value based on the public key of the requesting user terminal; and, after the first signature value is verified, the responding user terminal performs a hash calculation based on the private key of the responding user terminal, the public key of the requesting user terminal, the temporary private key of the responding user terminal, the temporary public key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key.

[0062] Step 208, the requesting user terminal receives the second signature value, the temporary public key of the responding user terminal, and the second implicit certificate sent by the responding user terminal; wherein the second signature value is obtained by the responding user terminal signing the temporary public key of the requesting user terminal, the temporary public key of the responding user terminal, and the second implicit certificate by the private key of the responding user terminal.

[0063] Specifically, the requesting client sends the first signature value to the responding client. , request the user's temporary public key X, the first implicit certificate Correspondingly, the responding client pre-calculates the temporary public key Y of the responding client and receives the second implicit certificate sent by the certificate authentication center. Specifically, in response to the user terminal calculating the first implicit certificate Hash value , and calculate the public key of the requesting client , . Further, in response to the client's request for the client's public key For the first signature value If the verification is successful, the responding client uses the responding client's private key The temporary public key X of the requesting client, the temporary public key Y of the responding client and the second implicit certificate Sign and obtain the second signature value Further, the responding user terminal sends a second signature value to the requesting user terminal. , respond to the user's temporary public key Y and the second implicit certificate Further, the responding user terminal receives the private key of the responding user terminal. , request the client's public key , the temporary private key y of the responding user, the temporary public key X of the requesting user, the ID A of the requesting user, the ID B of the responding user, and the hash calculation to obtain the negotiated key , Among them, y is the temporary private key of the responding user, A is the ID of the requesting user, and B is the ID of the responding user.

[0064] Step 209: The requesting client calculates the public key of the responding client based on the second implicit certificate and the public key of the certificate authentication center, and verifies the second signature value by using the public key of the responding client.

[0065] Step 210: After the second signature value is verified, the requesting user terminal performs a hash calculation based on the private key of the requesting user terminal, the public key of the responding user terminal, the temporary public key of the responding user terminal, the temporary private key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key.

[0066] Specifically, the client is requested to calculate the second implicit certificate Hash value , and calculate the public key of the responding client , ,in, The second declaration public key corresponding to the responding user terminal. Further, the requesting user terminal passes the public key of the responding user terminal The second signature value If the verification is successful, the requesting client will use the private key of the requesting client to verify the , respond to the client's public key , respond to the user's temporary public key Y, request the user's temporary private key, request the user's ID A, respond to the user's ID B, perform hash calculation to obtain the negotiated key , Among them, x is the temporary public and private of the requesting user end, A is the ID of the requesting user end, and B is the ID of the responding user end.

[0067] In this implementation, the requesting user end and the responding user end negotiate to obtain a symmetric key through an implicit certificate key negotiation process. On this basis, during the secure communication of the Internet of Vehicles, the message is encrypted and decrypted, which can ensure the security of the secure communication of the Internet of Vehicles. Moreover, compared with the public key encryption and decryption method, the time for message encryption and decryption is saved, and the efficiency of secure communication of the Internet of Vehicles is improved.

[0068] In addition, in order to further ensure the reliability and accuracy of the secure communication of the Internet of Vehicles, as an example, in a possible implementation, before the above step 205, the secure communication method of the Internet of Vehicles also includes: requesting the user end to verify whether the relationship between the private key of the requesting user end and the public key of the requesting user end on the elliptic curve is established. The above step 205 specifically includes: if the relationship between the private key of the requesting user end and the public key of the requesting user end on the elliptic curve is verified, the requesting user end selects a first random number, and calculates the temporary public key of the requesting user end based on the first random number and the private key of the requesting user end.

[0069] In this implementation, before the requesting user terminal selects a first random number and calculates the temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal, the requesting user terminal verifies whether the relationship between the private key of the requesting user terminal and the public key of the requesting user terminal on the elliptic curve holds, thereby improving the reliability and accuracy of secure communication in the Internet of Vehicles.

[0070] In the vehicle network security communication method provided by this embodiment, the requesting user end negotiates with the responding user end to obtain a symmetric key according to the implicit certificate key negotiation process; the requesting user end sends the first encrypted message obtained by symmetric key encryption and the identifier of the requesting user end to the responding user end; the responding user end determines the requesting user end according to the identifier of the requesting user end, and decrypts the first encrypted message according to the symmetric key to obtain the first message; the responding user end generates a second message corresponding to the first message, and obtains a second encrypted message by symmetric key encryption; the responding user end sends the second encrypted message to the requesting user end; the requesting user end decrypts the second encrypted message according to the symmetric key to obtain the second message. In the scheme of this embodiment, during the vehicle network security communication process, the symmetric key obtained by negotiation through the implicit certificate key negotiation process is used to encrypt and decrypt the message. Compared with the public key encryption and decryption method, the time for message encryption and decryption is saved, and the efficiency of vehicle network security communication is improved.

[0071] Figure 3 FIG. 3 is a flow chart of the secure communication method for the Internet of Vehicles provided by the present invention. Figure 3 As shown, the method includes the following steps 301 to 306.

[0072] In practical applications, the execution subject of the vehicle networking safety communication method can be a responding user end, and there are many ways to implement the responding user end, for example, it can be implemented through a computer program, such as application software, etc.; or, for example, a chip, etc. It can also be implemented as a medium storing relevant computer programs, such as a USB flash drive, a cloud disk, etc.; or, it can also be implemented through a physical device integrated or installed with relevant computer programs, such as a server, etc.

[0073] Step 301: The responding client negotiates with the requesting client to obtain a symmetric key according to the implicit certificate key negotiation process.

[0074] Among them, the implicit certificate has the characteristics of small data volume and fast processing speed. It can be understood that the responding user end negotiates with the requesting user end according to the implicit certificate key negotiation process to obtain the symmetric key , and in the communication process between the requesting user end and the responding user end, according to the symmetric key Encrypting and decrypting messages can ensure the security of secure communications in the Internet of Vehicles.

[0075] In practical applications, symmetric keys It refers to the key obtained through negotiation between the requesting user end and the responding user end according to the implicit certificate key negotiation process, and the requesting user end and the responding user end use the same key. It can be understood that in the process of Internet of Vehicles security, the requesting user end and the responding user end use the symmetric key. Encrypting or decrypting messages can reduce the amount of encryption and decryption computations during secure communications in the Internet of Vehicles. Compared with public key encryption and decryption, it saves the time for message encryption and decryption and improves the efficiency of secure communications in the Internet of Vehicles.

[0076] Step 302: The responding user terminal receives a first encrypted message and an identifier of the requesting user terminal sent by the requesting user terminal, where the first encrypted message is obtained by the requesting user terminal encrypting the first message according to a symmetric key.

[0077] Specifically, the requesting user terminal generates or obtains the first message M based on the current communication demand. In combination with the above description, the responding user terminal negotiates with the requesting user terminal to obtain the symmetric key according to the implicit certificate key negotiation process. , therefore, the requesting client also has the symmetric key . Further, the user is requested to use the symmetric key Encrypt the first message M to obtain a first encrypted message Further, in response to the user end receiving the request, the user end sends a first encrypted message and the identifier of the requesting client.

[0078] Step 303: The responding user terminal determines the requesting user terminal according to the identifier of the requesting user terminal.

[0079] Step 304: The responding user terminal decrypts the first encrypted message according to the symmetric key to obtain the first message.

[0080] The identifier of the requesting user terminal uniquely represents the requesting user terminal. For example, the identifier of the requesting user terminal is represented as Specifically, the responding user terminal responds to the requesting user terminal's identifier The requesting user end can be determined, that is, the user end of the current communication can be determined. Further, the responding user end can be determined based on the symmetric key For the first encrypted message Decryption is performed to obtain the first message M.

[0081] Step 305: The responding user terminal generates a second message based on the first message, and encrypts the second message according to the symmetric key to obtain a second encrypted message.

[0082] In actual applications, the responding user end uses the symmetric key For the first encrypted message After decryption and obtaining the first message M, the current communication demand can be determined according to the first message M, and the second message N is generated or obtained based on the first message M. It can be understood that the first message M corresponds to the second message N.

[0083] Step 306: The responding user terminal sends a second encrypted message to the requesting user terminal, so that the requesting user terminal decrypts the second encrypted message according to the symmetric key to obtain a second message.

[0084] Further, the responding user terminal uses the symmetric key Encrypt the second message N to obtain a second encrypted message In combination with the above description, the responding user terminal can determine the requesting user terminal of the current communication according to the identifier of the requesting user terminal. Specifically, the responding user terminal sends the second encrypted message Sent to the requesting client.

[0085] Combined with the above description, the responding client negotiates with the requesting client to obtain the symmetric key according to the implicit certificate key negotiation process Specifically, the client is requested to use the symmetric key The second encrypted message Decrypt and obtain the second message N.

[0086] In this embodiment, during the secure communication of the Internet of Vehicles, the symmetric key obtained through the implicit certificate key negotiation process is used to encrypt and decrypt messages, which can ensure the security of the secure communication of the Internet of Vehicles. In addition, compared with the public key encryption and decryption method, it saves the time for message encryption and decryption and improves the efficiency of secure communication of the Internet of Vehicles.

[0087] In addition, for the implicit certificate key negotiation process, in a possible implementation, Figure 4 This is a second flow chart of the vehicle networking security communication method provided by the present invention, such as Figure 4 As shown, the above step 301 includes: steps 401 to 410.

[0088] Step 401: Respond to the client to obtain the public key of the certificate authentication center.

[0089] Step 402: In response to the user terminal sending a second certificate request to the certificate authentication center.

[0090] Step 403: Respond to the user end receiving the second implicit certificate and the second declared private key sent by the certificate authentication center.

[0091] In actual applications, the public key of the pre-made certificate authentication center is used by the requesting client and the responding client. Specifically, the responding user terminal sends a second certificate request to the certificate authentication center to receive a second implicit certificate and a second declared private key sent by the certificate authentication center. As an example, the second certificate request includes an identification of the responding user terminal. and a random point of the elliptic curve generated by the responding client In actual applications, the response to the user end generates a random number , respond to the user end according to the random number Generate random points on elliptic curve , , where G is the base point of the elliptic curve. Correspondingly, the certificate authentication center responds to the user's identification Identify the responding client and use random points based on the elliptic curve Generate the second declaration public key , , where k is a random number on a non-zero n-order finite field selected by the certificate authentication center. Further, the certificate authentication center responds to the user's identification , Second declaration public key , the certificate authentication center's identifier, the certificate authentication center's information, and generate a second implicit certificate Furthermore, the certificate authority authenticates the second implicit certificate Perform hash calculation to obtain the second implicit certificate The corresponding hash value , Furthermore, the certificate authority uses the hash value and the private key of the certificate authority Generate the second declaration private key , , where n is the order of the elliptic curve base point G. Further, the certificate authority sends the second implicit certificate and the second declared private key Correspondingly, the responding client receives the second implicit certificate sent by the certificate authentication center. and the second declared private key .

[0092] Step 404: The responding user terminal calculates and obtains the responding user terminal's private key and the responding user terminal's public key according to the second implicit certificate, the second declared private key, and the public key of the certificate authentication authority.

[0093] Specifically, responding to the user end's response to the second implicit certificate By performing hash calculation, the second implicit certificate can be determined The corresponding hash value . Respond to the client's response to the second implicit certificate Decode and get the second declared public key , . Further, the responding user terminal responds to the second declared public key , Second implicit certificate The corresponding hash value and the public key of the certificate authority , calculate and determine the public key of the responding user , responding to the client's public key The expression is . The client responds to the second implicit certificate The corresponding hash value , random numbers and the second declared private key , calculate and obtain the private key of the responding user , .

[0094] Step 405: The responding user terminal selects a second random number, and calculates a temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal.

[0095] Specifically, the responding user terminal selects a second random number b, and calculates the elliptic curve point corresponding to the responding user terminal according to the second random number b. . Calculate the temporary public key Y of the responding user, ,in, In response to the client's private key and the hash value corresponding to the second random number b, .

[0096] Step 406: The responding client receives the first signature value, the temporary public key of the requesting client, and the first implicit certificate sent by the requesting client.

[0097] Specifically, the requesting client uses the requesting client's private key The temporary public key X of the requesting client and the first implicit certificate Sign and get the first signature value . In response to the client receiving the first signature value sent by the requesting client , request the user's temporary public key X, the first implicit certificate .

[0098] Step 407: The responding user terminal calculates the public key of the requesting user terminal based on the first implicit certificate and the public key of the certificate authentication center, and verifies the first signature value based on the public key of the requesting user terminal.

[0099] Step 408: After the first signature value is verified, the responding user terminal performs a hash calculation based on the responding user terminal's private key, the requesting user terminal's public key, the responding user terminal's temporary private key, the requesting user terminal's temporary public key, the requesting user terminal's ID, and the responding user terminal's ID to obtain the negotiated key.

[0100] Step 409: The responding client signs the temporary public key of the requesting client, the temporary public key of the responding client, and the second implicit certificate by using the private key of the responding client to obtain a second signature value.

[0101] Specifically, in response to the user terminal calculating the first implicit certificate Hash value , and calculate the public key of the requesting client , . Further, in response to the client's request for the client's public key For the first signature value If the verification is successful, the responding client uses the responding client's private key The temporary public key X of the requesting client, the temporary public key Y of the responding client and the second implicit certificate Sign and obtain the second signature value Further, the responding user terminal receives the private key of the responding user terminal. , request the client's public key , the temporary public key y of the responding user, the temporary public key X of the requesting user, the ID A of the requesting user, the ID B of the responding user, and the hash calculation to obtain the negotiated key , Among them, y is the temporary private key of the responding user, A is the ID of the requesting user, and B is the ID of the responding user.

[0102] Step 410: The responding user terminal sends the second signature value, the temporary public key of the responding user terminal, and the second implicit certificate to the requesting user terminal, so that the requesting user terminal calculates the public key of the responding user terminal according to the second implicit certificate and the public key of the certificate authentication center, and verifies the second signature value by the public key of the responding user terminal; and, after the second signature value is verified, the requesting user terminal performs a hash calculation based on the private key of the requesting user terminal, the public key of the responding user terminal, the temporary public key of the responding user terminal, the temporary private key of the requesting user terminal, the ID identifier of the requesting user terminal, and the ID identifier of the responding user terminal to obtain the negotiated key.

[0103] Specifically, the responding user terminal sends the second signature value to the requesting user terminal , respond to the user's temporary public key Y and the second implicit certificate Correspondingly, the client is requested to calculate the second implicit certificate Hash value , and calculate the public key of the responding client , ,in, The second declaration public key corresponding to the responding user terminal. Further, the requesting user terminal passes the public key of the responding user terminal The second signature value If the verification is successful, the requesting client will use the private key of the requesting client to verify the , respond to the client's public key , the temporary public key Y of the responding user, the temporary private key x of the requesting user, the ID of the requesting user A, the ID of the responding user B, and the hash calculation to obtain the negotiated key , . Among them, x is the temporary private key of the requesting user, A is the ID of the requesting user, and B is the ID of the responding user.

[0104] In this implementation, the responding user end and the requesting user end negotiate to obtain a symmetric key through an implicit certificate key negotiation process. On this basis, during the secure communication of the Internet of Vehicles, the message is encrypted and decrypted, which can ensure the security of the secure communication of the Internet of Vehicles. Moreover, compared with the public key encryption and decryption method, the time for message encryption and decryption is saved, and the efficiency of secure communication of the Internet of Vehicles is improved.

[0105] In addition, in order to further ensure the reliability and accuracy of secure communication in the Internet of Vehicles, as an example, in a possible implementation, before the above step 405, the method further includes: the responding user terminal verifies whether the relationship between the responding user terminal's private key and the responding user terminal's public key on the elliptic curve is established. The above step 405 specifically includes: if the relationship between the responding user terminal's private key and the responding user terminal's public key on the elliptic curve is verified, the responding user terminal selects a second random number, and calculates the responding user terminal's temporary public key based on the second random number and the responding user terminal's private key.

[0106] In this implementation, the responding user terminal selects a second random number, and before calculating the temporary public key Y of the responding user terminal based on the second random number and the private key of the responding user terminal, the responding user terminal verifies whether the relationship between the private key of the responding user terminal and the public key of the responding user terminal on the elliptic curve holds, thereby improving the reliability and accuracy of secure communication in the Internet of Vehicles.

[0107] It should be noted that the vehicle network security communication methods provided in the above embodiments can be implemented in combination or separately. Figure 5 is an interactive flow chart of the vehicle networking security communication method provided by the present invention, such as Figure 5As shown, the vehicle network security communication method includes: step 501, the requesting user end and the responding user end negotiate the symmetric key obtained according to the implicit certificate key negotiation process. Step 502, the requesting user end encrypts the first message according to the symmetric key to obtain the first encrypted message. Step 503, the requesting user end sends the first encrypted message and the identifier of the requesting user end to the responding user end. Step 504, the responding user end determines the requesting user end according to the identifier of the requesting user end, and decrypts the first encrypted message according to the symmetric key to obtain the first message. Step 505, the responding user end generates a second message based on the first message, and encrypts the second message according to the symmetric key to obtain the second encrypted message. Step 506, the responding user end sends the second encrypted message to the requesting user end. Step 107, the requesting user end decrypts the second encrypted message according to the symmetric key to obtain the second message.

[0108] In the vehicle network security communication method provided by this embodiment, the requesting user end negotiates with the responding user end to obtain a symmetric key according to the implicit certificate key negotiation process; the requesting user end sends the first encrypted message obtained by symmetric key encryption and the identifier of the requesting user end to the responding user end; the responding user end determines the requesting user end according to the identifier of the requesting user end, and decrypts the first encrypted message according to the symmetric key to obtain the first message; the responding user end generates a second message corresponding to the first message, and obtains a second encrypted message by symmetric key encryption; the responding user end sends the second encrypted message to the requesting user end; the requesting user end decrypts the second encrypted message according to the symmetric key to obtain the second message. In the scheme of this embodiment, during the vehicle network security communication process, the symmetric key obtained by negotiation through the implicit certificate key negotiation process is used to encrypt and decrypt the message. Compared with the public key encryption and decryption method, the time for message encryption and decryption is saved, and the efficiency of vehicle network security communication is improved.

[0109] The requesting user end and the responding user end provided by the present invention are described below. The requesting user end and the responding user end described below can correspond to the vehicle network security communication method described above.

[0110] Figure 6 Schematic diagram of the structure of the requesting user terminal provided by the present invention. Figure 6 As shown, the requesting user end includes a first negotiation module 61 , a first encryption module 62 , a first sending module 63 , a first receiving module 64 and a first decryption module 65 .

[0111] The first negotiation module 61 is used to request the client to negotiate with the responding client to obtain a symmetric key according to an implicit certificate key negotiation process.

[0112] In this embodiment, the requesting user end refers to the user end that initiates communication, and the responding user end is the user end that communicates with the requesting user end. In one example, the requesting user end may be a vehicle, and the responding user end may be a vehicle, a road unit, a mobile device, etc. In another example, the requesting user end may be a road unit, another vehicle, a mobile device, etc., and the responding user end is a vehicle.

[0113] Among them, the implicit certificate has the characteristics of small data volume and fast processing speed. It can be understood that the first negotiation module 61 negotiates with the responding user end according to the implicit certificate key negotiation process to obtain the symmetric key , and in the communication process between the requesting user end and the responding user end, the first encryption module 62 and the first decryption module 65 use the symmetric key Encrypting and decrypting messages can ensure the security of secure communications in the Internet of Vehicles.

[0114] In practical applications, symmetric keys It refers to the key obtained through negotiation between the first negotiation module 61 and the responding user end according to the implicit certificate key negotiation process, and the requesting user end and the responding user end use the same key. It can be understood that during the secure communication of the Internet of Vehicles, the requesting user end and the responding user end use the same key according to the symmetric key. Encrypting or decrypting messages can reduce the amount of encryption and decryption computations during secure communications in the Internet of Vehicles. Compared with public key encryption and decryption, it saves the time for message encryption and decryption and improves the efficiency of secure communications in the Internet of Vehicles.

[0115] The first encryption module 62 is used to request the user end to encrypt the first message according to the symmetric key to obtain a first encrypted message.

[0116] Specifically, the requesting user terminal generates or obtains a first message based on the current communication demand. As an example, the first message is represented by M. Further, the first encryption module 62 generates or obtains a first message based on the symmetric key Encrypt the first message M to obtain a first encrypted message .

[0117] The first sending module 63 is used for the requesting user end to send the first encrypted message and the identifier of the requesting user end to the responding user end, so that the responding user end determines the requesting user end according to the identifier of the requesting user end, and decrypts the first encrypted message according to the symmetric key to obtain the first message.

[0118] The identifier of the requesting user terminal uniquely represents the requesting user terminal and is used by other users to identify the requesting user terminal. , so the responding client also has the symmetric key Specifically, the first sending module 63 sends the first encrypted message and the requesting client's identifier After being sent to the responding user end, the responding user end can identify the requesting user end according to the identifier of the requesting user end; the responding user end can identify the requesting user end according to the symmetric key For the first encrypted message Decryption is performed to obtain the first message M.

[0119] The first receiving module 64 is used for requesting the user end to receive a second encrypted message sent by the responding user end, where the second encrypted message is obtained by encrypting the second message by the responding user end according to the symmetric key, and the second message is generated by the responding user end based on the first message.

[0120] In actual applications, the responding user end uses the symmetric key For the first encrypted message After decryption and obtaining the first message M, the current communication demand can be determined according to the first message M, and the second message N is generated or obtained based on the first message M. It can be understood that the first message M corresponds to the second message N.

[0121] Further, the responding user terminal uses the symmetric key Encrypt the second message N to obtain a second encrypted message In combination with the above description, the responding user terminal can determine the requesting user terminal of the current communication according to the identifier of the requesting user terminal. Specifically, the first receiving module 64 receives the second encrypted message sent by the responding user terminal. .

[0122] The first decryption module 65 is used to request the user end to decrypt the second encrypted message according to the symmetric key to obtain the second message.

[0123] In combination with the above description, the first negotiation module 61 negotiates with the responding user end to obtain the symmetric key according to the implicit certificate key negotiation process Specifically, the first decryption module 65 uses the symmetric key The second encrypted message Decrypt and obtain the second message N.

[0124] In this embodiment, during the secure communication of the Internet of Vehicles, the symmetric key obtained through the implicit certificate key negotiation process is used to encrypt and decrypt messages, which can ensure the security of the secure communication of the Internet of Vehicles. In addition, compared with the public key encryption and decryption method, it saves the time for message encryption and decryption and improves the efficiency of secure communication of the Internet of Vehicles.

[0125] In addition, in a possible implementation, the above-mentioned first negotiation module 61 is specifically used to: request the user terminal to obtain the public key of the certificate authentication center. Request the user terminal to send a first certificate application to the certificate authentication center. Request the user terminal to receive the first implicit certificate and the first declared private key sent by the certificate authentication center. The requesting user terminal calculates the private key of the requesting user terminal and the public key of the requesting user terminal based on the first implicit certificate, the first declared private key and the public key of the certificate authentication center. The requesting user terminal selects a first random number, and calculates the temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal. The requesting user terminal generates a first signature value based on the temporary public key of the requesting user terminal and the first implicit certificate. The requesting user terminal sends a first signature value, a temporary public key of the requesting user terminal, and a first implicit certificate to the responding user terminal, so that the responding user terminal calculates the public key of the requesting user terminal based on the first implicit certificate and the public key of the certificate authentication center, and verifies the first signature value based on the public key of the requesting user terminal; and, after the first signature value is verified, the responding user terminal performs a hash calculation based on the private key of the responding user terminal, the public key of the requesting user terminal, the temporary private key of the responding user terminal, the temporary public key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key. The requesting user terminal receives the second signature value, the temporary public key of the responding user terminal, and the second implicit certificate sent by the responding user terminal; wherein the second signature value is obtained by the responding user terminal signing the temporary public key of the requesting user terminal, the temporary public key of the responding user terminal, and the second implicit certificate with the private key of the responding user terminal. The requesting user terminal calculates the public key of the responding user terminal based on the second implicit certificate and the public key of the certificate authentication center, and verifies the second signature value with the public key of the responding user terminal. After the second signature value is verified, the requesting user terminal performs a hash calculation based on the private key of the requesting user terminal, the public key of the responding user terminal, the temporary public key of the responding user terminal, the temporary private key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key.

[0126] In this embodiment, the first negotiation module 61 and the responding user end negotiate to obtain a symmetric key through an implicit certificate key negotiation process. On this basis, during the secure communication of the Internet of Vehicles, the message is encrypted and decrypted, which can ensure the security of the secure communication of the Internet of Vehicles, and compared with the public key encryption and decryption method, it saves the time of message encryption and decryption, and improves the efficiency of secure communication of the Internet of Vehicles.

[0127] In addition, in a possible implementation, the above-mentioned requesting user terminal also includes: a first verification module; the first verification module is used to verify whether the relationship between the private key of the requesting user terminal and the public key of the requesting user terminal on the elliptic curve holds. The above-mentioned first negotiation module 61 is used for the requesting user terminal to select a first random number, and calculate the temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal, and is specifically used for: if the relationship between the private key of the requesting user terminal and the public key of the requesting user terminal on the elliptic curve is verified, then the requesting user terminal selects a first random number, and calculates the temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal.

[0128] In this embodiment, before the first negotiation module 61 selects a first random number and calculates a temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal, the first verification module verifies whether the relationship between the private key of the requesting user terminal and the public key of the requesting user terminal on the elliptic curve holds, thereby improving the reliability and accuracy of secure communication in the Internet of Vehicles.

[0129] In the requesting user end provided by this embodiment, the first negotiation module obtains a symmetric key through negotiation with the responding user end according to the implicit certificate key negotiation process; the first sending module sends the first encrypted message obtained through symmetric key encryption and the identifier of the requesting user end to the responding user end; the responding user end determines the requesting user end according to the identifier of the requesting user end, and decrypts the first encrypted message according to the symmetric key to obtain the first message; the responding user end generates a second message corresponding to the first message, and obtains the second encrypted message through symmetric key encryption; the first receiving module receives the second encrypted message sent by the responding user end; the first decryption module decrypts the second encrypted message according to the symmetric key to obtain the second message. In the scheme of this embodiment, during the secure communication of the Internet of Vehicles, the symmetric key obtained through negotiation in the implicit certificate key negotiation process is used to encrypt and decrypt the message. Compared with the public key encryption and decryption method, the time for message encryption and decryption is saved, and the efficiency of secure communication of the Internet of Vehicles is improved.

[0130] Figure 7 Schematic diagram of the structure of the response user terminal provided by the present invention. Figure 7 As shown, the responding user end includes a second negotiation module 71 , a second receiving module 72 , a determination module 73 , a second decryption module 74 , a generation module 75 , a second encryption module 76 and a second sending module 77 .

[0131] The second negotiation module 71 is used to respond to the symmetric key obtained by the client through negotiation with the requesting client according to the implicit certificate key negotiation process.

[0132] Among them, the implicit certificate has the characteristics of small data volume and fast processing speed. It can be understood that the second negotiation module 71 negotiates with the requesting user end according to the implicit certificate key negotiation process to obtain the symmetric key , and in the communication process between the requesting user end and the responding user end, the second decryption module 74 and the second encryption module 76 use the symmetric key Encrypting and decrypting messages can ensure the security of secure communications in the Internet of Vehicles.

[0133] In practical applications, symmetric keys It means that the second negotiation module 71 and the responding user end negotiate and obtain the key according to the implicit certificate key negotiation process, and the requesting user end and the responding user end use the same key. It can be understood that during the secure communication of the Internet of Vehicles, the requesting user end and the responding user end use the same key according to the symmetric key. Encrypting or decrypting messages can reduce the amount of encryption and decryption computations during secure communications in the Internet of Vehicles. Compared with public key encryption and decryption, it saves the time for message encryption and decryption and improves the efficiency of secure communications in the Internet of Vehicles.

[0134] The second receiving module 72 is used to respond to the user end receiving the first encrypted message sent by the requesting user end and the identifier of the requesting user end, where the first encrypted message is obtained by the requesting user end encrypting the first message according to the symmetric key.

[0135] Specifically, the requesting user terminal generates or obtains the first message M based on the current communication demand. In combination with the above description, the second negotiation module 71 negotiates with the requesting user terminal to obtain the symmetric key according to the implicit certificate key negotiation process. , therefore, the requesting client also has the symmetric key . Further, the user is requested to use the symmetric key Encrypt the first message M to obtain a first encrypted message Further, the second receiving module 72 receives a request for the user terminal to send a first encrypted message and the identifier of the requesting client.

[0136] The determination module 73 is configured to determine the requesting user terminal according to the identifier of the requesting user terminal by the responding user terminal.

[0137] The second decryption module 74 is used to respond to the user end to decrypt the first encrypted message according to the symmetric key to obtain the first message.

[0138] The identifier of the requesting user terminal uniquely represents the requesting user terminal. For example, the identifier of the requesting user terminal is represented as Specifically, the determination module 73 determines the requesting user terminal according to the identifier The requesting user end can be determined, that is, the user end of the current communication can be determined. Further, the second decryption module 74 can use the symmetric key For the first encrypted message Decryption is performed to obtain the first message M.

[0139] The generating module 75 is used to generate a second message based on the first message in response to the user terminal.

[0140] In actual application, the second decryption module 74 uses the symmetric key For the first encrypted message After decrypting and obtaining the first message M, the generation module 75 can determine the current communication demand according to the first message M, and generate or obtain the second message N based on the first message M. It can be understood that the first message M corresponds to the second message N.

[0141] The second encryption module 76 is used to encrypt the second message according to the symmetric key to obtain a second encrypted message.

[0142] The second sending module 77 is used for sending a second encrypted message to the requesting user terminal in response to the user terminal, so that the requesting user terminal decrypts the second encrypted message according to the symmetric key to obtain a second message.

[0143] Further, the second encryption module 76 uses the symmetric key Encrypt the second message N to obtain a second encrypted message In combination with the above description, the determination module 73 can determine the requesting user end of the current communication according to the identifier of the requesting user end. Specifically, the second sending module 77 sends the second encrypted message Sent to the requesting client.

[0144] In combination with the above description, the second negotiation module 71 negotiates with the requesting user end to obtain the symmetric key according to the implicit certificate key negotiation process Specifically, the client is requested to use the symmetric key The second encrypted message Decrypt and obtain the second message N.

[0145] In this embodiment, during the secure communication of the Internet of Vehicles, the symmetric key obtained through the implicit certificate key negotiation process is used to encrypt and decrypt messages, which can ensure the security of the secure communication of the Internet of Vehicles. In addition, compared with the public key encryption and decryption method, it saves the time for message encryption and decryption and improves the efficiency of secure communication of the Internet of Vehicles.

[0146] In addition, in a possible implementation, the above-mentioned second negotiation module 71 is specifically used to: the responding user terminal obtains the public key of the certificate authentication center. The responding user terminal sends a second certificate application to the certificate authentication center. The responding user terminal receives the second implicit certificate and the second declared private key sent by the certificate authentication center. The responding user terminal calculates the private key of the responding user terminal and the public key of the responding user terminal based on the second implicit certificate, the second declared private key and the public key of the certificate authentication center. The responding user terminal selects a second random number, and calculates the temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal. The responding user terminal receives the first signature value sent by the requesting user terminal, the temporary public key of the requesting user terminal, and the first implicit certificate. The responding user terminal calculates the public key of the requesting user terminal based on the first implicit certificate and the public key of the certificate authentication center, and verifies the first signature value based on the public key of the requesting user terminal. After the first signature value is verified, the responding user terminal performs a hash calculation based on the responding user terminal's private key, the requesting user terminal's public key, the responding user terminal's temporary private key, the requesting user terminal's temporary public key, the requesting user terminal's ID, and the responding user terminal's ID to obtain the negotiated key. The responding user terminal signs the requesting user terminal's temporary public key, the responding user terminal's temporary public key, and the second implicit certificate using the responding user terminal's private key to obtain a second signature value.

[0147] In this embodiment, the second negotiation module 71 and the requesting user end negotiate to obtain a symmetric key through an implicit certificate key negotiation process. On this basis, during the secure communication of the Internet of Vehicles, the message is encrypted and decrypted, which can ensure the security of the secure communication of the Internet of Vehicles, and compared with the public key encryption and decryption method, it saves the time of message encryption and decryption, and improves the efficiency of secure communication of the Internet of Vehicles.

[0148] In addition, in a possible implementation, the above-mentioned responding user terminal also includes a second verification module, and the second verification module is used for the responding user terminal to verify whether the relationship between the private key of the responding user terminal and the public key of the responding user terminal on the elliptic curve holds. The above-mentioned second negotiation module 71 is used for the responding user terminal to select a second random number, and calculate the temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal. Specifically, it is used for: if the relationship between the private key of the responding user terminal and the public key of the responding user terminal on the elliptic curve is verified, then the responding user terminal selects a second random number, and calculates the temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal.

[0149] In this embodiment, the second negotiation module 71 selects a second random number, and before calculating the temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal, the second verification module verifies whether the relationship between the private key of the responding user terminal and the public key of the responding user terminal on the elliptic curve holds, thereby improving the reliability and accuracy of secure communication in the Internet of Vehicles.

[0150] In the responding user end provided by this embodiment, the second negotiation module obtains a symmetric key through negotiation with the requesting user end according to the implicit certificate key negotiation process; the second receiving module receives the first encrypted message sent by the requesting user end and the identifier of the requesting user end; the determination module determines the requesting user end according to the identifier of the requesting user end, and the second decryption module decrypts the first encrypted message according to the symmetric key to obtain the first message; the generation module generates a second message corresponding to the first message, and the second encryption module obtains the second encrypted message through symmetric key encryption; the second sending module sends the second encrypted message to the requesting user end; the requesting user end decrypts the second encrypted message according to the symmetric key to obtain the second message. In the scheme of this embodiment, during the secure communication of the Internet of Vehicles, the symmetric key obtained through negotiation in the implicit certificate key negotiation process is used to encrypt and decrypt the message. Compared with the public key encryption and decryption method, this saves the time of message encryption and decryption and improves the efficiency of secure communication of the Internet of Vehicles.

[0151] Figure 8 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 8 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communications interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the vehicle network security communication method.

[0152] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0153] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the vehicle network safety communication method provided by the above-mentioned methods.

[0154] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the vehicle network security communication method provided by the above-mentioned methods.

[0155] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0156] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A secure communication method for an Internet of Vehicles, characterized in that: Applied to a requesting user end, the method comprises: The requesting client obtains a symmetric key through negotiation with the responding client according to the implicit certificate key negotiation process; The requesting user end encrypts the first message according to the symmetric key to obtain a first encrypted message; The requesting user terminal sends the first encrypted message and the identifier of the requesting user terminal to the responding user terminal, so that the responding user terminal determines the requesting user terminal according to the identifier of the requesting user terminal, and decrypts the first encrypted message according to the symmetric key to obtain the first message; The requesting client receives a second encrypted message sent by the responding client, where the second encrypted message is obtained by the responding client encrypting the second message according to the symmetric key, and the second message is generated by the responding client based on the first message; The requesting user terminal decrypts the second encrypted message according to the symmetric key to obtain the second message.

2. The vehicle network security communication method according to claim 1, characterized in that: The requesting client obtains the symmetric key through negotiation with the responding client according to the implicit certificate key negotiation process, including: The requesting client obtains the public key of the certificate authentication center; The requesting client sends a first certificate application to a certificate authentication center; The requesting client receives the first implicit certificate and the first declared private key sent by the certificate authentication center; The requesting user terminal calculates and obtains the private key and the public key of the requesting user terminal according to the first implicit certificate, the first declared private key and the public key of the certificate authentication center; The requesting user terminal selects a first random number, and calculates a temporary public key of the requesting user terminal according to the first random number and the private key of the requesting user terminal; The requesting client generates a first signature value according to the temporary public key of the requesting client and the first implicit certificate; The requesting user terminal sends the first signature value, the temporary public key of the requesting user terminal and the first implicit certificate to the responding user terminal, so that the responding user terminal calculates the public key of the requesting user terminal based on the first implicit certificate and the public key of the certificate authentication center, and verifies the first signature value based on the public key of the requesting user terminal; and, after the first signature value is verified, the responding user terminal performs a hash calculation based on the private key of the responding user terminal, the public key of the requesting user terminal, the temporary private key of the responding user terminal, the temporary public key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key; The requesting client receives the second signature value, the temporary public key of the responding client, and the second implicit certificate sent by the responding client; wherein the second signature value is obtained by the responding client signing the temporary public key of the requesting client, the temporary public key of the responding client, and the second implicit certificate using the private key of the responding client; The requesting client calculates the public key of the responding client according to the second implicit certificate and the public key of the certificate authentication center, and verifies the second signature value by using the public key of the responding client; After the second signature value is verified, the requesting user end performs a hash calculation based on the private key of the requesting user end, the public key of the responding user end, the temporary public key of the responding user end, the temporary private key of the requesting user end, the ID of the requesting user end, and the ID of the responding user end to obtain the negotiated key.

3. The vehicle network security communication method according to claim 2, characterized in that: Before the requesting user terminal selects a first random number and calculates a temporary public key of the requesting user terminal according to the first random number and the private key of the requesting user terminal, the method further includes: The requesting user terminal verifies whether a relationship between a private key of the requesting user terminal and a public key of the requesting user terminal on an elliptic curve holds; The requesting user terminal selects a first random number, and calculates a temporary public key of the requesting user terminal according to the first random number and the private key of the requesting user terminal, specifically including: If the relationship between the private key of the requesting user terminal and the public key of the requesting user terminal on the elliptic curve is verified, the requesting user terminal selects a first random number and calculates a temporary public key of the requesting user terminal based on the first random number and the private key of the requesting user terminal.

4. A secure communication method for an Internet of Vehicles, characterized in that: Applied to responding to a user terminal, the method comprises: The responding user terminal negotiates with the requesting user terminal to obtain a symmetric key according to the implicit certificate key negotiation process; The responding user terminal receives a first encrypted message sent by the requesting user terminal and an identifier of the requesting user terminal, where the first encrypted message is obtained by the requesting user terminal encrypting the first message according to the symmetric key; The responding client determines the requesting client according to the identifier of the requesting client; The responding user terminal decrypts the first encrypted message according to the symmetric key to obtain the first message; The responding user terminal generates a second message based on the first message, and encrypts the second message according to the symmetric key to obtain a second encrypted message; The responding user terminal sends the second encrypted message to the requesting user terminal, so that the requesting user terminal decrypts the second encrypted message according to the symmetric key to obtain the second message.

5. The vehicle network security communication method according to claim 4, characterized in that: The symmetric key obtained by the responding user end through negotiation with the requesting user end according to the implicit certificate key negotiation process includes: The responding user terminal obtains the public key of the certificate authentication center; The responding user terminal sends a second certificate request to the certificate authentication center; The responding user terminal receives the second implicit certificate and the second declared private key sent by the certificate authentication center; The responding user terminal calculates and obtains the responding user terminal's private key and the responding user terminal's public key according to the second implicit certificate, the second declared private key and the public key of the certificate authentication center; The responding user terminal selects a second random number, and calculates a temporary public key of the responding user terminal according to the second random number and the private key of the responding user terminal; The responding client receives the first signature value, the temporary public key of the requesting client, and the first implicit certificate sent by the requesting client; The responding client calculates the public key of the requesting client based on the first implicit certificate and the public key of the certificate authentication center, and verifies the first signature value based on the public key of the requesting client; After the first signature value is verified, the responding user terminal performs a hash calculation based on the private key of the responding user terminal, the public key of the requesting user terminal, the temporary private key of the responding user terminal, the temporary public key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key; The responding client signs the temporary public key of the requesting client, the temporary public key of the responding client, and the second implicit certificate by using the private key of the responding client to obtain a second signature value; The responding user terminal sends the second signature value, the temporary public key of the responding user terminal and the second implicit certificate to the requesting user terminal, so that the requesting user terminal calculates the public key of the responding user terminal according to the second implicit certificate and the public key of the certificate authentication center, and verifies the second signature value by the public key of the responding user terminal; and after the second signature value is verified, the requesting user terminal performs a hash calculation based on the private key of the requesting user terminal, the public key of the responding user terminal, the temporary public key of the responding user terminal, the temporary private key of the requesting user terminal, the ID of the requesting user terminal, and the ID of the responding user terminal to obtain the negotiated key.

6. The vehicle network security communication method according to claim 5, characterized in that: Before the responding user terminal selects a second random number and calculates a temporary public key of the responding user terminal according to the second random number and the private key of the responding user terminal, the method further includes: The responding user terminal verifies whether a relationship between a private key of the responding user terminal and a public key of the responding user terminal on an elliptic curve holds; The responding user terminal selects a second random number, and calculates a temporary public key of the responding user terminal according to the second random number and the private key of the responding user terminal, specifically including: If the relationship between the private key of the responding user terminal and the public key of the responding user terminal on the elliptic curve is verified, the responding user terminal selects a second random number and calculates a temporary public key of the responding user terminal based on the second random number and the private key of the responding user terminal.

7. A requesting user terminal, characterized in that: The requesting client includes: A first negotiation module, configured to obtain a symmetric key through negotiation with a responding user terminal according to an implicit certificate key negotiation process; A first encryption module, used to encrypt the first message according to the symmetric key to obtain a first encrypted message; A first sending module, used to send the first encrypted message and the identifier of the requesting user end to the responding user end, so that the responding user end determines the requesting user end according to the identifier of the requesting user end, and decrypts the first encrypted message according to the symmetric key to obtain the first message; A first receiving module is used to receive a second encrypted message sent by the responding user terminal, where the second encrypted message is obtained by the responding user terminal encrypting the second message according to the symmetric key, and the second message is generated by the responding user terminal based on the first message; The first decryption module is used to decrypt the second encrypted message according to the symmetric key to obtain the second message.

8. A response user terminal, characterized in that: The responding client includes: A second negotiation module is used to negotiate with the requesting user end to obtain a symmetric key according to an implicit certificate key negotiation process; A second receiving module is used to receive a first encrypted message and an identifier of the requesting user terminal sent by the requesting user terminal, where the first encrypted message is obtained by the requesting user terminal encrypting the first message according to the symmetric key; A determination module, configured to determine the requesting user terminal according to the identifier of the requesting user terminal; A second decryption module, used to decrypt the first encrypted message according to the symmetric key to obtain the first message; A generating module, configured to generate a second message based on the first message; A second encryption module, used to encrypt the second message according to the symmetric key to obtain a second encrypted message; The second sending module is used to send the second encrypted message to the requesting user end, so that the requesting user end decrypts the second encrypted message according to the symmetric key to obtain the second message.

9. 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, the vehicle network security communication method as described in any one of claims 1 to 3 is implemented, or when the processor executes the program, the vehicle network security communication method as described in any one of claims 4 to 6 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the vehicle network security communication method as claimed in any one of claims 1 to 3, or, when the computer program is executed by the processor, it implements the vehicle network security communication method as claimed in any one of claims 4 to 6.

Citation Information

Patent Citations

  • Access authentication and key agreement protocol and method of special network for space-aeronautics-vehicle-ground tracks

    CN107204847A

  • Authentication key negotiation method based on cross interlocking mechanism and implementation device thereof

    CN110971401A

  • Vehicle information security control method, client device and server device

    CN113098833A

  • Efficient certificateless authenticated key agreement method and system without bilinear pairing operation

    CN114024668A

  • Method for compatibility of identification key system and PKI system based on CA certificate

    CN115801223A

Cited By

  • Implementation method of automatic driving safety data transmission system

    CN121486811A