An encryption and decryption engine system, method and vehicle based on multi-threaded concurrent processing

By adopting the design of multi-threaded concurrent processing and virtual security channels in the encryption and decryption engine system, the problems of inflexible hardware encryption and decryption and low efficiency of traditional software encryption and decryption are solved, achieving efficient and flexible encryption and decryption processing, and meeting the needs of automotive electronics. Technology needs for information security.

CN113626839BActive Publication Date: 2024-09-10CHINA AUTOMOTIVE INNOVATION CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110836244.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-03-31
Filing Date
2021-07-23
Publication Date
2024-09-10
Estimated Expiration
2041-07-23

AI Technical Summary

Technical Problem

The hardware encryption and decryption solutions in the existing technology are inflexible and lack diversity, while traditional software encryption and decryption are inefficient and not real-time, and cannot meet the high requirements of automotive electronics technology for information security.

Method used

It adopts an encryption and decryption engine system based on multi-threaded concurrent processing, performs encryption and decryption operations through two independent cores, uses virtual security channels and mutually exclusive access mechanisms to achieve data interaction, and provides encryption and decryption service management, interface modules, driver modules and other components. , supports international standards and national standard algorithms to meet different needs.

Benefits of technology

It improves the execution efficiency and software performance of encryption and decryption algorithms, enhances the flexibility and diversity of data interaction, avoids blocking problems caused by hardware resource sharing, and meets the information security needs of automotive electronic and electrical control units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113626839B_ABST
    Figure CN113626839B_ABST
Patent Text Reader

Abstract

The present invention relates to an encryption and decryption engine system, method and automobile based on multi-threaded concurrent processing. The system includes a first core and a second core. The first core includes an encryption and decryption service management module, an encryption and decryption interface module and a first virtual security channel. The encryption and decryption service management module is used to call the encryption and decryption interface module, and the encryption and decryption interface module is used to send an encryption request or a decryption request through the first virtual security channel; the second core includes a second virtual security channel and a security interface module. The second virtual security channel is used to receive the encryption request or the decryption request and send it to the security interface module, and then the second core performs an encryption operation or a decryption operation. By making complex applications and encryption and decryption algorithms with large computational loads independent of each other, the application functions are made more stable and reliable, while the execution efficiency of the encryption and decryption algorithms is improved, meeting the needs of flexibility and diversity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data security technology, and in particular to an encryption and decryption engine system, method and automobile based on multi-threaded concurrent processing. Background Art

[0002] With the rapid development of automotive electronic technology, automobile intelligence and networking have become the general trend, and higher requirements have been put forward for the information security of electronic and electrical control units. The basis of information security is to implement various cryptographic algorithms to ensure the integrity, reliability and confidentiality of data. There are currently two main implementation schemes. One is to implement relevant cryptographic algorithms in hardware and establish a software framework based on hardware. Typical hardware implementation schemes include HSM (Hardware Security Module), SHE (Security Hardware Extension), and the implementation of relevant cryptographic algorithms through external encryption chips; the other is the traditional pure software implementation of relevant cryptographic algorithms.

[0003] The hardware implements the cryptographic algorithm to provide an interface for the Service layer through hardware abstraction. SWC (Software Component) and other modules of BSW (Basic Software) directly access the Service layer interface to finally realize data encryption and decryption. HSM and SHE are hardware modules inside the chip. When applied, you can choose to integrate or not integrate OS (Operating System). If OS is integrated, its data interaction is more flexible and avoids blocking. The disadvantage is that it must be integrated separately and cannot be shared with applications. If OS is not integrated, there is a risk of blocking during data interaction. This solution of implementing cryptographic algorithms through hardware is completely dependent on hardware design, and the types of algorithms are limited, which cannot meet diverse needs. In addition, with the rapid development of domestic Internet of Vehicles and vehicle network communications, national encryption algorithms will become mandatory application requirements, and there are few chips on the market that support national encryption algorithms. In addition, due to the limitations of hardware technology, the cost of chips containing hardware encryption modules is relatively high.

[0004] The traditional software implementation of encryption and decryption algorithms is to implement the algorithms through software during the engineering development process and provide algorithm interfaces. The service layer is provided with an interface through hardware abstraction. When there is a need for encryption and decryption, SWC and other BSW modules directly call the service interface to implement encryption and decryption. The algorithm implementation of this solution runs on the same core as the application program, sharing hardware resources such as the CPU (central processing unit) clock and RAM (random access memory), which will affect the execution efficiency of the algorithm, thereby reducing the overall performance of the software and the real-time performance of network communications. Therefore, in practical applications, this solution is generally only suitable for integrity and reliability verification, as well as encryption and decryption processing of small traffic data.

