lib/ecdsa: Use the 'keydir' argument from mkimage if appropriate
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Fri, 19 Feb 2021 18:45:19 +0000 (12:45 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 14 Apr 2021 19:23:01 +0000 (15:23 -0400)
commiteb22759e2be9c45b0f39ee7ab028e6e4144ce629
treeb7f091c51e3ff9e37a354fe63c0a1a55abc8e359
parent824ee745fbcaa73ad74a30f992aaf2e732a5a325
lib/ecdsa: Use the 'keydir' argument from mkimage if appropriate

Keys can be derived from keydir, and the "key-name-hint" property of
the FIT. They can also be specified ad-literam via 'keyfile'. Update
the ECDSA signing path to use the appropriate one.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/ecdsa/ecdsa-libcrypto.c