hw/core/eif: Use stateful qcrypto apis
authorDorjoy Chowdhury <dorjoychy111@gmail.com>
Sat, 9 Nov 2024 12:30:39 +0000 (18:30 +0600)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Dec 2024 14:26:58 +0000 (15:26 +0100)
commit5b86ddd83d81add60a177804a0e5f2c373f61f82
treea5ddb55758d487fc4eda56480549da7b9d347a21
parent44d9fab1f8a1d376741ff4505ec39f7f0a729ab2
hw/core/eif: Use stateful qcrypto apis

We were storing the pointers to buffers in a GList due to lack of
stateful crypto apis and instead doing the final hash computation at
the end after we had all the necessary buffers. Now that we have the
stateful qcrypto apis available, we can instead update the hashes
inline in the read_eif_* functions which makes the code much simpler.

Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Message-ID: <20241109123039.24180-1-dorjoychy111@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/core/eif.c
hw/i386/nitro_enclave.c
include/hw/i386/nitro_enclave.h