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:
0eadb2b
)
lib: rsa: rsa-sign: Minor bug in debug message
author
Chan, Donald
<hoiho@lab126.com>
Mon, 19 Jul 2021 16:18:54 +0000
(09:18 -0700)
committer
Tom Rini
<trini@konsulko.com>
Thu, 29 Jul 2021 00:46:34 +0000
(20:46 -0400)
*sig_size isn't set until later so use the correct variables.
Signed-off-by: Donald Chan <hoiho@lab126.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-sign.c
patch
|
blob
|
history
diff --git
a/lib/rsa/rsa-sign.c
b/lib/rsa/rsa-sign.c
index
f4ed11e
..
c64deac
100644
(file)
--- a/
lib/rsa/rsa-sign.c
+++ b/
lib/rsa/rsa-sign.c
@@
-473,7
+473,7
@@
static int rsa_sign_with_key(EVP_PKEY *pkey, struct padding_algo *padding_algo,
#endif
EVP_MD_CTX_destroy(context);
- debug("Got signature: %
d bytes, expected %zu\n", *sig_size, size
);
+ debug("Got signature: %
zu bytes, expected %d\n", size, EVP_PKEY_size(pkey)
);
*sigp = sig;
*sig_size = size;