summaryrefslogtreecommitdiff
path: root/lib/atomic64_test.c
diff options
context:
space:
mode:
authorSrinivas Kerekare <srinivas.kerekare@intel.com>2022-07-25 13:40:09 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-08-19 13:39:33 +0300
commit908f24270d9ccbe120b91e7029b372f3dcd18290 (patch)
tree1da016c502fd195339efbd6d8cb871b448bfda71 /lib/atomic64_test.c
parent108586eba094b318e6a831f977f4ddcc403a15da (diff)
downloadlinux-908f24270d9ccbe120b91e7029b372f3dcd18290.tar.xz
crypto: qat - add check to validate firmware images
The function qat_uclo_check_image() validates the MMP and AE firmware images. If the QAT device supports firmware authentication (indicated by the handle to firmware loader), the input signed binary MMP and AE images are validated by parsing the following information: - Header length - Full size of the binary - Type of binary image (MMP or AE Firmware) Firmware binaries use RSA3K for signing and verification. The header length for the RSA3k is 0x384 bytes. All the size field values in the binary are quantified as DWORDS (1 DWORD = 4bytes). On an invalid value the function prints an error message and returns with an error code "EINVAL". Signed-off-by: Srinivas Kerekare <srinivas.kerekare@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/atomic64_test.c')
0 files changed, 0 insertions, 0 deletions