Skip to content
Snippets Groups Projects
Commit 19495dd9 authored by Patrick Doyle's avatar Patrick Doyle Committed by Tom Rini
Browse files

rsa: reject images with unknown padding


Previously we would store NULL in info->padding and jump to an illegal
instruction if an unknown value for "padding" was specified in the
device tree.

Signed-off-by: default avatarPatrick Doyle <pdoyle@irobot.com>
parent 226a35ef
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ static int fit_image_setup_verify(struct image_sign_info *info,
info->required_keynode = required_keynode;
printf("%s:%s", algo_name, info->keyname);
if (!info->checksum || !info->crypto) {
if (!info->checksum || !info->crypto || !info->padding) {
*err_msgp = "Unknown signature algorithm";
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment