mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
lib: rsa: rsa-verify: don't look for keys in the FIT image
In the function rsa_verify_hash, if the "main" key doesn't work, u-boot try others keys. But it searches those keys in the FIT image instead of the u-boot device tree. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a7a029d14d
commit
040fad3791
1 changed files with 2 additions and 2 deletions
|
@ -522,10 +522,10 @@ int rsa_verify_hash(struct image_sign_info *info,
|
|||
return ret;
|
||||
|
||||
/* No luck, so try each of the keys in turn */
|
||||
for (ndepth = 0, noffset = fdt_next_node(info->fit, sig_node,
|
||||
for (ndepth = 0, noffset = fdt_next_node(blob, sig_node,
|
||||
&ndepth);
|
||||
(noffset >= 0) && (ndepth > 0);
|
||||
noffset = fdt_next_node(info->fit, noffset, &ndepth)) {
|
||||
noffset = fdt_next_node(blob, noffset, &ndepth)) {
|
||||
if (ndepth == 1 && noffset != node) {
|
||||
ret = rsa_verify_with_keynode(info, hash,
|
||||
sig, sig_len,
|
||||
|
|
Loading…
Reference in a new issue