Method for protecting application program of MCU (Microprogrammed Control Unit) of single-chip microcomputer based on HMAC algorithm
The invention provides a method for protecting an MCU (Microprogrammed Control Unit) application program on the basis of an HMAC (Hash Media Access Control) algorithm, which comprises the following steps of: forming a data string as an input key K for calculation by utilizing a unique ID (Identity)...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a method for protecting an MCU (Microprogrammed Control Unit) application program on the basis of an HMAC (Hash Media Access Control) algorithm, which comprises the following steps of: forming a data string as an input key K for calculation by utilizing a unique ID (Identity) of equipment in an information block of a flash memory of an MCU, an MCU chip model and self-defined data, and generating a random number as an input message text by utilizing software, generating a corresponding number of byte messages as signature information after secondary iteration, and storing the signature information in the last page of the flash of the MCU; a user burns an application program into a flash of the MCU through a tool, when the application program is executed, the unique device ID in an information block of a flash memory of the MCU is read firstly, then the unique device ID, the MCU chip model and a data string stored in the application program serve as an input secret key K for calculation, |
---|