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-07-02 06:58:48 +02:00
2020-09-18 14:12:32 -04:00
2023-01-12 16:50:19 +00:00
2023-01-12 16:50:19 +00:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2023-06-06 10:19:31 +01:00
2023-06-06 10:19:32 +01:00
2020-09-18 14:12:32 -04:00
2023-06-06 10:19:33 +01:00
2020-09-18 14:12:32 -04:00
2021-02-11 11:50:14 +00:00
2021-03-08 17:20:02 +00:00
2021-03-08 11:54:16 +00:00
2021-03-08 11:54:16 +00:00
2021-09-01 11:08:18 +01:00
2024-10-24 07:57:47 +02:00
2022-01-20 11:47:53 +00:00
2023-02-08 07:28:05 +01:00
2022-06-30 09:21:14 +02:00
2022-07-14 16:24:38 +02:00
2024-07-21 07:46:38 +02:00
2024-06-16 21:08:54 +02:00
2024-06-16 21:08:54 +02:00
2021-05-01 10:03:52 +02:00
2023-08-31 19:47:43 +02:00
2021-05-02 17:24:50 +02:00
2022-05-11 16:49:06 +02:00
2022-05-11 16:49:06 +02:00
2020-03-23 17:22:30 +00:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2021-07-02 11:48:36 +01:00
2024-07-01 12:48:55 +01:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2023-10-06 10:33:43 +02:00
2020-06-09 06:59:44 +02:00
2021-03-19 15:18:43 +01:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2023-12-19 18:03:32 +00:00
2023-08-31 09:45:17 +01:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2023-10-06 10:33:43 +02:00
2021-03-08 17:20:01 +00:00
2021-03-08 17:20:02 +00:00
2021-03-08 17:20:01 +00:00
2015-10-24 18:03:18 +02:00
2024-02-11 13:20:23 +01:00
2021-03-15 00:39:30 +01:00
2023-10-06 10:33:43 +02:00
2023-01-08 01:54:22 -05:00
2023-01-08 01:54:22 -05:00
2023-01-08 01:54:22 -05:00
2023-03-08 00:37:48 +01:00
2020-11-03 16:51:13 +01:00
2024-02-15 15:53:12 +01:00
2023-02-06 11:41:39 +00:00
2021-03-08 17:20:03 +00:00
2024-02-15 14:32:38 +00:00
2020-09-18 14:12:32 -04:00
2023-01-12 17:15:09 +00:00
2023-01-12 17:15:09 +00:00
2023-01-12 17:15:09 +00:00
2023-01-12 17:15:09 +00:00
2023-01-12 17:15:09 +00:00
2020-09-18 14:12:32 -04:00
2024-07-01 17:16:04 -04:00
2023-07-10 22:29:14 +10:00
2023-01-08 01:54:22 -05:00
2020-09-18 13:49:48 -04:00
2023-01-08 01:54:22 -05:00
2023-01-08 01:54:22 -05:00
2024-10-15 11:29:45 +01:00
2020-11-10 11:03:48 +00:00
2022-05-11 16:49:06 +02:00
2022-05-11 16:49:06 +02:00
2024-07-11 11:41:34 +01:00
2024-03-05 13:22:56 +00:00
2024-03-05 13:22:56 +00:00
2024-10-15 11:29:45 +01:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2020-09-18 14:12:32 -04:00
2023-01-08 01:54:22 -05:00
2020-10-12 11:50:22 -04:00
2024-07-02 06:58:48 +02:00
2023-12-20 10:29:23 +01:00
2023-12-20 10:29:23 +01:00
2024-01-26 11:30:48 +00:00
2023-11-27 15:38:43 +00:00
2024-09-05 13:12:36 +01:00
2021-03-12 12:40:09 +00:00
2022-12-15 17:37:47 +00:00
2022-03-18 11:31:20 +00:00