]> git.dujemihanovic.xyz Git - u-boot.git/commit
mkimage: ecdsa: add signature/key nodes to dtb if missing
authorMatthias Pritschet <matthias.pritschet@itk-engineering.de>
Tue, 27 Aug 2024 16:00:54 +0000 (18:00 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Oct 2024 03:30:50 +0000 (21:30 -0600)
commitb67436d31969e6d6b76b39849da276506058b900
tree71b1c12c5987c7ec6479b75c155b5438063f4b13
parent57668b01353db647e4497129274024341e2d6b18
mkimage: ecdsa: add signature/key nodes to dtb if missing

If the signature/key node(s) are not yet present in the U-Boot device
tree, ecdsa_add_verify_data simply fails if it can't find the nodes.
This behaviour differs from rsa_add_verify_data, wich does add the missing
nodes and proceeds in that case.

This change is mainly copy&paste from rsa_add_verify_data to add the
same behaviour to ecdsa_add_verify_data.

Signed-off-by: Matthias Pritschet <matthias.pritschet@itk-engineering.de>
lib/ecdsa/ecdsa-libcrypto.c