Firmware data verification device and method, and firmware update device, method, and system

By separating digital signature verification from firmware update and using segmented data packet transmission, the method addresses data confidentiality and supplier authenticity, reducing hardware costs and improving update flexibility and efficiency.

JP7582437B2Active Publication Date: 2024-11-13OMRON CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023501171
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-24
Filing Date
2021-07-22
Publication Date
2024-11-13
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

Existing firmware update systems face challenges in ensuring data confidentiality and supplier authenticity while dealing with high complexity, resource constraints, and inflexible update modes, leading to increased hardware costs and storage requirements.

Method used

A method and apparatus that separate digital signature verification from firmware update, with the verification performed by a dedicated verification device and decryption handled by the firmware update device, allowing for segmented data packet transmission and update.

Benefits of technology

This approach reduces system complexity, hardware costs, and storage space, while enhancing update flexibility and efficiency by enabling partial upgrades during data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007582437000001
    Figure 0007582437000001
  • Figure 0007582437000002
    Figure 0007582437000002
  • Figure 0007582437000003
    Figure 0007582437000003
Patent Text Reader

Abstract

The firmware data verification method includes: receiving first firmware data transmitted by a data generating device, the first firmware data including second firmware data encrypted by the data generating device and a digital signature; verifying the digital signature of the first firmware data; if the digital signature passes verification, removing the digital signature from the first firmware data to obtain the second firmware data, dividing the second firmware data to generate a plurality of encrypted data packets; and transmitting the plurality of encrypted data packets to a firmware updating device, so that the firmware updating device decrypts the plurality of data packets and performs firmware updating. Thus, the hardware cost of the firmware updating device may be reduced, updating efficiency may be improved, and the flexibility of firmware updating modes may be improved.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to the technical field of equipment safety, and in particular to a firmware data verification device and method, and a firmware update device, method, and system. [Background technology]

[0002] Firmware is a program stored in a device or chip that takes on the lowest level of operations and can be upgraded or updated by a specific refresh program. In a typical firmware upgrade or update process, firmware data is sent by a data generator to a firmware updater (i.e., the device to be upgraded). The firmware updater usually has a system update program, which performs the firmware update operation. Summary of the Invention [Problem to be solved by the invention]

[0003] For security reasons, firmware data itself has confidentiality requirements, so firmware data itself usually uses encryption and decryption techniques to ensure data confidentiality. Meanwhile, firmware data from illegal sources may cause some malicious actions, so the authenticity of the source must be guaranteed. Considering the above-mentioned data confidentiality requirements and source authenticity requirements, the system update program needs to perform data decryption and source verification of the received firmware data.

[0004] It should be noted that the above description of the background art is detailed merely to facilitate a clear and complete description of the technical solutions of the present disclosure and facilitate the understanding of those skilled in the art, and it cannot be deemed that the above technical solutions are known to those skilled in the art just because these solutions are detailed in the background of the present disclosure.

[0005] However, the inventors have found that when performing data decryption and source verification simultaneously, the complexity of the system update program becomes higher, the program itself occupies more storage space, additional hardware costs are added for some resource-constrained devices (e.g., embedded devices), and the update mode is not flexible enough.

[0006] In order to solve at least one of the above-mentioned problems, embodiments of the present disclosure provide a firmware data verification apparatus and method, and a firmware update apparatus, method, and system, in the hope of reducing the hardware cost of the firmware update apparatus and improving the flexibility of the firmware update mode. [Means for solving the problem]

[0007] According to one aspect of the present disclosure, a receiving unit configured to receive first firmware data transmitted by a data generating device, the first firmware data including second firmware data encrypted by the data generating device and a digital signature generated by the data generating device according to the second firmware data; a verification unit configured to verify a digital signature on the first firmware data to determine whether the digital signature passes verification; a packet generator configured to remove the digital signature from the first firmware data to obtain second firmware data if the digital signature passes verification, and to split the second firmware data to generate a plurality of encrypted data packets; a transmitter configured to transmit the encrypted data packets to the firmware updating device so that the firmware updating device can decrypt the encrypted data packets and perform the firmware update. An apparatus for verifying firmware data is provided.

[0008] Thereby, the digital signature verification is performed by a verification device different from the firmware update device, so as to meet the source reliability requirement, and the data decryption is performed by the firmware update device, so as to meet the data confidentiality requirement. Therefore, the complexity of the system update program can be reduced, the storage space occupied by the program itself can be reduced, and the hardware cost of the firmware update device can also be reduced. The digital signature verification is performed by the verification device, so as to improve the flexibility of the firmware update mode.

[0009] In addition, the firmware updating device can be partially upgraded by receiving divided data packets, thus reducing the memory space occupied by storing the complete firmware data, further reducing the hardware cost of the firmware updating device, improving the updating efficiency, and further enhancing the flexibility of the updating mode.

[0010] In some embodiments, the multiple encrypted data packets are transmitted serially in the form of a data stream.

[0011] Thereby, the firmware updating device can decode the received data packet while receiving the data packet, and perform firmware updating based on the decoded data packet. Therefore, partial upgrade during data transmission can be realized. This not only reduces the memory space occupied by firmware data, but also speeds up the updating process and improves the updating efficiency.

[0012] In some embodiments, the verification unit: decrypting the digital signature in the first firmware data into first digest information using a decryption algorithm; generating second digest information of the second firmware data using a digest algorithm; comparing the first digest information and the second digest information to determine whether they match; determining that the digital signature passes verification if the first digest information and the second digest information match; Used for:

[0013] Thereby, digital signing is performed by the data generating device and digital signature verification is performed by the verifying device, which makes it possible to further improve the flexibility of the firmware update mode without upgrading the firmware update device if the signature algorithm and digest algorithm themselves need to be updated to improve cracking resistance.

[0014] In some embodiments, the multiple encrypted data packets are transmitted over a dedicated communication line.

[0015] For example, the dedicated communication line may include a local cable connection, a Wireless Fidelity (WIFI) connection, a Bluetooth connection, or a Near Field Communication (NFC) connection, or a remote Virtual Private Network (VPN) connection.

[0016] Thereby, data security can be guaranteed through the dedicated communication line. Furthermore, firmware update can be performed either locally or remotely through multiple interfaces, which can further improve the flexibility of firmware update mode.

[0017] According to another aspect of the present disclosure, a receiving unit configured to receive a plurality of encrypted data packets generated and transmitted by the verification device if the digital signature of the firmware data passes verification; a decoding unit configured to decode the data packets; and an update unit configured to perform a firmware update according to the decoded data packet. A firmware update device is provided.

[0018] Thereby, the digital signature verification is performed by a verification device different from the firmware update device, so that the supplier reliability requirement is met. And the data decryption is performed by the firmware update device, so that the data confidentiality requirement is met. Therefore, the complexity of the system update program can be reduced, and the storage space occupied by the program itself can be reduced. Therefore, the hardware cost of the firmware update device can also be reduced. The digital signature verification is performed by the verification device, so that the flexibility of the firmware update mode can be improved.

[0019] In addition, the firmware updating device can be partially upgraded by receiving split data packets, thus reducing the memory space occupied by storing the complete firmware data, further reducing the hardware cost of the firmware updating device, improving the updating efficiency, and further enhancing the flexibility of the updating mode.

[0020] In some embodiments, The receiving unit receives the data packet, The decoder decodes the received data packet; The update unit performs the firmware update according to the decrypted data packet.

[0021] Thereby, it is possible to realize partial upgrade during data transmission, which not only reduces the memory space occupied by firmware data, but also speeds up the update process and improves update efficiency.

[0022] According to another aspect of the present disclosure, receiving first firmware data transmitted by a data generating device, the first firmware data including second firmware data encrypted by the data generating device and a digital signature generated by the data generating device according to the second firmware data; verifying a digital signature on the first firmware data to determine whether the digital signature passes verification; If the digital signature passes verification, removing the digital signature from the first firmware data to obtain second firmware data, and dividing the second firmware data to generate a plurality of encrypted data packets; transmitting the encrypted data packets to a firmware updating device such that the firmware updating device decrypts the encrypted data packets and performs the firmware update. A method for firmware data verification is provided.

[0023] According to another aspect of the present disclosure, receiving a plurality of encrypted data packets generated and transmitted by the verification device if the digital signature of the firmware data passes verification; Decoding the data packet; and and performing a firmware update according to the decoded data packet. A method for updating firmware is provided.

[0024] According to another aspect of the present disclosure, A firmware update system is provided, the firmware update system including a data generation device, a verification device, and a firmware update device, the data generating device is configured to generate first firmware data including second firmware data encrypted by the data generating device and a digital signature generated by the data generating device according to the second firmware data; the verification device is configured to receive the first firmware data transmitted by the data generation device, and verify a digital signature in the first firmware data to determine whether the digital signature passes verification; if the digital signature passes verification, remove the digital signature from the first firmware data to obtain the second firmware data, and divide the second firmware data to generate a plurality of encrypted data packets; The firmware update device is configured to receive the multiple encrypted data packets sent by the verification device, decrypt the data packets, and perform the firmware update according to the decrypted data packets.

