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 E455DC433F5 for ; Wed, 2 Mar 2022 19:38:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0BA6683C98; Wed, 2 Mar 2022 20:38:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=opteya.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 3E9CF83C99; Wed, 2 Mar 2022 20:38:46 +0100 (CET) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4B55183C8F for ; Wed, 2 Mar 2022 20:38:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=opteya.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ydroneaud@opteya.com Received: from [IPV6:2a01:e35:39f2:1220:93ff:6095:88c8:6d6a] (unknown [IPv6:2a01:e35:39f2:1220:93ff:6095:88c8:6d6a]) by smtp5-g21.free.fr (Postfix) with ESMTPS id 2DC025FF10; Wed, 2 Mar 2022 20:38:37 +0100 (CET) Message-ID: <06d9cb69-413a-565b-baf8-c53610495293@opteya.com> Date: Wed, 2 Mar 2022 20:38:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] lib: rsa: use actual OpenSSL 1.1.0 EVP MD API Content-Language: fr-FR To: Simon Glass Cc: U-Boot Mailing List , Alexandru Gagniuc , "Chan, Donald" , Heinrich Schuchardt , Marc Kleine-Budde References: <20220301151234.442372-1-ydroneaud@opteya.com> From: Yann Droneaud Organization: OPTEYA In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 Hi, Le 02/03/2022 à 02:10, Simon Glass a écrit : > On Tue, 1 Mar 2022 at 08:12, 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. > Do we still need to support the old version? No, see https://source.denx.de/u-boot/u-boot/-/commit/fe68a67a5f11991146f47c2975a4e1156355a92c Regards -- Yann Droneaud OPTEYA