Files
qemu/include/hw/misc
Alejandro Zeise 4c1d0af4a2 hw/misc/aspeed_hace: Fix SG Accumulative hashing
Make the Aspeed HACE module use the new qcrypto accumulative hashing functions
when in scatter-gather accumulative mode. A hash context will maintain a
"running-hash" as each scatter-gather chunk is received.

Previously each scatter-gather "chunk" was cached
so the hash could be computed once the final chunk was received.
However, the cache was a shallow copy, so once the guest overwrote the
memory provided to HACE the final hash would not be correct.

Possibly related to: https://gitlab.com/qemu-project/qemu/-/issues/1121
Buglink: https://github.com/openbmc/qemu/issues/36

Signed-off-by: Alejandro Zeise <[email protected]>
[ clg: - Checkpatch fixes
       - Reworked qcrypto_hash*() error reports in do_hash_operation() ]
Signed-off-by: Cédric Le Goater <[email protected]>
Acked-by: Andrew Jeffery <[email protected]>
Reviewed-by: Jamin Lin <[email protected]>
Reviewed-by: Joel Stanley <[email protected]>
2024-10-24 07:57:47 +02:00
..
2024-06-16 21:08:54 +02:00
2024-06-16 21:08:54 +02:00
2023-08-31 19:47:43 +02:00
2023-10-06 10:33:43 +02:00
2023-08-31 09:45:17 +01:00
2023-10-06 10:33:43 +02:00
2021-03-15 00:39:30 +01:00