Re: [PATCH RESEND] crypto: qat - add check to validate firmware images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 25, 2022 at 11:40:09AM +0100, Srinivas Kerekare wrote:
> 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@xxxxxxxxx>
> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@xxxxxxxxx>
> Reviewed-by: Wojciech Ziemba <wojciech.ziemba@xxxxxxxxx>
> ---
>  drivers/crypto/qat/qat_common/icp_qat_uclo.h |  3 +-
>  drivers/crypto/qat/qat_common/qat_uclo.c     | 56 +++++++++++++++++++-
>  2 files changed, 57 insertions(+), 2 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux