diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-08-08 18:57:47 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-08-08 19:03:12 +0200 |
commit | 9bdbc8ef983547e85704fe2f75431c88e1989e33 (patch) | |
tree | 73d1a2e47b5f2658de0afcdea5b101c7d923de8a /lib | |
parent | b904d79e4809bf35cf53c2e5fee0f73647bab07a (diff) | |
download | u-boot-9bdbc8ef983547e85704fe2f75431c88e1989e33.tar.gz u-boot-9bdbc8ef983547e85704fe2f75431c88e1989e33.tar.bz2 u-boot-9bdbc8ef983547e85704fe2f75431c88e1989e33.zip |
lib/crypto: simplify public_key_verify_signature
The variable region is filled but never used. Remove it.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/crypto/public_key.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/crypto/public_key.c b/lib/crypto/public_key.c index a8f7fbed45..df6033cdb4 100644 --- a/lib/crypto/public_key.c +++ b/lib/crypto/public_key.c @@ -97,7 +97,6 @@ int public_key_verify_signature(const struct public_key *pkey, const struct public_key_signature *sig) { struct image_sign_info info; - struct image_region region; int ret; pr_devel("==>%s()\n", __func__); @@ -137,9 +136,6 @@ int public_key_verify_signature(const struct public_key *pkey, info.key = pkey->key; info.keylen = pkey->keylen; - region.data = sig->digest; - region.size = sig->digest_size; - if (rsa_verify_with_pkey(&info, sig->digest, sig->s, sig->s_size)) ret = -EKEYREJECTED; else |