The invention belongs to the technical field of electronic control, and particularly relates to a streaming OTA downloading, signature
verification and installation method based on a
Hash tree, a cloud side
software package processing flow comprises part
software package uploading,
server block
processing, leaf node Hash calculation, intermediate node construction,
recursion upward root node generation,
Hash tree structure generation, streaming compression and URL generation, and the cloud side
software package processing flow comprises part
software package uploading,
server block processing, leaf node Hash calculation, intermediate node construction,
recursion upward root node generation,
Hash tree structure generation, streaming compression and URL generation. And the
software package processing part of the vehicle end comprises URL (
Uniform Resource Locator) acquisition,
list.
json analysis, downloading and decompression, integrity
verification, flashing and
verification. According to the technical scheme, the
hash tree is used for verification, and the
safety coefficient is high. When a user enters the installation process, the vehicle can be used, only installation and restarting are carried out finally, and long-time installation waiting is not needed. The terminal does not need to download a complete
upgrade package for signature verification, can realize simultaneous downloading of the
upgrade package, only needs to re-download an error part when a certain unit error is verified, saves flow, and does not need to occupy storage space resources of the whole package of a
file system due to simultaneous downloading of the
upgrade package.