git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9abe5e6
)
lib: rsa: Add debug message on algo mismatch
author
Sean Anderson
<sean.anderson@seco.com>
Tue, 16 Feb 2021 16:40:15 +0000
(11:40 -0500)
committer
Tom Rini
<trini@konsulko.com>
Wed, 24 Feb 2021 21:51:48 +0000
(16:51 -0500)
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>
lib/rsa/rsa-verify.c
patch
|
blob
|
history
diff --git
a/lib/rsa/rsa-verify.c
b/lib/rsa/rsa-verify.c
index
e34d329
..
aee76f4
100644
(file)
--- a/
lib/rsa/rsa-verify.c
+++ b/
lib/rsa/rsa-verify.c
@@
-447,8
+447,11
@@
static int rsa_verify_with_keynode(struct image_sign_info *info,
}
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;
+ }
prop.num_bits = fdtdec_get_int(blob, node, "rsa,num-bits", 0);