Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp346302ybc; Tue, 12 Nov 2019 02:23:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyxI8kgH/Qx4AkkDLkSk0U9Q4cTAscf16r4Y+F7ZfQBB/W0SO6J+4opFds+Rfl1ZvXm3lPg X-Received: by 2002:a17:906:49d1:: with SMTP id w17mr27734471ejv.101.1573554238941; Tue, 12 Nov 2019 02:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573554238; cv=none; d=google.com; s=arc-20160816; b=NpAs0TNqe9wFIBIWZFh4CIcZt6Bbo289Q4y3dSpFaPsncvCYkIAWa5socvB8XGlnLT 3tvyFB/T68eAQ+xcWF4FO0M2R6l+/zGTA7qEecPDq2YPQ6OQUL+IiPfnmZ5clyPKd8Z4 Fj1xG14K4AERqO+8K/rpr3eXBysm8gVH56IMo1z8bJO6xpVUKW3+X3rb0VAHC5iUJMN4 WVPGSwbpCEx3lMpwCz/Q/ViwVKpDHJl1dGiaVgTf69igwP4ViRvuQ09A1H615+KYA+zy hc3zxmXz+srW5UplyvAb2ITHJugb03VEJsnC6qtzNQBLql8/XANv7AIOCAFI83TtJSMY ryKA== 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=2yWlWP4at3hhX5Yzt4XyisT+pDA8kUaJc+QyztXQaeQ=; b=bp4gc2p7yD2LbOOssJpnVt8NXruVKlW2x5pNlHzeuKeP1uIaAJ8mSwUAY11bc3QhvO OwFYwEJ9nUdGX5ZhCgZyvK1Zbenq188LSGWQwqwg16JUTCqbh39vbqGWNV6Tk9qFR0/b 1d4HSR0AsU1ZNm4fPdyhe8d1Nan14DMZav7GaMY4B3H3hbqCrycaPNVUxGigYrkeRvqH lctI94Xfe4KmC2UKCAMGVPcVe7jSb7N2Vkg0IwySowZSy+dTCzgRoGrfqp6jv6JwdMML L+9lc7D+Anx4DJdgw6C9KbsppClqBvbUUxZqu6GeLjkcyyOU/Zbh+/6lrmaWIDJYpaZs bvhQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k20si4381876ejj.21.2019.11.12.02.23.33; Tue, 12 Nov 2019 02:23:58 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727185AbfKLKUd (ORCPT + 99 others); Tue, 12 Nov 2019 05:20:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:56680 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726212AbfKLKUc (ORCPT ); Tue, 12 Nov 2019 05:20:32 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 61789B40A; Tue, 12 Nov 2019 10:20:31 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id A1FD1DA7AF; Tue, 12 Nov 2019 11:20:35 +0100 (CET) From: David Sterba To: linux-crypto@vger.kernel.org Cc: ebiggers@kernel.org, David Sterba Subject: [PATCH v2 0/7] BLAKE2b cleanups Date: Tue, 12 Nov 2019 11:20:23 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi, the patchset implements cleanups suggested by Eric in https://lore.kernel.org/linux-crypto/20191025051550.GA103313@sol.localdomain/ The diff is almost the same, split into pieces with some additional comments where it would help understand the simplifications. This is based on v7 of the BLAKE2b patchset. The self-tests have been run for each patch on x86_64. V2: - rename digest_setkey to blake2b_setkey, this is in patch 7 that also does a rename, to avoid a too-trivial separate patch - minor withespace fix in patch 6 David Sterba (7): crypto: blake2b: merge _final implementation to callback crypto: blake2b: merge blake2 init to api callback crypto: blake2b: simplify key init crypto: blake2b: delete unused structs or members crypto: blake2b: open code set last block helper crypto: blake2b: merge _update to api callback crypto: blake2b: rename tfm context and _setkey callback crypto/blake2b_generic.c | 279 ++++++++++++--------------------------- 1 file changed, 82 insertions(+), 197 deletions(-) -- 2.23.0