[0025] One of the advantageous effects of the embodiment of the present disclosure is that: the digital signature verification is performed by a verification device different from the firmware update device, so as to meet the source reliability requirement, and the data decryption is performed by the firmware update device, so as to meet the data confidentiality requirement; thus, the complexity of the system update program can be reduced, and the storage space occupied by the program itself can be reduced, so as to reduce the hardware cost of the firmware update device; the digital signature verification is performed by the verification device, so as to improve the flexibility of the firmware update mode.

[0026] In addition, the firmware updating device can be partially upgraded by receiving split data packets, thus reducing the memory space occupied by storing the complete firmware data, further reducing the hardware cost of the firmware updating device, improving the updating efficiency, and further enhancing the flexibility of the updating mode. [Brief description of the drawings]

[0027] [Figure 1] FIG. 1 is a schematic diagram of a firmware data verification device according to an embodiment of the present disclosure. [Diagram 2]FIG. 1 is a schematic diagram of a firmware updating device according to an embodiment of the present disclosure. [Diagram 3] 1 is a schematic diagram of a data generating device, a verifying device, and a firmware updating device according to an embodiment of the present disclosure. [Figure 4] FIG. 1 is a schematic diagram of a data generating device according to an embodiment of the present disclosure. [Diagram 5] FIG. 1 is a schematic diagram of a verification device according to an embodiment of the present disclosure. [Figure 6] FIG. 1 is a schematic diagram of a firmware updating device according to an embodiment of the present disclosure. [Figure 7] FIG. 1 is a schematic diagram of a firmware data verification method according to an embodiment of the present disclosure. [Figure 8] FIG. 2 is a schematic diagram of a firmware update method according to an embodiment of the present disclosure. [Figure 9] FIG. 1 is a schematic diagram of a firmware update system according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0028] With reference to the following description and drawings, specific embodiments of the present disclosure are described in detail to illustrate the manner in which the principles of the present disclosure may be employed. The embodiments of the present disclosure are not to be construed as limiting in scope. The embodiments of the present disclosure encompass numerous modifications, variations, and equivalents within the spirit and terms of the appended claims.

[0029] The accompanying drawings are used to provide further understanding of the embodiments of the present disclosure, constitute a part of the description, are used to illustrate the embodiments of the present disclosure, and together with the text description, interpret the principles of the present disclosure. Obviously, the drawings in the following description are merely some embodiments of the present disclosure. Those skilled in the art can also obtain other drawings based on these drawings under the premise that no creative effort is required.

[0030] The above and other features of the present disclosure will become apparent from the following description, taken in conjunction with the drawings. The description and drawings specifically disclose certain embodiments of the present disclosure and show some partial embodiments in which the principles of the present disclosure may be employed. It is to be understood that the present disclosure is not limited to the described embodiments, but on the contrary includes all modifications, variations, and equivalents within the scope of the appended claims.

[0031] In embodiments of the present disclosure, the terms "first" and "second" etc. are used to distinguish different components with respect to names, but do not represent the spatial arrangement, chronological order, etc. of these components, and these components should not be limited by these terms. The term "and / or" includes any and all combinations of one or more of the associated listed terms. The terms "including," "comprising," "having," etc. indicate the presence of stated features, elements, components, or components, but do not exclude the presence or addition of one or more other features, elements, components, or components.

[0032] In the embodiments of the present disclosure, the singular forms "a" and "said" are to be understood in the broad sense, including the plural, such as "a certain type" or "a type of," but are not defined as meaning "one." Furthermore, the term "said" is to be understood to include both the singular and the plural, unless the context clearly indicates otherwise. Furthermore, the term "according to" is to be understood as "at least in part according to," and the term "based on" is to be understood as "at least in part based on."

[0033] Features described and / or illustrated with respect to one embodiment may be used in the same or similar manner in one or more other embodiments and may be combined with or substituted for features in other embodiments. It should be emphasized that, as used in this application, the term "comprises" indicates the presence of features, wholes, steps or components but does not exclude the presence or addition of one or more other features, wholes, steps or components.

[0034] The embodiments of the present disclosure are described below with reference to the drawings. In the embodiments of the present disclosure, an embedded device is referred to as an example for illustration, for example, a firmware update device (a device to be upgraded) is a Programmable Logic Controller (PLC) device, but the present disclosure is not limited to embedded devices, and is not limited to devices subject to resource constraints, and may be applied to devices with unlimited resources.

