aes: Allow to store randomly generated IV in the FIT
authorPaul HENRYS <paul.henrys_ext@softathome.com>
Mon, 25 Nov 2024 17:47:15 +0000 (18:47 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Dec 2024 15:10:34 +0000 (09:10 -0600)
commit79d7b11102e31f3b92afff1c94dd9fe1a8b9a9e4
tree98b54533b077c73263c49227af6dbe38e0500faf
parent337bfdce5aa52637b482b182db959b9bb058f4b7
aes: Allow to store randomly generated IV in the FIT

When the initialisation vector is randomly generated, its value shall be
stored in the FIT together with the encrypted data. The changes allow to
store the IV in the FIT also in the case where the key is not stored in
the DTB but retrieved somewhere else at runtime.

Signed-off-by: Paul HENRYS <paul.henrys_ext@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/image.h
lib/aes/aes-encrypt.c
tools/image-host.c