mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 15:26:03 +09:00
lib: rsa: Add debug message on algo mismatch
Currently we fail silently if there is an algorithm mismatch. To help distinguish this failure condition. Signed-off-by: Sean Anderson <sean.anderson@seco.com>
This commit is contained in:
parent
9abe5e6803
commit
8f684bc120
|
@ -447,8 +447,11 @@ static int rsa_verify_with_keynode(struct image_sign_info *info,
|
||||||
}
|
}
|
||||||
|
|
||||||
algo = fdt_getprop(blob, node, "algo", NULL);
|
algo = fdt_getprop(blob, node, "algo", NULL);
|
||||||
if (strcmp(info->name, algo))
|
if (strcmp(info->name, algo)) {
|
||||||
|
debug("%s: Wrong algo: have %s, expected %s", __func__,
|
||||||
|
info->name, algo);
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
}
|
||||||
|
|
||||||
prop.num_bits = fdtdec_get_int(blob, node, "rsa,num-bits", 0);
|
prop.num_bits = fdtdec_get_int(blob, node, "rsa,num-bits", 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user