From: Tom Rini <trini@konsulko.com>
To: Yann Droneaud <ydroneaud@opteya.com>
Cc: u-boot@lists.denx.de, Alexandru Gagniuc <mr.nuke.me@gmail.com>,
"Chan, Donald" <hoiho@lab126.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Marc Kleine-Budde <mkl@pengutronix.de>,
Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH] lib: rsa: use actual OpenSSL 1.1.0 EVP MD API
Date: Sat, 5 Mar 2022 11:36:11 -0500 [thread overview]
Message-ID: <20220305163611.GI5020@bill-the-cat> (raw)
In-Reply-To: <20220301151234.442372-1-ydroneaud@opteya.com>
[-- Attachment #1: Type: text/plain, Size: 707 bytes --]
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@opteya.com>
Applied to u-boot/master, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
prev parent reply other threads:[~2022-03-05 16:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-01 15:12 [PATCH] lib: rsa: use actual OpenSSL 1.1.0 EVP MD API Yann Droneaud
2022-03-02 1:10 ` Simon Glass
2022-03-02 7:57 ` Heinrich Schuchardt
2022-03-02 19:38 ` Yann Droneaud
2022-03-05 16:36 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220305163611.GI5020@bill-the-cat \
--to=trini@konsulko.com \
--cc=hoiho@lab126.com \
--cc=mkl@pengutronix.de \
--cc=mr.nuke.me@gmail.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=ydroneaud@opteya.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox