Enhanced automobile CANFD network security communication method and system

By adopting the encryption and decryption of multi-byte communication messages and the dynamic key distribution mechanism in the automotive CANFD network, selecting the encryption and decryption algorithm according to the message priority, and realizing the dynamic update of the master key in each ECU terminal, the problem of symmetric encryption is solved. It solves the problem of keys being easy to obtain and realizes the secure transmission of messages and the privacy of keys.

CN118869271APending Publication Date: 2024-10-29BEIJING INST OF TECH
View PDF 0 Cites 6 Cited by

Patent Information

Application Number
CN202410875253.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Since the symmetric encryption keys in the automotive CANFD network are preset and unchanged, they are easily obtained by attackers, which increases the risk of communication message tampering and replay attacks.

Method used

The encryption and decryption process of multi-byte communication messages is adopted to select different encryption and decryption algorithms according to the message priority or sensitivity, combined with the dynamic key distribution mechanism and the security information authentication based on block links to ensure the dynamic session key of each ECU terminal. Updates and master key dynamic updates.

Benefits of technology

It effectively prevents message tampering and replay attacks, ensures the confidentiality and integrity of communication messages, and reduces the risk of key tampering or replay during the distribution process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869271A_ABST
    Figure CN118869271A_ABST
Patent Text Reader

Abstract

The invention provides an enhanced automobile CANFD network security communication method and system, relates to the field of security communication of automobiles, and solves the technical problem of communication vulnerabilities of an automobile CANFD network. The method comprises three parts of core contents of encryption and decryption of a multi-byte communication message, security information authentication based on a block link and a dynamic key distribution mechanism. The encryption and decryption of the multi-byte communication message adopt encryption and decryption algorithms with different security levels according to the priority or sensitivity of the communication message; the security information authentication based on the block link adopts the encryption and decryption algorithm to carry out MAC calculation and verification on a message frame to be received and transmitted; according to the dynamic key distribution mechanism, session key distribution and ECU master key updating of each ECU terminal are achieved through the central gateway. According to the method, the confidentiality, integrity and freshness of the communication message between the automobile ECUs, and the confidentiality and freshness of the session key and the ECU master key are realized, so that possible message tampering attacks, counterfeit attacks, replay attacks and the like are prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of secure communication of automobile bus networks, and in particular to a secure communication method and system for an automobile CANFD network. Background Art

[0002] Current automotive CANFD networks use plaintext data transmission, making it extremely easy for external devices or attackers to obtain critical vehicle information. A more mature solution currently utilizes a symmetric encryption algorithm using a MAC encryption mechanism to authenticate message frames. While this solution can ensure the verification of messages between the sending and receiving terminals and prevent messages from being replayed or tampered with during transmission, the current solution uses a symmetric encryption algorithm. The symmetric encryption key is pre-set within the vehicle's ECU and remains unchanged throughout the vehicle's lifecycle. Therefore, the symmetric key can be easily obtained through special equipment or specific methods (such as side-channel attacks), making the MAC authentication scheme for message frames no longer secure and reliable. Summary of the Invention

[0003] The present invention solves the problems of communication messages of an automobile CANFD network being tampered with and replayed, as well as the updating of message encryption keys.

[0004] To solve the above problems, the present invention proposes an enhanced secure communication method and application system for the automotive bus CANFD network, which specifically includes the following processes: (1) The encryption and decryption process of multi-byte communication messages can adopt encryption and decryption algorithms of different levels according to the priority or sensitivity of the communication message; (2) The block-linked security information authentication process adopts the encryption and decryption algorithm to perform MAC authentication on the sent and received message frames; (3) The dynamic key distribution mechanism can realize the distribution of session keys of each ECU terminal and the dynamic update of ECU master keys based on the key distribution center; (4) Each ECU in the vehicle has the ability to determine the dynamic update time of the master key.

[0005] Optionally, the encryption and decryption process for multi-byte communication messages can select different encryption and decryption algorithms based on the sensitivity of the message frame or the message priority. Given the varying priorities of commands issued by automotive ECUs or the sensitivity of control commands, and their tolerance for abnormal threats, encryption and decryption algorithms with varying security levels are utilized to encrypt and decrypt related command messages, achieving a balanced match between message security and execution speed. Separate encryption algorithm priority tables and corresponding algorithm execution library files are established, enabling rapid encryption algorithm selection and execution. Furthermore, the algorithm to be used for a particular session is determined based on a flag bit contained in an authentication information variable.

