lib/rsa: Use EVP_PKEY instead of RSA
authorChan, Donald <hoiho@lab126.com>
Thu, 1 Apr 2021 22:42:36 +0000 (22:42 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 14 Apr 2021 21:45:04 +0000 (17:45 -0400)
commitfbc777429fa35312a9ea5f106692172d3153e659
tree63f6f34a2dd1784ff50333251f6b8dd1255ba149
parent033ac4ebbad82241e2d7da3ead662ccb495b9e89
lib/rsa: Use EVP_PKEY instead of RSA

Most modern OpenSSL engines have methods overridden at the EVP level rather
than at RSA level, to make these engines work properly with mkimage, the RSA
signing code needs to switch to using EVP_* APIs as much as possible.

Signed-off-by: Donald Chan <hoiho@lab126.com>
[trini: Rebase on top of keyfile changes]
Signed-off-by: Tom Rini <trini@konsulko.com>
lib/rsa/rsa-sign.c