diff options
| author | 2025-03-14 12:57:54 +0000 | |
|---|---|---|
| committer | 2025-03-21 17:33:39 +0800 | |
| commit | 987fd1a4bad6cd0c5daf422bc65621c70c88087d (patch) | |
| tree | 686f74c0b3523f03012b5a8e74255a8cd7676c68 /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | crypto: qat - remove redundant FW image size check (diff) | |
| download | wireguard-linux-987fd1a4bad6cd0c5daf422bc65621c70c88087d.tar.xz wireguard-linux-987fd1a4bad6cd0c5daf422bc65621c70c88087d.zip | |
crypto: qat - optimize allocations for fw authentication
The memory requested to hold the image data for authentication will
never exceed `ICP_QAT_CSS_RSA4K_MAX_IMAGE_LEN`. Therefore, we can
simplify the allocation by always requesting the maximum size needed for
any image.
Also introduce the following checks:
* Ensure the allocated memory is 8-byte aligned to meet the
requirements of the authentication firmware.
* Prevent overflow when constructing the authentication descriptor.
Signed-off-by: Jack Xu <jack.xu@intel.com>
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
