Encryption method, system and storage medium for vehicle control command interaction

By using RSA algorithm to encrypt vehicle control instructions in intelligent connected vehicles, and through the uniqueness of decryption parameters and pre-burning technology, the security problem of vehicle control instructions encryption is solved, and the security and data confidentiality of communication between the vehicle and the outside world are achieved.

CN119766524APending Publication Date: 2025-04-04COWA TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411899492.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

With the development of intelligent connected vehicle technology, the encryption of vehicle control instructions has become an important need to protect vehicle and personal privacy and prevent hacker attacks, but the existing technology is difficult to effectively solve this problem.

Method used

An encryption method for vehicle control instruction interaction is proposed. By generating random numbers by the controlled unit and using the RSA algorithm for encryption processing, the security of the encrypted data during transmission is ensured, and through the uniqueness of the decryption parameters and the preburning technology, control instruction tampering caused by leakage of the controlled unit is prevented.

Benefits of technology

Effectively prevent control errors caused by hacker attacks and network errors, ensure the security of vehicle communication with the outside world, maintain vehicle security, and enhance the confidentiality of vehicle data and control data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766524A_ABST
    Figure CN119766524A_ABST
Patent Text Reader

Abstract

The present invention discloses an encryption method, system and storage medium for vehicle control command interaction, the encryption method comprising: the controlled unit is powered on, the controlled unit generates a random number x; the controlled unit encrypts the random number x according to known encryption parameters and a preset encryption algorithm to obtain encrypted data y; the controlled unit sends the encrypted data y to the control unit; after the control unit receives the encrypted data y, it decrypts the encrypted data y according to known decryption parameters and a preset decryption algorithm to obtain decrypted data z; the control unit sends the decrypted data z to the controlled unit; after the controlled unit receives the decrypted data z, it determines whether the decrypted data z is consistent with the generated random number x; if they are consistent, the verification is passed; if they are inconsistent, a fault is reported. Encrypted communication by the method of the present invention can effectively prevent control errors caused by hacker attacks and network errors, ensure the security of vehicle communication with the outside world, and maintain vehicle safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information security technology for intelligent networked vehicles, and specifically relates to an encryption method, system and storage medium for vehicle control command interaction. Background Art

[0002] With the rapid development of autonomous driving and intelligent connected vehicles, the information exchange between vehicle internal controllers and between vehicles and the outside world has become more and more frequent, and the amount of communication information has continued to increase, which has put forward higher requirements for data security. In general, vehicle control command encryption is not only necessary to protect personal privacy and vehicle safety, but also an important means to promote technological innovation, meet regulatory requirements, respond to future challenges, improve user experience and reduce operating costs. With the continuous advancement of intelligent connected vehicle technology, strengthening the research and development and application of vehicle control command encryption technology will be one of the key trends in the development of the automotive industry. Summary of the invention

[0003] In order to solve the above technical problems, the present invention proposes an encryption method, system and storage medium for vehicle control command interaction.

[0004] In order to achieve the above object, the technical solution of the present invention is as follows:

[0005] In a first aspect, the present invention discloses an encryption method for vehicle control instruction interaction, comprising:

[0006] Step S1: the controlled unit generates a random number x;

[0007] Step S2: the controlled unit encrypts the random number x according to known encryption parameters and a preset encryption algorithm to obtain encrypted data y;

[0008] Step S3: The controlled unit sends the encrypted data y to the control unit;

[0009] Step S4: After receiving the encrypted data y, the control unit decrypts the encrypted data y according to known decryption parameters and a preset decryption algorithm to obtain decrypted data z;

[0010] Step S5: The control unit sends the decrypted data z to the controlled unit;

[0011] Step S6: After receiving the decrypted data z, the controlled unit determines whether the decrypted data z is consistent with the generated random number x;

[0012] If they are consistent, the verification is passed, and the control unit and the controlled unit begin to exchange control instructions normally;

[0013] If they do not match, a fault is reported.

[0014] Based on the above technical solution, the following improvements can be made:

[0015] As a preferred solution, the decryption parameters and the decryption algorithm are unknown to the controlled unit.

[0016] As a preferred solution, in step S2, the preset encryption algorithm adopts the RSA algorithm, as shown below:

[0017] y = x^a mod n;

[0018] Where: x is the random number before encryption;

[0019] y is the encrypted data;

[0020] a and n are known encryption parameters.

[0021] As a preferred solution, in step S4, the preset decryption algorithm is as follows:

[0022] z = y^b mod n;

[0023] Where: y is the encrypted data;

[0024] z is the decrypted data;

[0025] b and n are known decryption parameters, which are pre-burned in the control unit storage. The b and n parameters of each control unit are unique.

[0026] As a preferred solution, when an existing controlled unit is replaced, the encryption parameters are transmitted through a specific trusted channel and burned into the new controlled unit;

[0027] When an existing control unit is replaced, the decryption parameters are transmitted through a specific trusted channel and burned into the new controlled unit.

[0028] In a second aspect, the present invention discloses an encryption system for vehicle control command interaction, comprising: a controlled unit and a control unit, wherein the controlled unit and the control unit are used to execute any of the above-mentioned encryption methods for vehicle control command interaction.

[0029] As a preferred solution, the controlled unit includes:

[0030] Random number generation module, used to generate random number x;

[0031] The encryption module is used to encrypt the random number x according to known encryption parameters and a preset encryption algorithm to obtain encrypted data y;

[0032] A controlled sending module, used for sending the encrypted data y to the control unit;

[0033] The controlled receiving module is used to receive the decrypted data z sent by the control unit;

[0034] The verification module is used to verify the consistency between the decrypted data z and the generated random number x.

[0035] As a preferred solution, the control unit includes:

[0036] A control receiving module, used for receiving the encrypted data y sent by the controlled unit;

[0037] A decryption module is used to decrypt the encrypted data y according to preset known decryption parameters and a decryption algorithm to obtain decrypted data z;

[0038] The control sending module is used to send the decrypted data z to the controlled unit.

[0039] In a third aspect, the present invention discloses a storage medium storing one or more computer-readable programs, wherein the one or more programs include instructions suitable for being loaded by a memory and executing any of the above-mentioned encryption methods for vehicle control command interaction.

[0040] The present invention discloses an encryption method, system and storage medium for vehicle control command interaction, which have the following beneficial effects:

[0041] First, before the control instructions are exchanged between the control unit and the controlled unit, encrypted communication is performed using the method of the present invention, which can effectively prevent control errors caused by hacker attacks and network errors, ensure the security of communication between the vehicle and the outside world, and maintain vehicle safety.

[0042] Second, the present invention adopts RSA encryption algorithm, which is irreversible. Compared with the standard symmetric encryption algorithm, it ensures that even if one party leaks the secret, the communication security will not be affected, and effectively avoids the risk of control instructions being tampered due to the leakage of the controlled unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A flowchart of an encryption method for vehicle control instruction interaction provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] The expression of “comprising” an element is an “open” expression, which merely means that a corresponding component or step exists, and should not be interpreted as excluding additional components or steps.

[0048] In order to achieve the purpose of the present invention, some embodiments of the encryption method, system and storage medium for vehicle control command interaction are as follows: Figure 1 As shown, the encryption methods include:

[0049] Step S1: The controlled unit is powered on and generates a random number x;

[0050] Step S2: the controlled unit encrypts the random number x according to a preset encryption algorithm to obtain encrypted data y;

[0051] Step S3: The controlled unit sends the encrypted data y to the control unit via the CAN bus, sending 5 frames at an interval of 100ms;

[0052] Step S4: After receiving the encrypted data y, the control unit decrypts the encrypted data y according to a preset decryption algorithm to obtain decrypted data z;

[0053] Step S5: The control unit sends the decrypted data z to the controlled unit via the CAN bus, sending 5 frames at an interval of 100ms;