[0005] Therefore, it is necessary to provide an encryption and decryption engine system that can ensure concurrent processing of applications and encryption and decryption algorithms and improve the execution efficiency of encryption and decryption algorithms, facilitate entry, and meet flexibility and diversity to solve the above technical problems. Summary of the invention

[0006] In order to solve the above technical problems, the present invention provides an encryption and decryption engine system based on multi-threaded concurrent processing, which solves the problems of inflexibility and lack of diversity of hardware encryption and decryption in the prior art, as well as low efficiency and weak real-time performance of traditional software encryption and decryption.

[0007] The technical effects of the present invention are achieved as follows:

[0008] An encryption and decryption engine system based on multi-threaded concurrent processing includes a first core and a second core, wherein the first core is used to process an application program, and the second core is used to process an encryption request or a decryption request initiated by the first core;

[0009] The first core includes an encryption and decryption service management module, an encryption and decryption interface module and a first virtual security channel, the encryption and decryption service management module is used to call the encryption and decryption interface module, and the encryption and decryption interface module is used to send an encryption request or a decryption request through the first virtual security channel;

[0010] The second core includes a second virtual security channel and a security interface module, the second virtual security channel is connected to the first virtual security channel, the second virtual security channel is used to receive the encryption request or the decryption request and send it to the security interface module, and the second core is set to perform the encryption operation or the decryption operation after the security interface module receives the encryption request or the decryption request. By setting the first core and the second core, the algorithm operation can be realized by using an independent core, so that the complex application and the encryption and decryption algorithm with large calculation amount are independent of each other, avoiding the sharing of hardware resources between the two, thereby ensuring the concurrent processing of the application and the encryption and decryption algorithm, making the application function more stable and reliable, and at the same time improving the execution efficiency of the encryption and decryption algorithm, the overall performance of the software and the real-time performance of the communication, and using software to implement the encryption and decryption algorithm, greatly improving the flexibility and diversity, solving the problems of inflexibility and insufficient diversity of hardware encryption and decryption in the prior art, and low efficiency and weak real-time performance of traditional software encryption and decryption. By setting the first virtual security channel and the second virtual security channel, an interface for data interaction through shared memory is provided between the first core and the second core, making the data interaction between the first core and the second core more flexible, and effectively avoiding the blocking problem.

[0011] Furthermore, the first virtual security channel and the second virtual security channel are configured to exchange data through a mutually exclusive access mechanism. By adding a mutually exclusive access mechanism, different request channels can be established through different requests from different software components of the first core.

[0012] Furthermore, the second core also includes a scheduling management module, and the scheduling management module is used to perform unified scheduling management on the encryption request or the decryption request.

[0013] Furthermore, the second core also includes an encryption and decryption driver module, which is used to implement encryption or decryption operations based on AES and / or RSA and / or SHA and / or SM algorithms. The encryption and decryption driver module can implement international standard algorithms such as AES, RSA and SHA, as well as national standard cryptographic algorithms such as SM, and algorithms customized by various automobile OEMs, so as to meet different needs and different application scenarios.

[0014] Furthermore, the second core also includes a secure boot module, and the secure boot module is used to verify the integrity of the application when the second core is started.

[0015] Furthermore, the second core also includes a key management module, and the key management module is used to manage and store keys for encryption operations and decryption operations.

[0016] Furthermore, the second core also includes a certificate management module, and the certificate management module is used to perform digital signature based on a private key and / or verify a digital signature based on a public key.

[0017] Furthermore, the second core also includes a storage module, and the storage module is used to store the secret key and / or the digital signature.

[0018] In addition, a method for an encryption and decryption engine based on multi-threaded concurrent processing is also provided. The method is implemented based on the above-mentioned encryption and decryption engine system based on multi-threaded concurrent processing, and the method includes:

[0019] Using the encryption and decryption service management module to call the encryption and decryption interface module;

[0020] Sending an encryption request or a decryption request through the first virtual security channel based on the encryption and decryption interface module;

[0021] Using the second virtual security channel to receive the encryption request or the decryption request and send it to the security interface module;

[0022] When the security interface module receives the encryption request or the decryption request, the second core performs an encryption operation or a decryption operation.

