summaryrefslogtreecommitdiff
path: root/tools/image-host.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-12-03 16:23:03 -0500
committerTom Rini <trini@konsulko.com>2018-12-03 16:23:03 -0500
commitcf7c6f533331ff032d8949663ab2abe618da9cb4 (patch)
tree05b83585e594685f83f626c21071172be1d607e5 /tools/image-host.c
parent8f5bfb7615e82ffccebf79530b08034f81e56268 (diff)
parentfb0204e48b3e5ed5ecdfab89229140b6d4a1a08b (diff)
downloadu-boot-cf7c6f533331ff032d8949663ab2abe618da9cb4.tar.gz
Merge branch '2018-12-03-master-imports'
- Baltos platform updates - rtc m41t62 converted to DM. - PowerPC MPC8xx DM conversion - Verified boot updates
Diffstat (limited to 'tools/image-host.c')
-rw-r--r--tools/image-host.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/image-host.c b/tools/image-host.c
index 09e4f47e5a..88b329502c 100644
--- a/tools/image-host.c
+++ b/tools/image-host.c
@@ -157,6 +157,7 @@ static int fit_image_setup_sig(struct image_sign_info *info,
{
const char *node_name;
char *algo_name;
+ const char *padding_name;
node_name = fit_get_name(fit, noffset, NULL);
if (fit_image_hash_get_algo(fit, noffset, &algo_name)) {
@@ -165,6 +166,8 @@ static int fit_image_setup_sig(struct image_sign_info *info,
return -1;
}
+ padding_name = fdt_getprop(fit, noffset, "padding", NULL);
+
memset(info, '\0', sizeof(*info));
info->keydir = keydir;
info->keyname = fdt_getprop(fit, noffset, "key-name-hint", NULL);
@@ -173,6 +176,7 @@ static int fit_image_setup_sig(struct image_sign_info *info,
info->name = strdup(algo_name);
info->checksum = image_get_checksum_algo(algo_name);
info->crypto = image_get_crypto_algo(algo_name);
+ info->padding = image_get_padding_algo(padding_name);
info->require_keys = require_keys;
info->engine_id = engine_id;
if (!info->checksum || !info->crypto) {