u-boot/lib/rsa
Heinrich Schuchardt 0cd933bb4b lib: rsa: fix padding_pss_verify
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;

Fixes: 061daa0b61 ("rsa: add support of padding pss")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-09-15 09:57:11 -04:00
..
Kconfig spl: Ensure all SPL symbols in Kconfig have some SPL dependency 2022-07-07 09:29:08 -04:00
Makefile lib: Rename rsa-checksum.c to hash-checksum.c 2021-04-14 15:06:08 -04:00
rsa-keyprop.c rsa: crash in br_i32_decode() called from rsa_gen_key_prop() 2020-09-14 23:28:52 +02:00
rsa-mod-exp.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
rsa-sign.c lib: rsa: use actual OpenSSL 1.1.0 EVP MD API 2022-03-04 15:20:07 -05:00
rsa-verify.c lib: rsa: fix padding_pss_verify 2022-09-15 09:57:11 -04:00