[0023] In addition, a car is also provided, comprising the above-mentioned encryption and decryption engine system based on multi-threaded concurrent processing.

[0024] As described above, the present invention has the following beneficial effects:

[0025] 1) By setting up the first core and the second core, independent cores can be used to implement algorithm operations, so that complex applications and encryption and decryption algorithms with large computational complexity are independent of each other, avoiding the two from sharing hardware resources, thereby ensuring the concurrent processing of applications and encryption and decryption algorithms, making application functions more stable and reliable, and at the same time improving the execution efficiency of encryption and decryption algorithms, the overall performance of the software, and the real-time performance of communications. The use of software to implement encryption and decryption algorithms greatly improves flexibility and diversity, and solves the problems of inflexibility and lack of diversity of hardware encryption and decryption in the prior art, as well as low efficiency and poor real-time performance of traditional software encryption and decryption.

[0026] 2) By setting the first virtual security channel and the second virtual security channel, an interface for data interaction between the first core and the second core is provided through shared memory, making data interaction between the first core and the second core more flexible and effectively avoiding blocking problems.

[0027] 3) By adding a mutually exclusive access mechanism, different request channels can be established through different requests of different software components of the first core.

[0028] 4) The encryption and decryption driver module can implement international standard algorithms such as AES, RSA and SHA, as well as national standard cryptographic algorithms such as SM, and algorithms customized by various automobile OEMs, so as to meet different needs and different application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0030] Figure 1 An architecture diagram of an encryption and decryption engine system based on multi-threaded concurrent processing provided in an embodiment of the present application;

[0031] Figure 2 A structural block diagram of an encryption and decryption engine system based on multi-threaded concurrent processing provided in an embodiment of the present application.

[0032] Among them, the reference numerals in the figure correspond to:

[0033] The first core 1, the encryption and decryption service management module 11, the encryption and decryption interface module 12, the first virtual security channel 13, the second core 2, the second virtual security channel 21, the security interface module 22, the scheduling management module 23, the encryption and decryption driver module 24, the security boot module 25, the key management module 26, the certificate management module 27, and the storage module 28. DETAILED DESCRIPTION

[0034] 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 making creative work are within the scope of protection of the present invention.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] Embodiment 1:

[0037] like Figure 1 and Figure 2 As shown, an embodiment of the present application provides an encryption and decryption engine system based on multi-threaded concurrent processing, including a first core 1 and a second core 2, wherein the first core 1 is used to process an application, and the second core 2 is used to process an encryption request or a decryption request initiated by the first core 1;

[0038] The first core 1 includes an encryption and decryption service management module 11, an encryption and decryption interface module 12 and a first virtual security channel 13, wherein the encryption and decryption service management module 11 is used to call the encryption and decryption interface module 12, and the encryption and decryption interface module 12 is used to send an encryption request or a decryption request through the first virtual security channel 13;

[0039] The second core 2 includes a second virtual security channel 21 and a security interface module 22. The second virtual security channel 21 is connected to the first virtual security channel 13. The second virtual security channel 21 is used to receive encryption requests or decryption requests and send them to the security interface module 22. The second core 2 is configured to perform encryption operations or decryption operations after the security interface module 22 receives encryption requests or decryption requests.

[0040] It should be noted that the first core 1 is used to process complex application functions and uses independent CPU clocks, RAM and other hardware resources; the second core 2 is used to process the encryption and decryption requests initiated by the first core 1, and its main functions include secure startup, key management, certificate management, algorithm implementation and storage functions. The second core 2 uses independent CPU (central processing unit) clocks, RAM (random access memory) and other hardware resources, and can choose to integrate an independent OS (operating system) or share OS with the first core 1, so that the data interaction between the first core 1 and the second core 2 is more flexible, and the blocking problem can be effectively avoided. By setting the first core 1 and the second core 2, independent cores can be used to implement algorithm operations, so that complex applications and encryption and decryption algorithms with large computational loads are independent of each other, avoiding the sharing of hardware resources between the two, thereby ensuring that the application and the encryption and decryption algorithm are processed concurrently, making the application function more stable and reliable, while improving the execution efficiency of the encryption and decryption algorithm, the overall performance of the software and the real-time performance of the communication, and using software to implement the encryption and decryption algorithm, greatly improving the flexibility and diversity, solving the problems of inflexibility and lack of diversity of hardware encryption and decryption in the prior art, and low efficiency and weak real-time performance of traditional software encryption and decryption.

[0041] Specifically, the first core 1 includes a plurality of different SWCs, where the SWCs are software components used by the application layer and are used to call the encryption and decryption interface module 12 through the encryption and decryption service management module 11 to send encryption requests or decryption requests.

[0042] Specifically, the main functions of the encryption and decryption service management module 11 include accessing encryption and decryption services, configuring cryptographic services and executing service algorithms, configuring synchronous or asynchronous access, configuring security counters, and configuring key and certificate operations.

[0043] Specifically, the encryption / decryption interface module 12 provides a unified interface for different encryption / decryption solutions. Whether it is software-based encryption or hardware-based encryption, the encryption / decryption interface module 12 is used for access.

[0044] Specifically, the first virtual security channel 13 provides an interface for data interaction between the first core 1 and the second core 2 by means of shared memory, so that the data interaction between the first core 1 and the second core 2 is more flexible and can effectively avoid blocking problems.

[0045] It should be noted that the present application is not limited to the dual-core operation of the first core 1 and the second core 2. As long as the implementation of the encryption and decryption algorithm can run on an independent core and can run concurrently with other cores, the application layer SWC of other cores can send encryption requests or decryption requests through the first virtual security channel 13.

[0046] Specifically, the first virtual security channel 13 and the second virtual security channel 21 are configured to exchange data through a mutually exclusive access mechanism. By adding a mutually exclusive access mechanism, different request channels can be established through different requests from different SWCs of the first core 1.

[0047] Specifically, the second core 2 further includes a scheduling management module 23, and the scheduling management module 23 is used to perform unified scheduling management on encryption requests or decryption requests.

[0048] Specifically, the second core 2 also includes an encryption and decryption driver module 24, which is used to implement encryption or decryption operations based on AES and / or RSA and / or SHA and / or SM algorithms. The encryption and decryption driver module can implement international standard algorithms such as AES, RSA and SHA, as well as national standard cryptographic algorithms such as SM, and algorithms customized by various automobile OEMs, so as to meet different needs and different application scenarios.

[0049] Specifically, the second core 2 further includes a secure boot module 25, which is used to verify the integrity of the application when the second core 2 is started. The main purpose is to ensure the integrity of the application when the software is started.

[0050] Specifically, the second core 2 further includes a key management module 26, which is used to manage and store keys for encryption and decryption operations.

[0051] Specifically, key management is the unified management and storage of keys for all algorithms, including private keys for symmetric encryption algorithms and private and public keys for public key encryption algorithms.

[0052] Specifically, the second core 2 further includes a certificate management module 27, and the certificate management module 27 is used to perform digital signature based on a private key and / or verify a digital signature based on a public key.

[0053] Specifically, the second core 2 further includes a storage module 28, which is used to store data such as keys and / or digital signatures to ensure the integrity, reliability and confidentiality of the stored data.

[0054] The embodiment of the present application also provides an encryption and decryption engine method based on multi-threaded concurrent processing. The method is implemented based on the encryption and decryption engine system based on multi-threaded concurrent processing in Embodiment 1. The method includes:

[0055] Using the encryption and decryption service management module 11 to call the encryption and decryption interface module 12;

[0056] Sending an encryption request or a decryption request through the first virtual security channel 13 based on the encryption and decryption interface module 12;

[0057] Using the second virtual security channel 21 to receive the encryption request or decryption request and send it to the security interface module 22;

[0058] When the security interface module 22 receives the encryption request or the decryption request, the second core 2 performs the encryption operation or the decryption operation.

[0059] Embodiment 2:

[0060] The embodiment of the present application provides a car, including the encryption and decryption engine system based on multi-threaded concurrent processing in embodiment 1. In terms of automobile electrical control, an encryption and decryption engine system based on multi-threaded concurrent processing is provided to meet the information security requirements of automobile electronic and electrical control units, ensure the integrity, reliability and confidentiality of data, make up for the lack of diversity of hardware-based encryption algorithms, and improve the traditional software encryption and decryption solutions, thereby ensuring the real-time performance of the algorithm and reducing the cost of hardware-based encryption algorithms.

[0061] As described above, the present invention has the following beneficial effects:

[0062] 1) By setting up the first core and the second core, independent cores can be used to implement algorithm operations, so that complex applications and encryption and decryption algorithms with large computational complexity are independent of each other, avoiding the two from sharing hardware resources, thereby ensuring the concurrent processing of applications and encryption and decryption algorithms, making application functions more stable and reliable, and at the same time improving the execution efficiency of encryption and decryption algorithms, the overall performance of the software, and the real-time performance of communications. The use of software to implement encryption and decryption algorithms greatly improves flexibility and diversity, and solves the problems of inflexibility and lack of diversity of hardware encryption and decryption in the prior art, as well as low efficiency and poor real-time performance of traditional software encryption and decryption.

