diff options
author | T Karthik Reddy <t.karthik.reddy@xilinx.com> | 2019-01-07 14:35:11 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-10-27 10:13:31 +0300 |
commit | 0af9de9a9042fe099d81c73ac4f4a479aa12f352 (patch) | |
tree | a25aa8271be01ebdd5f212ce874037054a3db23c /arch/arm/mach-zynqmp/include | |
parent | 650d02ae77192cc78ca0c432babde65971c8107f (diff) | |
download | u-boot-0af9de9a9042fe099d81c73ac4f4a479aa12f352.tar.xz |
arm64: zynqmp: Add support for SHA3 command
This patch adds support for SHA3 command. It takes data blob
as input and generates 48 bytes sha3 hash value.
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 | 5 |
1 files changed, 5 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 d52eccc7e6..1c12eac715 100644 --- a/arch/arm/mach-zynqmp/include/mach/sys_proto.h +++ b/arch/arm/mach-zynqmp/include/mach/sys_proto.h @@ -15,6 +15,11 @@ #define PRIV_EXPO_LEN 512 #define PUB_EXPO_LEN 4 +#define ZYNQMP_SHA3_INIT 1 +#define ZYNQMP_SHA3_UPDATE 2 +#define ZYNQMP_SHA3_FINAL 4 +#define ZYNQMP_SHA3_SIZE 48 + #define ZYNQMP_FPGA_BIT_AUTH_DDR 1 #define ZYNQMP_FPGA_BIT_AUTH_OCM 2 #define ZYNQMP_FPGA_BIT_ENC_USR_KEY 3 |