From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EB19C433EF for ; Sat, 5 Mar 2022 16:36:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DF03983CAF; Sat, 5 Mar 2022 17:36:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="UDbNK4MT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7376F83CA0; Sat, 5 Mar 2022 17:36:20 +0100 (CET) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2F5B083CD9 for ; Sat, 5 Mar 2022 17:36:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x729.google.com with SMTP id s16so533643qks.4 for ; Sat, 05 Mar 2022 08:36:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MA6LQgWDuGwdUtTBx7ZwgFVfH1UrPMB4qFLwKVLULss=; b=UDbNK4MT1Qf3fqrW9fJHv3c+CWsyQhWiu5+znLnhQhtusntZ3fAtLdVZ1+nJolHOot 9gFNG7cnJu+nN0emLsCOhi/ccor+FhCfM9SxmUGcsygtFq3n/vUU9Dz+IbpiqwIgD8LZ F3ixTBb68XntJqdK/infOjqtiySYDNCGFTKS4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MA6LQgWDuGwdUtTBx7ZwgFVfH1UrPMB4qFLwKVLULss=; b=xhPfhhbWSvmckWGcZdniA8ycsC7aPErEaVQ+oj/7ecvH8S3Fb26r2BgZ3sIUUHxaJd qtlTrngDDkkiyDlrvxs4OJW562jEN46JuGIQoZiIahKn3uLQ7anQzrqjbyikz55HaijJ /rYZwjha5f40iXn6tepx04HztTRcRh106Rbr41zw/dEjsSUopZgO6uZFt8EWxbsX5hII mCTQpzVQ528BcU0jJmjFcwwulbtoe8Ys3Vwv5tibrdGFiV5KC91soQApTGzgwBEtu2Vi GbgCZ8y0bDVbcnuDR5BQfGShbBeQCgnBV1+5gqgPg8/wRh8js7Fwo0mYEOn/zsV6Ii8N CGIg== X-Gm-Message-State: AOAM532W/j/hqcJA4hghKe65e4Glpai8eS0Wz2+H3VJEb2Z68ILfyS0B z0O3eNTtP6EqYJu2lsMMXCDy/A== X-Google-Smtp-Source: ABdhPJyn+fDR8gwe2TxQUW1exiK/gquh9OzezifUo9gaykjEdr0uArcWbX+np9dumJfywsNrFS181w== X-Received: by 2002:a37:a493:0:b0:46b:1df6:a85b with SMTP id n141-20020a37a493000000b0046b1df6a85bmr2384159qke.469.1646498174036; Sat, 05 Mar 2022 08:36:14 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id h10-20020a05620a10aa00b0067b117eba82sm125615qkk.124.2022.03.05.08.36.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Mar 2022 08:36:13 -0800 (PST) Date: Sat, 5 Mar 2022 11:36:11 -0500 From: Tom Rini To: Yann Droneaud Cc: u-boot@lists.denx.de, Alexandru Gagniuc , "Chan, Donald" , Heinrich Schuchardt , Marc Kleine-Budde , Simon Glass Subject: Re: [PATCH] lib: rsa: use actual OpenSSL 1.1.0 EVP MD API Message-ID: <20220305163611.GI5020@bill-the-cat> References: <20220301151234.442372-1-ydroneaud@opteya.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xp5T+jWXk9cMuWlh" Content-Disposition: inline In-Reply-To: <20220301151234.442372-1-ydroneaud@opteya.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --xp5T+jWXk9cMuWlh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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() >=20 > 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. >=20 > Signed-off-by: Yann Droneaud Applied to u-boot/master, thanks! --=20 Tom --xp5T+jWXk9cMuWlh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmIjkXsACgkQFHw5/5Y0 tyzk7wv/SQUpZ7oq3R+BJ09tAFmFkl0dFosonpPwGAzumA7EMkjjSXQIB5Z6594Q p1O+l+GI2G5CcCOflBkxZ8MU+ySKWz0N2iDthuXtjqBQm4ypD6QoYsqFPePRLnwj XIIMlC9gYS+Hk9mJwm83zxVrlWVbluRJWOdt11nkSyAv8USGJsFx0IFwcMzgeeVx MMDP+76g5IuAb1DUj6sgrplKYkGkS6xbYIJ+8Y3xGTXUt4kTkg1Xm69gjqylYDB9 lTqddarEbRMYSfT4fDEFnicdu5JmSAQHAAwlXW4HzyCR/8aNdbuRallJ77tMz1XN VxVwyE0b/T/578gRsXbTNH/MevlEFUDLXhjapRvfCLl/L2ayyGDgLCMDiLtXm5P5 /miBj5cW4LFxe2c7B2yZ930cDuVoXLte38MUPJ7RUvZPTMJ20o+1dGPWkdZKYrun 0VAoDDb1dyW3NRo9UrkqKAfMim0vqRAbc6vVZH0NQ0lPc7WR4ZoZvMF8CieOcP+F Iq+HFd91 =EkDj -----END PGP SIGNATURE----- --xp5T+jWXk9cMuWlh--