xilinx: zynq: Add support to secure images
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 26 Jun 2018 09:32:19 +0000 (15:02 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Jul 2018 08:49:54 +0000 (10:49 +0200)
commit37e3a36a54755d15e36b52ee47caaf1cdfdc37aa
tree073fdd82a13ff07bb5003069503464af68da934e
parent6bdf0a992c962e15ab637a096d7f7d5601e0b4c5
xilinx: zynq: Add support to secure images

This patch basically adds two new commands for loadig secure
images.
1. zynq rsa adds support to load secure image which can be both
   authenticated or encrypted or both authenticated and encrypted
   image in xilinx bootimage(BOOT.bin) format.
2. zynq aes command adds support to decrypt and load encrypted
   image back to DDR as per destination address. The image has
   to be encrypted using xilinx bootgen tool and to get only the
   encrypted image from tool use -split option while invoking
   bootgen.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 files changed:
arch/arm/Kconfig
arch/arm/mach-zynq/include/mach/hardware.h
board/xilinx/zynq/Kconfig [new file with mode: 0644]
board/xilinx/zynq/Makefile
board/xilinx/zynq/bootimg.c [new file with mode: 0644]
board/xilinx/zynq/cmds.c [new file with mode: 0644]
configs/zynq_cse_qspi_defconfig
drivers/fpga/zynqpl.c
include/u-boot/rsa-mod-exp.h
include/zynq_bootimg.h [new file with mode: 0644]
include/zynqpl.h
lib/rsa/rsa-mod-exp.c