2012-05-23 12:33 AM
Hello,
I read this application note about secure firmware upgrade http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/DM00044227.pdf So i want to ask about the encryption method that is used in such application. Regards, Hisham2012-05-23 06:29 AM
I believe it uses AES-128
2012-05-23 09:53 PM
So do you mean that i first build my code, so i get unencrypted hex file.
Then i make a software using java or vb that takes the unencrypted hex file and uses AES algorithm to encrypt the file then output encrypted hex file. Is this right?2012-05-24 01:37 AM
That's certainly one approach.
You can use any algorithm you choose, ST has used AES-128 for it's firmwares in the past (ST-Link), and has HW support in the STM32F41x parts, and software libraries for the others. It might be easier just to download source from the web than jump through the hoops ST has erected. I'd probably encapsulate the firmware image in a binary form, with headers and checksums, rather than hex, and wouldn't use VB/Java, but use whatever means/methods you are comfortable with.