[0035] An embodiment of the first aspect. An embodiment of the present disclosure provides a firmware data verification device. FIG. 1 is a schematic diagram of a firmware data verification device according to an embodiment of the present disclosure. As shown in FIG. 1, the firmware data verification device 100 includes: A receiving unit 101 configured to receive first firmware data transmitted by a data generating device, the first firmware data including second firmware data encrypted by the data generating device and a digital signature generated by the data generating device according to the second firmware data; a verification unit 102 configured to verify a digital signature on the first firmware data to determine whether the digital signature passes verification; a packet generator 103 configured to remove the digital signature from the first firmware data to obtain second firmware data if the digital signature passes verification, and to divide the second firmware data to generate a plurality of encrypted data packets; a sending unit configured to send the encrypted data packets to the firmware updating device so that the firmware updating device can decrypt the encrypted data packets and perform the firmware update; Includes.

[0036] An embodiment of the present disclosure further provides a firmware updating apparatus. FIG. 2 is a schematic diagram of a firmware updating apparatus according to an embodiment of the present disclosure. As shown in FIG. 2, the firmware updating apparatus 200 includes: a receiving unit 201 configured to receive a plurality of encrypted data packets generated and transmitted by the verification device when the digital signature of the firmware data passes verification; a decoding unit 202 configured to decode the data packets; an update unit 203 configured to perform a firmware update according to the decoded data packet; Includes.

[0037] It is worth noting that the above-mentioned Fig. 1 and Fig. 2 are merely schematic descriptions of the embodiments of the present disclosure, and the present disclosure is not limited thereto. For example, other components or devices may be further provided, and the details may be referred to the related art, and the description will be omitted in this application. For components or elements not specifically shown in Fig. 1 and Fig. 2, the related art may be referred to, and the present disclosure is not limited thereto.

[0038] Thereby, the digital signature verification is performed by a verification device different from the firmware update device, so that the supplier reliability requirement is satisfied, and the data decryption is performed by the firmware update device, so that the data confidentiality requirement is satisfied. Therefore, the complexity of the system update program can be reduced, and the storage space occupied by the program itself can be reduced, so that the hardware cost of the firmware update device can also be reduced. The digital signature verification is performed by the verification device, so that the flexibility of the firmware update mode can be improved.

[0039] In addition, the firmware updating device can be partially upgraded by receiving multiple split data packets, thus reducing the memory space occupied by storing the complete firmware data, further reducing the hardware cost of the firmware updating device, improving the updating efficiency, and further enhancing the flexibility of the updating mode.

[0040] 3 is a schematic diagram of a data generating device, a verifying device, and a firmware updating device according to an embodiment of the present disclosure. As shown in FIG. 3, for a firmware updating device (a device to be upgraded), the data generating device may not be local, so data needs to be sent remotely, which raises the issue of source authenticity and data confidentiality.

[0041] As shown in Fig. 3, in an embodiment of the present disclosure, a second transmission of firmware data is performed. The verification device is provided locally and can perform a point-to-point connection with the device to be upgraded, so the second transmission (ciphertext transmission) between the verification device and the device to be upgraded does not need to verify source authenticity but only needs to ensure data confidentiality. If the source authenticity between the verification device and the device to be upgraded is guaranteed by some other techniques, such as hardware verification, secure handshake, etc., the verification device may not be local, and in this case the second transmission may be a remote transmission.

[0042] As shown in Fig. 3, the first transmission (digital signature + ciphertext transmission) includes a digital signature, while the second firmware data itself is an encrypted ciphertext, so that even if it is a remote transmission, both source authenticity and data confidentiality can be guaranteed. For the specific contents of the first transmission and the second transmission, refer to the related art, and the description will be omitted in this application.

[0043] In some embodiments, the data generator is a firmware data development device, and after compiling and generating the plaintext of the original firmware data, the data generator performs a series of operations, such as encryption, digital signing, etc., to ensure source authenticity and data confidentiality.

[0044] Fig. 4 is a schematic diagram of a data generating device according to an embodiment of the present disclosure. As shown in Fig. 4, the original firmware data generated by the data generating device is plaintext, then the original firmware data (plaintext) is encrypted into second firmware data (ciphertext) using a first key through an encryption unit, then a first firmware data (ciphertext + digital signature) is generated after a dedicated digital signature is added through a signature unit, and finally, it is transmitted to the outside through a first transmission.

[0045] As shown in Fig. 4, the digital signature process may be as follows: first, generate second digest information of the second firmware data through a digest algorithm, then use a private key (second private key) to encrypt the second digest information into a digital signature, and finally combine the digital signature and the second firmware data into the first firmware data. Fig. 4 exemplarily describes the digital signature and encryption, but the present disclosure is not limited thereto, and other encryption and digital signature modes are also possible.

[0046] In some embodiments, the encryption and digital signature may use a symmetric encryption algorithm or an asymmetric encryption algorithm. In the case of symmetric encryption, the encryption unit uses the same key as the decryption unit inside the device to be upgraded. In the case of asymmetric encryption, the encryption unit uses a public key for encryption, and the decryption unit inside the device to be upgraded uses a private key for decryption. Common algorithms include MD5, SHA-1, SM3, etc. For specific contents related to encryption and decryption, digital signature, etc., please refer to the related art, and will not be described in more detail in this application.

