From patchwork Tue Jul 7 18:58:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 11649793 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B73792A for ; Tue, 7 Jul 2020 19:02:24 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC808206CD for ; Tue, 7 Jul 2020 19:02:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="mz2ehqZW"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="0Vc3BPL6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC808206CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3E7D01679; Tue, 7 Jul 2020 21:01:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3E7D01679 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594148542; bh=lVBf7fxSxe7emcr0EKVOi3A6xFFfZYFbJ/0I9CPmT1g=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=mz2ehqZWwzLwGFdDWro1E7+SRIQF5BSQonZw4E2I5ELfG6Rix1fKthpxfh9Dx3F+t Nq05NMt3TwyX5ZBQZMPdn6PFftrI0kH0R6+THRmklyYc49vpXCh9dMlU1Hvs260gRa iu5INVOh9Cm9FREz1wSZstFSCe9FUwraQQbrGbU0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5F46AF800D0; Tue, 7 Jul 2020 20:59:54 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 71320F80257; Tue, 7 Jul 2020 20:59:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8D40BF80216 for ; Tue, 7 Jul 2020 20:59:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8D40BF80216 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="0Vc3BPL6" Received: from sol.hsd1.ca.comcast.net (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1DE81206E9; Tue, 7 Jul 2020 18:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594148377; bh=lVBf7fxSxe7emcr0EKVOi3A6xFFfZYFbJ/0I9CPmT1g=; h=From:To:Cc:Subject:Date:From; b=0Vc3BPL6ns4zmsJOKmjw/muNFMR6lYCkjw8gaGzyaHtvi59yjbMqvTKTGRTzYkmFf ePcSOY2IaTZc58HbxU+XJTnT39PtvHVjNKQC9kAqkNh4n6XPVg/qpiXr+VbP360bDl gVkiC/6URN4V3Q/iYXAosk8CXNY5hU4i/cQdZBK0= From: Eric Biggers To: linux-crypto@vger.kernel.org, Herbert Xu Subject: [PATCH 0/4] crypto: add sha256() function Date: Tue, 7 Jul 2020 11:58:14 -0700 Message-Id: <20200707185818.80177-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, linux-efi@vger.kernel.org, Hans de Goede , Mat Martineau , Guenter Roeck , Tzung-Bi Shih , Enric Balletbo i Serra , Matthieu Baerts , mptcp@lists.01.org, Ard Biesheuvel , Cheng-Yi Chiang X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" This series adds a function sha256() to the sha256 library so that users who want to compute a hash in one step can just call sha256() instead of sha256_init() + sha256_update() + sha256_final(). Patches 2-4 then convert some users to use it. Eric Biggers (4): crypto: lib/sha256 - add sha256() function efi: use sha256() instead of open coding mptcp: use sha256() instead of open coding ASoC: cros_ec_codec: use sha256() instead of open coding drivers/firmware/efi/embedded-firmware.c | 9 +++----- include/crypto/sha.h | 1 + lib/crypto/sha256.c | 10 +++++++++ net/mptcp/crypto.c | 15 +++---------- sound/soc/codecs/cros_ec_codec.c | 27 ++---------------------- 5 files changed, 19 insertions(+), 43 deletions(-) base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d Reviewed-by: Ard Biesheuvel Tested-by: Hans de Goede