All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib: rsa: rsa-sign: Minor bug in debug message
@ 2021-07-19 16:18 Chan, Donald
  2021-07-20 12:33 ` Simon Glass
  2021-07-29 16:49 ` Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Chan, Donald @ 2021-07-19 16:18 UTC (permalink / raw)
  To: u-boot; +Cc: Alexandru Gagniuc, Simon Glass

*sig_size isn't set until later so use the correct variables.

Signed-off-by: Donald Chan <hoiho@lab126.com>
---
  lib/rsa/rsa-sign.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c
index f70f352311..5b85d61a13 100644
--- a/lib/rsa/rsa-sign.c
+++ b/lib/rsa/rsa-sign.c
@@ -482,7 +482,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;

-- 
2.16.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] lib: rsa: rsa-sign: Minor bug in debug message
  2021-07-19 16:18 [PATCH] lib: rsa: rsa-sign: Minor bug in debug message Chan, Donald
@ 2021-07-20 12:33 ` Simon Glass
  2021-07-29 16:49 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2021-07-20 12:33 UTC (permalink / raw)
  To: Chan, Donald; +Cc: U-Boot Mailing List, Alexandru Gagniuc

On Mon, 19 Jul 2021 at 10:18, Chan, Donald <hoiho@lab126.com> wrote:
>
> *sig_size isn't set until later so use the correct variables.
>
> Signed-off-by: Donald Chan <hoiho@lab126.com>
> ---
>   lib/rsa/rsa-sign.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] lib: rsa: rsa-sign: Minor bug in debug message
  2021-07-19 16:18 [PATCH] lib: rsa: rsa-sign: Minor bug in debug message Chan, Donald
  2021-07-20 12:33 ` Simon Glass
@ 2021-07-29 16:49 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2021-07-29 16:49 UTC (permalink / raw)
  To: Chan, Donald; +Cc: u-boot, Alexandru Gagniuc, Simon Glass

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

On Mon, Jul 19, 2021 at 09:18:54AM -0700, Chan, Donald wrote:

> *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>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-29 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19 16:18 [PATCH] lib: rsa: rsa-sign: Minor bug in debug message Chan, Donald
2021-07-20 12:33 ` Simon Glass
2021-07-29 16:49 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.