[0006] Optionally, the block-chaining-based security information authentication process employs the aforementioned encryption and decryption algorithm to perform MAC authentication on sent and received messages. This process includes steps such as freshness value synchronization and reconstruction, variable assembly of the information to be authenticated, encryption selection based on key flags, and MAC value calculation and verification based on the block-chaining method. Specifically, freshness value synchronization and reconstruction are performed on the transmitting and receiving ECU terminals, respectively. By introducing the concept of message frame freshness, the threat of replay attacks during the communication process is mitigated. The variable assembly of the information to be authenticated primarily consists of the ID values ​​of both parties in the conversation, the current freshness value, and the message frame data.

[0007] Alternatively, a dynamic key distribution mechanism can distribute session keys and dynamically update ECU master keys for each ECU terminal based on a key distribution center. This mechanism primarily utilizes a powerful automotive gateway to implement dynamic key updates and distribution. The specific process includes session key update requests, session key distribution, first-level session key signature verification, and second-level session key signature verification. Specifically, the automotive central gateway (or key distribution center) pre-sets the master keys of both communicating ECUs at the time the vehicle leaves the factory. In addition, each vehicle ECU also pre-sets its own master key. These pre-set master keys between ECUs are not publicly disclosed. The actual implementation process is based on the vehicle's communication needs: the sending ECU requests a key update from the key distribution center. Dynamic keys are then distributed and updated according to the central distribution logic. The key distribution center autonomously updates the next dynamic key upon each key update request. This design of the dynamic key distribution mechanism protects session keys from tampering or replay attacks during distribution, thereby ensuring the privacy, freshness, and confidentiality of session keys. This process relies primarily on the continuous dynamic updating of ECU master keys.

[0008] Optionally, each ECU in the vehicle can dynamically determine when to update the master key. The sending and receiving ECUs determine the master key update process based on whether they successfully received the session key. The key distribution center can then determine the update of the master key for both ECUs based on the receiver's periodic verification information. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 in the following description are merely embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without any creative work.

[0010] Figure 1 A schematic diagram of the framework of the enhanced CANFD secure communication solution provided by an embodiment of the present invention;

[0011] Figure 2 Allocate and recommend the number of bytes for the data field of message frames in secure communication schemes;

[0012] Figure 3 A schematic diagram of a CMAC authentication workflow provided by an embodiment of the present invention;

[0013] Figure 4 A schematic diagram of a session key distribution mechanism based on a key distribution center provided in an embodiment of the present invention;

[0014] Figure 5 A schematic diagram of the dynamic key distribution workflow provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0015] In order to make the above-mentioned objects, features and advantages of the present invention more clearly understood, the following detailed description of the specific embodiments of the present invention is given in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0016] The main purpose of the embodiments of the present invention is to ensure the message integrity, confidentiality, and freshness of the transmitting and receiving ECUs during bus communication. Specifically, a MAC verification mechanism is introduced for communication messages to ensure the integrity of the transmitted and received messages; an encryption and decryption scheme is introduced during the MAC calculation process to improve the confidentiality of the authentication message; freshness value management and freshness value verification are added during the MAC calculation process to reduce the risk of MAC value replay attacks; and, considering the key security during the message encryption and decryption process, a dynamic key update mechanism is introduced to update the session keys of the communicating parties in real time. On this basis, the ECU master key is introduced to encrypt the session key to ensure that the session key cannot be stolen or misused during the dynamic distribution process.

