Re: [PATCH v2 3/5] selftests/sgx: Use encl->encl_size in sigstruct.c

From: Reinette Chatre
Date: Thu Sep 08 2022 - 18:43:51 EST


Hi Jarkko,

On 9/4/2022 7:04 PM, Jarkko Sakkinen wrote:
> The final enclave address range (referred as ELRANGE in Intel SDM)
> calculation is a reminiscent of signing tool being a separate command-line
> utility, and sigstruct being produced during the compilation. Given that
> nowadays the sigstruct is calculated on-fly, use the readily calculated
> encl->encl_size instead, in order to remove duplicate code.
>
> Signed-off-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>

Thank you very much.

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette