diff options
author | Chan, Donald <hoiho@lab126.com> | 2021-07-19 19:18:54 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-07-29 03:46:34 +0300 |
commit | 6d59ace988fdc1bb9f52ab70e21af0d40380c3f3 (patch) | |
tree | 007f6c0f9940b2b297f31de3afeeeaf484a36ed3 /lib/rsa/rsa-sign.c | |
parent | 0eadb2b2da9ef7fccd39b22487a1de581f37330a (diff) | |
download | u-boot-6d59ace988fdc1bb9f52ab70e21af0d40380c3f3.tar.xz |
lib: rsa: rsa-sign: Minor bug in debug message
*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>
Diffstat (limited to 'lib/rsa/rsa-sign.c')
-rw-r--r-- | lib/rsa/rsa-sign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c index f4ed11e74a..c64deac31f 100644 --- 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; |