[0017] The implementation example of the present invention only introduces a simple routine involving three objects, namely the central gateway of the car and the ECUs of both communicating parties. In an extensible way, the proposed solution can also be extended to the communication routine of multiple devices including multiple communicating ECUs and multiple key distribution centers. The object of the present invention is the CANFD network or other similar multi-byte (greater than 8 bytes) communication network media. Relatively speaking, the traditional CAN network (containing only 8 bytes) is not suitable for this solution. There are two main reasons: first, the number of bytes occupied by the MAC code, freshness value, etc. will be no less than 4 bytes. Excessive byte occupation will reduce the data transmission efficiency of the CAN network. Second, the symmetric encryption and decryption algorithm used for MAC verification generally requires a 128-bit key and operation, which exceeds the bandwidth value allowed by the CAN network (i.e., 64 bits). The main execution carrier of the present invention is an embedded device or an embedded gateway, which is oriented towards vehicle-mounted objects and reduces dependence on cloud servers. Optionally, the symmetric encryption and decryption algorithm and MAC authentication processing involved in the present invention can be assisted by the hardware acceleration engine (hardware encryption engine or hardware security module) of the embedded device to promote the code execution speed of the security solution and reduce communication delays.

[0018] Figure 2 This paper describes the recommended byte allocation for the CAN network data field. Taking the CANFD network medium as an example, its data field consists of 64 bytes. Starting with the least significant bit of the data field, the MAC authentication code, encryption algorithm selection flag, intercepted fresh value, and data payload are arranged in this order. To ensure communication security, the MAC authentication code should be no less than 4 bytes. The number of bytes occupied by the encryption algorithm selection flag is selected based on the number of selectable symmetric encryption algorithms, with 4 bits generally recommended, allowing for a total of 15 encryption methods. The fresh value can be assigned a specific number of bytes based on the specific mode (such as timestamp, monotonic counter, or composite counter). Generally speaking, the fresh value occupies approximately 1 byte. Excessive fresh values ​​will increase the data segment occupancy and reduce data transmission efficiency. Furthermore, a fresh value manager can be designed in a third-party device to synchronize the fresh values ​​of the sending and receiving ECUs to compensate for fresh value loss or misalignment.

[0019] Figure 1This paper describes a framework diagram for enhanced secure CANFD network communication. The secure communication framework includes a message MAC calculation module, a message encryption and decryption module, and a dynamic key distribution module. The message encryption and decryption module is embedded in the MAC calculation module, while the dynamic key distribution module is responsible for distributing session keys and updating ECU master keys, serving the MAC calculation module. Specifically, the session key is used in the MAC calculation process between the communicating ECUs. The purpose of setting the ECU master key is to prevent tampering or replay attacks during the session key issuance process. The MAC calculation process is executed by the ECUs of both communicating parties, and the dynamic key distribution process is executed by the key distribution center and the ECUs of both communicating parties. Optionally, the key distribution center can use the vehicle's central gateway. For automotive electronic and electrical architectures with domain control structures, a domain controller or T-box can also be used as the execution device.

[0020] Figure 4 The paper also focuses on the MAC (Cipher BlockChaining Message Authentication Code, CMAC) authentication scheme for automotive ECU communication based on the cipher block chaining method. The complete MAC authentication scheme is introduced as follows:

[0021] (1) A complete message frame is divided into a data part and a message authentication part. The data part indicates the data information that the ECU needs to send to the bus, which is marked as PDU in the figure; the message authentication part specifically includes the freshness value (FV), the encryption algorithm selection flag (AF) and the message authentication code (MAC).

[0022] (2) First, the message sender (ECU-A) combines multiple data sets, including the current ECU freshness value, message ID value, and PDU data, into a complete data block to be verified, and places the data block in the MAC calculation module to calculate the MAC code of the message for this communication.

[0023] (3) The MAC calculation module based on the cryptographic algorithm selection selects a symmetric encryption algorithm according to the cryptographic algorithm flag, and performs MAC calculation on the data block to be verified mentioned above to obtain a MAC code; considering that the actual CANFD bus only allows 64 bytes of data transmission, the MAC code actually used in the communication process can be intercepted according to the actual automobile safety communication requirements; optionally, this article recommends intercepting the high 4 bytes of the complete MAC value as the MAC value of the communication process.

[0024] (4) The sending ECU-A packages the PDU data, fresh value (or part of the fresh value), cryptographic algorithm selection flag AF and intercepted MAC code into a complete CAN FD message frame and sends it to the receiving ECU-B.

[0025] (5) After receiving the message, the receiving ECU-B reconstructs the complete fresh value according to a certain fresh value management logic. Then, it performs MAC calculation on the current message frame based on the current ECU fresh value, message ID value, PDU data value, and AF flag to obtain the intercepted MAC code. By comparing it with the received MAC code, it determines whether the current message frame has been tampered with or replayed. If the verification passes, the complete PDU data value is imported into the ECU memory and the data is parsed according to the relevant CANFD protocol for vehicle control.

