[PATCH] lib: rsa: use actual OpenSSL 1.1.0 EVP MD API

Tom Rini trini at konsulko.com
Sat Mar 5 17:36:11 CET 2022

On Tue, Mar 01, 2022 at 04:12:34PM +0100, Yann Droneaud wrote:

> Since OpenSSL 1.1.0, EVP_MD_CTX_create() is EVP_MD_CTX_new()
>                      EVP_MD_CTX_destroy() is EVP_MD_CTX_free()
>                      EVP_MD_CTX_init() is EVP_MD_CTX_reset()
> As there's no need to reset a newly created EVP_MD_CTX, moreover
> EVP_DigestSignInit() does the reset, thus call to EVP_MD_CTX_init()
> can be dropped.
> As there's no need to reset an EVP_MD_CTX before it's destroyed,
> as it will be reset by EVP_MD_CTX_free(), call to EVP_MD_CTX_reset()
> is not needed and can be dropped.
> Signed-off-by: Yann Droneaud <ydroneaud at opteya.com>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220305/1bfcb79d/attachment.sig>

More information about the U-Boot mailing list