[0063] 2) By setting the first virtual security channel and the second virtual security channel, an interface for data interaction between the first core and the second core is provided through shared memory, making data interaction between the first core and the second core more flexible and effectively avoiding blocking problems.

[0064] 3) By adding a mutually exclusive access mechanism, different request channels can be established through different requests of different software components of the first core.

[0065] 4) The encryption and decryption driver module can implement international standard algorithms such as AES, RSA and SHA, as well as national standard cryptographic algorithms such as SM, and algorithms customized by various automobile OEMs, so as to meet different needs and different application scenarios.

[0066] Although the present invention has been described through preferred embodiments, the present invention is not limited to the embodiments described herein but includes various changes and modifications that may be made without departing from the scope of the present invention.

[0067] In the absence of conflict, the above embodiments and features in the embodiments can be combined with each other.

[0068] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. An encryption and decryption engine system based on multi-threaded concurrent processing, It is characterized in that It comprises a first core (1) and a second core (2), wherein the first core (1) is used for processing application programs, and the second core (2) is used for processing encryption requests or decryption requests initiated by the first core (1); The first core (1) comprises an encryption and decryption service management module (11), a plurality of different software components, an encryption and decryption interface module (12) and a first virtual security channel (13), wherein the software component is used to call the encryption and decryption interface module (12) through the encryption and decryption service management module (11) to send an encryption request or a decryption request; the encryption and decryption interface module (12) is used to send an encryption request or a decryption request through the first virtual security channel (13); The second core (2) comprises a second virtual security channel (21) and a security interface module (22), the second virtual security channel (21) is connected to the first virtual security channel (13), the second virtual security channel (21) is used to receive the encryption request or the decryption request and send it to the security interface module (22), and the second core (2) is configured to perform an encryption operation or a decryption operation after the security interface module (22) receives the encryption request or the decryption request; The first virtual security channel (13) and the second virtual security channel (21) are configured to perform data exchange through a mutually exclusive access mechanism, and different request channels are established through different requests from the multiple different software components.

2. The encryption and decryption engine system based on multi-threaded concurrent processing according to claim 1, It is characterized in that The second core (2) further comprises a scheduling management module (23), wherein the scheduling management module (23) is used to perform unified scheduling management on the encryption request or the decryption request.

3. The encryption and decryption engine system based on multi-threaded concurrent processing according to claim 1, It is characterized in that The second core (2) further comprises an encryption and decryption driving module (24), wherein the encryption and decryption driving module (24) is used to implement encryption operations or decryption operations based on AES and / or RSA and / or SHA and / or SM algorithms.

4. The encryption and decryption engine system based on multi-threaded concurrent processing according to claim 1, It is characterized in that The second core (2) further comprises a secure boot module (25), wherein the secure boot module (25) is used to verify the integrity of an application when the second core (2) is started.

5. The encryption and decryption engine system based on multi-threaded concurrent processing according to claim 1, It is characterized in that The second core (2) also includes a key management module (26), and the key management module (26) is used to manage and store keys for encryption operations and decryption operations.

6. The encryption and decryption engine system based on multi-threaded concurrent processing according to claim 4, It is characterized in that The second core (2) further comprises a certificate management module (27), wherein the certificate management module (27) is used to perform digital signature based on a private key and / or verify digital signature based on a public key.

7. An encryption and decryption engine method based on multi-threaded concurrent processing, It is characterized in that The method is implemented based on the encryption and decryption engine system based on multi-threaded concurrent processing according to any one of claims 1 to 6, the first core (1) includes an encryption and decryption service management module (11), and the method includes: Using the encryption and decryption service management module (11) to call the encryption and decryption interface module (12); Sending an encryption request or a decryption request through the first virtual security channel (13) based on the encryption and decryption interface module (12); Using a second virtual security channel (21) to receive the encryption request or the decryption request, and sending it to a security interface module (22); When the security interface module (22) receives the encryption request or the decryption request, the second core (2) performs an encryption operation or a decryption operation.

8. A car, It is characterized in that It comprises an encryption and decryption engine system based on multi-threaded concurrent processing as described in any one of claims 1-6.