25-02-2021 дата публикации
Номер: US20210058249A1
Принадлежит:
Disclosed herein are a hardware security module, a device having the hardware security module, and a method for operating the device. The method for verifying integrity of executable code in a device includes dividing, by a Micro-Control Unit (MCU), executable code into multiple blocks, generating, by the MCU, hash values corresponding to the blocks resulting from the division, storing, by a Hardware Security Module (HSM), the generated hash values, calculating, by the MCU, at least one hash value, among hash values of the multiple blocks when the executable code boots, and comparing, by the HSM, the calculated hash value with a hash value corresponding to the calculated hash value, among the hash values stored in the HSM. 1. A method for verifying integrity of executable code in a device , comprising:dividing, by a Micro-Control Unit (MCU), executable code into multiple blocks;generating, by the MCU, hash values corresponding to the blocks resulting from the division;storing, by a Hardware Security Module (HSM), the generated hash values;calculating, by the MCU, at least one hash value, among hash values of the multiple blocks when the executable code boots; andcomparing, by the hardware security module, the calculated hash value with a hash value corresponding to the calculated hash value, among the hash values stored in the HSM.2. The method of claim 1 , wherein the blocks resulting from the division have respectively different sizes.3. The method of claim 1 , wherein generating the hash values comprises setting start points or end points claim 1 , at which hash values are to be calculated claim 1 , for the blocks resulting from the division to different points.4. The method of claim 3 , wherein generating the hash values further comprises adding a first offset value corresponding to each start point or a second offset value corresponding to each end point to a corresponding block of the blocks resulting from the division.5. The method of claim 4 , further ...
Подробнее