[0047] In some embodiments, the verification device may be a local auxiliary tool that implements the verification algorithm through software, a separate security module that implements the verification process through hardware, or a service program provided on a remote server. This disclosure does not define a particular type of verification device.

[0048] 5 is a schematic diagram of a verification device according to an embodiment of the present disclosure. As shown in FIG. 5, the verification device is configured to verify whether the digital signature of the first firmware data (ciphertext+digital signature) received from the first transmission is trustworthy, thereby verifying whether the source of the firmware data is trustworthy. Only firmware data that passes the verification (i.e., passes the digital signature verification) may be allowed to be transmitted to the outside via the second transmission. If the verification fails, the verification device does not transmit the second firmware data.

[0049] In some embodiments, the verification unit: decrypting the digital signature in the first firmware data into first digest information using a decryption algorithm; generating second digest information of the second firmware data using a digest algorithm; comparing the first digest information and the second digest information to determine whether they match; determining that the digital signature passes verification if the first digest information and the second digest information match; Used for:

[0050] For example, as shown in FIG. 5, the verification process is as follows. First, the sender's public key (second public key) is used to decrypt the digital signature into first digest information, then the second digest information of the second firmware data (ciphertext) is generated through the same digest algorithm as the signature unit in the data generating device, and then the first digest information and the second digest information are compared to see if they match. If the first digest information and the second digest information match, the verification is passed, otherwise, the verification is failed. FIG. 5 illustrates digital signature verification as an example, but the present disclosure is not limited thereto, and other digital signature verification modes are also possible.

[0051] Thereby, digital signature verification is performed by the verification device, which can further improve the flexibility of the firmware update mode without upgrading the firmware update device if the signature algorithm and digest algorithm themselves need to be updated to improve cracking resistance.

[0052] For example, the digital signature verification process is performed by an external verification device, so there is no need to implement a series of complicated algorithms, such as digest algorithms and signature algorithms, inside the upgraded device. In the simplest case, the upgraded device itself only needs to support the decryption part of a simple symmetric encryption algorithm, the occupied storage space is small, and the update mode is flexible.

[0053] Furthermore, the specific division mode in which the verification device divides the encrypted second firmware data into several encrypted packets may be implemented by referring to the related art, and therefore will not be described in detail in this application.

[0054] In some embodiments, the firmware update device (the device to be upgraded) is a local device that requires a firmware upgrade, which may be a PLC device, an industrial automation product, a medical device, a home appliance, or a digital product, etc. The embodiments of the present disclosure are not limited thereto.

[0055] 6 is a schematic diagram of a firmware updating device according to an embodiment of the present disclosure. As shown in FIG. 6, the verification device transmits the second firmware data (ciphertext) to the firmware updating device (the device to be upgraded). In the device to be upgraded, the firmware update operation may be performed by an internal system update program.

[0056] In some embodiments, the multiple encrypted data packets are transmitted serially in the form of a data stream.

[0057] For example, because the device to be upgraded may be resource constrained and may not have enough space to store the complete firmware data, the verification device may split the encrypted second firmware data into several encrypted packets (subpackets 1...n) and send them one by one to the device to be upgraded.

[0058] As shown in Fig. 6, each time a complete subpacket (e.g., subpacket i, i is 1 or more and n or less) is received from the second transmission by the system update program of the firmware update device, the subpacket i is decrypted by the decryption unit using the first key into a plaintext subpacket i, and then passed to the update unit for partial upgrade. After all subpackets of the second firmware data are transmitted, the update unit completes the upgrade of all subpackets, i.e., completes the entire firmware update process. This process is equivalent to the update unit using the plaintext of the complete firmware data for upgrade.

[0059] Thereby, the firmware updating device may decode the received data packet while receiving the data packet, and perform firmware updating based on the decoded data packet, thus realizing partial upgrade during data transmission, which not only reduces the memory space occupied by the firmware data, but also speeds up the updating process and improves the updating efficiency.

[0060] For example, the device being upgraded does not need to wait to receive all the encrypted firmware data before upgrading, it may decrypt and partially upgrade the firmware data as it is received. Thus, it may start the decryption and firmware update as soon as it receives the complete particular data packet, and it does not require extra memory space to store the complete firmware data, and the upgrade may be completed immediately after all the data packets are received. This is more resource-saving and efficient than the update mode that performs decryption and verification after all the encrypted firmware data is received.

[0061] In some embodiments, the multiple encrypted data packets are transmitted over a dedicated communication line.

