Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHello Mike,
In the past I had to solve a similar task so it’s possible that I have some good information for you. I decided to use 3DES (please don’t ask why). Under the following link you can get a very useful source-code: http://jean.downloads.port5.com/3des_src.htm (http://jean.downloads.port5.com/3des_src.htm) The source code can be used within the Nios firmware and within the Visul Studio Project. It’s very likely that you can get some ready components for Visual Studio too. In my opinion these steps are necessary: 1. Merge the binary flash data for the FPGA configuration and the Nios firmware. 2. Calculate the CRC32 of the data 3. Encrypt all with 3DES or something else (block code) 4. Send the whole data to your Nios 5. The Nios firmware decrypts all 6. Check the CRC32 - it must be the same  as above 7. Program your flash with it Unfortunately I don’t have ready source code you can use. But if you have questions feel free to ask. Regards, niosIIuser