CPC G06F 8/65 (2013.01) [G06F 21/44 (2013.01); G06F 21/572 (2013.01); G06F 2221/033 (2013.01)] | 16 Claims |
1. A method of updating firmware of a device, the method comprising:
receiving in an update package an encrypted firmware and a decryption engine including a decryption algorithm for decrypting the encrypted firmware;
loading the decryption engine into a first memory of a device;
obtaining a pre-stored encryption key from a second memory of the device, wherein the second memory is a different type of memory than the first memory;
decrypting the encrypted firmware using the encryption key and the decryption engine, wherein the decryption of the encrypted firmware occurs in the first memory;
authenticating the decryption engine prior to receiving the encrypted firmware by comparing a digest stored in the device to a computed digest of the decryption engine;
wherein the authenticating comprises comparing, in the first memory, a first digest and a second digest, wherein the first digest is generated by a provider of the decryption algorithm, wherein the first digest is stored in the device and the first digest corresponds to the decryption algorithm and the second digest corresponds to an output of multiple XOR operations of selected bootloader code parts with the decryption algorithm.
|