image: fit: Align hash output buffers
authorSean Anderson <sean.anderson@seco.com>
Thu, 24 Mar 2022 15:26:11 +0000 (11:26 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 11 Apr 2022 15:39:19 +0000 (11:39 -0400)
commitb583348ca8c8ce74d5dd665446d20f4c6c6e3f06
tree46c9d7af8d9c1ccc8210caa049c34c39aae56d09
parente6fe02a5715b3dc02fe4041c4f5a59099a711d70
image: fit: Align hash output buffers

Hardware-accelerated hash functions require that the input and output
buffers be aligned to the minimum DMA alignment. memalign.h helpfully
provides a macro just for this purpose. It doesn't exist on the host,
but we don't need to be aligned there either.

Fixes: 5dfb521386 ("[new uImage] New uImage low-level API")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/image-fit.c
tools/mkimage.h