]> git.sur5r.net Git - u-boot/commit
tools: image: fix "algo" property of public key for verified boot
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 27 Oct 2017 04:25:21 +0000 (13:25 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 6 Nov 2017 14:59:00 +0000 (09:59 -0500)
commit1d88a99d1b9175c41f015631311fd9e5966eb997
treeb79fea8451b86b2ba0af6c1f5b592ef793b63c16
parentac122efdb66f24fe4a642ec76bd32d80bf34bba4
tools: image: fix "algo" property of public key for verified boot

The "algo_name" points to a property in a blob being edited.  The
pointer becomes stale when fit_image_write_sig() inserts signatures.
Then crypto->add_verify_data() writes wrong data to the public key
destination.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
tools/image-host.c