]> git.dujemihanovic.xyz Git - u-boot.git/commit
mkimage: fit: only process one cipher node
authorPatrick Oppenlander <patrick.oppenlander@gmail.com>
Thu, 30 Jul 2020 04:22:13 +0000 (14:22 +1000)
committerTom Rini <trini@konsulko.com>
Fri, 7 Aug 2020 15:47:18 +0000 (11:47 -0400)
commitc520266f9a796f5f447f5e3b1da04a874500290a
tree16c72284bab8d3152abfa1910f48254a985275c3
parent410cf5e05cbc62d183364c9172c439ea8536f3c4
mkimage: fit: only process one cipher node

Previously mkimage would process any node matching the regex cipher.*
and apply the ciphers to the image data in the order they appeared in
the FDT. This meant that data could be inadvertently ciphered multiple
times.

Switch to processing a single cipher node which exactly matches
FIT_CIPHER_NODENAME.

Signed-off-by: Patrick Oppenlander <patrick.oppenlander@gmail.com>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
tools/image-host.c