[0026] Optionally, the purpose of the cryptographic algorithm selection flag mentioned in the present invention is to select encryption algorithms of different security levels according to the sensitivity of a message. For example, for data that is easy to be tampered with, a stronger encryption algorithm is selected to encrypt or MAC verify the message frame, while for data that is not easy to be tampered with, a simpler encryption algorithm is selected; in addition, the present invention is compatible with ordinary security communication rules, that is, other parts of the present invention (such as dynamic key distribution and update, MAC verification, etc.) can be executed independently without relying on the encryption algorithm selection function. Therefore, in situations where higher data field utilization efficiency is required, the cryptographic algorithm selection flag can be discarded, so that a unified symmetric encryption algorithm is used to no longer distinguish the encryption priority.

[0027] Optionally, the method used to generate freshness values ​​for both the sending and receiving ECUs can include internal ECU timestamps, monotonic counters, or message counters using complex logic. To ensure consistency in freshness values ​​between the sending and receiving ECUs, comprehensive freshness value synchronization logic is required to ensure that both ECUs use the same freshness value for MAC verification when receiving messages. This freshness value synchronization logic can be implemented by a third-party device (such as a vehicle's central gateway or a domain controller) outside the sending and receiving ECUs, by sending synchronization messages. Specifically, for the method using ECU timestamp, the third-party device can periodically verify the current timestamp; for the method using monotonic counter, the message saturation mechanism can be utilized. When the message sent by the sender monotonically increases to a certain value, the sending ECU sends an overflow request to the third-party device, and the third-party device then verifies the receiving ECU. If a message asynchrony event occurs, the initial count value of the monotonic counter is reset; for the method using logical message counter, the third-party device assumes the responsibility of the fresh value manager, and periodically sends synchronization messages to the sending and receiving ECUs. The sending ECU inserts part of the fresh value information into the message frame and sends it to the receiving ECU as CAN data. The receiving ECU can reconstruct the complete fresh value based on the synchronization message and part of the fresh value information, and perform subsequent MAC verification.

[0028] Figure 3 The calculation flow chart of the CMAC process is described. Based on the block division results of the initial message frame, the CMAC processing process is divided into two calculation schemes: complete fast and incomplete blocks. The CMAC calculation process is mainly divided into the following five steps:

[0029] (1) Generate a subkey using a symmetric key. Use the symmetric key to encrypt 128 bits of binary zero (0000…0000) data to obtain the encrypted data string L: If the highest bit of L is zero, then the subkey K1 is K1=L<<1. Conversely, if the highest bit of L is 1, then the data string L is shifted left by 1 bit and XORed with a preset constant string Rb to obtain subkey K1=(L<<1)^Rb. If the highest bit of subkey K1 is zero, then the subkey is K2=K1<<1. If the highest bit of subkey K1 is 1, then the subkey K1 is shifted left by 1 bit and XORed with a preset constant string Rb to obtain subkey K2=(K1<<1)^Rb.

[0030] (2) If the encrypted message M is empty, the minimum number of encryption blocks is 1. Otherwise, the minimum number of encryption blocks is the smallest integer value not less than [Mlen / b], where Mlen represents the total length of the message M and b represents the bit length of the encryption block. Next, determine whether the encrypted message M can be divided into complete block groups based on the minimum number of encryption blocks:

[0031] (3) If the information to be encrypted can be divided into complete blocks, the last block Mn is XORed with the subkey K1 and used as the last block. If the information to be encrypted cannot be divided into complete blocks, it is first padded with a string of numbers (1000…0) to form a complete block, and then XORed with the subkey K2 to form the last block.

[0032] (4) Select a symmetric encryption algorithm based on the cryptographic algorithm flag bit to encrypt all blocks according to Figure 5 The logical flow shown performs cyclic encryption and selects the high 4 bytes of the last set of ciphertext data as the final MAC value.

[0033] Figure 5 This paper describes the logical framework for dynamic key updates (including session keys and ECU master keys). Its predefined conditions and operating environment are described below: All devices involved in the dynamic key update mechanism include the Key Distribution Center (KDC) (hosted by the vehicle's central gateway or domain controller) and each communicating ECU. The session key represents the symmetric key used for communication authentication between ECUs. This session key is used for algorithm encryption during MAC authentication and message transmission within the ECU. The ECU's master key is unique to each ECU and is used only for session key distribution. Its core purpose is to reduce the risk of tampering or replay during session key updates. The KDC stores the master keys of all ECUs, while the ECU only stores its own master key. The initial ECU master key, called the pre-set master key, is pre-set by the ECU manufacturer during manufacturing. The session key, used for authentication between communicating parties, is dynamically updated based on the vehicle's operating status and ECU operating conditions and is stored in the ECU's random access memory (RAM). The ECU master key is automatically updated after each session key update and is stored in the non-volatile memory of the KDC and the communicating ECU. The entire dynamic key update logic framework mainly includes three links: session key request and distribution, session key first verification and session key second verification. The session key request and distribution link is responsible for sending the session key generated by the key distribution center to the ECUs of both parties in the session. The first verification of the session key is used to ensure that the session keys obtained by the communicating parties are consistent, and the second verification is used to inform the key distribution center that the session key distribution process has been completed. After completing the second verification, the key distribution center iterates the ECU master key.

[0034] Figure 4 The specific process of dynamic key update is described, and its execution process is divided into the following 7 steps:

[0035] (1) First, ECUA, one of the communicating parties, requests session key distribution from the key distribution center in the form of a request message frame. The request message frame consists of the ID values ​​of the communicating parties and the temporary interaction number N1 in the form of an array OR. The temporary interaction number can be a fresh value, a random number, or a multi-modulus counter value. The key distribution center can design an anti-replay mechanism based on this identifier. Optionally, the request message frame can also be encrypted using ECU-A's master key for ciphertext transmission, improving the confidentiality of the request message frame transmission process.

[0036] (2) The key distribution center generates a session key and encrypts the session key content using the ECU master key, and then sends it to the key requester. The session key can be generated by a random number generator or a specially designed table. The core element is that each generated session key is completely random and has no pattern to follow, making it difficult to be cracked by reverse engineering. The encrypted content of the session key contains two parts of information: the first part is the session key information Enc(K related to ECU-A) A,k-1 ,(K s ||ID A ||ID B )), that is, the session key and two sets of ECU identity ID values ​​are encrypted using the master key of ECU-A, where the session key and ECU ID value are spliced ​​into a complete multi-byte data by filling the high and low significant bits. The second part is the session key information Enc(K B,k-1 ,(K s ||ID B )) This means that the session key and ECUB's identity ID value are encrypted using ECU-B's master key. It should be noted that since ECU-A cannot access ECU-B's master key, it cannot decrypt the second encrypted portion. Therefore, after the session key is encrypted, the two pieces of information are concatenated into a complete multi-byte data structure by padding the high- and low-significant bits. This data is then sent to ECU-A, the party requesting the key update. After this is sent, the key distribution center enters a delayed waiting phase, awaiting a verification between ECU-A and ECU-B. This delay is determined by the ECU's communication and computing capabilities and should be within seconds.

[0037] (3) ECU-A decrypts the first part of the information to obtain the session key and packages the second part of the information as is and sends it to ECU-B. ECU-A, the requester of the session key update, decrypts the first part of the encrypted information using its own master key to obtain the session key for this request. Simultaneously, when ECU-B receives the second part of the encrypted information, it can also decrypt it using its own master key to obtain the updated session key. At this point, both ECUs that intend to communicate have obtained the updated symmetric session key.

[0038] (4) The first verification is performed between ECU-A and ECU-B. To ensure that the session key is not replayed during the transmission from ECU-A to ECU-B, a verification is required between the two. ECU-B encrypts the temporary interaction number N2 using the latest session key and sends it to ECU-A for verification.

[0039] (5) ECU-A uses the latest session key to decrypt and obtain the temporary interaction number N2, and uses a specific operation method (including but not limited to XOR operation, shift operation, linear operation or accumulation operation, etc.) to perform a function operation on the temporary interaction number and send it to ECU-B for back-checking. After completing the transmission of the back-check information, ECU-A uses the following rules to update its own master key, that is, using the latest session key to encrypt the master key to obtain the updated ECU master key, that is, K A,k =Enc(K s ,[K A,k-1 ]). ECU-B receives the back-verification information, decrypts it with the session key to obtain the temporary interaction number N2, and verifies whether the temporary interaction number is legal according to the pre-agreed algorithm. If it is legal, it will use the following rules to synchronously update its own master key, that is, K B,k =Enc(K s ||K B,k-1 ).

[0040] (6) Secondary verification between the key distribution center and ECU-B. In order to synchronize the master keys of each ECU using the key distribution center, a second verification is required between the key distribution center and ECU-B. That is, the key distribution center encrypts the temporary interaction number N3 using the latest session key and sends it to ECU-B for verification.

[0041] (7) After receiving the secondary verification information from the key distribution center, ECU-B uses the latest session key to decrypt and obtain the temporary interaction number, and then uses a specific operation rule to perform a function transformation on N3 and package it and send it to the key distribution center for back verification. After the key distribution center confirms that the message is reasonable, it can confirm that the session key has been updated. Finally, the following rules are used to synchronize the ECU master key, that is, K A,k =Enc(K s ,[K A,k-1 ]), K B,k =Enc(K s ||K B,k-1 ).

[0042] The ECU master keys discussed in this article are stored in non-volatile memory within the key distribution center and each ECU. Once the latest master key is updated and confirmed, the previous value is overwritten. Session keys are stored only in random access memory. When a vehicle ECU is shut down, put into sleep mode, or loses power, the ECU must re-request the session key.

[0043] In the present invention, the MAC verification link mentioned is introduced using the CMAC scheme as an example, but in the actual application process, other MAC schemes, such as the hash MAC method, can be freely selected according to the computing power of the automobile ECU device.

[0044] In this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.

[0045] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0046] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An enhanced automotive CANFD network security communication method and system, It is characterized in that A real-time communication system for an automotive CANFD network is described, comprising: The encryption and decryption process of multi-byte communication messages uses encryption and decryption algorithms of different levels according to the priority or sensitivity of the communication message; The block-linked security information authentication uses the encryption and decryption algorithm to perform MAC calculation and verification on the message frame to be sent and received; The dynamic key distribution mechanism uses the key distribution center to distribute session keys to each ECU terminal and update the ECU master key.