[0054] Step S6: After receiving the decrypted data z, the controlled unit determines whether the decrypted data z is consistent with the generated random number x, that is, whether z is equal to x;

[0055] If they are consistent, the verification is passed, the controlled unit is turned on, and the control unit and the controlled unit begin to exchange control instructions normally;

[0056] If they are inconsistent, a fault is reported, the motor is stopped, and the power is turned off and restarted to recover.

[0057] The above decryption parameters and decryption algorithm are unknown to the controlled unit.

[0058] The larger the random number x is, the larger the decryption key is, which will increase the amount of calculation and the calculation time range. Therefore, in some embodiments, in the above step S1, the range of the random number x generated by the controlled unit is a positive integer between 10000 and 1000000. By limiting the range of the random number x, the size of the decryption key is limited.

[0059] In some embodiments, in the above step S2, the preset encryption algorithm adopts the RSA algorithm, as shown below:

[0060] y = x^a mod n;

[0061] Where: x is the random number before encryption;

[0062] y is the encrypted data;

[0063] a and n are known encryption parameters.

[0064] The encryption algorithm is specifically: encrypted data y=the remainder of the a-th power of the data x before encryption to n.

[0065] In some embodiments, in the above step S4, the preset decryption algorithm is as follows:

[0066] z = y^b mod n;

[0067] Where: y is the encrypted data;

[0068] z is the decrypted data;

[0069] b and n are known decryption parameters, which are pre-burned in the control unit storage. The b and n parameters of each control unit are unique.

[0070] Each of these control units is unique.

[0071] The above decryption algorithm is specifically: decrypted data z=encrypted data y raised to the power of b and the remainder thereof is calculated with respect to n.

[0072] The present invention adopts RSA algorithm. a and b can be two prime numbers selected randomly.

[0073] The encryption method disclosed in the present invention is irreversible. The controlled unit cannot calculate the decrypted data z by itself based on the known random number x, the encrypted data y and the encryption formula y=x^a mod n. The decrypted data z can only be calculated by the control unit based on the decryption formula z=y^b mod n, because the decryption formula and the decryption parameter b are not informed to the controlled unit.

[0074] The present invention can effectively prevent control instructions from being tampered with due to leakage of secrets of the controlled unit.

[0075] In some specific embodiments, a, b, and n are preset coefficients, such as:

[0076] n = 1308007;

[0077] a=238703;

[0078] b=601167.

[0079] When a, b, and n are in the cloud, they are verified to be authentic and reliable, and then distributed to the corresponding controlled units and control units to enable encrypted interaction.

[0080] The present invention can effectively maintain vehicle safety and protect driving safety; enhance the confidentiality of vehicle data and control data; prevent hacker attacks and improve data reliability.

[0081] When the existing controlled unit is repaired and replaced, the encrypted parameters are transmitted through a specific trusted channel and burned into the new controlled unit;

[0082] When an existing control unit is repaired and replaced, the decryption parameters are transmitted through a specific trusted channel and burned into the new controlled unit.

[0083] An embodiment of the present invention further discloses an encryption system for vehicle control command interaction, including: a controlled unit and a control unit, wherein the controlled unit and the control unit are used to execute the encryption method for vehicle control command interaction disclosed in any of the above embodiments.

[0084] The above-mentioned controlled units include:

[0085] Random number generation module, used to generate random number x;

[0086] The encryption module is used to encrypt the random number x according to known encryption parameters and a preset encryption algorithm to obtain encrypted data y;

[0087] A controlled sending module, used for sending the encrypted data y to the control unit;

[0088] The controlled receiving module is used to receive the decrypted data z sent by the control unit;

[0089] The verification module is used to verify the consistency between the decrypted data z and the generated random number x.

[0090] The control unit comprises:

[0091] A control receiving module, used for receiving the encrypted data y sent by the controlled unit;

[0092] A decryption module is used to decrypt the encrypted data y according to known decryption parameters and a preset decryption algorithm to obtain decrypted data z;

[0093] The control sending module is used to send the decrypted data z to the controlled unit.

