projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b904d79
)
lib/crypto: simplify public_key_verify_signature
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 8 Aug 2020 16:57:47 +0000
(18:57 +0200)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 8 Aug 2020 17:03:12 +0000
(19:03 +0200)
The variable region is filled but never used. Remove it.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/crypto/public_key.c
patch
|
blob
|
history
diff --git
a/lib/crypto/public_key.c
b/lib/crypto/public_key.c
index
a8f7fbe
..
df6033c
100644
(file)
--- 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