2. The method according to claim 1, It is characterized in that The encryption and decryption process of the described multi-byte communication message can select different encryption and decryption algorithms according to the sensitivity of the message frame or the message priority.

3. The method according to claim 1, It is characterized in that When performing MAC calculation on the message frame to be sent or received, the encryption information that can be selected includes but is not limited to the communication ID value, synchronization freshness value, message frame data, and the flag bit of the encryption algorithm; Methods for calculating the MAC value of messages to be sent and received include but are not limited to the classic cipher block-chaining method, hash verification method, and the like.

4. The method according to claim 1, It is characterized in that The described dynamic key distribution mechanism uses a key distribution center to implement processes such as session key distribution for each ECU terminal and master key update for the automotive ECU; The device or system that serves as the key distribution center can be the central gateway, domain controller, T-BOX device, etc. of the car; The dynamic key distribution mechanism includes processes such as session key update request, session key distribution, session key first-level signature verification, and session key second-level signature verification. The design of the dynamic key distribution mechanism prevents the session key from being tampered with or replayed during the distribution process, thereby ensuring the privacy, freshness and confidentiality of the session key. This process mainly relies on the continuous dynamic update of the ECU master key.

5. The method according to claim 1, It is characterized in that The intercommunication capability of the master keys of each ECU of the car. The sender ECU and the receiver ECU determine the update process of the master key based on the success or failure of receiving the session key, and the key distribution center determines the update of the master key of the ECUs of both parties in the session based on the periodic verification information of the receiver.

Citation Information

Cited By

  • External equipment authentication method and device, electronic equipment and storage medium

    CN120320984A

  • An external device authentication method and apparatus, an electronic device, and a storage medium

    CN120320984B

  • Trusted CAN communication method and system based on dual-channel and closed-loop encryption and decryption

    CN120455196A

  • Vehicle-mounted communication security authentication method and system based on layered dynamic key

    CN120602928A

  • A vehicle communication security authentication method and system based on hierarchical dynamic keys

    CN120602928B