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 <alejandro.zeise@seagate.com>
[ clg: - Checkpatch fixes
- Reworked qcrypto_hash*() error reports in do_hash_operation() ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Reviewed-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
2024-10-24 07:57:47 +02:00
..
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2021-02-11 11:50:14 +00:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2021-03-08 11:54:16 +00:00
2024-09-13 15:31:44 +01:00
2021-09-01 11:08:18 +01:00
2024-10-24 07:57:47 +02:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-06-16 21:08:54 +02:00
2024-09-13 15:31:44 +01:00
2023-01-18 11:14:34 +01:00
2024-09-13 15:31:44 +01:00
2023-12-30 07:38:06 +11:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-07-29 16:55:59 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-06-04 11:53:43 +02:00
2024-04-25 10:21:06 +01:00
2024-09-13 15:31:44 +01:00
2024-07-02 06:58:48 +02:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2022-08-08 23:43:11 +02:00
2023-10-12 14:11:44 +02:00
2024-09-13 20:12:16 +02:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2021-05-02 17:24:50 +02:00
2024-09-13 15:31:44 +01:00
2024-04-25 10:21:06 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2021-03-08 17:20:01 +00:00
2024-09-13 15:31:44 +01:00
2024-10-15 15:16:17 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 20:12:16 +02:00
2021-05-02 17:24:50 +02:00
2023-01-06 10:42:55 +10:00
2023-01-06 10:42:55 +10:00
2024-10-15 11:29:45 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-04-25 10:21:06 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-04-25 10:21:06 +01:00
2024-04-25 10:21:06 +01:00
2024-04-25 10:21:06 +01:00
2024-04-25 10:21:06 +01:00
2023-12-30 07:38:06 +11:00
2024-09-13 15:31:44 +01:00
2024-10-01 14:57:55 +01:00
2024-09-13 15:31:44 +01:00
2024-07-01 17:16:04 -04:00
2024-07-01 17:16:04 -04:00
2024-07-01 17:16:04 -04:00
2023-01-12 17:15:09 +00:00
2024-09-13 15:31:44 +01:00
2021-05-02 17:24:50 +02:00
2023-10-12 12:34:30 +10:00
2023-01-26 13:25:07 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-10-15 11:29:45 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-07-11 11:41:34 +01:00
2024-08-13 11:34:56 +01:00
2024-10-15 11:29:45 +01:00
2024-10-15 11:29:45 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2024-09-13 15:31:44 +01:00
2023-12-30 07:38:06 +11:00
2023-09-08 16:41:34 +01:00
2024-04-25 10:21:06 +01:00
2024-09-13 15:31:44 +01:00
2024-04-25 10:21:06 +01:00
2024-04-25 10:21:06 +01:00
2024-09-05 13:12:36 +01:00
2024-04-25 10:21:06 +01:00
2024-04-25 10:21:06 +01:00
2024-04-25 10:21:06 +01:00
2024-07-01 15:40:54 +01:00