diff options
author | T Karthik Reddy <t.karthik.reddy@xilinx.com> | 2019-01-07 14:35:10 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-10-27 10:13:31 +0300 |
commit | 650d02ae77192cc78ca0c432babde65971c8107f (patch) | |
tree | 428db8988b79119f1caf537b123e1af16e803083 /arch/arm/mach-zynqmp/include | |
parent | 8e4e91465273acaa435b7e154c78ddff47cbd9ff (diff) | |
download | u-boot-650d02ae77192cc78ca0c432babde65971c8107f.tar.xz |
arm64: zynqmp: Add support for RSA command
This patch adds support for RSA command, performs RSA encrypt &
RSA decrypt on data blob of key size.
Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynqmp/include')
-rw-r--r-- | arch/arm/mach-zynqmp/include/mach/sys_proto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-zynqmp/include/mach/sys_proto.h b/arch/arm/mach-zynqmp/include/mach/sys_proto.h index df944bde09..d52eccc7e6 100644 --- a/arch/arm/mach-zynqmp/include/mach/sys_proto.h +++ b/arch/arm/mach-zynqmp/include/mach/sys_proto.h @@ -10,6 +10,10 @@ #define ZYNQMP_CSU_SILICON_VER_MASK 0xF #define KEY_PTR_LEN 32 #define IV_SIZE 12 +#define RSA_KEY_SIZE 512 +#define MODULUS_LEN 512 +#define PRIV_EXPO_LEN 512 +#define PUB_EXPO_LEN 4 #define ZYNQMP_FPGA_BIT_AUTH_DDR 1 #define ZYNQMP_FPGA_BIT_AUTH_OCM 2 |