From patchwork Tue Nov 12 10:20:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 11238993 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 D126B16B1 for ; Tue, 12 Nov 2019 10:20:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC0892196E for ; Tue, 12 Nov 2019 10:20:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727185AbfKLKUd (ORCPT ); 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 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(-) Reviewed-by: Eric Biggers