[0062] For example, the dedicated communication line may include a local cable connection, a Wireless Fidelity (WIFI) connection, a Bluetooth connection, or a Near Field Communication (NFC) connection, or a remote Virtual Private Network (VPN) connection, although the disclosure is not limited thereto and other specific communication lines are possible.

[0063] Thereby, data security can be guaranteed via the dedicated communication line. Furthermore, firmware update can be performed either locally or remotely via multiple interfaces, which can further improve the flexibility of firmware update mode.

[0064] For example, currently, information security has attracted more and more attention, and with the increase of computing power, the encryption and decryption algorithm itself is constantly updated and upgraded. In the embodiment of the present disclosure, the system upgrade program itself does not need to be updated frequently, and only the encryption part, the signature part, and the verification part need to be updated. The encryption part, the signature part, and the verification part are provided outside the device to be upgraded, and are usually implemented by upper level computer software or dedicated hardware, so this update mode is more convenient than the built-in software provided in the device to be upgraded.

[0065] The above description is only a schematic description of each device or component, but the present disclosure is not limited thereto, and the specific details of each device or component may refer to related art. In addition, devices or components not shown in Figures 1 to 6 may be added, or one or more devices or components in Figures 1 to 6 may be omitted.

[0066] The above-mentioned embodiment shows that: the digital signature verification is performed by a verification device different from the firmware update device, so as to meet the source reliability requirement, and the data decryption is performed by the firmware update device, so as to meet the data confidentiality requirement; therefore, the complexity of the system update program can be reduced, the storage space occupied by the program itself can be reduced, and the cost of the firmware update device can be reduced; the digital signature verification is performed by the verification device, so as to improve the flexibility of the firmware update mode.

[0067] In addition, the firmware updating device can be partially upgraded by receiving multiple split data packets, thus reducing the memory space occupied by storing the complete firmware data, further reducing the hardware cost of the firmware updating device, improving the updating efficiency, and further enhancing the flexibility of the updating mode.

[0068] An embodiment of the second aspect. The embodiments of the present disclosure provide a firmware data verification method and a firmware update method, and do not repeat the same content as the embodiments of the first aspect.

[0069] 7 is a schematic diagram of a firmware data verification method according to an embodiment of the present disclosure, which is performed by a firmware data verification device. As shown in FIG. 701: Receiving first firmware data sent by a data generating device, the first firmware data including second firmware data encrypted by the data generating device and a digital signature generated by the data generating device according to the second firmware data; 702: Verifying a digital signature on the first firmware data to determine whether the digital signature passes verification; 703: If the digital signature passes verification, remove the digital signature from the first firmware data to obtain second firmware data, and divide the second firmware data to generate a plurality of encrypted data packets; 704: Sending the encrypted data packets to a firmware updating device, so that the firmware updating device decrypts the encrypted data packets and performs the firmware update; Includes.

[0070] In some embodiments, the plurality of encrypted data packets are transmitted serially in the form of a data stream.

[0071] In some embodiments, decrypting the digital signature in the first firmware data into first digest information using a decryption algorithm; generating second digest information of the second firmware data using a digest algorithm; comparing the first digest information and the second digest information to determine whether they match; If the first digest information and the second digest information match, it is determined that the digital signature passes verification.

[0072] In some embodiments, the multiple encrypted data packets are transmitted over a dedicated communication line.

[0073] For example, the dedicated communication line may include a local cable connection, a Wireless Fidelity (WIFI) connection, a Bluetooth connection, or a Near Field Communication (NFC) connection, or a remote Virtual Private Network (VPN) connection.

[0074] 8 is a schematic diagram of a firmware updating method according to an embodiment of the present disclosure, which is performed by a firmware updating device. As shown in FIG. 8, the firmware updating method includes: 801: Receiving a plurality of encrypted data packets generated and transmitted by a verification device when a digital signature of firmware data passes verification; 802: Decrypting a data packet; 803: Performing a firmware update according to the decrypted data packet; Includes.

[0075] In some embodiments, the firmware updating device can decode the received data packet while receiving the data packet, and perform firmware updating according to the decoded data packet. Therefore, partial upgrade during data transmission can be realized. This can not only reduce the memory space occupied by firmware data, but also speed up the updating process and improve the updating efficiency.

[0076] It is worth noting that the above-mentioned Figures 7 and 8 are merely schematic descriptions of the embodiments of the present disclosure, but the present disclosure is not limited thereto. For example, the execution order of each step may be appropriately adjusted, and some other steps may be increased or decreased. Those skilled in the art can make appropriate modifications according to the above-mentioned contents without being limited to the description of the above-mentioned Figures 7 and 8.