[0094] In addition, an embodiment of the present invention also discloses a storage medium, which stores one or more computer-readable programs, and the one or more programs include instructions, which are suitable for being loaded by a memory and executing the encryption method for vehicle control command interaction disclosed in any of the above embodiments.

[0095] The present invention discloses an encryption method, system and storage medium for vehicle control command interaction, which have the following beneficial effects:

[0096] First, before the control instructions are exchanged between the control unit and the controlled unit, encrypted communication is performed using the method of the present invention, which can effectively prevent control errors caused by hacker attacks and network errors, ensure the security of communication between the vehicle and the outside world, and maintain vehicle safety.

[0097] Second, the present invention adopts RSA algorithm encryption, and the encryption algorithm is irreversible. Compared with the standard symmetric encryption algorithm, it ensures that even if one party leaks the secret, the communication security will not be affected, and effectively avoids the risk of control instructions being tampered with due to the leakage of the controlled unit. The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only to illustrate the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention will have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected. The scope of protection required by the present invention is defined by the attached claims and their equivalents.

Claims

1. An encryption method for vehicle control command interaction, characterized in that: include: Step S1: the controlled unit generates a random number x; Step S2: the controlled unit encrypts the random number x according to known encryption parameters and a preset encryption algorithm to obtain encrypted data y; Step S3: The controlled unit sends the encrypted data y to the control unit; Step S4: After receiving the encrypted data y, the control unit decrypts the encrypted data y according to known decryption parameters and a preset decryption algorithm to obtain decrypted data z; Step S5: The control unit sends the decrypted data z to the controlled unit; Step S6: After receiving the decrypted data z, the controlled unit determines whether the decrypted data z is consistent with the generated random number x; If they are consistent, the verification is passed, and the control unit and the controlled unit begin to exchange control instructions normally; If they do not match, a fault is reported.

2. The encryption method according to claim 1, characterized in that: The decryption parameters and decryption algorithm are unknown to the controlled unit.

3. The encryption method according to claim 1 or 2, characterized in that: In step S2, the preset encryption algorithm adopts the RSA algorithm, which is as follows: y = x^a mod n; Where: x is the random number before encryption; y is the encrypted data; a and n are known encryption parameters.

4. The encryption method according to claim 3, characterized in that: In step S4, the preset decryption algorithm is as follows: z = y^b mod n; Where: y is the encrypted data; z is the decrypted data; b and n are known decryption parameters, which are pre-burned in the control unit storage. The b and n parameters of each control unit are unique.

5. The encryption method according to claim 1, characterized in that: When an existing controlled unit is replaced, the encrypted parameters are transmitted through a specific trusted channel and burned into the new controlled unit; When an existing control unit is replaced, the decryption parameters are transmitted through a specific trusted channel and burned into the new controlled unit.

6. An encryption system for vehicle control command interaction, characterized in that: include: A controlled unit and a control unit, wherein the controlled unit and the control unit are used to execute the encryption method for vehicle control instruction interaction as described in any one of claims 1-5.

7. The encryption system according to claim 6, characterized in that: The controlled unit comprises: Random number generation module, used to generate random number x; The encryption module is used to encrypt the random number x according to known encryption parameters and a preset encryption algorithm to obtain encrypted data y; A controlled sending module, used for sending the encrypted data y to the control unit; The controlled receiving module is used to receive the decrypted data z sent by the control unit; The verification module is used to verify the consistency between the decrypted data z and the generated random number x.

8. The encryption system according to claim 6, characterized in that: The control unit comprises: A control receiving module, used for receiving the encrypted data y sent by the controlled unit; A decryption module is used to decrypt the encrypted data y according to known decryption parameters and a preset decryption algorithm to obtain decrypted data z; The control sending module is used to send the decrypted data z to the controlled unit.

9. A storage medium, characterized in that The storage medium stores one or more computer-readable programs, and the one or more programs include instructions, which are suitable for being loaded by the memory and executing the encryption method for vehicle control command interaction described in any one of claims 1-5.