Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp666134ybe; Wed, 4 Sep 2019 06:04:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBJcKZkFzkmkActFnFuyFOjx3aJoO5sOItvZaLzWz1C+Gux2OvvC5XHXGaTZFdycy2i8hm X-Received: by 2002:a17:902:166:: with SMTP id 93mr41145531plb.195.1567602240428; Wed, 04 Sep 2019 06:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567602240; cv=none; d=google.com; s=arc-20160816; b=znvveJ8qRjZOvmkK9oLpVt1L1jMP5IugGTMu2Ht3uzuwQXUWdDX2E/Q+hUah7caH4F W/bvoCwGH3CSPNVUjoGwe7FtLd43kF0iKfgYqPpvKjLoaFjJi5KoCNNURQ0EEIDJ/GX+ PoHOOG+pZjs+bHqKhSgA5FbNGSkGSpMAl2tBm4R9dHVZJQquAfsAU6SOxB+Y5f7TUbmv XJriV28L51BpiDxf9nV3OyDv+ad3q/0AMepov7vDVN4vIAfgN7uakUI5oIRzoPXHFKcx kxIOZuLeF1OsA18eG09MDWWrh18+m5toxOD5p1q2LnnaqxWAF12Kv+JbcwVpRzdvfT8Q w40g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XYc/WH2seI0xG53pu04DpOsVrDgCeSJvzPVy1Wb7xbc=; b=s8it5JQJaj2G4Fir4lId7wxmxF2nLGwx3XmnA6KMalSeu5a3zhbXouvXWuHdNg85vl moIlVDlPl1PUQC6ISvNE8tN5YPcsyfeQpsVBoWJoGvEZi89uRIJqM3QYyVoT/mxlpJrZ Q6nKNYOXgHoueV6QWNWYCBiY9138A76XA3f5cyu9dRxSAexTOHsUjANRL+LzX9iUow5M ow/dCgSL6IyAlh+VhGDtFhmLyP2kehRUw0eDAtKAVOQYpRHA1fc54w7VOadoznGJqFQX 2DmfI/1WNI2R+XRxV4KkuXojZ3mYGhs063RJLeCtN7RNIE/HcxBM91Cw+daVbHqpBnmA WLWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OpobEe6f; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l191si16709458pge.94.2019.09.04.06.03.39; Wed, 04 Sep 2019 06:04:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OpobEe6f; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730258AbfIDNCX (ORCPT + 99 others); Wed, 4 Sep 2019 09:02:23 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55461 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727929AbfIDNCX (ORCPT ); Wed, 4 Sep 2019 09:02:23 -0400 Received: by mail-wm1-f67.google.com with SMTP id g207so3211258wmg.5 for ; Wed, 04 Sep 2019 06:02:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XYc/WH2seI0xG53pu04DpOsVrDgCeSJvzPVy1Wb7xbc=; b=OpobEe6f+1X770rq3d1rRf53pMVcgDaDEKe/WovlDp2hG/tqPnfNk5zQL1yR5IXJYF 1MOTewq98YCQHq/Qu51mnCqQgtFbvHRRrMZ1+RGH0XfLfY6vCw6Dlf98UjtK/a+kDkuk nNsbIV8a1uNN66skhbYXIn4MVV0MeZM/TnE/j0BzdJTkbG0Nzg0kOh4ZJUZQtOh7vC/h bIEWGp3OWkoRDE2kZoGRRjicvsFXw0aeLn0495+eVPjpkaUDvVQNEfgQ3uSgctfx0TPl D8364k+W38v403LkqfHJzbpKJHFHRtkk4JMoBJI0YcJJFrX68HXQqL7xURr3fLiOJNV9 6UKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XYc/WH2seI0xG53pu04DpOsVrDgCeSJvzPVy1Wb7xbc=; b=gq0pRzS9iQjY4Eu/F4+tUvT4jE+VlQwwbCDKE0PQ2JWgiEDyrwIj/Y7WSslY2q0Aix nvChbkVzlSFtKBOEjuMzunemJ1+GgQPWcjKq3X2r/3SuX7mdRXsMZFfMdasOeCSDUTYD Mph+fCwyzfclKK18JloCqjaZ7bEkJNXf9PGo0BOlXj0+pl7F9iw08OC6sJ6BILYYwevE oohRq5js3yg+pxU8RuLSGSk7W5gbbQd9GfZ4KVTdSvgP8wNEmltkv/7Yo4NuIPmQiIdG 3nmephPMoHfCisrx5UPHohaIpYyWA60C4MxDe66OnEx843lp7B+DwocQdKlnpMi1XpXR gtDQ== X-Gm-Message-State: APjAAAUf6dyBRE4lXyCyb+Fvdeo2Y5cWNHsVldVPC2XRgl15ox+KC8UR 14pA/44l3aLQ4Xs0+lwTo5/OPLteEOufcCK1t9a/dw== X-Received: by 2002:a1c:3cc3:: with SMTP id j186mr4129045wma.119.1567602141735; Wed, 04 Sep 2019 06:02:21 -0700 (PDT) MIME-Version: 1.0 References: <20190901203532.2615-1-hdegoede@redhat.com> In-Reply-To: <20190901203532.2615-1-hdegoede@redhat.com> From: Ard Biesheuvel Date: Wed, 4 Sep 2019 06:02:09 -0700 Message-ID: Subject: Re: [PATCH 0/9] crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h To: Hans de Goede Cc: Herbert Xu , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Russell King , Catalin Marinas , Will Deacon , Gilad Ben-Yossef , Atul Gupta , Marc Zyngier , Eric Biggers , Andy Lutomirski , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , "the arch/x86 maintainers" , linux-s390 , linux-efi , Linux Kernel Mailing List , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, 1 Sep 2019 at 13:35, Hans de Goede wrote: > > Hi All, > > As promised here is a follow-up series to my earlier sha256 series. > > Note I have only compiled and tested this series on x86_64 !! > > All changes to architecture specific code on other archs have not even > been tested to compile! With that said most of these changes were done > using my editors search - replace function so things should be fine... > (and FWIW I did do a Kconfig hack to compile test the ccree change). > > The first patch in this series rename various file local functions / > arrays to avoid conflicts with the new include/crypto/sha256.h, followed > by a patch merging include/crypto/sha256.h into include/crypto/sha.h. > > The last patch makes use of this merging to remove a bit more code > duplication, making sha256_generic use sha256_init and sha224_init from > lib/crypto/sha256.c. An added advantage of this, is that this gives these > 2 functions coverage by the crypto selftests. > For the series, Acked-by: Ard Biesheuvel Thanks Hans.