Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3457333ybl; Sun, 1 Sep 2019 13:36:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmf9ayY71IqG3g/lYJKGcWMsf2b5WhdrdhCN6Er3vy3OBZk3LIV7jCe1E1HQ4tmo/Sc7V3 X-Received: by 2002:aa7:980c:: with SMTP id e12mr4099416pfl.79.1567370184130; Sun, 01 Sep 2019 13:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567370184; cv=none; d=google.com; s=arc-20160816; b=pUoKnQ+NrVrwACUAFObBMTWpPaarD5SjegLSKGLrroCtAoiv+tBuelh3ieTaz3GxNG ZTfKQ5vwY2olTFqhH0hf3oOwPSNOrjHDgl6G47a9TonfsMrtPDsCENXYMr93xIK9wX/Q AVaxyfl35oQInkkoC9HZlMbLSjld8kFZbX5Z1+EViN66OiIcnFBE7mT35gGKfOtH5nPW hoxLXjRoTSQ5p0Jgkk0wFc4esj/ac50NuQfmFbw4H3haNr76G4NVd+tOvYjeNVHCJ+DO AYx0+H5VbHrwwPlx9jbb9nlmUcAjCW1WyyHpwVZF5gw9TR3GMjbUO0tEX7VTv9KQ8DoS CDig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LCpH42ppLPRos6rdRiihZaUz27lFNEd7mDHRdYLvLJA=; b=ibPYA1GSVRohXcLQmye8lS/G2YGSZM7rMU96iD1sUQCR3mZ7I2Np5unW7YKOfumP/c 0SdkDyMPpKcnhclyYWK7L+jAOpcc8kpvpyjqasVO3QdpPoxnjPFRmTj1AKIyWHtlLBVG 8GJyK0DxdVgBb53fhWIjiV+sOixQYXmpbMQCZ1nxfTwYKn8d0H/WOMss6N3/jO/dFZF/ R5nLwe/VXfsO1TflVrLHrRCu/cv/3w4QvLRK33c03FKEAECCdBIQk0tmgur5XKhdLq6V 1Tlznl/JA/87tZNHOhLpXzeKKR6OiS/hQmdoTmSwW7ssPfHjs2dCXOhxLoYk0Fwjd05I QOhw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g28si9859745pgl.84.2019.09.01.13.35.55; Sun, 01 Sep 2019 13:36:24 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728975AbfIAUfk (ORCPT + 99 others); Sun, 1 Sep 2019 16:35:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46386 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfIAUfk (ORCPT ); Sun, 1 Sep 2019 16:35:40 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 70E7D4ACA5; Sun, 1 Sep 2019 20:35:39 +0000 (UTC) Received: from shalem.localdomain.com (ovpn-116-36.ams2.redhat.com [10.36.116.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 954FD608C1; Sun, 1 Sep 2019 20:35:34 +0000 (UTC) From: Hans de Goede To: 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 Cc: Hans de Goede , Marc Zyngier , Eric Biggers , Andy Lutomirski , Ard Biesheuvel , linux-crypto@vger.kernel.org, x86@kernel.org, linux-s390@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/9] crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h Date: Sun, 1 Sep 2019 22:35:23 +0200 Message-Id: <20190901203532.2615-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Sun, 01 Sep 2019 20:35:40 +0000 (UTC) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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. Regards, Hans