提交 6d59ace9 编写于 作者: C Chan, Donald 提交者: Tom Rini

lib: rsa: rsa-sign: Minor bug in debug message

*sig_size isn't set until later so use the correct variables.
Signed-off-by: NDonald Chan <hoiho@lab126.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
上级 0eadb2b2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册