[0077] The above-mentioned embodiment shows that: the digital signature verification is performed by a verification device different from the firmware update device, so as to meet the source reliability requirement, and the data decryption is performed by the firmware update device, so as to meet the data confidentiality requirement; therefore, the complexity of the system update program can be reduced, the storage space occupied by the program itself can be reduced, and the hardware cost of the firmware update device can be reduced; the digital signature verification is performed by the verification device, so as to improve the flexibility of the firmware update mode.

[0078] In addition, the firmware updating device can be partially upgraded by receiving multiple split data packets, thus reducing the memory space occupied by storing the complete firmware data, further reducing the hardware cost of the firmware updating device, improving the updating efficiency, and further enhancing the flexibility of the updating mode.

[0079] An embodiment of the third aspect. The embodiment of the present disclosure provides a firmware update system, and the same contents as those of the embodiments of the first and second aspects will not be repeated.

[0080] 9 is a schematic diagram of a firmware update system according to an embodiment of the present disclosure. As shown in FIG. 9, the firmware update system 900 includes a data generating device 901, a verifying device 902, and a firmware update device 903. the data generating device 901 is configured to generate first firmware data including second firmware data encrypted by the data generating device 901 and a digital signature generated by the data generating device 901 according to the second firmware data; the verification device 902 is configured to receive the first firmware data sent by the data generation device, and verify a digital signature in the first firmware data to determine whether the digital signature passes verification; if the digital signature passes verification, remove the digital signature from the first firmware data to obtain second firmware data; and divide the second firmware data to generate a plurality of encrypted data packets; The firmware updating device 903 is configured to receive the multiple encrypted data packets sent by the verification device, decrypt the data packets, and perform the firmware updating according to the decrypted data packets.

[0081] The above-mentioned embodiment shows that: the digital signature verification is performed by a verification device different from the firmware update device, so as to meet the source reliability requirement, and the data decryption is performed by the firmware update device, so as to meet the data confidentiality requirement; therefore, the complexity of the system update program can be reduced, the storage space occupied by the program itself can be reduced, and the hardware cost of the firmware update device can be reduced; the digital signature verification is performed by the verification device, so as to improve the flexibility of the firmware update mode.

[0082] In addition, the firmware updating device can be partially upgraded by receiving multiple split data packets, thus reducing the memory space occupied by storing the complete firmware data, further reducing the hardware cost of the firmware updating device, improving the updating efficiency, and further enhancing the flexibility of the updating mode.

[0083] Although the present disclosure has been described in combination with specific embodiments, those skilled in the art should clearly recognize that these descriptions are illustrative and do not limit the protection scope of the present disclosure. Based on the spirit and principles of the present disclosure, those skilled in the art may make various modifications and changes to the present disclosure, and these modifications and changes are also within the scope of the present disclosure.

[0084] Preferred embodiments of the present disclosure are described below with reference to the drawings. Numerous features and advantages of these embodiments will become apparent from the detailed description, and therefore, the appended claims are intended to encompass all of these features and advantages of these embodiments within their true spirit and scope. Moreover, numerous modifications and variations can be readily envisioned by those skilled in the art, and therefore, it is not intended to limit the embodiments of the present disclosure to the exact construction and operation illustrated and described, but rather to encompass all suitable modifications, variations, and equivalents within their scope.

[0085] Regarding implementations including the above-described embodiments, the following supplementary notes are also disclosed.

[0086] Supplementary Note 1. receiving first firmware data transmitted by a data generating device, the first firmware data including second firmware data encrypted by the data generating device and a digital signature generated by the data generating device according to the second firmware data; verifying the digital signature on the first firmware data to determine whether the digital signature passes verification; If the digital signature passes verification, removing the digital signature from the first firmware data to obtain the second firmware data, and dividing the second firmware data to generate a plurality of encrypted data packets; transmitting the encrypted data packets to a firmware updating device such that the firmware updating device decrypts the data packets and performs the firmware update. Firmware data verification method.

[0087] Supplementary Note 2. the plurality of encrypted data packets are transmitted sequentially in the form of a data stream; Method described in Supplementary Note 1.

[0088] Supplementary Note 3. Verifying the digital signature of the first firmware data includes: decrypting the digital signature in the first firmware data into first digest information using a decryption algorithm; generating second digest information of the second firmware data using a digest algorithm; comparing the first digest information and the second digest information to determine whether they match; determining that the digital signature passes verification if the first digest information and the second digest information match. Method described in Supplementary Note 1.

[0089] Note 4. the plurality of encrypted data packets are sequentially transmitted to the firmware updating device via a dedicated communication line; Method described in Supplementary Note 1.

