Security module, security communication system and method
By designing a security module in the terminal device and using multiple encryption methods, the problem of insufficient security of data transmission within the terminal is solved, secure communication between the terminal and the external server is realized, and the risk of data leakage is avoided.
Patent Information
- Application Number
- CN202311620399.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2024-10-18
AI Technical Summary
Existing communication technology lacks a security mechanism within terminal equipment, resulting in the risk of data leakage when data is transmitted between modules, and cannot fully guarantee the data security of the communication system.
Design a security module, including a communication module and a security chip, using multiple encryption methods: using the first encryption protocol for data encryption and decryption inside the terminal, and using the security chip encryption protocol for data transmission with external devices to ensure data Security of transmissions inside and outside the terminal.
It achieves the security of data transmission between the terminal and the external server, while avoiding the risk of data leakage during data transmission between internal modules of the terminal device, and enhances the overall security of the communication system.
Smart Images

Figure CN118802235A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to a security module, a security communication system and a method. Background Art
[0002] With the rapid development of terminal communication technology and Internet of Things technology, the communication volume between devices has increased significantly, which has also put forward higher requirements for communication security. Most of the current communication technologies deploy security services to ensure the communication security between different terminal devices and between terminals and servers. However, there is a lack of corresponding security mechanisms within each terminal device. When data is transmitted between various modules in the terminal, there is a risk of leakage, and the data security of the communication system cannot be fully guaranteed. Summary of the invention
[0003] The embodiments of the present invention provide a security module, a secure communication system and a method, which can realize secure communication under multiple encryption methods, and at the same time ensure the security of data transmission between a terminal and an external server, avoid the risk of data leakage during transmission between modules inside the terminal device.
[0004] In a first aspect, an embodiment of the present invention provides a security module, the security module comprising a communication module and a security chip;
[0005] The communication module is used to perform data encryption or data decryption based on a first encryption protocol, where the first encryption protocol is a data transmission encryption protocol inside the terminal where the security module is located;
[0006] The security chip is used to perform data encryption or data decryption based on a security chip encryption protocol, which is a data transmission encryption protocol between the terminal where the security module is located and an external device.
[0007] In a second aspect, an embodiment of the present invention provides a secure communication system, the secure communication system comprising the security module provided in the first aspect, a main controller, and a server;
[0008] The security module and the main controller are deployed in the same terminal;
[0009] The security module and the main controller perform encrypted data transmission based on a first encryption protocol;
[0010] The security module and the server perform encrypted data transmission based on the security chip encryption protocol;
[0011] The main controller and the server perform data transmission based on a second encryption protocol.
[0012] In a third aspect, an embodiment of the present invention provides a secure communication method, which applies the secure communication system provided in the second aspect, and includes:
[0013] The main controller performs data encryption based on the first encryption protocol to obtain first encrypted data;
[0014] The main controller sends the first encrypted data to the communication module in the security module;
[0015] The communication module receives the first encrypted data, and decrypts the first encrypted data based on the first encryption protocol.
[0016] The embodiments of the present invention provide a security module, a secure communication system and a method. The security module in the embodiments of the present invention includes a communication module and a security chip. Inside a terminal device, the communication module performs encrypted data transmission with other modules in the terminal based on a first encryption protocol. During external communication, the security chip performs encrypted data transmission with external servers and other devices based on a security chip encryption protocol. In this solution, secure communication under multiple encryption methods is achieved by applying the security encryption function of the security chip and a custom encryption algorithm between modules inside the terminal. While ensuring the security of data transmission between the terminal and the external server, the risk of data leakage during transmission between modules inside the terminal device is also avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 is a schematic diagram of a secure communication system provided by an embodiment of the present invention;
[0019] Figure 2 is a schematic diagram of data interaction between a main controller and a security module provided by an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of data interaction between a security module and a server provided by an embodiment of the present invention;
[0021] Figure 4 is a schematic diagram of data interaction between a main controller and a server provided by an embodiment of the present invention;
[0022] Figure 5 is another schematic diagram of data interaction between a main controller and a server provided by an embodiment of the present invention;
[0023] Figure 6 is a flow chart of upgrading a second encryption protocol provided by an embodiment of the present invention;
[0024] Figure 7 is a flow chart of upgrading a second encryption protocol provided by an embodiment of the present invention;
[0025] Figure 8 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present invention, rather than to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0027] It should be noted that, in this article, relational terms such as first and second, etc. are only used 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 "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0028] In order to solve the problems of the prior art, embodiments of the present invention provide a security module, a security communication system and a method, which are described in detail below with reference to the accompanying drawings. Figure 1 Schematic diagram of a secure communication system provided by an embodiment of the present invention. Figure 1 As shown, the secure communication system includes a security module 101, a main controller 102 and a server 103. In one embodiment, the security module 101 and the main controller 102 are deployed in the same terminal 104, that is, the security module and the main controller are different hardware modules in the same terminal. The terminal 104 can be a smart phone, a tablet computer, a portable computer, a desktop computer, etc., which is not limited in the embodiment of the present invention.
[0029] In one embodiment, the security module 101 belongs to the communication unit of the terminal 104. For example, the security module 101 is consistent with the traditional communication module in appearance, and is a communication module with security encryption capability and network communication capability, which is used to realize the communication between the terminal 104 and the server 103. In one embodiment, the security module 101 includes a communication module 1011 and a security chip 1012, and data can be exchanged between the communication module 1011 and the security chip 1012. For example, the communication module 1011 and the security chip 1012 can be connected through a physical interface, and the physical interface can be a serial port, I2C, SPI or other interface, which is not limited in the embodiment of the present invention. Optionally, a security SDK adapted to the security chip 1012 can be integrated on the communication module 1011, and calling the API interface provided by the security SDK can drive the security chip 1012 to provide secure communication services.
[0030] In one embodiment, the main controller 102 is a control unit of a terminal device, and the main controller 102 can exchange data with the server 103 through the security module 101. In one embodiment, the main controller 102 belongs to the control unit of the terminal 104, and can be used to receive the control instruction sent by the security module 101, and complete the operation indicated by the control instruction and reply the operation result. In one embodiment, the main controller 102 can be implemented as a single-chip microcomputer MCU (Microcontroller Unit), which is not limited in the embodiment of the present invention.
[0031] In one embodiment, the server 103 is deployed in the cloud, and the server 103 may be one server, multiple servers, a cloud computing platform, etc. The embodiment of the present invention does not limit the device type of the server 103. The server 103 may be connected to the terminal 104 via a wireless network or a wired network to achieve communication and control of the terminal 104. In one embodiment, the server 103 may provide a remote upgrade service to the communication module 1011 and the main controller 1012 in the security module 101, and the communication module 1011 and the main controller 1012 in the security module 101 support a remote upgrade function.
[0032] In one embodiment, the server 103 includes an IoT security access platform 1031 and an IoT application platform 1032. Exemplarily, the IoT security access platform 1031 can communicate with the terminal 104 and perform operations such as encryption, decryption, and data signing on the transmitted data. The IoT application platform 1032 can provide functions such as device access, data collection, data processing, and application management.
[0033] The communication process between the hardware inside the terminal in the above-mentioned secure communication system is described in detail below in conjunction with the accompanying drawings. In an embodiment of the present invention, encrypted data transmission can be performed between the security module and the main controller based on a first encryption protocol. Among them, the first encryption protocol is a data transmission encryption protocol inside the terminal where the security module is located. Exemplarily, in an embodiment of the present invention, the first confidentiality protocol can be a custom encryption protocol between the security module and the main controller, and the main controller and the communication module in the security module can both perform data encryption or data decryption based on the first encryption protocol. Figure 2 FIG. 1 is a schematic diagram of data interaction between a main controller and a security module provided by an embodiment of the present invention. Figure 2 As shown in (a) in FIG. 1 , in one embodiment, the main controller can perform data encryption based on the first encryption protocol to obtain first encrypted data, and then send the first encrypted data to the communication module in the security module, that is, execute step 201 to send data encrypted based on the first encryption protocol; the communication module receives the first encrypted data, decrypts the first encrypted data based on the first encryption protocol, and obtains the original data sent by the main controller. In this scenario, only the communication module in the security module is called, the main controller and the communication module, and the communication module provides data encryption or decryption functions, without calling the security chip, and the encrypted data can be directly transmitted between the main controller and the communication module in the security module. In one embodiment, the communication module can also execute step 202 to send the data encrypted based on the first encryption protocol to the main controller, and the main controller decrypts the received data based on the first encryption protocol. It should be noted that in the embodiment of the present invention, the execution order of steps 201 and 202 is not limited. In the embodiment of the present invention, the data transmission between the main controller and the security module is encrypted by the first encryption protocol, so that the leakage of the internal data of the terminal can be avoided.
[0034] In the embodiment of the present invention, unencrypted plaintext data can also be transmitted between modules in the terminal. Figure 2 As shown in (b) of FIG. 1 , in one embodiment, unencrypted plaintext data can be transmitted between the main controller and the security module. For example, the main controller can execute step 203 to send unencrypted plaintext data to the communication module, and the communication module can execute step 204 to send unencrypted plaintext data to the main controller. In the embodiment of the present invention, the execution order of step 203 and step 204 is not limited. In this scenario, only the communication module in the security module needs to be called, and the security chip does not need to perform data encryption. The unencrypted plaintext data is directly transmitted between the main controller and the communication module in the security module.
[0035] In one embodiment, the data sent by the main controller to the security module may carry at least one of the first data receiver identifier and the first encryption identifier. The first data receiver identifier is used to indicate the data receiving device. For example, the first data receiver identifier may be the identifier of the security module or the identifier of the server. After the security module receives the data sent by the main controller, it may determine whether the received data is processed by the security module or forwarded to the server based on the first data receiver identifier. In one embodiment, this judgment process may be performed by the communication module in the security module. The first encryption identifier is used to indicate whether the data is encrypted using the first encryption protocol. The security module may determine whether it is necessary to decrypt the received data based on the first encryption protocol based on the first encryption identifier. For example, in an embodiment of the present invention, after the communication module receives the first encrypted data, in response to the first encrypted data carrying the first encryption identifier, the step of decrypting the first encrypted data based on the first encryption protocol is executed. Of course, the data sent by the main controller may also carry other information, which is not limited in the embodiment of the present invention. In one embodiment, the information carried by the data sent by the main controller may be unencrypted plaintext data or data encrypted using the first encryption protocol, which is not limited in the embodiment of the present invention.
[0036] The following is a detailed description of the communication process between the various devices in the above-mentioned secure communication system in conjunction with the accompanying drawings. In an embodiment of the present invention, encrypted data transmission can be performed between the security module and the server based on the security chip encryption protocol. Among them, the security chip encryption protocol is a data transmission encryption protocol between the terminal where the security module is located and the external device. Exemplarily, the security chip encryption protocol can be provided by an IoT security manufacturer and integrated into a security chip and an IoT security access platform. The security chip in the security module and the IoT security access platform in the server can both perform data encryption or data decryption based on the security chip encryption protocol, that is, the terminal side is provided with data encryption and data decryption functions by the security chip, and the server side is provided with data encryption and data decryption functions by the IoT security access platform. In one embodiment, since the security chip encryption protocol, devices and services are all provided by IoT security manufacturers, other users cannot modify their contents. After the secure communication system is running, the security chip encryption protocol does not support changes.
[0037] Figure 3 is a schematic diagram of data interaction between a security module and a server provided by an embodiment of the present invention, such as Figure 3As shown, in one embodiment, encrypted data transmission can be performed between the security module and the server based on the security chip encryption protocol. Exemplarily, the communication module in the security module can execute step 301, call the API interface of the internally integrated security SDK, and send the data to be encrypted to the security chip; the security chip executes step 302, encrypts the data to be encrypted based on the security chip encryption protocol, and sends the encrypted data to the communication module; the communication module executes step 303, and sends the encrypted data to the Internet of Things security access platform in the server; the Internet of Things security access platform executes step 304, decrypts the data based on the security chip encryption protocol, and sends the decrypted data to the Internet of Things application platform. The process of the server sending encrypted data to the security module is similar. For example, the Internet of Things application platform in the server executes step 305 to send the data to be encrypted to the Internet of Things security access platform. The Internet of Things security access platform executes step 306 to encrypt the data to be encrypted based on the security chip encryption protocol and send the encrypted data to the communication module in the security module. The communication module executes step 307 to send the encrypted data to the security chip. The security chip executes step 308 to decrypt the data based on the security chip encryption protocol and send the decrypted data back to the communication module. In the embodiment of the present invention, by applying the security chip encryption protocol, the security of data transmission between the security module in the terminal and the server can be improved.
[0038] In an embodiment of the present invention, the main controller can perform encrypted data transmission with the server through the security module. In one embodiment, the main controller can send unencrypted plaintext data to the security module, which is encrypted based on the security chip encryption protocol and then forwarded to the server. Figure 4 is a schematic diagram of data interaction between a main controller and a server provided by an embodiment of the present invention, such as Figure 4As shown, the main controller executes step 401 to send the unencrypted plaintext data to the communication module in the security module. The communication module executes step 402 to call the API interface of the internally integrated security SDK to forward the data sent by the main controller to the security chip. The security chip executes step 403 to encrypt the data based on the security chip encryption protocol and send the encrypted data back to the communication module. The communication module executes step 404 to send the encrypted data to the Internet of Things security access platform in the server. The Internet of Things security access platform executes step 405 to decrypt the data based on the security chip encryption protocol to obtain the plaintext data sent by the main controller, and sends the decrypted plaintext data to the Internet of Things application platform. The process of the server sending data to the main controller is similar. For example, the Internet of Things application platform executes step 406 to send the unencrypted plaintext data to the Internet of Things security access platform, and the Internet of Things security access platform executes step 407 to apply the security chip encryption protocol to encrypt the data, and sends the encrypted data to the communication module in the security module. The communication module executes step 408 to forward the received encrypted data to the security chip, and the security chip executes step 409 to decrypt the data based on the security chip encryption protocol, and sends the decrypted data back to the communication module, and then the communication module forwards the decrypted data to the main controller. In the embodiment of the present invention, during the communication between the main controller and the server, forwarding and data encryption are performed by the security module, which can ensure the security of communication between devices.
[0039] In one embodiment, the main controller and the server can perform encrypted data transmission based on a second encryption protocol, that is, data that is kept confidential by the security module can be transmitted between the main controller and the server. The second encryption protocol is a custom encryption protocol between the main controller and the IoT application platform, and both the main controller and the IoT application platform can perform data encryption or data decryption based on the second encryption protocol. Figure 5 FIG. 1 is another schematic diagram of data interaction between a main controller and a server provided by an embodiment of the present invention. Figure 5As shown, the main controller executes step 501 to encrypt data based on the second encryption protocol to obtain the second encrypted data, and sends the second encrypted data to the communication module in the security module; the communication module executes step 502, calls the API interface of the internally integrated security SDK, and sends the data to be encrypted, that is, the second encrypted data; the security chip executes step 503 to receive the second encrypted data forwarded by the communication module, encrypts the second encrypted data based on the security chip encryption protocol, and obtains the third encrypted data; the communication module receives the third encrypted data sent by the security chip, and executes step 504 to forward the third encrypted data to the server; the server receives the third encrypted data, and decrypts the third encrypted data based on the security chip protocol and the second encryption protocol. In one embodiment, the Internet of Things security access platform in the server receives the third encrypted data, executes step 505 to decrypt the third encrypted data based on the security chip encryption protocol to obtain the second encrypted data, and forwards the decrypted second encrypted data to the Internet of Things application platform; the Internet of Things application platform executes step 506 to receive the second encrypted data, decrypts the second encrypted data based on the second encryption protocol, and obtains the original data sent by the main controller. The process of the server sending encrypted data to the main controller is similar. For example, the Internet of Things application platform executes step 507 to encrypt the plaintext data to be sent based on the second encryption protocol to obtain encrypted intermediate data, and then executes step 508 to send the intermediate data to the Internet of Things security access platform. The Internet of Things security access platform executes step 509 to encrypt the intermediate data based on the security chip encryption protocol, and then executes step 510 to send the encrypted data to the communication module, which forwards it to the security chip for decryption. The security chip executes step 511 to decrypt the received data based on the security chip encryption protocol to obtain intermediate data, and sends the intermediate data back to the communication module. The communication module executes step 512 to forward the decrypted data, that is, forwards the intermediate data to the main controller, and the main controller executes step 513 to decrypt the data based on the second encryption protocol to obtain the original plaintext data sent by the Internet of Things application platform.
[0040] In an embodiment of the present invention, by applying the second encryption protocol, the data transmitted between the main controller and the server is kept confidential from other modules in the terminal, and it can be ensured that the data will not be parsed and stolen by the transmission intermediate device during the transmission between the main controller and the Internet of Things application platform. Exemplarily, the transmission intermediate device can be a security module, an Internet of Things security access platform, etc.
[0041] In one embodiment, the communication between the security module and the main controller may be implemented through AT (Attention) instructions, or through user-defined protocols and channels, which is not limited in the embodiment of the present invention.
[0042] In one embodiment, the data sent by the server to the security module may carry at least one of a second data receiver identifier and a second encryption identifier. The second data receiver identifier is used to indicate a data receiving device. For example, the first data receiver identifier may be an identifier of a security module or an identifier of a main controller. After the security module receives the data sent by the server, it may determine whether the received data is processed by the security module or forwarded to the main controller based on the second data receiver identifier. Optionally, this judgment process may be performed by a communication module in the security module. The second encryption identifier is used to indicate whether the data is encrypted using a second encryption protocol. The main controller may determine whether it is necessary to decrypt the received data based on the second encryption protocol based on the second encryption identifier. For example, in an embodiment of the present invention, after the main controller receives the intermediate data forwarded by the communication module, in response to the intermediate data carrying the second encryption identifier, the steps of decrypting the intermediate data and Xining based on the second encryption protocol are executed. In response to the intermediate data not carrying the second encryption identifier, the intermediate data is used as the original plaintext data sent by the server. Of course, the data sent by the server may also carry other information, which is not limited in the embodiment of the present invention. In one embodiment, the information carried by the data sent by the server may be data encrypted using the second encryption protocol or the security chip encryption protocol, which is not limited in this embodiment of the present invention.
[0043] In one embodiment, the first encryption protocol and the second encryption protocol can be set by the developer. Exemplarily, the first encryption protocol and the second encryption protocol can be implemented in the form of "algorithm" + "key". The first encryption protocol is deployed in the software run by the communication module and the software run by the main controller, and the second encryption protocol is deployed in the software run by the main controller and the Internet of Things application platform. In one embodiment, the first encryption protocol supports changes. For example, the software firmware related to the first encryption protocol in the main controller and the security module can be upgraded respectively by remote upgrade OTA (Over-the-Air Technology). In one embodiment, the second encryption protocol supports changes. For example, the software firmware related to the second encryption protocol on the Internet of Things application platform can be upgraded, and the software firmware related to the second encryption protocol in the main controller can be upgraded by remote upgrade OTA.
[0044] The upgrade process of the first security protocol and the second security protocol is described in detail below in conjunction with the accompanying drawings. In one embodiment, the communication module and the main controller can be used to upgrade the operating software of the first encryption protocol. Figure 6 is a flowchart of upgrading the second encryption protocol provided by an embodiment of the present invention, such as Figure 6As shown, first, the developer can make a first software firmware upgrade package that supports the upgraded first encryption protocol running on the main controller, and a second software firmware upgrade package that supports the upgraded first encryption protocol running on the communication module, and add the first software firmware upgrade package and the second software firmware upgrade package to the Internet of Things application platform in the server, that is, the process of executing step 601. Then, the running software of the first encryption protocol in the main controller is upgraded. Exemplarily, the process can be implemented as follows: the server executes step 602 to send a first upgrade instruction, forwards the first upgrade instruction to the main controller through the security module, and the first upgrade instruction carries the first software firmware upgrade package. The main controller receives the first upgrade instruction sent by the server, and executes step 603 to upgrade the running software of the first encryption protocol in the main controller based on the first upgrade instruction, that is, the main controller can complete the upgrade of the first encryption protocol by burning the first software firmware upgrade package. After the main controller completes the upgrade of the first encryption protocol, the upgraded version number of the first encryption protocol and the main controller identifier are sent to the Internet of Things application platform in the server. The Internet of Things application platform executes step 604 to receive and detect the correctness of the upgraded version number of the first encryption protocol and the main controller identifier. If correct, the upgrade is successful, and if incorrect, the upgrade fails. In response to the upgrade failure, the server re-issues the first upgrade instruction to the main controller, that is, re-executes the above step 602; in response to the upgrade success, the subsequent steps of upgrading the running software of the first encryption protocol in the communication module are continued. Finally, the running software of the first encryption protocol in the communication module is upgraded. Exemplarily, the process can be implemented as follows: the server executes step 605 to send a second upgrade instruction to the communication controller in the security module, and the second upgrade instruction carries the second software firmware upgrade package. The communication module receives the second upgrade instruction sent by the server, and executes step 606 to upgrade the running software of the first encryption protocol in the communication module based on the second upgrade instruction, that is, the communication module can complete the upgrade of the first encryption protocol by burning the second software firmware upgrade package. After the communication module completes the upgrade of the first encryption protocol, it sends the upgraded version number of the first encryption protocol and the main controller identifier to the Internet of Things application platform in the server. The Internet of Things application platform executes step 607 to receive and detect the correctness of the upgraded version number of the first encryption protocol and the main controller identifier. If correct, the upgrade is successful; if incorrect, the upgrade fails. In response to the upgrade failure, the server re-issues the second upgrade instruction to the communication module, that is, re-executes the above step 605; in response to the upgrade success, it is determined that the upgrade of the first encryption protocol is completed. In an embodiment of the present invention, by upgrading the first encryption protocol, the data encryption effect is ensured, and the security of data transmission between modules inside the terminal device is further improved.
[0045] Figure 7 is a flowchart of upgrading the second encryption protocol provided by an embodiment of the present invention, such as Figure 7 As shown, first, the developer can integrate and deploy the upgraded second encryption protocol in the IoT application platform in the server, that is, execute the process of step 701, complete the upgrade of the running software of the second encryption protocol in the server, and after deployment, the IoT application platform supports data encryption and data decryption based on the upgraded second encryption protocol; the developer can also make a third software firmware upgrade package that supports the upgraded second encryption protocol to run on the main controller, and add it to the IoT application platform of the server, that is, execute the process of step 702. Then, the running software of the second encryption protocol in the main controller is upgraded. Exemplarily, the process can be implemented as follows: the server executes step 703 to send a third upgrade instruction, forwards the third upgrade instruction to the main controller through the security module, and the third upgrade instruction carries the third software firmware upgrade package. The main controller executes step 704 to receive the third upgrade instruction sent by the server, and upgrades the running software of the second encryption protocol in the main controller based on the third upgrade instruction, that is, the main controller can complete the upgrade of the second encryption protocol by burning the third software firmware upgrade package. The main controller sends the upgraded version number of the second encryption protocol and the main controller identifier to the Internet of Things application platform in the server. The Internet of Things application platform executes step 705 to receive and detect the correctness of the upgraded version number of the second encryption protocol and the main controller identifier. If correct, the upgrade is successful; if incorrect, the upgrade fails. In response to the upgrade failure, the server re-issues the third upgrade instruction to the main controller; in response to the upgrade success, it is determined that the upgrade of the second encryption protocol is completed. In an embodiment of the present invention, by upgrading the second encryption protocol, the data encryption effect is ensured, and the security of data transmission between the main controller and the server is further improved.
[0046] In one embodiment, the version number of the first encryption protocol and the version number of the second encryption protocol can be used for software version management. The different version numbers before and after the upgrade can be used to determine whether the running software of the encryption protocol has been successfully upgraded. The communication module identifier and the main controller identifier can be used for device management. The identifier can be the device IMEI number, SN number, hardware version number, etc. In the embodiment of the present invention, the transmission method of the software firmware upgrade package is not limited. For example, the second encryption protocol and the security chip encryption protocol can be used for encryption and transmission, or only the security chip encryption protocol can be used for encryption and transmission.
[0047] The security module in the embodiment of the present invention includes a communication module and a security chip. Inside the terminal device, the communication module performs encrypted data transmission with other modules in the terminal based on a first encryption protocol. During external communication, the security chip performs encrypted data transmission with external servers and other devices based on the security chip encryption protocol. In this solution, by applying the security encryption function of the security chip and the custom encryption algorithm between the modules inside the terminal, secure communication under multiple encryption methods is achieved. While ensuring the security of data transmission between the terminal and the external server, the risk of data leakage during transmission between modules inside the terminal device is also avoided.
[0048] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0049] Figure 8 Schematic diagram of the hardware structure of a computer device provided by an embodiment of the present invention. In the embodiment of the present invention, the above-mentioned terminal and server can be regarded as a computer device.
[0050] The computer device may include a processor 801 and a memory 802 storing computer program instructions.
[0051] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0052] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In an example, the memory 802 may include a removable or non-removable (or fixed) medium, or the memory 802 is a non-volatile solid-state memory. The memory 802 may be inside or outside the integrated gateway disaster recovery device.
[0053] In one example, the memory 802 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0054] The processor 801 reads and executes the computer program instructions stored in the memory 802 to implement Figures 2 to 7 The secure communication method shown.
[0055] In one example, the computer device may further include a communication interface 803 and a bus 804. Figure 8 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 804 and communicate with each other.
[0056] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiment of the present invention.
[0057] Bus 804 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 304 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0058] In addition, in combination with the secure communication method in the above embodiments, the embodiments of the present invention may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the secure communication methods in the above embodiments is implemented.
[0059] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0060] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable Read Only Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0061] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0062] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0063] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A security module, characterized in that: The security module includes a communication module and a security chip; The communication module is used to perform data encryption or data decryption based on a first encryption protocol, where the first encryption protocol is a data transmission encryption protocol inside the terminal where the security module is located; The security chip is used to perform data encryption or data decryption based on a security chip encryption protocol, and the security chip encryption protocol is a data transmission encryption protocol between the terminal where the security module is located and an external device.
2. The security module according to claim 1, characterized in that: The communication module is also used to upgrade the operating software of the first encryption protocol.
3. A secure communication system, characterized in that: The security communication system comprises the security module according to claim 1 or 2, as well as a main controller and a server; The security module and the main controller are deployed in the same terminal; The security module and the main controller perform encrypted data transmission based on a first encryption protocol; The security module and the server perform encrypted data transmission based on the security chip encryption protocol; The main controller and the server perform data transmission based on a second encryption protocol.
4. The secure communication system according to claim 3, characterized in that: The main controller is used for performing data encryption based on the first encryption protocol to obtain first encrypted data, and sending the first encrypted data to the communication module in the security module; The communication module is used to receive the first encrypted data and decrypt the first encrypted data based on the first encryption protocol.
5. The secure communication system according to claim 3, characterized in that: The main controller is used for performing data encryption based on the second encryption protocol to obtain second encrypted data, and sending the second encrypted data to the communication module in the security module; The security chip is used to receive the second encrypted data forwarded by the communication module, and encrypt the second encrypted data based on the security chip encryption protocol to obtain third encrypted data; The communication module is used to receive the third encrypted data sent by the security chip, and forward the third encrypted data to the server; The server is used to receive the third encrypted data and decrypt the third encrypted data based on the security chip protocol and the second encryption protocol.
6. The secure communication system according to claim 3, characterized in that: The server includes an IoT security access platform and an IoT application platform; The IoT security access platform is configured to receive the third encrypted data, decrypt the third encrypted data based on the security chip encryption protocol to obtain the second encrypted data, and forward the second encrypted data to the IoT application platform; The Internet of Things application platform is used to receive the second encrypted data and decrypt the second encrypted data based on the second encryption protocol.
7. The secure communication system according to claim 3, characterized in that: The main controller is further used to receive a first upgrade instruction sent by the server, and upgrade the running software of the first encryption protocol in the main controller based on the first upgrade instruction; The communication module is also used to receive a second upgrade instruction sent by the server, and upgrade the running software of the first encryption protocol in the communication module based on the second upgrade instruction.
8. The secure communication system according to claim 3, characterized in that: The main controller is also used to receive a third upgrade instruction sent by the server, and upgrade the running software of the second encryption protocol in the main controller based on the third upgrade instruction.
9. A secure communication method, characterized in that: The method is applied to the secure communication system according to any one of claims 3 to 8, and the method comprises: The main controller encrypts data based on the first encryption protocol to obtain first encrypted data; The main controller sends the first encrypted data to the communication module in the security module; The communication module receives the first encrypted data, and decrypts the first encrypted data based on the first encryption protocol.
10. The method according to claim 9, characterized in that Before the main controller encrypts data based on the first encryption protocol to obtain first encrypted data, the method further includes: The main controller encrypts data based on the second encryption protocol to obtain second encrypted data, and sends the second encrypted data to the communication module in the security module; The security chip receives the second encrypted data forwarded by the communication module, and encrypts the second encrypted data based on the security chip encryption protocol to obtain third encrypted data; The communication module receives the third encrypted data sent by the security chip, and forwards the third encrypted data to the server; The server receives the third encrypted data, and decrypts the third encrypted data based on the security chip protocol and the second encryption protocol.
11. The method according to claim 10, characterized in that The server includes an Internet of Things security access platform and an Internet of Things application platform. The server receives the third encrypted data, and decrypts the third encrypted data based on the security chip protocol and the second encryption protocol, including: The IoT security access platform receives the third encrypted data, decrypts the third encrypted data based on the security chip encryption protocol to obtain the second encrypted data, and forwards the second encrypted data to the IoT application platform; The Internet of Things application platform receives the second encrypted data, and decrypts the second encrypted data based on the second encryption protocol.
12. The method according to claim 9, characterized in that Before the main controller encrypts data based on the first encryption protocol to obtain first encrypted data, the method further includes: The main controller receives a first upgrade instruction sent by the server, and upgrades the running software of the first encryption protocol in the main controller based on the first upgrade instruction; The communication module receives a second upgrade instruction sent by the server, and upgrades the running software of the first encryption protocol in the communication module based on the second upgrade instruction.
13. The method according to claim 12, characterized in that After the main controller receives the first upgrade instruction sent by the server and upgrades the running software of the first encryption protocol in the main controller based on the first upgrade instruction, the method further includes: The main controller sends the upgrade result of the running software of the first encryption protocol to the server; In response to the upgrade being successful, the server sends the second upgrade instruction to the communication module; In response to an upgrade failure, the server resends the first upgrade instruction to the main controller.
14. The method according to claim 10, characterized in that The main controller encrypts data based on the second encryption protocol to obtain second encrypted data, and before sending the second encrypted data to the communication module in the security module, the method further includes: The main controller receives the third upgrade instruction sent by the server, and upgrades the running software of the second encryption protocol in the main controller based on the third upgrade instruction.
