The invention discloses a secure parallel upgrading method and
system for
firmware of embedded equipment based on a
CAN bus,
electronic equipment and a medium, and belongs to the field of embedded systems.The secure parallel upgrading method comprises the steps that an equipment management
server generates an upgrading data packet; the
server generates a temporary
session key through a
key derivation function, encrypts
firmware to be upgraded by using the temporary
session key, and then generates a
digital signature for encrypted
firmware data by using a private key of the
server; the server issues the
upgrade data packet to the embedded device in parallel through a
CAN bus; the embedded device receives the
upgrade data packet, derives the same temporary
session key by using a preset fixed key and the received random number, verifies the
digital signature by using a preset server public key, decrypts the firmware data by using the temporary session key after the
verification is passed, and performs integrity
verification; and finally, loading and operating the new firmware according to the firmware effective strategy. According to the method, the problems of
firmware version synchronization and low serial upgrading speed are solved, and the efficiency and the safety are improved.