From patchwork Wed Nov 6 13:48:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 11230391 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 9C1021575 for ; Wed, 6 Nov 2019 13:48:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7606A2173B for ; Wed, 6 Nov 2019 13:48:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726882AbfKFNsh (ORCPT ); Wed, 6 Nov 2019 08:48:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:32806 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726673AbfKFNsh (ORCPT ); Wed, 6 Nov 2019 08:48:37 -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 C665CB389; Wed, 6 Nov 2019 13:48:35 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 82969DA79A; Wed, 6 Nov 2019 14:48:42 +0100 (CET) From: David Sterba To: linux-crypto@vger.kernel.org Cc: ebiggers@kernel.org, David Sterba Subject: [PATCH 0/7] BLAKE2b cleanups Date: Wed, 6 Nov 2019 14:48:24 +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 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. 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 crypto/blake2b_generic.c | 267 +++++++++++---------------------------- 1 file changed, 76 insertions(+), 191 deletions(-)