[PATCH] Use EVP_MAC interface for Poly1305 if supported.

Dmitry Belyavskiy dbelyavs at redhat.com
Mon Oct 24 04:32:21 AEDT 2022


On Sun, Oct 23, 2022 at 12:51 AM Darren Tucker <dtucker at dtucker.net> wrote:

> On Sat, 22 Oct 2022 at 07:53, Chris Rapier <rapier at psc.edu> wrote:
> [...]
> > I normally wouldn't clutter up the code with library version specific
> > ifdefs but it might be worth considering.
>
> Instead of ifdefs, you can check if the MAC init succeeded before
> calling the EVP functions, else fall back to the existing code path.
>

 EVP_MAC_fetch is a new OpenSSL 3.0 API, so to follow this way it will be
necessary to detect it via configure.


-- 
Dmitry Belyavskiy


More information about the openssh-unix-dev mailing list