Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: qat - remove unused members in suof structure

Remove the members `css_key` and `css_signature` which are not used for
doing the firmware authentication.

The signed image pointer can be calculated using the pointer to the CSS
header and the length of the CSS header, making these members redundant.

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>

authored by

Jack Xu and committed by
Herbert Xu
bd2c6e0e ce331356

+2 -9
-2
drivers/crypto/intel/qat/qat_common/icp_qat_uclo.h
··· 404 404 char *simg_buf; 405 405 unsigned long simg_len; 406 406 char *css_header; 407 - char *css_key; 408 - char *css_signature; 409 407 char *css_simg; 410 408 unsigned long simg_size; 411 409 unsigned int ae_num;
+2 -7
drivers/crypto/intel/qat/qat_common/qat_uclo.c
··· 1064 1064 struct icp_qat_suof_chunk_hdr *suof_chunk_hdr) 1065 1065 { 1066 1066 struct icp_qat_suof_handle *suof_handle = handle->sobj_handle; 1067 + unsigned int offset = ICP_QAT_AE_IMG_OFFSET(handle); 1067 1068 struct icp_qat_simg_ae_mode *ae_mode; 1068 1069 struct icp_qat_suof_objhdr *suof_objhdr; 1069 1070 ··· 1076 1075 suof_chunk_hdr->offset))->img_length; 1077 1076 1078 1077 suof_img_hdr->css_header = suof_img_hdr->simg_buf; 1079 - suof_img_hdr->css_key = (suof_img_hdr->css_header + 1080 - sizeof(struct icp_qat_css_hdr)); 1081 - suof_img_hdr->css_signature = suof_img_hdr->css_key + 1082 - ICP_QAT_CSS_FWSK_MODULUS_LEN(handle) + 1083 - ICP_QAT_CSS_FWSK_EXPONENT_LEN(handle); 1084 - suof_img_hdr->css_simg = suof_img_hdr->css_signature + 1085 - ICP_QAT_CSS_SIGNATURE_LEN(handle); 1078 + suof_img_hdr->css_simg = suof_img_hdr->css_header + offset; 1086 1079 1087 1080 ae_mode = (struct icp_qat_simg_ae_mode *)(suof_img_hdr->css_simg); 1088 1081 suof_img_hdr->ae_mask = ae_mode->ae_mask;