[0090] Supplementary Note 5. The dedicated communication line may include a local cable connection, a Wireless Fidelity (WIFI) connection, a Bluetooth connection, or a Near Field Communication (NFC) connection, or a remote Virtual Private Network (VPN) connection. Method described in Supplementary Note 4.

[0091] Note 6. receiving a plurality of encrypted data packets generated and transmitted by the verification device if the digital signature of the firmware data passes verification; Decoding the data packet; and performing a firmware update according to the decoded data packet. How to update firmware.

[0092] Note 7. the plurality of encrypted data packets are received sequentially in the form of a data stream; Method described in Supplementary Note 6.

[0093] Note 8. The firmware updating device includes: receiving the data packet; Decoding the received data packet; performing a firmware update according to the decoded data packet; Method described in Supplementary Note 7.

[0094] Note 9. the plurality of encrypted data packets are sequentially received over a dedicated communication line; Method described in Supplementary Note 6.

[0095] Supplementary Note 10. The dedicated line may be a local cable connection, a Wireless Fidelity (WIFI) connection, a Bluetooth connection, or a Near Field Communication (NFC) connection, or a remote Virtual Private Network (VPN) connection. Method described in Supplementary Note 6.

[0096] Supplementary Note 11 An electronic device comprising: a storage device for storing a computer program; and a processor configured to execute the computer program to perform a firmware data verification method described in one of Supplements 1 to 5 or a firmware update method described in one of Supplements 6 to 10.

[0097] Supplementary Note 12 A storage medium storing a computer-readable program for causing a computer to execute, in an electronic device, a firmware data verification method described in one of Supplements 1 to 5 or a firmware update method described in one of Supplements 6 to 10.

Claims

1. a receiving unit configured to receive first firmware data transmitted by a data generating device, the first firmware data including second firmware data encrypted by the data generating device and a digital signature generated by the data generating device according to the second firmware data; a verification unit configured to verify the digital signature on the first firmware data to determine whether the digital signature passes verification; a packet generator configured to remove the digital signature from the first firmware data to obtain the second firmware data if the digital signature passes verification, and to split the second firmware data to generate a plurality of encrypted data packets; a transmitter configured to transmit the encrypted data packets to the firmware updating device so that the firmware updating device can decrypt the data packets and perform a firmware update; a device that is separate from the data generating device and the firmware updating device and that is connected to the data generating device and the firmware updating device via a communication line; Firmware data verification device.

2. the plurality of encrypted data packets are transmitted sequentially in the form of a data stream.

2. The apparatus of claim 1.

3. The verification unit is decrypting the digital signature in the first firmware data into first digest information using a decryption algorithm; generating second digest information of the second firmware data using a digest algorithm; comparing the first digest information and the second digest information to determine whether they match; if the first digest information and the second digest information match, the digital signature is used to determine that the digital signature has passed verification.

2. The apparatus of claim 1.

4. The plurality of encrypted data packets are transmitted over a dedicated communication line.

2. The apparatus of claim 1.

5. The dedicated communication line may include a local cable connection, a wireless fidelity connection, a Bluetooth connection, or a short-range communication connection, or a remote virtual private network connection.

5. The apparatus of claim 4.

6. 1. A firmware data verification method executed by a device connected to a data generation device and a firmware update device via a communication line and separate from the data generation device and the firmware update device, comprising: receiving first firmware data transmitted by the data generating device, the first firmware data including second firmware data encrypted by the data generating device and a digital signature generated by the data generating device according to the second firmware data; verifying the digital signature on the first firmware data to determine whether the digital signature passes verification; if the digital signature passes verification, removing the digital signature from the first firmware data to obtain the second firmware data, and dividing the second firmware data to generate a plurality of encrypted data packets; and transmitting the encrypted data packets to the firmware update device so that the firmware update device decrypts the data packets and performs the firmware update. Firmware data verification method.

7. A firmware update system including a data generation device, a verification device, and a firmware update device, the data generator is configured to generate first firmware data including second firmware data encrypted by the data generator and a digital signature generated by the data generator according to the second firmware data; the verification device is configured to receive the first firmware data transmitted by the data generation device, and verify the digital signature in the first firmware data to determine whether the digital signature passes verification; if the digital signature passes verification, remove the digital signature from the first firmware data to obtain the second firmware data; and divide the second firmware data to generate a plurality of encrypted data packets; the firmware update device is configured to receive the encrypted data packets sent by the verification device, decrypt the data packets, and perform a firmware update according to the decrypted data packets; The data generating device, the verification device, and the firmware updating device are separate devices connected via a communication line. Firmware update system.

Citation Information

Patent Citations

  • Network system

    JP2004102951A

  • Encryption-decryption system, encryption device, decryption device and encryption-decryption method

    JP2010097502A

  • Update system, update device, and device to be updated

    WO2019087295A1