coreboot/src/soc/amd/common
Julius Werner 99a9928447 soc/(amd|rockchip): Update vb2ex_hwcrypto implementations to new API req
We want to extend the vb2ex_hwcrypto APIs on the vboot side to allow
passing 0 for the data_size parameter to vb2ex_hwcrypto_digest_init()
(see CL:3825558). This is because not all use cases allow knowing the
amount of data to be hashed beforehand (most notable the metadata hash
for CBFS verification), and some HW crypto engines do not need this
information, so we don't want to preclude them from optimizing these use
cases just because others do.

The new API requirement is that data_size may be 0, which indicates that
the amount of data to be hashed is unknown. If a HW crypto engine cannot
support this case, it should return VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED to
those calls (this patch adds the code to do that to existing HW crypto
implementations). If the passed-in data_size value is non-zero, the HW
crypto implementation can trust that it is accurate.

Also reduce a bit of the console spew for existing HW crypto
implementations, since vboot already logs the same information anyway.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Ieb7597080254b31ef2bdbc0defc91b119c618380
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66621
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
2022-08-12 20:59:59 +00:00
..
acpi src/soc: Remove space before tab 2022-02-17 17:12:49 +00:00
block treewide: Rename Sabrina to Mendocino 2022-08-11 19:15:30 +00:00
fsp soc/amd/common: Fix some white spaces issues 2022-07-17 21:59:05 +00:00
pi soc/amd/common: Fix some white spaces issues 2022-07-17 21:59:05 +00:00
psp_verstage soc/(amd|rockchip): Update vb2ex_hwcrypto implementations to new API req 2022-08-12 20:59:59 +00:00
vboot soc/amd/{common/vboot,cezanne}: Copy S0i3 verstage logs into cbmem 2022-03-10 17:23:35 +00:00
Kconfig.common soc/amd/common/psp_verstage: Introduce boot device driver 2021-09-27 13:40:03 +00:00
Makefile.inc soc/amd/common: move block/pi out of the block folder 2021-09-24 15:47:59 +00:00