u-boot/lib/rsa
Heinrich Schuchardt 675c3ccc5c lib/rsa: avoid -Wdiscarded-qualifiers
The return type of EVP_PKEY_get0_RSA() is const struct rsa_st *.
Our code drops the const qualifier leading to

In file included from tools/lib/rsa/rsa-sign.c:1:
./tools/../lib/rsa/rsa-sign.c: In function ‘rsa_add_verify_data’:
./tools/../lib/rsa/rsa-sign.c:631:13: warning:
assignment discards ‘const’ qualifier from pointer target type
[-Wdiscarded-qualifiers]
  631 |         rsa = EVP_PKEY_get0_RSA(pkey);
      |             ^

Add a type conversion.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2022-01-10 08:13:24 -05:00
..
Kconfig Kconfig: Don't use RSA_FREESCALE_EXP on MX7ULP 2021-10-07 16:53:50 +02: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 xilinx: zynq: Change types from u32 to uint32_t 2020-10-27 08:13:33 +01:00
rsa-sign.c lib/rsa: avoid -Wdiscarded-qualifiers 2022-01-10 08:13:24 -05:00
rsa-verify.c lib: rsa: rsa-verify: also check that padding is not NULL 2021-10-26 15:26:45 -04:00