Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D855C433F5 for ; Thu, 2 Sep 2021 17:48:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BC74E6103A for ; Thu, 2 Sep 2021 17:48:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BC74E6103A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C3D49832BC; Thu, 2 Sep 2021 19:48:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hhTha18r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9B70B832DB; Thu, 2 Sep 2021 19:48:36 +0200 (CEST) Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) (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 5866383259 for ; Thu, 2 Sep 2021 19:48:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-oo1-xc2c.google.com with SMTP id g4-20020a4ab044000000b002900bf3b03fso792133oon.1 for ; Thu, 02 Sep 2021 10:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wbvlw1jJgAbZnbgj+0pjPyH4SZyxw+AdLWsApGWP9+M=; b=hhTha18rQ/4An8Ifz2DpB+7EGzqGWosrAzdgcm4zS7v93OHKuDqR7NMZ/k7tt6FzJO 12KPBfzbnoompO44jmFbD9JZ7OTwuclsG9+mQtmsEM4vtk7L+Du14XRklBo/yTXPrrXF qCyZAOcr/FkvTsGlEUhsmNuuO9KRo4kyvNTEgB9xHx6rq9X+eaLTzK+ytxTkIk2hSHRA 4XVC2+0ZeYzRGMrPUtHIgYwfBUQEQFLY6/yGOGu9TfduqNNfBhMQucsIxw1mDPZIlLXE mWZoHWml5To2KuqdPxg2X+CjKzl8jROHGOfO0dYH5v5DhjNRO6p7X46hncG5RCE9z3Hd eOog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wbvlw1jJgAbZnbgj+0pjPyH4SZyxw+AdLWsApGWP9+M=; b=Qr2CLYahQIzuVTgxUUpZIHnv/EVtDapz2JKKJdoMLxgouKEXnk+PSq4/lvruO43Q7W fes06aFF3vPh503k3iTT+jn55XsdFMN3JqPO3jwnGpawseLsqSZ6CBOieIxb4Q03Nrif G8Ub0a05i3LzsnjckykSxj0MIEnYN7VyE2bV4pXqgPHyDhhYCvDJrbGla2J/hM55vujS 3OuFh9dRmWyr8YhMz5QPBhKToQYbmiscny0OWtPaFe6icvOFuEd2RUZT2HxTC1eQeXJv CKaPWajDK1Tr2o6e5pnfKdU0BdUE8WwzJTzO5UHaA2zf6727rLg3/9EvjWAkco0sCza/ iy5Q== X-Gm-Message-State: AOAM5319c07TCpl9GLiT4pj0NPqS4UX77ud/v0DA1g/5AQKXtt6Cuzd8 Q6bz9oUUTN0egf2OEIbIiV8= X-Google-Smtp-Source: ABdhPJyvFDj0EUByVAV0knKmFQavoAy4nOS2KWV71+EBW4dhZ0F3RNoMWOhvfhXnmvPIMz0va6i38A== X-Received: by 2002:a4a:7648:: with SMTP id w8mr3645195ooe.0.1630604910681; Thu, 02 Sep 2021 10:48:30 -0700 (PDT) Received: from nuclearis3.gtech (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id j8sm489282ooc.21.2021.09.02.10.48.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Sep 2021 10:48:29 -0700 (PDT) Subject: Re: [PATCH] lib/rsa: Remove support for OpenSSL < 1.1.0 and libressl < 2.7.0 To: Peter Robinson , Tom Rini Cc: u-boot@lists.denx.de, panfilov.artyom@gmail.com References: <20210729183121.3798261-1-mr.nuke.me@gmail.com> <20210902132828.GW858@bill-the-cat> <20210902143851.GK858@bill-the-cat> From: "Alex G." Message-ID: <2cf69c6b-9d87-20d4-28ed-d118e8fe5ba9@gmail.com> Date: Thu, 2 Sep 2021 12:48:29 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On 9/2/21 12:43 PM, Peter Robinson wrote: > On Thu, Sep 2, 2021 at 3:38 PM Tom Rini wrote: >> >> On Thu, Sep 02, 2021 at 03:36:43PM +0100, Peter Robinson wrote: >>> On Thu, Sep 2, 2021 at 2:28 PM Tom Rini wrote: >>>> >>>> On Thu, Jul 29, 2021 at 01:31:21PM -0500, Alexandru Gagniuc wrote: >>>> >>>>> Older OpenSSL and libressl versions have a slightly different API. >>>>> This require #ifdefs to support. However, we still can't support it >>>>> because the ECDSA path does not compile with these older versions. >>>>> These #ifdefs are truly a vestigial appendage. >>>>> >>>>> Alternatively, the ECDSA path could be updated for older libraries, >>>>> but this requires significant extra code, and #ifdefs. Those libraries >>>>> are over three years old, and there concerns whether it makes sense to >>>>> build modern software for real world use against such old libraries. >>>>> >>>>> Thusly, remove #ifdefs and code for old OpenSSL and LibreSSL support. >>>>> >>>>> Signed-off-by: Alexandru Gagniuc >>>> >>>> Applied to u-boot/next, thanks! >>> >>> According to recent CVE announcements 1.1.0 is out of support [1], >>> does it make sense to just support 1.1.1x and later? >>> >>> [1] https://www.openssl.org/news/secadv/20210824.txt >> >> Good question. Are there API changes between 1.1.0 and 1.1.1x ? > > So outside of the new TLS 1.3 feature the release says "What’s more is > that OpenSSL 1.1.1 is API and ABI compliant with OpenSSL 1.1.0" and > depending on how we use openssl it may even be API compatible with 3.0 > when it comes out any time now. > > https://www.openssl.org/blog/blog/2018/09/11/release111/ Okay, I don't think it's worth excluding 1.1.0 then. The only way we could do that is a compile time check against OPENSSL_VERSION. That won't prevent someone from compiling with openssl 1.1.1, and then just replacing libcrypto.so with 1.1.0. Alex