mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 15:34:55 +00:00
image-fit-sig: Remove padding check
The padding algorithm is not mandatory for all signing algorithm. For example, ECDSA does not require a padding method. For RSA requiring PKCS padding, the belonging info->crypto(), assigned with rsa_verify_key(), also has the check on the validity of info->padding(). Thus, remove the info->padding check from the upper, general layer. Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
75068b1a2d
commit
2e6cf57e8e
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,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 || !info->padding) {
|
||||
if (!info->checksum || !info->crypto) {
|
||||
*err_msgp = "Unknown signature algorithm";
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue