[PATCH v2 1/1] lib: rsa: fix padding_pss_verify
Simon Glass
sjg at chromium.org
Wed Aug 31 21:23:31 CEST 2022
On Wed, 31 Aug 2022 at 13:13, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Check the that the hash length is shorter than the message length. This
> avoids:
>
> ./tools/../lib/rsa/rsa-verify.c:275:11: warning:
> ‘*db’ may be used uninitialized [-Wmaybe-uninitialized]
> 275 | db[0] &= 0xff >> leftmost_bits;
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> v2:
> Use -EINVAL to indicate incorrect parameters.
> Add description of return value.
> ---
> lib/rsa/rsa-verify.c | 5 +++++
> 1 file changed, 5 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list