Question: Is it possible to do a Secure Boot (SB) image on the MKV31F128?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question: Is it possible to do a Secure Boot (SB) image on the MKV31F128?

1,081 Views
deanmcu
Contributor I

I found the following comment in this post:  https://community.nxp.com/docs/DOC-330885

 

It is quite easy to generate an encrypted SB image. No need to modify the command file. Just add "-k KeyFile" to the command line, and remove "-z". <KeyFile> is a text file containing the AES key. You can generate one with "-K" parameter.

BTW, to let bootloader parse the encrypted sb file, you also need to program the AES key into device's IFR field, and the device must support hardware decryption.

You can refer to the "Kinetis ROM bootloader" chapter in the device's reference manual about the hardware decryption support and IFR programming.

 

The MKV31 is a supported processor in the Bootloader Document but it is not obvious whether the MKV31 can actually handle an encrypted SB image.  I do not believe it has any crypto hardware to handle this decryption task.  Can it be done in software?

Labels (1)
0 Kudos
1 Reply

512 Views
ramboyang
NXP Employee
NXP Employee

Hello,

Yes it can be done by a SW AES algorithm implementation, please replace all the function in the aes_security.c with the SW implementation.

Besides, regarding the SB key, it can be implemented in other ways, for example, storing them in internal FLASH or the generic IFRs.

Hope above info is helpful to you

0 Kudos