$AESKEY
From MCS Wiki AVR
(Difference between revisions)
Admin (Talk | contribs)
(Created page with "<div id="idcontent"><div id="innerdiv"> = <span class="f_Header">Action</span><br/> = This directive accepts a 16 byte AES key and informs the compiler to encrypt the binary ...")
(Created page with "<div id="idcontent"><div id="innerdiv"> = <span class="f_Header">Action</span><br/> = This directive accepts a 16 byte AES key and informs the compiler to encrypt the binary ...")
Latest revision as of 13:58, 31 January 2013
Contents |
Action
This directive accepts a 16 byte AES key and informs the compiler to encrypt the binary image.
Syntax
$AESKEY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16
Remarks
$AESKEY accepts 16 parameters. These are the 16 bytes which form a 128 bit key.
When your code is compiled, the resulting binary code will be encrypted with the provided key.
A boot loader could then use AES and decrypt the binary file before writing to flash memory.
Only the binary image is encrypted, the HEX file is not encrypted!
You can not simulate an encrypted program. Add this option when your project is ready.
See also
Example
See the Samples\boot\xmega_dos_boot_AES.zip , an Xmega boot loader with AES decryption.
Languages | English • Deutsch |
---|